x86/shadow: make 1-bit-disable match 1-bit-enable
authorJan Beulich <jbeulich@suse.com>
Wed, 20 Dec 2017 09:12:11 +0000 (10:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 20 Dec 2017 09:12:11 +0000 (10:12 +0100)
commitca39b45bd2a2a394bdb81cc1b3240bab9aece92e
tree295aacdc7fc9277dadd67053b282a99a46c4a972
parent51fc3633dfe50d0e04f438dbcd19e55beab9b9a7
x86/shadow: make 1-bit-disable match 1-bit-enable

shadow_one_bit_enable() sets PG_SH_enable (if not already set of course)
in addition to the bit being requested. Make shadow_one_bit_disable()
behave similarly - clear PG_SH_enable if that's the only bit remaining.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c