qemu-irix/include/hw
Michael Roth f40eb921da spapr_drc: enable immediate detach for unsignalled devices
Currently spapr doesn't support "aborting" hotplug of PCI
devices by allowing device_del to immediately remove the
device if we haven't signalled the presence of the device
to the guest.

In the past this wasn't an issue, since we always immediately
signalled device attach and simply relied on full guest-aware
add->remove path for device removal. However, as of 788d259,
we now defer signalling for PCI functions until function 0
is attached, so now we need to deal with these "abort" operations
for cases where a user hotplugs a non-0 function, then opts to
remove it prior hotplugging function 0. Currently they'd have to
reboot before the unplug completed. PCIe multifunction hotplug
does not have this requirement however, so from a management
implementation perspective it would be good to address this within
the same release as 788d259.

We accomplish this by simply adding a 'signalled' flag to track
whether a device hotplug event has been sent to the guest. If it
hasn't, we allow immediate removal under the assumption that the
guest will not be using the device. Devices present at boot/reset
time are also assumed to be 'signalled'.

For CPU/memory/etc, signalling will still happen immediately
as part of device_add, so only PCI functions should be affected.

Cc: bharata@linux.vnet.ibm.com
Cc: david@gibson.dropbear.id.au
Cc: sbhat@linux.vnet.ibm.com
Cc: qemu-ppc@nongnu.org
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
[dwg: This fixes a regression where an incorrect hot-add of a non-zero
      function can no longer be backed out until function 0 is added]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2016-04-05 10:47:03 +10:00
..
acpi Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
arm bcm2835_dma: add emulation of Raspberry Pi DMA controller 2016-03-16 17:42:18 +00:00
audio
block fdc: add function to determine drive chs limits 2016-03-11 14:55:15 +02:00
char Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
cpu
cris
display bcm2835_fb: add framebuffer device for Raspberry Pi 2016-03-16 17:42:18 +00:00
dma bcm2835_dma: add emulation of Raspberry Pi DMA controller 2016-03-16 17:42:18 +00:00
gpio
i2c
i386 Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
input cuda: port SET_DEVICE_LIST command to new framework 2016-02-17 09:59:30 +11:00
intc hw/intc: Add (new) ASPEED VIC device model 2016-03-16 17:42:18 +00:00
ipack
ipmi ipmi: introduce a struct ipmi_sdr_compact 2016-02-06 20:44:09 +02:00
isa isa: Move DMA_transfer_handler from qemu-common.h to hw/isa/isa.h 2016-03-22 22:20:16 +01:00
kvm
lm32
m68k
mem nvdimm acpi: emulate dsm method 2016-03-11 16:59:11 +02:00
mips hw/mips/cps: enable ITU for multithreading processors 2016-03-30 09:14:00 +01:00
misc hw/mips: implement ITC Configuration Tags and Storage Cells 2016-03-30 09:14:00 +01:00
net
nvram fw_cfg: Split fw_cfg_keys.h off fw_cfg.h 2016-03-22 22:20:16 +01:00
pci hw/pci/pci.h: Don't include qemu-common.h 2016-03-22 22:20:16 +01:00
pci-host spapr_pci: Remove finish_realize hook 2016-03-16 09:55:11 +11:00
ppc spapr_drc: enable immediate detach for unsignalled devices 2016-04-05 10:47:03 +10:00
s390x s390x: Introduce S390MachineClass 2016-03-10 10:37:16 +01:00
scsi Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
sd sdhci: add quirk property for card insert interrupt status on Raspberry Pi 2016-02-26 15:09:42 +00:00
sh4
smbios
sparc
ssi xilinx_spips: Separate the state struct into a header 2016-01-21 14:15:03 +00:00
timer Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
tricore
unicore32
usb
vfio Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
virtio vhost, virtio, pci, pc 2016-02-25 12:13:49 +00:00
watchdog
xen Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
boards.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
bt.h
compat.h fw_cfg: unbreak migration compatibility for 2.4 and earlier machines 2016-02-26 10:06:40 +01:00
devices.h
elf_ops.h loader: Add data swap option to load-elf 2016-03-04 11:30:21 +00:00
empty_slot.h
fw-path-provider.h
hotplug.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
hw.h include/hw/hw.h: Don't include qemu-common.h 2016-03-22 22:20:16 +01:00
ide.h
irq.h
loader.h loader: Fix incorrect parameter name in load_image_mr() macro 2016-03-16 17:05:58 +00:00
nmi.h
pcmcia.h
platform-bus.h
ptimer.h
qdev-core.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
qdev-dma.h
qdev-properties.h qdev: New DEFINE_PROP_ON_OFF_AUTO 2016-03-21 21:29:02 +01:00
qdev.h
stream.h
sysbus.h
usb.h include/qemu/iov.h: Don't include qemu-common.h 2016-03-22 22:20:16 +01:00