From 7ab98b425738dab224a93c4e01a6f433c71f0279 Mon Sep 17 00:00:00 2001 From: Gleb Natapov <gleb@redhat.com> Date: Thu, 5 Nov 2009 14:10:28 -0200 Subject: [PATCH] allow to address up to 48 bits of physical memory in PAE mode RH-Author: Gleb Natapov <gleb@redhat.com> Message-id: <20091101133228.GD29477@redhat.com> Patchwork-id: 3656 O-Subject: [PATCH] allow to address up to 48 bits of physical memory in PAE mode Bugzilla: 516545 RH-Acked-by: Avi Kivity <avi@redhat.com> RH-Acked-by: Rik van Riel <riel@redhat.com> RH-Acked-by: Juan Quintela <quintela@redhat.com> Bugzilla-related: 517223 BZ: 516545 (probably 517223) Upstream status: The code is different and the bug doesn't exists there. Signed-off-by: Gleb Natapov <gleb@redhat.com> -- Gleb. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- arch/x86/kvm/x86.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 7d0d04e..85a18e6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -231,7 +231,7 @@ int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3) goto out; } for (i = 0; i < ARRAY_SIZE(pdpte); ++i) { - if ((pdpte[i] & 1) && (pdpte[i] & 0xfffffff0000001e6ull)) { + if ((pdpte[i] & 1) && (pdpte[i] & 0xffff0000000001e6ull)) { ret = 0; goto out; } -- 1.6.3.rc4.29.g8146