From: "Jan Beulich" Subject: [PATCH] x86/HAP: also flush TLB when altering a present 1G entry Date: Fri, 11 Apr 2014 11:29:36 +0100 Message-ID: <5347E0300200007800007ED0@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartB88AA100.0__=" Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WYYiG-0002a3-Rg for xen-devel@lists.xenproject.org; Fri, 11 Apr 2014 10:29:37 +0000 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 Cc: Tim Deegan 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. --=__PartB88AA100.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I actually wonder whether it is really correct to avoid the flush when updating intermediate page table entries. Signed-off-by: Jan Beulich --- a/xen/arch/x86/mm/hap/hap.c +++ b/xen/arch/x86/mm/hap/hap.c @@ -712,7 +712,7 @@ hap_write_p2m_entry(struct vcpu *v, unsi =20 safe_write_pte(p, new); if ( (old_flags & _PAGE_PRESENT) - && (level =3D=3D 1 || (level =3D=3D 2 && (old_flags & _PAGE_PSE))= ) ) + && (level =3D=3D 1 || (old_flags & _PAGE_PSE)) ) flush_tlb_mask(d->domain_dirty_cpumask); =20 paging_unlock(d); --=__PartB88AA100.0__= Content-Type: text/plain; name="x86-HAP-also-flush-1G-pages.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-HAP-also-flush-1G-pages.patch" x86/HAP: also flush TLB when altering a present 1G entry=0A=0AI actually = wonder whether it is really correct to avoid the flush when=0Aupdating = intermediate page table entries.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/mm/hap/hap.c=0A+++ b/xen/arch/x86/mm/hap/= hap.c=0A@@ -712,7 +712,7 @@ hap_write_p2m_entry(struct vcpu *v, unsi=0A = =0A safe_write_pte(p, new);=0A if ( (old_flags & _PAGE_PRESENT)=0A-= && (level =3D=3D 1 || (level =3D=3D 2 && (old_flags & _PAGE_PSE)))= )=0A+ && (level =3D=3D 1 || (old_flags & _PAGE_PSE)) )=0A = flush_tlb_mask(d->domain_dirty_cpumask);=0A =0A paging_unlock(d);= =0A --=__PartB88AA100.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 --=__PartB88AA100.0__=--