]> xenbits.xensource.com Git - xen.git/commit
x86/shadow: move OOS flag bit positions
authorJan Beulich <jbeulich@suse.com>
Tue, 20 Nov 2018 14:43:50 +0000 (15:43 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Nov 2018 14:43:50 +0000 (15:43 +0100)
commit2f5a67cfeac6a6a6ed925dd3e837de808a18f8f6
tree34e15b0c33cd34da984386f7b38c85278b7055e9
parentc1fd0703f3f9860c80a2d2540b1c5e525e2fd30e
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>
master commit: d68e1070c3e8f4af7a31040f08bdd98e6d6eac1d
master date: 2018-11-20 14:59:13 +0100
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