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

From: Sreekanth Reddy
Date: Thu Aug 21 2014 - 04:20:34 EST


Yes, devices are binded to pci-back.

On Thu, Aug 21, 2014 at 3:59 AM, Konrad Rzeszutek Wilk
<konrad.wilk@xxxxxxxxxx> wrote:
> On Wed, Aug 20, 2014 at 04:33:29PM +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.
>
> Odd. It should return the same value. Are the devices binded to pci-back?
>
>>
>>
>>
>> Regards,
>>
>> Sreekanth
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/