aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/svm/vmcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/arch/x86/hvm/svm/vmcb.c')
-rw-r--r--xen/arch/x86/hvm/svm/vmcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/svm/vmcb.c b/xen/arch/x86/hvm/svm/vmcb.c
index 349381e3ec..82f7195e73 100644
--- a/xen/arch/x86/hvm/svm/vmcb.c
+++ b/xen/arch/x86/hvm/svm/vmcb.c
@@ -380,8 +380,8 @@ void svm_do_launch(struct vcpu *v)
printk("%s: phys_table = %lx\n", __func__, pt);
}
- /* At launch we always use the phys_table */
- vmcb->cr3 = pagetable_get_paddr(v->domain->arch.phys_table);
+ /* Set cr3 from hw_cr3 even when guest-visible paging is not enabled */
+ vmcb->cr3 = v->arch.hvm_vcpu.hw_cr3;
if (svm_dbg_on)
{