aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/mm/hap/hap.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/arch/x86/mm/hap/hap.c')
-rw-r--r--xen/arch/x86/mm/hap/hap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c
index debaba4f9e..9efb801ae8 100644
--- a/xen/arch/x86/mm/hap/hap.c
+++ b/xen/arch/x86/mm/hap/hap.c
@@ -786,7 +786,7 @@ hap_paging_get_mode(struct vcpu *v)
static void hap_update_paging_modes(struct vcpu *v)
{
struct domain *d = v->domain;
- unsigned long cr3_gfn = v->arch.hvm_vcpu.guest_cr[3];
+ unsigned long cr3_gfn = v->arch.hvm_vcpu.guest_cr[3] >> PAGE_SHIFT;
p2m_type_t t;
/* We hold onto the cr3 as it may be modified later, and