[virt-tools-list] 答复: Re: [virt-manager PATCH] network: add support to create SR-IOV VFs pool

Lin Ma lma at suse.com
Thu Mar 23 05:59:08 UTC 2017



>>> Jim Fehlig <jfehlig at suse.com> 2017/3/23 星期四 上午 1:33 >>>
......
>> is not a good idea, but as far as I know, SR-IOV status can't be
>> detected from
>> nodedev XML so far.
>
>I think it is possible to determine SR-IOV capabilities from the nodedev XML
>
># virsh nodedev-dumpxml pci_0000_09_00_2
><device>
>  <name>pci_0000_09_00_2</name>
>  <path>/sys/devices/pci0000:00/0000:00:1c.0/0000:09:00.2</path>
>  <parent>pci_0000_00_1c_0</parent>
>  <driver>
>    <name>igb</name>
>  </driver>
>  <capability type='pci'>
>    <domain>0</domain>
>    <bus>9</bus>
>    <slot>0</slot>
>    <function>2</function>
>    <product id='0x1521'>I350 Gigabit Network Connection</product>
>    <vendor id='0x8086'>Intel Corporation</vendor>
>    <capability type='virt_functions' maxCount='7'>
>	  <address domain='0x0000' bus='0x0a' slot='0x10' function='0x2'/>
>	  <address domain='0x0000' bus='0x0a' slot='0x10' function='0x6'/>
>	  <address domain='0x0000' bus='0x0a' slot='0x11' function='0x2'/>
>	  <address domain='0x0000' bus='0x0a' slot='0x11' function='0x6'/>
>	  <address domain='0x0000' bus='0x0a' slot='0x12' function='0x2'/>
>	  <address domain='0x0000' bus='0x0a' slot='0x12' function='0x6'/>
>	  <address domain='0x0000' bus='0x0a' slot='0x13' function='0x2'/>
>    </capability>
>    <numa node='0'/>
>    <pci-express>
>	  <link validity='cap' port='0' speed='5' width='4'/>
>	  <link validity='sta' speed='5' width='4'/>
>    </pci-express>
>  </capability>
></device>
>
>So this device has 'virt_functions' capability and currently has 7 configured.
>
Thank you for the information!
I used to dump the information by "virsh nodedev-dumpxml net_eth0_00_1e_67_94_6a_6b",
That's why I didn't figure out the SR-IOV information from the output.
 
Thanks,
Lin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20170322/6aec7588/attachment.htm>


More information about the virt-tools-list mailing list