virtinst: display the domain for PCI devices

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1085499

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2014-04-15 16:22:33 +02:00
parent 86fc54be8e
commit e980d9c737

View File

@ -169,7 +169,8 @@ class PCIDevice(NodeDevice):
iommu_group = XMLProperty("./capability/iommuGroup/@number", is_int=True) iommu_group = XMLProperty("./capability/iommuGroup/@number", is_int=True)
def pretty_name(self): def pretty_name(self):
devstr = "%.2X:%.2X:%X" % (int(self.bus), devstr = "%.4X:%.2X:%.2X:%X" % (int(self.domain),
int(self.bus),
int(self.slot), int(self.slot),
int(self.function)) int(self.function))