From: Alex Williamson <alex.williamson@redhat.com>
To: rukhsana ansari <ruk.ansari@gmail.com>
Cc: qemu-devel@nongnu.org, kvm <kvm@vger.kernel.org>
Subject: Re: [Qemu-devel] FLR capability hidden in VF config space
Date: Thu, 23 Feb 2012 09:04:39 -0700 [thread overview]
Message-ID: <1330013079.4960.6.camel@ul30vt> (raw)
In-Reply-To: <CAPu0trpFJJ-x9rEBMbf=5GLD+Ho1OHUq8Jd+y4G849B7Cbm8Qg@mail.gmail.com>
On Thu, 2012-02-23 at 09:25 +0530, rukhsana ansari wrote:
> Hello,
>
> Was wondering whether someone could shed some light on the issue below.
> Without FLR exposed in the VF, VF reset via FLR cannot be initiated from
> the guest.
> Appreciate any pointers.
The device state needs to be restored after an FLR. A guest is not able
to do this by this by itself as much of the config space is virtualized.
That means qemu needs to be involved in the FLR. It's possible we could
trap FLR and call reset_assign_device(). Patches welcome. Why do want
to reset the device?
> On Wed, Feb 15, 2012 at 2:54 PM, rukhsana ansari <ruk.ansari@gmail.com>wrote:
>
> > Hi,
> >
> > The following code snippet (line 1457,
> > function:assigned_device_pci_cap_init() file: hw/device-assignment.c)
> > from the latest qemu-kvm git (qemu-kvm-devel: 1.0.50) implies that FLR
> > capability is unset for VF that is assigned to a guest:
> >
> > /* device capabilities: hide FLR */
> > devcap = pci_get_long(pci_dev->config + pos + PCI_EXP_DEVCAP);
> > devcap &= ~PCI_EXP_DEVCAP_FLR;
> > pci_set_long(pci_dev->config + pos + PCI_EXP_DEVCAP, devcap);
> >
> >
> > However the SR-IOV spec mandates VF FLR.
The SR-IOV spec mandates that the VF supports FLR. That doesn't mean it
has to be exposed though to a guest. Thanks,
Alex
next prev parent reply other threads:[~2012-02-23 16:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 9:24 [Qemu-devel] FLR capability hidden in VF config space rukhsana ansari
2012-02-23 3:55 ` rukhsana ansari
2012-02-23 16:04 ` Alex Williamson [this message]
2012-02-24 11:02 ` rukhsana ansari
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=1330013079.4960.6.camel@ul30vt \
--to=alex.williamson@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=ruk.ansari@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).