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

[Xen-changelog] [xen-unstable] libxl: fix wrong mask of function number



# HG changeset patch
# User Yang Zhang <yang.z.zhang@xxxxxxxxx>
# Date 1307032923 -3600
# Node ID 2c4d77e06a2c36c31484be1b6512f9558f60f1d0
# Parent  2ae357405850abfd38c1659f32193ae4dfe73afe
libxl: fix wrong mask of function number

Function number is 3 bits. So the mask should be 0x7 instead 0x3.

Signed-off-by: Yang Zhang <yang.z.zhang@xxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 2ae357405850 -r 2c4d77e06a2c tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c   Thu Jun 02 17:36:02 2011 +0100
+++ b/tools/libxl/libxl_pci.c   Thu Jun 02 17:42:03 2011 +0100
@@ -48,7 +48,7 @@
     value = 0;
     value |= (pcidev->bus & 0xff) << 16;
     value |= (pcidev->dev & 0x1f) << (8+3);
-    value |= (pcidev->func & 0x3) << (8+0);
+    value |= (pcidev->func & 0x7) << (8+0);
 
     return value;
 }

_______________________________________________
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®.