All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sreekanth Reddy <sreekanth.reddy@avagotech.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pci@vger.kernel.org,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	Christoph Hellwig <hch@lst.de>,
	Sathya Prakash <sathya.prakash@avagotech.com>,
	Nagalakshmi Nandigama <nagalakshmi.nandigama@avagotech.com>,
	boris.ostrovsky@oracle.com
Subject: Re: How to get the number of VFs assigned to the guests in XEN
Date: Thu, 21 Aug 2014 13:50:22 +0530	[thread overview]
Message-ID: <CAK=zhgoU0EywreqEWo+sG8Qy60V4a8fBb4i7Uh30NEj0w+v7bA@mail.gmail.com> (raw)
In-Reply-To: <20140820222922.GA7387@laptop.dumpdata.com>

Yes, devices are binded to pci-back.

On Thu, Aug 21, 2014 at 3:59 AM, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com> 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

  reply	other threads:[~2014-08-21  8:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAK=zhgpH2tG-EG4QP1SE46e+uHXA+GJGOPA1vi8UqAfRZ-EFTA@mail.gmail.com>
2014-08-20 22:29 ` How to get the number of VFs assigned to the guests in XEN Konrad Rzeszutek Wilk
2014-08-21  8:20   ` Sreekanth Reddy [this message]
2014-08-20 11:09 Sreekanth Reddy
2014-08-20 12:46 ` Alex Williamson
2014-08-20 13:44   ` Sreekanth Reddy
2014-08-20 14:09     ` Alex Williamson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK=zhgoU0EywreqEWo+sG8Qy60V4a8fBb4i7Uh30NEj0w+v7bA@mail.gmail.com' \
    --to=sreekanth.reddy@avagotech.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=hch@lst.de \
    --cc=konrad.wilk@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=nagalakshmi.nandigama@avagotech.com \
    --cc=sathya.prakash@avagotech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.