xen: pvh: Partial QOM:fication with new x86 PVH machine
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest12 patches 6 repliesIn review
- v110 patches 24 repliesSuperseded
Changes in v2 from the cover letter
* Use an abstract PVH Machine to share code between arch specific PVH machines. This allows more sharing than a using a device component.
* Add comments describing our PCI INTX support.
* Allow the PVH target specific implementation to provide PCI INTX delivery via class methods.
* Clarify use of mc->max_cpus in comments.
* Use GUEST_MAX_VCPUS mc->max_cpus on ARM.
* Use HVM_MAX_VCPUS mc->max_cpus on x86.
* pvh-common: Directly use s->cfg. members when creating gpex.
* pvh-common: Clarify use of pci-ecam-size in comments.
* x86/xen-pvh: Create smp.max_cpus nr of dummy cores (not smp.cpus).
* x86/xen-pvh: Replace static array holding dummy cores with a dynamic one.
* Move stubbed Xen/ARM functions from hw/arm/xen_arm.c into xen-stubs.c
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | MAINTAINERS: Add docs/system/arm/xenpvh.rstMAINTAINERS | +1 | 0 replies | |
| 2/12 | hw/arm: xenpvh: Update file header to use SPDXhw/ | +1 | 0 replies | |
| 3/12 | hw/arm: xenpvh: Tweak machine descriptionhw/ | +1 | 0 replies | |
| 4/12 | hw/arm: xenpvh: Add support for SMP guestshw/ | +21 | 1 reply | |
| 5/12 | hw/arm: xenpvh: Remove double-negation in warninghw/ | +1 | 1 reply | |
| 6/12 | hw/arm: xenpvh: Move stubbed functions to xen-stubs.chw/ hw/ hw/ | +36 | 1 reply | |
| 7/12 | hw/arm: xenpvh: Break out a common PVH machinehw/ hw/ hw/ +3 more | +358 | 1 reply | |
| 8/12 | hw/arm: xenpvh: Rename xen_arm.c -> xen-pvh.chw/ hw/ | +1 | 0 replies | |
| 9/12 | hw/arm: xenpvh: Reverse virtio-mmio creation orderhw/ | +12 | 0 replies | |
| 10/12 | hw/xen: pvh-common: Add support for creating PCIe/GPEXhw/ include/ | +105 | 1 reply | |
| 11/12 | hw/i386/xen: Add a Xen PVH x86 machinehw/ hw/ | +122 | 1 reply | |
| 12/12 | docs/system/i386: xenpvh: Add a basic descriptionMAINTAINERS docs/ docs/ | +51 | 0 replies |
Reviews trailers per patch
All 12 patches have a Reviewed-by or Acked-by.
| Patch | Stefano Stabellini |
|---|---|
| 1/12 | A-b |
| 2/12 | A-b |
| 3/12 | R-b |
| 4/12 | R-b |
| 5/12 | R-b |
| 6/12 | R-b |
| 7/12 | R-b |
| 8/12 | R-b |
| 9/12 | A-b |
| 10/12 | R-b |
| 11/12 | R-b |
| 12/12 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/12] xen: pvh: Partial QOM:fication with new x86 PVH machine
From: "Edgar E. Iglesias" <[email protected]>
This series breaks out parts of the ARM PVH support into an abstract machine that other targets can reuse.. There's a bit of refactoring and some bug-fixes along the way.
Finally we add a new x86 xen-pvh machine.
The corresponding changes in Xen for PVH x86 are work in progress (by Xenia Ragiadakou). You can find a current version here:
https://github.com/edgarigl/xen/tree/edgar/virtio-pvh-upstream
I've briefly described the steps to run Xen PVH x86 guests here (including example guest kernel config, xl.cfg and xl command-lines):
https://github.com/edgarigl/docs/blob/master/xen/pvh/xenpvh-x86.md
Cheers,
Edgar
ChangeLog:
v1 -> v2:
* Use an abstract PVH Machine to share code between arch specific PVH machines. This allows more sharing than a using a device component.
* Add comments describing our PCI INTX support.
* Allow the PVH target specific implementation to provide PCI INTX delivery via class methods.
* Clarify use of mc->max_cpus in comments.
* Use GUEST_MAX_VCPUS mc->max_cpus on ARM.
* Use HVM_MAX_VCPUS mc->max_cpus on x86.
* pvh-common: Directly use s->cfg. members when creating gpex.
* pvh-common: Clarify use of pci-ecam-size in comments.
* x86/xen-pvh: Create smp.max_cpus nr of dummy cores (not smp.cpus).
* x86/xen-pvh: Replace static array holding dummy cores with a dynamic one.
* Move stubbed Xen/ARM functions from hw/arm/xen_arm.c into xen-stubs.c
Edgar E. Iglesias (12):
MAINTAINERS: Add docs/system/arm/xenpvh.rst hw/arm: xenpvh: Update file header to use SPDX hw/arm: xenpvh: Tweak machine description hw/arm: xenpvh: Add support for SMP guests hw/arm: xenpvh: Remove double-negation in warning hw/arm: xenpvh: Move stubbed functions to xen-stubs.c hw/arm: xenpvh: Break out a common PVH machine hw/arm: xenpvh: Rename xen_arm.c -> xen-pvh.c hw/arm: xenpvh: Reverse virtio-mmio creation order hw/xen: pvh-common: Add support for creating PCIe/GPEX hw/i386/xen: Add a Xen PVH x86 machine docs/system/i386: xenpvh: Add a basic description
MAINTAINERS | 2 + docs/system/i386/xenpvh.rst | 49 +++++ docs/system/target-i386.rst | 1 + hw/arm/meson.build | 5 +- hw/arm/trace-events | 5 - hw/arm/xen-pvh.c | 89 ++++++++ hw/arm/xen-stubs.c | 32 +++ hw/arm/xen_arm.c | 267 ----------------------- hw/i386/xen/meson.build | 1 + hw/i386/xen/xen-pvh.c | 121 +++++++++++ hw/xen/meson.build | 1 + hw/xen/trace-events | 4 + hw/xen/xen-pvh-common.c | 362 ++++++++++++++++++++++++++++++++ include/hw/xen/xen-pvh-common.h | 88 ++++++++ 14 files changed, 754 insertions(+), 273 deletions(-) create mode 100644 docs/system/i386/xenpvh.rst create mode 100644 hw/arm/xen-pvh.c create mode 100644 hw/arm/xen-stubs.c delete mode 100644 hw/arm/xen_arm.c create mode 100644 hw/i386/xen/xen-pvh.c create mode 100644 hw/xen/xen-pvh-common.c create mode 100644 include/hw/xen/xen-pvh-common.h
Signature · 1 line
2.43.0