x86/nested-svm: Update the paging mode on VMRUN and VMEXIT emulation.
authorTim Deegan <tim@xen.org>
Thu, 4 Oct 2012 13:20:50 +0000 (14:20 +0100)
committerTim Deegan <tim@xen.org>
Thu, 4 Oct 2012 13:20:50 +0000 (14:20 +0100)
commitbf2761690b46d06c50c6ad2cfb28e1116c7ed4c3
treed731d65ce90a784d3b338b735f9db2f74e30e257
parentfb0c65ba0dc5fcf7582aef335565de3ae5771fda
x86/nested-svm: Update the paging mode on VMRUN and VMEXIT emulation.

This allows Xen to walk the l1 hypervisor's shadow pagetable
correctly.  Not needed for hap-on-hap guests because they are handled
at lookup time.  Problem found with 64bit Win7 and 32bit XPMode where Win7
switches forth and back between long mode and PAE legacy pagetables.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
[Adjusted to update in all cases where the l1 vmm uses shadows]
Signed-off-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/svm/nestedsvm.c