Skip to content

Xen: Add Q35 initial support for HVM guests

Thierry Escande qemu-devel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pc/xen: Xen Q35 support: provide IRQ handling for PCI deviceshw/i386/pc_piix.c hw/i386/xen/xen-hvm.c hw/isa/lpc_ich9.c +2 more+60 -51 reply
2/4q35/xen: Add Xen support for Q35hw/i386/pc_q35.c+11 -10 replies
3/4q35: Fix incorrect values for PCIEXBAR maskshw/pci-host/q35.c include/hw/pci-host/q35.h+5 -53 replies
4/4xen: Handle PCIe config space size in cpu_ioreq_config()hw/xen/xen-hvm-common.c+7 -40 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchMichael S. Tsirkin
1/4
2/4
3/4A-b
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] Xen: Add Q35 initial support for HVM guests

This patch series introduces Q35 chipset support for Xen HVM guests. This is based on the work from Alexey Gerasimenko (See patchset [1] for reference).

This series does not implement device passthrough as this will need more work on the Xen side to support multiple PCI buses. Since Q35 chipset does not support device hotplugging and with current Xen mechanism for device passthrough, they have to be plugged to a new PCIe root port, i.e. not the PCI bus 0.

As a first step for Q35 guests support, this series implements:
- Legacy interrupt routing for the ICH9 LPC bridge (i.e. not IOAPIC)
- Xen HVM machine initialization in pc_q35_init()
- Access to PCIe Extended Config Space
- Fix for incorrect values and usage for PCIEXBAR masks

The corresponding patchset for the Xen Project has been posted at [2].

[1] https://lore.kernel.org/xen-devel/[email protected]/
[2] https://lore.kernel.org/xen-devel/[email protected]/

Alexey Gerasimenko (2):
pc/xen: Xen Q35 support: provide IRQ handling for PCI devices
q35: Fix incorrect values for PCIEXBAR masks

Thierry Escande (2):
q35/xen: Add Xen support for Q35
xen: Handle PCIe config space size in cpu_ioreq_config()

 hw/i386/pc_piix.c         |  2 --
 hw/i386/pc_q35.c          | 12 +++++++++++-
 hw/i386/xen/xen-hvm.c     | 38 ++++++++++++++++++++++++++++++++++++++
 hw/isa/lpc_ich9.c         | 16 +++++++++++++---
 hw/pci-host/q35.c         |  6 +++---
 hw/xen/xen-hvm-common.c   | 11 +++++++----
 include/hw/pci-host/q35.h |  4 ++--
 include/hw/xen/xen.h      |  5 +++++
 stubs/xen-hw-stub.c       |  4 ++++
 9 files changed, 83 insertions(+), 15 deletions(-)
Signature · 10 lines
2.51.0



--
Thierry Escande | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech