qdev: bus management updates.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest24 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/24 | unbreak usb pass-through on linux.usb-linux.c | +2 | 0 replies | |
| 2/24 | allow qdev busses allocations be inplacehw/ hw/ | +15 | 0 replies | |
| 3/24 | switch scsi bus to inplace allocation.hw/ hw/ hw/ +2 more | +19 | 0 replies | |
| 4/24 | switch usb bus to inplace allocation.hw/ hw/ hw/ +2 more | +12 | 0 replies | |
| 5/24 | switch ide bus to inplace allocation.hw/ hw/ hw/ +1 more | +36 | 0 replies | |
| 6/24 | inplace allocation for pci, split irq init.hw/ hw/ | +38 | 0 replies | |
| 7/24 | convert pci bridge to qdevhw/ | +48 | 0 replies | |
| 8/24 | piix_pci: kill PIIX3IrqStatehw/ | +17 | 0 replies | |
| 9/24 | qdev: device free fixups.hw/ hw/ | +38 | 0 replies | |
| 10/24 | Add exit callback to DeviceInfo.hw/ hw/ | +4 | 0 replies | |
| 11/24 | Implement scsi device destructionhw/ hw/ hw/ | +21 | 0 replies | |
| 12/24 | pci: use qdev for device destruction.hw/ hw/ hw/ | +4 | 0 replies | |
| 13/24 | pci: move unregister from PCIDevice to PCIDeviceInfohw/ hw/ hw/ +5 more | +13 | 0 replies | |
| 14/24 | usb: hook unplug into qdev, cleanups + fixes.hw/ hw/ hw/ +5 more | +56 | 0 replies | |
| 15/24 | switch qemu-config to qemu_errorqemu-config.c | +5 | 2 replies | |
| 16/24 | qdev hotplug: infrastructure and monitor commands.hw/ hw/ qemu-monitor.hx +1 more | +107 | 4 replies | |
| 17/24 | usb: hotplug winduphw/ | +2 | 0 replies | |
| 18/24 | scsi: hotplug winduphw/ hw/ | +3 | 0 replies | |
| 19/24 | pci: hotplug winduphw/ hw/ | +25 | 0 replies | |
| 20/24 | pci: windup acpi-based hotplughw/ hw/ hw/ +2 more | +26 | 0 replies | |
| 21/24 | drive cleanup fixes.hw/ hw/ hw/ +6 more | +25 | 0 replies | |
| 22/24 | refactor drive_hot_addhw/ | +19 | 0 replies | |
| 23/24 | allow if=none for drive_addhw/ | +3 | 0 replies | |
| 24/24 | store a pointer to QemuOpts in DeviceState, release it when zapping a device.hw/ hw/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 00/24] qdev: bus management updates.
Hi,
One more respin, even more improvements.
hotplug, meet qdev.
qdev, meet hotplug.
Changes summary:
* allow embedded bus structs.
* add bus release function.
* added device destruction callback to qdev devices.
* make qdev hotplug-aware (NEW!).
* make busses use the new features.
End result is that you can use qdev_unplug() to unplug a device. Depending on the bus this will either not work at all (ISA), ask the guest OS to release the device (PCI+ACPI) or just zap it (USB).
Using the destruction callback everything will be released properly when a device is zapped. qdev will walk the child bus(es) if present and zap all connected devices too.
You can pci_del the scsi adapter and all scsi disks will be deleted too. You can pci_del the usb controller and all usb devices connected will be deleted too. You can unplug usb hubs, all connected devices will go away too.
cheers,
Gerd