[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] hvm svm: Initialise VMCB CR4 and shadow CR4 with 0 when VMCB is being
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1175017985 -3600 # Node ID c489a25c9f9a68268728ffdb33176759763b1cd5 # Parent faf0a055aa92c5967e8ef2e3dc2bb04afe5d75ba 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@xxxxxxx> --- xen/arch/x86/hvm/svm/vmcb.c | 1 + 1 files changed, 1 insertion(+) diff -r faf0a055aa92 -r c489a25c9f9a xen/arch/x86/hvm/svm/vmcb.c --- a/xen/arch/x86/hvm/svm/vmcb.c Tue Mar 27 18:51:07 2007 +0100 +++ b/xen/arch/x86/hvm/svm/vmcb.c Tue Mar 27 18:53:05 2007 +0100 @@ -203,6 +203,7 @@ static int construct_vmcb(struct vcpu *v vmcb->g_pat = 0x0007040600070406ULL; /* guest PAT */ vmcb->exception_intercepts &= ~EXCEPTION_BITMAP_PG; vmcb->h_cr3 = pagetable_get_paddr(v->domain->arch.phys_table); + vmcb->cr4 = arch_svm->cpu_shadow_cr4 = 0; } return 0; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |