From: "Jan Beulich" Subject: [PATCH] EPT/PoD: fix interaction with 1Gb pages Date: Thu, 16 Aug 2012 15:07:54 +0100 Message-ID: <502D1ADA0200007800095820@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part407131AA.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part407131AA.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline When PoD got enabled to support 1Gb pages, ept_get_entry() didn't get updated to match - the assertion in there triggered, indicating that the call to p2m_pod_demand_populate() needed adjustment. Signed-off-by: Jan Beulich --- a/xen/arch/x86/mm/p2m-ept.c +++ b/xen/arch/x86/mm/p2m-ept.c @@ -521,13 +521,12 @@ static mfn_t ept_get_entry(struct p2m_do } =20 /* Populate this superpage */ - ASSERT(i =3D=3D 1); + ASSERT(i <=3D 2); =20 index =3D gfn_remainder >> ( i * EPT_TABLE_ORDER); ept_entry =3D table + index; =20 - if ( !p2m_pod_demand_populate(p2m, gfn,=20 - PAGE_ORDER_2M, q) ) + if ( !p2m_pod_demand_populate(p2m, gfn, i * EPT_TABLE_ORDER, = q) ) goto retry; else goto out; --=__Part407131AA.0__= Content-Type: text/plain; name="x86-EPT-PoD-1Gb-assert.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-EPT-PoD-1Gb-assert.patch" EPT/PoD: fix interaction with 1Gb pages=0A=0AWhen PoD got enabled to = support 1Gb pages, ept_get_entry() didn't get=0Aupdated to match - the = assertion in there triggered, indicating that=0Athe call to p2m_pod_demand_= populate() needed adjustment.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/mm/p2m-ept.c=0A+++ b/xen/arch/x86/mm/p2m-ept= .c=0A@@ -521,13 +521,12 @@ static mfn_t ept_get_entry(struct p2m_do=0A = }=0A =0A /* Populate this superpage */=0A- = ASSERT(i =3D=3D 1);=0A+ ASSERT(i <=3D 2);=0A =0A = index =3D gfn_remainder >> ( i * EPT_TABLE_ORDER);=0A = ept_entry =3D table + index;=0A =0A- if ( !p2m_pod_demand_popula= te(p2m, gfn, =0A- PAGE_ORDER_2M,= q) )=0A+ if ( !p2m_pod_demand_populate(p2m, gfn, i * EPT_TABLE_= ORDER, q) )=0A goto retry;=0A else=0A = goto out;=0A --=__Part407131AA.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part407131AA.0__=--