Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest29 patches 78 repliesIn review
Changes in v3 from the cover letter
1) Remove vIOMMU hypercall of query capabilities and introduce when necessary.
2) Remove length field of vIOMMU create parameter of vIOMMU hypercall
3) Introduce irq remapping mode callback to vIOMMU framework and vIOMMU device models
can check irq remapping mode by vendor specific ways.
4) Update vIOMMU docs.
5) Other changes please see patches' change logs.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/29 | Xen/doc: Add Xen virtual IOMMU docdocs/ | +136 | 5 replies | |
| 2/29 | VIOMMU: Add vIOMMU helper functions to create, destroy vIOMMU instancedocs/ xen/ xen/ +5 more | +231 | 8 replies | |
| 3/29 | DOMCTL: Introduce new DOMCTL commands for vIOMMU supportxen/ xen/ xen/ +1 more | +80 | 2 replies | |
| 4/29 | tools/libacpi: Add DMA remapping reporting (DMAR) ACPI table structurestools/ | +61 | 2 replies | |
| 5/29 | tools/libacpi: Add new fields in acpi_config for DMAR tabletools/ tools/ | +65 | 5 replies | |
| 6/29 | tools/libxl: Add a user configurable parameter to control vIOMMU attributesdocs/ tools/ tools/ +1 more | +142 | 2 replies | |
| 7/29 | tools/libxl: build DMAR table for a guest with one virtual VTDtools/ tools/ | +96 | 2 replies | |
| 8/29 | tools/libxl: create vIOMMU during domain constructiontools/ | +17 | 3 replies | |
| 9/29 | tools/libxc: Add viommu operations in libxctools/ tools/ tools/ | +69 | 1 reply | |
| 10/29 | vtd: add and align register definitionsxen/ | +31 | 2 replies | |
| 11/29 | x86/hvm: Introduce a emulated VTD for HVMxen/ xen/ xen/ | +170 | 5 replies | |
| 12/29 | x86/vvtd: Add MMIO handler for VVTDxen/ | +91 | 3 replies | |
| 13/29 | x86/vvtd: Set Interrupt Remapping Table Pointer through GCMDxen/ xen/ | +80 | 3 replies | |
| 14/29 | x86/vvtd: Enable Interrupt Remapping through GCMDxen/ xen/ | +31 | 1 reply | |
| 15/29 | x86/vvtd: Process interrupt remapping requestxen/ xen/ | +284 | 4 replies | |
| 16/29 | x86/vvtd: decode interrupt attribute from IRTExen/ | +22 | 2 replies | |
| 17/29 | x86/vvtd: add a helper function to decide the interrupt formatxen/ | +24 | 1 reply | |
| 18/29 | VIOMMU: Add irq request callback to deal with irq remappingxen/ xen/ xen/ | +98 | 1 reply | |
| 19/29 | x86/vioapic: Hook interrupt delivery of vIOAPICxen/ | +10 | 1 reply | |
| 20/29 | VIOMMU: Add get irq info callback to convert irq remapping requestxen/ xen/ xen/ | +38 | 4 replies | |
| 21/29 | VIOMMU: Introduce callback of checking irq remapping modexen/ xen/ | +25 | 1 reply | |
| 22/29 | x86/vioapic: extend vioapic_get_vector() to support remapping format RTExen/ | +15 | 3 replies | |
| 23/29 | passthrough: move some fields of hvm_gmsi_info to a sub-structurexen/ xen/ xen/ | +26 | 0 replies | |
| 24/29 | tools/libxc: Add a new interface to bind remapping format msi with pirqtools/ tools/ xen/ +2 more | +216 | 2 replies | |
| 25/29 | x86/vmsi: Hook delivering remapping format msi to guestxen/ xen/ xen/ | +30 | 2 replies | |
| 26/29 | x86/vvtd: Handle interrupt translation faultsxen/ xen/ | +301 | 4 replies | |
| 27/29 | x86/vvtd: Enable Queued Invalidation through GCMDxen/ xen/ | +19 | 1 reply | |
| 28/29 | x86/vvtd: Add queued invalidation (QI) supportxen/ xen/ | +250 | 5 replies | |
| 29/29 | x86/vvtd: save and restore emulated VT-dxen/ xen/ | +76 | 1 reply |
Reviews trailers per patch
1 of 29 patches has a Reviewed-by or Acked-by.
| Patch | Roger Pau Monné |
|---|---|
| 1/29 | |
| 2/29 | |
| 3/29 | |
| 4/29 | |
| 5/29 | |
| 6/29 | |
| 7/29 | |
| 8/29 | |
| 9/29 | |
| 10/29 | R-b |
| 11/29 | |
| 12/29 | |
| 13/29 | |
| 14/29 | |
| 15/29 | |
| 16/29 | |
| 17/29 | |
| 18/29 | |
| 19/29 | |
| 20/29 | |
| 21/29 | |
| 22/29 | |
| 23/29 | |
| 24/29 | |
| 25/29 | |
| 26/29 | |
| 27/29 | |
| 28/29 | |
| 29/29 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V3 00/29]
Change since v2:
1) Remove vIOMMU hypercall of query capabilities and introduce when necessary.
2) Remove length field of vIOMMU create parameter of vIOMMU hypercall
3) Introduce irq remapping mode callback to vIOMMU framework and vIOMMU device models
can check irq remapping mode by vendor specific ways.
4) Update vIOMMU docs.
5) Other changes please see patches' change logs.
Change since v1:
1) Fix coding style issues
2) Add definitions for vIOMMU type and capabilities
3) Change vIOMMU kconfig and select vIOMMU default on x86
4) Put vIOMMU creation in libxl__arch_domain_create()
5) Make vIOMMU structure of tool stack more general for both PV and HVM.
Change since RFC v2:
1) Move vvtd.c to drivers/passthrough/vtd directroy.
2) Make vIOMMU always built in on x86
3) Add new boot cmd "viommu" to enable viommu function
4) Fix some code stype issues.
Change since RFC v1:
1) Add Xen virtual IOMMU doc docs/misc/viommu.txt
2) Move vIOMMU hypercall of create/destroy vIOMMU and query
capabilities from dmop to domctl suggested by Paul Durrant. Because these hypercalls can be done in tool stack and more VM mode(E,G PVH or other modes don't use Qemu) can be benefit.
3) Add check of input MMIO address and length.
4) Add iommu_type in vIOMMU hypercall parameter to specify
vendor vIOMMU device model(E,G Intel VTD, AMD or ARM IOMMU. So far only support Intel VTD).
5) Add save and restore support for vvtd
This patchset is to introduce vIOMMU framework and add virtual VTD's interrupt remapping support according "Xen virtual IOMMU high level design doc V3"(https://lists.xenproject.org/archives/html/xen-devel/ 2016-11/msg01391.html).
- vIOMMU framework
New framework provides viommu_ops and help functions to abstract vIOMMU operations(E,G create, destroy, handle irq remapping request and so on). Vendors(Intel, ARM, AMD and son) can implement their vIOMMU callbacks.
- Virtual VTD
We enable irq remapping function and covers both
MSI and IOAPIC interrupts. Don't support post interrupt mode emulation and post interrupt mode enabled on host with virtual VTD. will add later.
Repo:
https://github.com/lantianyu/Xen/tree/xen_viommu_v3
Chao Gao (23):
tools/libacpi: Add DMA remapping reporting (DMAR) ACPI table
structures
tools/libacpi: Add new fields in acpi_config for DMAR table tools/libxl: Add a user configurable parameter to control vIOMMU
attributes
tools/libxl: build DMAR table for a guest with one virtual VTD tools/libxl: create vIOMMU during domain construction tools/libxc: Add viommu operations in libxc
vtd: add and align register definitions
x86/hvm: Introduce a emulated VTD for HVM
x86/vvtd: Add MMIO handler for VVTD
x86/vvtd: Set Interrupt Remapping Table Pointer through GCMD x86/vvtd: Enable Interrupt Remapping through GCMD x86/vvtd: Process interrupt remapping request
x86/vvtd: decode interrupt attribute from IRTE
x86/vvtd: add a helper function to decide the interrupt format x86/vioapic: Hook interrupt delivery of vIOAPIC x86/vioapic: extend vioapic_get_vector() to support remapping format
RTE
passthrough: move some fields of hvm_gmsi_info to a sub-structure tools/libxc: Add a new interface to bind remapping format msi with
pirq
x86/vmsi: Hook delivering remapping format msi to guest x86/vvtd: Handle interrupt translation faults
x86/vvtd: Enable Queued Invalidation through GCMD x86/vvtd: Add queued invalidation (QI) support
x86/vvtd: save and restore emulated VT-d
Lan Tianyu (6):
Xen/doc: Add Xen virtual IOMMU doc
VIOMMU: Add vIOMMU helper functions to create, destroy vIOMMU instance
DOMCTL: Introduce new DOMCTL commands for vIOMMU support
VIOMMU: Add irq request callback to deal with irq remapping
VIOMMU: Add get irq info callback to convert irq remapping request
VIOMMU: Introduce callback of checking irq remapping mode
docs/man/xl.cfg.pod.5.in | 27 + docs/misc/viommu.txt | 136 ++++ docs/misc/xen-command-line.markdown | 7 + tools/libacpi/acpi2_0.h | 61 ++ tools/libacpi/build.c | 53 ++ tools/libacpi/libacpi.h | 12 + tools/libxc/Makefile | 1 + tools/libxc/include/xenctrl.h | 21 + tools/libxc/xc_domain.c | 53 ++ tools/libxc/xc_viommu.c | 64 ++ tools/libxl/libxl_create.c | 52 ++ tools/libxl/libxl_types.idl | 12 + tools/libxl/libxl_x86.c | 20 +- tools/libxl/libxl_x86_acpi.c | 98 ++- tools/xl/xl_parse.c | 52 +- xen/arch/x86/Kconfig | 1 + xen/arch/x86/hvm/irq.c | 7 + xen/arch/x86/hvm/vioapic.c | 26 +- xen/arch/x86/hvm/vmsi.c | 18 +- xen/common/Kconfig | 3 + xen/common/Makefile | 1 + xen/common/domain.c | 4 + xen/common/domctl.c | 6 + xen/common/viommu.c | 220 ++++++ xen/drivers/passthrough/io.c | 178 ++++- xen/drivers/passthrough/vtd/Makefile | 7 +- xen/drivers/passthrough/vtd/iommu.h | 193 ++++-- xen/drivers/passthrough/vtd/vvtd.c | 1178 ++++++++++++++++++++++++++++++++ xen/include/asm-x86/hvm/irq.h | 15 +- xen/include/asm-x86/viommu.h | 80 +++ xen/include/public/arch-x86/hvm/save.h | 25 +- xen/include/public/domctl.h | 49 ++ xen/include/xen/sched.h | 8 + xen/include/xen/viommu.h | 100 +++ 34 files changed, 2698 insertions(+), 90 deletions(-) create mode 100644 docs/misc/viommu.txt create mode 100644 tools/libxc/xc_viommu.c create mode 100644 xen/common/viommu.c create mode 100644 xen/drivers/passthrough/vtd/vvtd.c create mode 100644 xen/include/asm-x86/viommu.h create mode 100644 xen/include/xen/viommu.h
Signature · 7 lines
1.8.3.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel