From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: [PATCH 1/4] x86/EFI: fix EFI_MEMORY_WP handling Date: Tue, 09 Jun 2015 14:52:22 +0100 Message-ID: <55770BB60200007800082A3F@mail.emea.novell.com> References: <55770B190200007800082A2C@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part22160C86.0__=" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z2Jx4-0005R1-7J for xen-devel@lists.xenproject.org; Tue, 09 Jun 2015 13:52:26 +0000 In-Reply-To: <55770B190200007800082A2C@mail.emea.novell.com> 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. --=__Part22160C86.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -1195,7 +1195,7 @@ void __init efi_init_memory(void) } =20 if ( desc->Attribute & EFI_MEMORY_WP ) - prot &=3D _PAGE_RW; + prot &=3D ~_PAGE_RW; if ( desc->Attribute & EFI_MEMORY_XP ) prot |=3D _PAGE_NX; =20 --=__Part22160C86.0__= Content-Type: text/plain; name="EFI-RS-write-protect.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="EFI-RS-write-protect.patch" x86/EFI: fix EFI_MEMORY_WP handling=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/common/efi/boot.c=0A+++ b/xen/common/efi= /boot.c=0A@@ -1195,7 +1195,7 @@ void __init efi_init_memory(void)=0A = }=0A =0A if ( desc->Attribute & EFI_MEMORY_WP )=0A- = prot &=3D _PAGE_RW;=0A+ prot &=3D ~_PAGE_RW;=0A if ( = desc->Attribute & EFI_MEMORY_XP )=0A prot |=3D _PAGE_NX;=0A =0A --=__Part22160C86.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 --=__Part22160C86.0__=--