From: "Jan Beulich" Subject: [PATCH] x86/msi: fix inverted masks in c/s 22182:68cc3c514a0a Date: Wed, 13 Oct 2010 15:36:06 +0100 Message-ID: <4CB5DFF6020000780001CE4C@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part94B960C6.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" 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. --=__Part94B960C6.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -549,14 +549,14 @@ static u64 read_pci_mem_bar(u8 bus, u8 s return 0; if ( (addr & PCI_BASE_ADDRESS_MEM_TYPE_MASK) =3D=3D PCI_BASE_ADDRESS_M= EM_TYPE_64 ) { - addr &=3D ~PCI_BASE_ADDRESS_MEM_MASK; + addr &=3D PCI_BASE_ADDRESS_MEM_MASK; if ( ++bir >=3D limit ) return 0; return addr | ((u64)pci_conf_read32(bus, slot, func, PCI_BASE_ADDRESS_0 + bir * 4) << = 32); } - return addr & ~PCI_BASE_ADDRESS_MEM_MASK; + return addr & PCI_BASE_ADDRESS_MEM_MASK; } =20 /** --=__Part94B960C6.0__= Content-Type: text/plain; name="x86-msix-protect-table-and-pba-fix.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-msix-protect-table-and-pba-fix.patch" Signed-off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/ms= i.c=0A+++ b/xen/arch/x86/msi.c=0A@@ -549,14 +549,14 @@ static u64 = read_pci_mem_bar(u8 bus, u8 s=0A return 0;=0A if ( (addr & = PCI_BASE_ADDRESS_MEM_TYPE_MASK) =3D=3D PCI_BASE_ADDRESS_MEM_TYPE_64 )=0A = {=0A- addr &=3D ~PCI_BASE_ADDRESS_MEM_MASK;=0A+ addr &=3D = PCI_BASE_ADDRESS_MEM_MASK;=0A if ( ++bir >=3D limit )=0A = return 0;=0A return addr |=0A ((u64)pci_conf_read3= 2(bus, slot, func,=0A PCI_BASE_ADDRESS= _0 + bir * 4) << 32);=0A }=0A- return addr & ~PCI_BASE_ADDRESS_MEM_M= ASK;=0A+ return addr & PCI_BASE_ADDRESS_MEM_MASK;=0A }=0A =0A /**=0A --=__Part94B960C6.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.xensource.com http://lists.xensource.com/xen-devel --=__Part94B960C6.0__=--