qdev: bus management updates.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest13 patches 22 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | allow qdev busses allocations be inplacehw/ hw/ | +15 | 0 replies | |
| 2/13 | switch scsi bus to inplace allocation.hw/ hw/ hw/ +2 more | +19 | 0 replies | |
| 3/13 | switch usb bus to inplace allocation.hw/ hw/ hw/ +2 more | +12 | 0 replies | |
| 4/13 | switch ide bus to inplace allocation.hw/ hw/ hw/ +1 more | +36 | 0 replies | |
| 5/13 | inplace allocation for pci, split irq init.hw/ hw/ | +38 | 0 replies | |
| 6/13 | convert pci bridge to qdevhw/ | +48 | 4 replies | |
| 7/13 | piix_pci: kill PIIX3IrqStatehw/ | +17 | 2 replies | |
| 8/13 | qdev: device free fixups.hw/ hw/ | +38 | 1 reply | |
| 9/13 | Add exit callback to DeviceInfo.hw/ hw/ | +4 | 4 replies | |
| 10/13 | Implement scsi device destructionhw/ hw/ hw/ | +21 | 6 replies | |
| 11/13 | pci: use qdev for device destruction.hw/ hw/ hw/ | +4 | 0 replies | |
| 12/13 | pci: move unregister from PCIDevice to PCIDeviceInfohw/ hw/ hw/ +5 more | +13 | 4 replies | |
| 13/13 | usb: hook unplug into qdev, cleanups + fixes.hw/ hw/ hw/ +5 more | +56 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 00/13] qdev: bus management updates.
Hi,
This patch series does a bunch of improvements for qdev busses. The former name was "allow embedded bus structs", but that title doesn't cut it any more as there are lots of followup improvements and fixes. Changes:
* allow embedded bus structs (yes, still there).
* add bus release function.
* added device destruction callback to qdev devices.
* make busses use the new features.
End result is that you can use qdev_free() to zap a device. Using the destruction callback everything will be released properly. 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