]> xenbits.xensource.com Git - libvirt.git/commit
conf: support reporting maxCount attribute for virtual_functions cap
authorLaine Stump <laine@laine.org>
Mon, 23 Nov 2015 19:50:31 +0000 (14:50 -0500)
committerLaine Stump <laine@laine.org>
Tue, 24 Nov 2015 17:29:31 +0000 (12:29 -0500)
commit0d210c47f94e91da09bb1a4acd7e651f8bc7601f
treeb91b01a4d5d1d3bd59780907a971f4cb9acffe26
parent0076d8db976d0ac19587a667fcc2b7bcc210f94e
conf: support reporting maxCount attribute for virtual_functions cap

Report the maximum possible number of VFs for an SRIOV PF, like this:

   <capability type='virtual_functions' maxCount='7'>
      ...
   </capability>

I've just discovered that the virtual_functions and physical_functions
capabilities are not supported in the virNodeDeviceParse functions,
only in virNodeDeviceFormat (I suppose because they are only reported,
not set from XML). This should probably be remedied, but is less
immediately useful than the current patch.
docs/formatnode.html.in
src/conf/node_device_conf.c
src/conf/node_device_conf.h