nEPT: Support shadow paging for guest paging without A/D bits
authorGleb Natapov <gleb@redhat.com>
Mon, 5 Aug 2013 08:07:11 +0000 (11:07 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Aug 2013 13:57:37 +0000 (15:57 +0200)
commit61719a8fff3da865cdda57dd62974e561e16315d
tree61cec4f5d28d4a7ce092884c0cd1c0f117de132c
parentd8089baca4f6895ce9c7bdabd2fca48a23feee79
nEPT: Support shadow paging for guest paging without A/D bits

Some guest paging modes do not support A/D bits. Add support for such
modes in shadow page code. For such modes PT_GUEST_DIRTY_MASK,
PT_GUEST_ACCESSED_MASK, PT_GUEST_DIRTY_SHIFT and PT_GUEST_ACCESSED_SHIFT
should be set to zero.

Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/paging_tmpl.h