Re: How to get the number of VFs assigned to the guests in XEN

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

 



On Wed, 2014-08-20 at 16:39 +0530, Sreekanth Reddy wrote:
> HI,
> 
> For SRIOV support, currently in the KVM environment, mpt3sas driver
> can use the API pci_vfs_assigned() to know the number of VFs that are
> currently assigned to the running VMs. So that during the PF driver
> unload time, if the return value of this API is greater than zero the
> our driver won't call the pci_disable_sriov() to disable the VFs.
> 
> Now for the same purpose in XEN environment, is there any API similar
> to pci_vfs_assigned() which the low lever device driver can use to
> know 'the number of VFs that are currently assigned to the running
> VMs'. In XEN environment this API pci_vfs_assigned() will return
> always zero even though VFs are assigned to the running VMs.

Note that pci_vfs_assigned() assigned is only used by legacy KVM device
assignment and primarily as a workaround for not using an actual
host-based device driver to manage device ownership.  When using
VFIO-based device assignment with KVM, pci_vfs_assigned() is not
updated.  Please don't rely on this interface.  Thanks,

Alex

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux