direct-io.hg

changeset 14595:c489a25c9f9a

hvm svm: Initialise VMCB CR4 and shadow CR4 with 0 when VMCB is being
constructed under nested paging mode. It complies with recent
reset_to_realmode change in hvmloader.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
author kfraser@localhost.localdomain
date Tue Mar 27 18:53:05 2007 +0100 (2007-03-27)
parents faf0a055aa92
children 6664a713f55f
files xen/arch/x86/hvm/svm/vmcb.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/vmcb.c	Tue Mar 27 18:51:07 2007 +0100
     1.2 +++ b/xen/arch/x86/hvm/svm/vmcb.c	Tue Mar 27 18:53:05 2007 +0100
     1.3 @@ -203,6 +203,7 @@ static int construct_vmcb(struct vcpu *v
     1.4          vmcb->g_pat = 0x0007040600070406ULL; /* guest PAT */
     1.5          vmcb->exception_intercepts &= ~EXCEPTION_BITMAP_PG;
     1.6          vmcb->h_cr3 = pagetable_get_paddr(v->domain->arch.phys_table);
     1.7 +        vmcb->cr4 = arch_svm->cpu_shadow_cr4 = 0;
     1.8      }
     1.9  
    1.10      return 0;