aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_pci.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-09-22 18:26:54 +0100
committerJan Beulich <jbeulich@suse.com>2011-09-22 18:26:54 +0100
commit6865e52b78f4c542e7d53155f7f013016ebfa4ec (patch)
tree45825ddef27bf733162cf4da5adaaec147994198 /tools/libxl/libxl_pci.c
parent1b0061ac2b57297e7d7211ce6f4e1b197b8e0ec2 (diff)
downloadxen-6865e52b78f4c542e7d53155f7f013016ebfa4ec.tar.gz
xen-6865e52b78f4c542e7d53155f7f013016ebfa4ec.tar.bz2
xen-6865e52b78f4c542e7d53155f7f013016ebfa4ec.zip
PCI multi-seg: adjust domctl interface
Again, a couple of directly related functions at once get adjusted to account for the segment number. Signed-off-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'tools/libxl/libxl_pci.c')
-rw-r--r--tools/libxl/libxl_pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c
index 1669e17027..1523cf07e1 100644
--- a/tools/libxl/libxl_pci.c
+++ b/tools/libxl/libxl_pci.c
@@ -45,10 +45,10 @@ static unsigned int pcidev_encode_bdf(libxl_device_pci *pcidev)
{
unsigned int value;
- value = 0;
- value |= (pcidev->bus & 0xff) << 16;
- value |= (pcidev->dev & 0x1f) << (8+3);
- value |= (pcidev->func & 0x7) << (8+0);
+ value = pcidev->domain << 16;
+ value |= (pcidev->bus & 0xff) << 8;
+ value |= (pcidev->dev & 0x1f) << 3;
+ value |= (pcidev->func & 0x7);
return value;
}