x86/vIOMMU: move init back to machine init phase
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | QemuOpts: introduce qemu_opts_extract()include/ util/ | +26 | 0 replies | |
| 2/5 | util: export device_init_func()include/ vl.c | +2 | 0 replies | |
| 3/5 | util: propagate error for device_func_init()vl.c | +1 | 0 replies | |
| 4/5 | q35: init vIOMMU during machine inithw/ | +45 | 0 replies | |
| 5/5 | pci: move dma_as init back to bus realizehw/ include/ include/ +1 more | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH for-2.10 0/5] x86/vIOMMU: move init back to machine init phase
At the very beginning, the x86 vIOMMUs are created via "-M iommu=on". We moved one step further a year ago to have the vIOMMUs just like a general device, so that we can init them with far more specific parameters with "-device" interface.
However, gradually we found that problem starts to occur due to this. The main issue is that the DMA address space of any PCI device is postponed to be init after device realization, while some devices' realizations would depend on this address space. That looks like a dead lock. We have patches and solutions for different single problem, but, maybe it's time we can consider to solve the root cause this time, of course after 2.9 release.
This series tries to solve the root cause, and move vIOMMU inits back to machine init for x86 platforms. Then, we'll have solid DMA address space for each device even during realization.
Please kindly review. Thanks.
Peter Xu (5):
QemuOpts: introduce qemu_opts_extract()
util: export device_init_func()
util: propagate error for device_func_init()
q35: init vIOMMU during machine init
pci: move dma_as init back to bus realize
hw/pci-host/q35.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ hw/pci/pci.c | 21 +-------------------- include/hw/pci/pci_bus.h | 2 -- include/qemu-common.h | 1 + include/qemu/option.h | 2 ++ include/sysemu/sysemu.h | 1 - util/qemu-option.c | 24 ++++++++++++++++++++++++ vl.c | 9 ++------- 8 files changed, 75 insertions(+), 30 deletions(-)
Signature · 1 line
2.7.4