qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v5 0/2] PCI-e device multi-function hot-add support
@ 2015-10-26  3:29 Cao jin
  2015-10-26  3:29 ` [Qemu-devel] [PATCH v5 1/2] remove function during multi-function hot-add Cao jin
  2015-10-26  3:29 ` [Qemu-devel] [PATCH v5 2/2] enable " Cao jin
  0 siblings, 2 replies; 9+ messages in thread
From: Cao jin @ 2015-10-26  3:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: izumi.taku, alex.williamson, mst

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 cancle the operation.

changelog v5:
1. change pci_is_function_0() to pci_get_function_0(),
   and use it according to v4 comments.
2. reimplement the content of pci_get_function_0()

changelog v4:
1. take ari into account, add api: pci_is_function_0()
2. reorder the patch
3. other minor fix according to the v3 comment

changelog v3:
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):
  remove function during multi-function hot-add
  enable multi-function hot-add

 hw/pci/pci.c         | 31 ++++++++++++++++++++++++++++++-
 hw/pci/pci_host.c    | 13 +++++++++++--
 hw/pci/pcie.c        | 39 ++++++++++++++++++++++++++-------------
 include/hw/pci/pci.h |  1 +
 4 files changed, 68 insertions(+), 16 deletions(-)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-27 10:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26  3:29 [Qemu-devel] [PATCH v5 0/2] PCI-e device multi-function hot-add support Cao jin
2015-10-26  3:29 ` [Qemu-devel] [PATCH v5 1/2] remove function during multi-function hot-add Cao jin
2015-10-26  3:29 ` [Qemu-devel] [PATCH v5 2/2] enable " Cao jin
2015-10-26  8:29   ` Michael S. Tsirkin
2015-10-26 11:57     ` Cao jin
2015-10-26 12:14       ` Michael S. Tsirkin
2015-10-27  9:39         ` Cao jin
2015-10-27  9:47           ` Michael S. Tsirkin
2015-10-27 10:39             ` Cao jin

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).