diff options
author | Yang Zhang <yang.z.zhang@intel.com> | 2011-06-02 17:42:03 +0100 |
---|---|---|
committer | Yang Zhang <yang.z.zhang@intel.com> | 2011-06-02 17:42:03 +0100 |
commit | c6386a7eecd4844c5e512ab5e7dca0fdeea0fdf5 (patch) | |
tree | 7973e47a778f93eeb1fe10aa36883035fb4d40ee /tools/libxl/libxl_pci.c | |
parent | 83cd67d589caf8d5111d575e5a4bc93763664fb1 (diff) | |
download | xen-c6386a7eecd4844c5e512ab5e7dca0fdeea0fdf5.tar.gz xen-c6386a7eecd4844c5e512ab5e7dca0fdeea0fdf5.tar.bz2 xen-c6386a7eecd4844c5e512ab5e7dca0fdeea0fdf5.zip |
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@intel.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_pci.c')
-rw-r--r-- | tools/libxl/libxl_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 55f199cc49..5b01b7696e 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -48,7 +48,7 @@ static unsigned int pcidev_encode_bdf(libxl_device_pci *pcidev) 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; } |