Re: [virt-manager PATCH] virtinst: display the domain for PCI devices

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

 



Cole Robinson <crobinso@xxxxxxxxxx> writes:

> On 04/15/2014 10:26 AM, Giuseppe Scrivano wrote:
>> Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1085499
>> 
>> Signed-off-by: Giuseppe Scrivano <gscrivan@xxxxxxxxxx>
>> ---
>>  virtinst/nodedev.py | 7 ++++---
>>  1 file changed, 4 insertions(+), 3 deletions(-)
>> 
>> diff --git a/virtinst/nodedev.py b/virtinst/nodedev.py
>> index af6dbf7..17524dc 100644
>> --- a/virtinst/nodedev.py
>> +++ b/virtinst/nodedev.py
>> @@ -169,9 +169,10 @@ class PCIDevice(NodeDevice):
>>      iommu_group = XMLProperty("./capability/iommuGroup/@number", is_int=True)
>>  
>>      def pretty_name(self):
>> -        devstr = "%.2X:%.2X:%X" % (int(self.bus),
>> -                                   int(self.slot),
>> -                                   int(self.function))
>> +        devstr = "%.4X:%.2X:%.2X:%X" % (int(self.domain),
>> +                                        int(self.bus),
>> +                                        int(self.slot),
>> +                                        int(self.function))
>>  
>>          return "%s %s %s" % (devstr, self.vendor_name, self.product_name)
>>  
>> 
>
> ACK

pushed now.

Thanks,
Giuseppe

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux