x86/shadow: move OOS flag bit positions
authorJan Beulich <jbeulich@suse.com>
Tue, 20 Nov 2018 13:59:13 +0000 (14:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Nov 2018 13:59:13 +0000 (14:59 +0100)
commitd68e1070c3e8f4af7a31040f08bdd98e6d6eac1d
tree781a37876a766d379370d9828590b6371733fd04
parent6c8d50288722672ecc8e19b0741a31b521d01706
x86/shadow: move OOS flag bit positions

In preparation of reducing struct page_info's shadow_flags field to 16
bits, lower the bit positions used for SHF_out_of_sync and
SHF_oos_may_write.

Instead of also adjusting the open coded use in _get_page_type(),
introduce shadow_prepare_page_type_change() to contain knowledge of the
bit positions to shadow code.

This is part of XSA-280.

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