[SHADOW] Make the guest PT walker more complete.
authorTim Deegan <Tim.Deegan@eu.citrix.com>
Fri, 2 Nov 2007 15:41:57 +0000 (15:41 +0000)
committerTim Deegan <Tim.Deegan@eu.citrix.com>
Fri, 2 Nov 2007 15:41:57 +0000 (15:41 +0000)
commite6934effa82ba57e5de5efa123048886252d5c78
tree0adf2ac8b74474dba027e20257bfd0d1661c88e3
parent07fb260f00b310acbbbfdd693d503d9ea800c7ad
[SHADOW] Make the guest PT walker more complete.

We now check access rights and write back the _PAGE_ACCESSED and
_PAGE_DIRTY bits into the guest entries as we walk the tables.
This makes the shadow fault handler simpler, and the various emulation
paths more correct.

This patch doesn't add checking and write-back to the HAP pagetable walker;
it just fixes up its arguments to match the new shadow one.

Signed-off-by: Tim Deegan <Tim.Deegan@eu.citrix.com>
15 files changed:
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/platform.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/mm/hap/guest_walk.c
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/hap/private.h
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h
xen/arch/x86/mm/shadow/types.h
xen/include/asm-x86/hvm/support.h
xen/include/asm-x86/paging.h
xen/include/asm-x86/perfc_defn.h