qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] pci: allow PCI bus slots to be marked as reserved
@ 2017-07-07  7:43 Mark Cave-Ayland
  2017-07-07  7:44 ` [Qemu-devel] [PATCH 1/3] pci: move check for existing devfn into new pci_bus_devfn_available() helper Mark Cave-Ayland
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Mark Cave-Ayland @ 2017-07-07  7:43 UTC (permalink / raw)
  To: qemu-devel, mst, armbru, marcel

For some machines it is impossible to plug devices into a particular PCI bus
slot, e.g. for a real Ultra 5 there are 2 PCI bridges attached to the root
bus behind which all devices must be plugged. Ignoring this rule will cause
problems with interrupt routing since the interrupt numbers are calculated
based upon PCI bridge id and secondary PCI bus slot id.

This patchset adds a new dev_reserved_mask property to PCIBus which is a
bitmask used to indicate whether PCI bus slots are reserved, i.e. they cannot
be used for hot or cold plugging on a particular PCI bus.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


Mark Cave-Ayland (3):
  pci: move check for existing devfn into new pci_bus_devfn_available()
    helper
  pci: add dev_reserved_mask property to PCIBus
  pci: add reserved slot check to do_pci_register_device()

 hw/pci/pci.c             |   34 ++++++++++++++++++++++++++++++----
 include/hw/pci/pci_bus.h |    1 +
 2 files changed, 31 insertions(+), 4 deletions(-)

-- 
1.7.10.4

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

end of thread, other threads:[~2017-07-11 22:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-07  7:43 [Qemu-devel] [PATCH 0/3] pci: allow PCI bus slots to be marked as reserved Mark Cave-Ayland
2017-07-07  7:44 ` [Qemu-devel] [PATCH 1/3] pci: move check for existing devfn into new pci_bus_devfn_available() helper Mark Cave-Ayland
2017-07-10  7:24   ` Marcel Apfelbaum
2017-07-10 12:44     ` Mark Cave-Ayland
2017-07-07  7:44 ` [Qemu-devel] [PATCH 2/3] pci: add dev_reserved_mask property to PCIBus Mark Cave-Ayland
2017-07-10  7:27   ` Marcel Apfelbaum
2017-07-10 12:49     ` Mark Cave-Ayland
2017-07-07  7:44 ` [Qemu-devel] [PATCH 3/3] pci: add reserved slot check to do_pci_register_device() Mark Cave-Ayland
2017-07-10  7:35   ` Marcel Apfelbaum
2017-07-10 13:05     ` Mark Cave-Ayland
2017-07-11 13:37       ` Marcel Apfelbaum
2017-07-11 15:31 ` [Qemu-devel] [PATCH 0/3] pci: allow PCI bus slots to be marked as reserved Michael S. Tsirkin
2017-07-11 15:51   ` Marcel Apfelbaum
2017-07-11 15:57     ` Michael S. Tsirkin
2017-07-11 17:59       ` Mark Cave-Ayland
2017-07-11 22:03         ` Mark Cave-Ayland

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