|
From: | Cao jin |
Subject: | Re: [Qemu-devel] [PATCH v3 0/2] PCI-e device multi-function hot-add support |
Date: | Wed, 14 Oct 2015 13:48:07 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
On 10/13/2015 09:10 PM, Michael S. Tsirkin wrote:
On Tue, Oct 13, 2015 at 07:54:07PM +0800, Cao jin wrote:On 10/13/2015 04:49 PM, Michael S. Tsirkin wrote:On Tue, Oct 13, 2015 at 04:41:33PM +0800, Cao jin wrote:Support PCI-e device hot-add multi-function via device_add, just ensure add the function 0 is added last. While allow user to roll back in the middle via device_del, in case user regret.This patch doesn't seem to account of AIR though.Yes, but the AIR function seems never be used(nobody calls the function pcie_ari_init()), so I am a little confused about should it be consindered?Yes please - we'll likely use that in the future. Pls add an API that takes ari into account.
Ok, I am on it
changelog: 1. Flag device as unexposed when func 0 doesn`t exist, via return 0xFF in case of gratuitous pci bus scan. 2. Since device is unexposed to guest, can remove function individually, without interaction with the guest. Cao jin (2): enable multi-function hot-add remove function during multi-function hot-add hw/pci/pci.c | 10 ++++++++++ hw/pci/pci_host.c | 6 +++++- hw/pci/pcie.c | 38 +++++++++++++++++++++++++------------- 3 files changed, 40 insertions(+), 14 deletions(-) -- 2.1.0.-- Yours Sincerely, Cao Jin.
-- Yours Sincerely, Cao Jin
[Prev in Thread] | Current Thread | [Next in Thread] |