All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Benoît Canet" <benoit.canet@irqsave.net>
To: linux-pci@vger.kernel.org, qemu-devel@nongnu.org,
	iommu@lists.linux-foundation.org, alex.williamson@redhat.com
Subject: SR-IOV PF reset and QEMU VFs VFIO passthrough
Date: Sat, 1 Jun 2013 14:13:21 +0200	[thread overview]
Message-ID: <20130601121320.GC5157@irqsave.net> (raw)


Hello,

I may have soon the PF driver of an SR-IOV card to code and make work with
QEMU/KVM so I have the following questions.

In an AMD64 setup where QEMU use VFIO to passthrough the VFs of an SR-IOV card
to a guest will the consequences of a PF FLR be handled fine by QEMU and the
guest ?

I read that pci_reset_function would call pci_restore_state restoring the SR-IOV
configuration after the reset of the PF.

The ways the hardware work means that the VFs would disappear and reappear in a
short lapse of time.

Will these events be handled by the kernel pci hotplug code ?

Given that the PF driver restore the PF config space after the reset will /sys
files used by QEMU disappear and reappear messing the QEMU VFIO passthrough or
will it goes smoothly ?

Best regards

Benoît Canet

WARNING: multiple messages have this Message-ID (diff)
From: "Benoît Canet" <benoit.canet@irqsave.net>
To: linux-pci@vger.kernel.org, qemu-devel@nongnu.org,
	iommu@lists.linux-foundation.org, alex.williamson@redhat.com
Subject: [Qemu-devel] SR-IOV PF reset and QEMU VFs VFIO passthrough
Date: Sat, 1 Jun 2013 14:13:21 +0200	[thread overview]
Message-ID: <20130601121320.GC5157@irqsave.net> (raw)


Hello,

I may have soon the PF driver of an SR-IOV card to code and make work with
QEMU/KVM so I have the following questions.

In an AMD64 setup where QEMU use VFIO to passthrough the VFs of an SR-IOV card
to a guest will the consequences of a PF FLR be handled fine by QEMU and the
guest ?

I read that pci_reset_function would call pci_restore_state restoring the SR-IOV
configuration after the reset of the PF.

The ways the hardware work means that the VFs would disappear and reappear in a
short lapse of time.

Will these events be handled by the kernel pci hotplug code ?

Given that the PF driver restore the PF config space after the reset will /sys
files used by QEMU disappear and reappear messing the QEMU VFIO passthrough or
will it goes smoothly ?

Best regards

Benoît Canet

             reply	other threads:[~2013-06-01 12:13 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-01 12:13 Benoît Canet [this message]
2013-06-01 12:13 ` [Qemu-devel] SR-IOV PF reset and QEMU VFs VFIO passthrough Benoît Canet
     [not found] ` <20130601121320.GC5157-J9ArbTHlV+bR7s880joybQ@public.gmane.org>
2013-06-02 14:11   ` Alex Williamson
2013-06-02 14:11     ` [Qemu-devel] " Alex Williamson
2013-06-02 14:11     ` Alex Williamson
2013-06-02 15:13     ` [Qemu-devel] " Benoît Canet
2013-06-03 18:41 ` Don Dutile
2013-06-03 18:41   ` Don Dutile
2013-06-03 19:29   ` Benoît Canet
2013-06-03 19:29     ` Benoît Canet
     [not found]     ` <20130603192958.GB31044-J9ArbTHlV+bR7s880joybQ@public.gmane.org>
2013-06-03 20:55       ` Don Dutile
2013-06-03 20:55         ` Don Dutile
2013-06-03 20:55         ` Don Dutile
     [not found]         ` <51AD02B1.8070503-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-06-03 21:27           ` Benoît Canet
2013-06-03 21:27             ` Benoît Canet
2013-06-03 21:27             ` Benoît Canet
     [not found]             ` <20130603212723.GG4094-J9ArbTHlV+bR7s880joybQ@public.gmane.org>
2013-06-03 21:42               ` Don Dutile
2013-06-03 21:42                 ` Don Dutile
2013-06-03 21:42                 ` Don Dutile
     [not found]                 ` <51AD0DB8.8090109-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-06-03 21:58                   ` Benoît Canet
2013-06-03 21:58                     ` Benoît Canet
2013-06-03 21:58                     ` Benoît Canet
     [not found]                     ` <20130603215855.GC31044-J9ArbTHlV+bR7s880joybQ@public.gmane.org>
2013-06-03 22:03                       ` Don Dutile
2013-06-03 22:03                         ` Don Dutile
2013-06-03 22:03                         ` Don Dutile
     [not found]                         ` <51AD12AB.1000903-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-06-04 15:54                           ` Benoît Canet
2013-06-04 15:54                             ` Benoît Canet
2013-06-04 15:54                             ` Benoît Canet

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=20130601121320.GC5157@irqsave.net \
    --to=benoit.canet@irqsave.net \
    --cc=alex.williamson@redhat.com \
    --cc=iommu@lists.linux-foundation.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    /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.