[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKgT0UevBmRLpM1PvuuVDUW79A66RcPrfO8uGiqL1RiALW7apg@mail.gmail.com>
Date: Wed, 25 Nov 2015 07:32:03 -0800
From: Alexander Duyck <alexander.duyck@...il.com>
To: Lan Tianyu <tianyu.lan@...el.com>
Cc: a.motakis@...tualopensystems.com,
Alex Williamson <alex.williamson@...hat.com>,
b.reynal@...tualopensystems.com,
Bjorn Helgaas <bhelgaas@...gle.com>,
Carolyn Wyborny <carolyn.wyborny@...el.com>,
"Skidmore, Donald C" <donald.c.skidmore@...el.com>,
eddie.dong@...el.com, nrupal.jani@...el.com,
Alexander Graf <agraf@...e.de>, kvm@...r.kernel.org,
Paolo Bonzini <pbonzini@...hat.com>, qemu-devel@...gnu.org,
"Tantilov, Emil S" <emil.s.tantilov@...el.com>,
Or Gerlitz <gerlitz.or@...il.com>,
"Rustad, Mark D" <mark.d.rustad@...el.com>,
"Michael S. Tsirkin" <mst@...hat.com>,
Eric Auger <eric.auger@...aro.org>,
intel-wired-lan <intel-wired-lan@...ts.osuosl.org>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
"Ronciak, John" <john.ronciak@...el.com>,
linux-api@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Vick, Matthew" <matthew.vick@...el.com>,
Mitch Williams <mitch.a.williams@...el.com>,
Netdev <netdev@...r.kernel.org>,
"Nelson, Shannon" <shannon.nelson@...el.com>,
Wei Yang <weiyang@...ux.vnet.ibm.com>, zajec5@...il.com
Subject: Re: [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for
SRIOV NIC
On Wed, Nov 25, 2015 at 12:21 AM, Lan Tianyu <tianyu.lan@...el.com> wrote:
> On 2015年11月25日 13:30, Alexander Duyck wrote:
>> No, what I am getting at is that you can't go around and modify the
>> configuration space for every possible device out there. This
>> solution won't scale.
>
>
> PCI config space regs are emulation by Qemu and so We can find the free
> PCI config space regs for the faked PCI capability. Its position can be
> not permanent.
Yes, but do you really want to edit every driver on every OS that you
plan to support this on. What about things like direct assignment of
regular Ethernet ports? What you really need is a solution that will
work generically on any existing piece of hardware out there.
>> If you instead moved the logic for notifying
>> the device into a separate mechanism such as making it a part of the
>> hot-plug logic then you only have to write the code once per OS in
>> order to get the hot-plug capability to pause/resume the device. What
>> I am talking about is not full hot-plug, but rather to extend the
>> existing hot-plug in Qemu and the Linux kernel to support a
>> "pause/resume" functionality. The PCI hot-plug specification calls
>> out the option of implementing something like this, but we don't
>> currently have support for it.
>>
>
> Could you elaborate the part of PCI hot-plug specification you mentioned?
>
> My concern is whether it needs to change PCI spec or not.
In the PCI Hot-Plug Specification 1.1, in section 4.1.2 it states:
In addition to quiescing add-in card activity, an operating-system
vendor may optionally implement a less drastic “pause” capability, in
anticipation of the same or a similar add-in card being reinserted.
The idea I had was basically if we were to implement something like
that in Linux then we could pause/resume the device instead of
outright removing it. The pause functionality could make use of the
suspend/resume functionality most drivers already have for PCI power
management.
- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists