[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] msix: Further fixes to Python arithmetic.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1210148272 -3600
# Node ID 9d2a45d4b6c6ecf6d99f01dd035326d2215c548c
# Parent  730c253afc304b40b979b9be342deba1943de51d
msix: Further fixes to Python arithmetic.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/python/xen/util/pci.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 730c253afc30 -r 9d2a45d4b6c6 tools/python/xen/util/pci.py
--- a/tools/python/xen/util/pci.py      Wed May 07 09:15:49 2008 +0100
+++ b/tools/python/xen/util/pci.py      Wed May 07 09:17:52 2008 +0100
@@ -30,7 +30,7 @@ PCI_STATUS_OFFSET = 0x6
 PCI_STATUS_OFFSET = 0x6
 PCI_CAP_OFFSET = 0x34
 MSIX_BIR_MASK = 0x7
-MSIX_SIZE_MASK = 0x3ff
+MSIX_SIZE_MASK = 0x7ff
 
 #Calculate PAGE_SHIFT: number of bits to shift an address to get the page 
number
 PAGE_SIZE = resource.getpagesize()
@@ -122,7 +122,7 @@ class PciDevice:
                         message_cont_hi = ord(conf_file.read(1))
                         self.msix=1
                         self.msix_entries = (message_cont_lo + \
-                                             message_cont_hi << 8) \
+                                             (message_cont_hi << 8)) \
                                              & MSIX_SIZE_MASK
                         t_off=conf_file.read(4)
                         p_off=conf_file.read(4)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.