x86/mm: change default value for suppress #VE in set_mem_access()
authorVlad Ioan Topan <itopan@bitdefender.com>
Wed, 12 Sep 2018 07:50:00 +0000 (09:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 12 Sep 2018 14:34:07 +0000 (16:34 +0200)
commiteea4ec2b66dad87ec745778ab9f00e12ef0f2760
treedeff0ae13a6f8ede773dda365cc877a28695df34
parent0426787629417dcc338f03c1682b34d3540cb674
x86/mm: change default value for suppress #VE in set_mem_access()

The default value for the "suppress #VE" bit set by set_mem_access()
currently depends on whether the call is made from the same domain (the
bit is set when called from another domain and cleared if called from
the same domain). This patch changes that behavior to inherit the old
suppress #VE bit value if it is already set and to set it to 1
otherwise, which is safer and more reliable.

Signed-off-by: Vlad Ioan Topan <itopan@bitdefender.com>
Signed-off-by: Adrian Pop <apop@bitdefender.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/mem_access.c