Skip to content

xen: pvh: Partial QOM:fication with new x86 PVH machine

Edgar E. Iglesias qemu-arm qemu-devel xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 6 repliesIn review
  2. 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 filesSizeRepliesApplied
1/12MAINTAINERS: Add docs/system/arm/xenpvh.rstMAINTAINERS+1 -00 replies
2/12hw/arm: xenpvh: Update file header to use SPDXhw/arm/xen_arm.c+1 -180 replies
3/12hw/arm: xenpvh: Tweak machine descriptionhw/arm/xen_arm.c+1 -10 replies
4/12hw/arm: xenpvh: Add support for SMP guestshw/arm/xen_arm.c+21 -21 reply
5/12hw/arm: xenpvh: Remove double-negation in warninghw/arm/xen_arm.c+1 -11 reply
6/12hw/arm: xenpvh: Move stubbed functions to xen-stubs.chw/arm/meson.build hw/arm/xen-stubs.c hw/arm/xen_arm.c+36 -211 reply
7/12hw/arm: xenpvh: Break out a common PVH machinehw/arm/trace-events hw/arm/xen_arm.c hw/xen/meson.build +3 more+358 -1841 reply
8/12hw/arm: xenpvh: Rename xen_arm.c -> xen-pvh.chw/arm/meson.build hw/arm/xen-pvh.c+1 -10 replies
9/12hw/arm: xenpvh: Reverse virtio-mmio creation orderhw/xen/xen-pvh-common.c+12 -10 replies
10/12hw/xen: pvh-common: Add support for creating PCIe/GPEXhw/xen/xen-pvh-common.c include/hw/xen/xen-pvh-common.h+105 -01 reply
11/12hw/i386/xen: Add a Xen PVH x86 machinehw/i386/xen/meson.build hw/i386/xen/xen-pvh.c+122 -01 reply
12/12docs/system/i386: xenpvh: Add a basic descriptionMAINTAINERS docs/system/i386/xenpvh.rst docs/system/target-i386.rst+51 -00 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchStefano Stabellini
1/12A-b
2/12A-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12A-b
10/12R-b
11/12R-b
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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