KVM/ARM: virt-3.0: Multiple redistributor regions and 256MB ECAM region
Status from this message: Applied to target-arm.next, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest11 patches 11 repliesApplied
- v19 patches 17 repliesSuperseded
Changes in v2 from the cover letter
- split virt machine model patch into 3 patches. Dared to keep Laszlo's and Drew's R-b.
- Took into account Drew's comments on v1 and collected his R-b.
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | linux-headers: Update to 4.18-rc0include/ include/ include/ +12 more | +47 | 4 replies | |
| 2/11 | target/arm: Allow KVM device address overwritinghw/ hw/ hw/ +2 more | +16 | 0 replies | |
| 3/11 | hw/intc/arm_gicv3: Introduce redist-region-count array propertyhw/ hw/ hw/ +2 more | +67 | 1 reply | |
| 4/11 | hw/intc/arm_gicv3_kvm: Get prepared to handle multiple redist regionshw/ | +34 | 1 reply | |
| 5/11 | hw/arm/virt: GICv3 DT node with one or two redistributor regionshw/ include/ | +38 | 4 replies | |
| 6/11 | hw/arm/virt-acpi-build: Advertise one or two GICR structureshw/ | +9 | 0 replies | |
| 7/11 | hw/arm/virt: Register two redistributor regions when necessaryhw/ | +17 | 0 replies | |
| 8/11 | hw/arm/virt: Add a new 256MB ECAM regionhw/ hw/ include/ | +25 | 0 replies | |
| 9/11 | hw/arm/virt: Add virt-3.0 machine typehw/ | +13 | 0 replies | |
| 10/11 | hw/arm/virt: Use 256MB ECAM region by defaulthw/ include/ | +11 | 0 replies | |
| 11/11 | hw/arm/virt: Increase max_cpus to 512hw/ | +4 | 0 replies |
Reviews trailers per patch
10 of 11 patches have a Reviewed-by or Acked-by.
| Patch | Peter Maydell | Andrew Jones | Laszlo Ersek |
|---|---|---|---|
| 1/11 | |||
| 2/11 | R-b | ||
| 3/11 | R-b | ||
| 4/11 | R-b | R-b | |
| 5/11 | R-b | ||
| 6/11 | R-b | ||
| 7/11 | R-b | ||
| 8/11 | R-b | R-b | |
| 9/11 | R-b | R-b | |
| 10/11 | R-b | R-b | |
| 11/11 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [Qemu-devel] [PATCH v2 00/11] KVM/ARM: virt-3.0: Multiple redistributor regions and 256MB ECAM region
This series increases the number of vcpus usable in accelerated mode along with GICv3 and allows up to 256 PCIe busses.
It is a combination of 2 series:
[1] [RFC v3 0/8] KVM/ARM: Relax the max 123 vcpus limitation along with KVM GICv3
[2] [PATCH 0/2] ARM virt: Support up to 256 PCIe buses
Both add features to the new 3.0 virt machine model.
VCPU changes:
-------------
Currently the max number of VCPUs usable along with the KVM GICv3 device is limited to 123. The rationale is a single redistributor region was supported and this latter was set to [0x80A0000, 0x9000000] within the guest physical address space, surrounded with DIST and UART MMIO regions.
The 4.18 host kernel now allows to register several redistributor regions. So this series overcomes the max 123 vcpu limitation by registering a new redistributor region located just after the VIRT_MEM RAM region. This second redistributor region has a capacity of 512 redistributors.
The max supported VCPUs in non accelerated mode is not modified.
PCIe BUS changes:
-----------------
Current Machvirt PCI host controller's ECAM region is 16MB large. This limits the number of PCIe buses to 16.
PC/Q35 machines have a 256MB region allowing up to 256 buses. This series tries to bridge the gap.
It declares a new ECAM region located beyond 256GB, of size 256MB The new ECAM region is used if:
- highmem option is set (default) and,
- either FW is not loaded or we are run an aarch64 guest
- machine type >= 3.0.
aarch32 FW does not support this highmem ECAM region. For guests without LPAE support the highmem option must be turned off.
Best Regards
Eric
This QEMU series can be found at:
https://github.com/eauger/qemu/tree/v2.12.0-virt3.0-v2
Previous version:
https://github.com/eauger/qemu/tree/v2.12.0-virt3.0-v1
History:
v1 -> v2:
- split virt machine model patch into 3 patches. Dared to keep Laszlo's and Drew's R-b.
- Took into account Drew's comments on v1 and collected his R-b.
Eric Auger (11):
linux-headers: Update to 4.18-rc0
target/arm: Allow KVM device address overwriting hw/intc/arm_gicv3: Introduce redist-region-count array property hw/intc/arm_gicv3_kvm: Get prepared to handle multiple redist regions hw/arm/virt: GICv3 DT node with one or two redistributor regions hw/arm/virt-acpi-build: Advertise one or two GICR structures hw/arm/virt: Register two redistributor regions when necessary hw/arm/virt: Add a new 256MB ECAM region
hw/arm/virt: Add virt-3.0 machine type
hw/arm/virt: Use 256MB ECAM region by default
hw/arm/virt: Increase max_cpus to 512
hw/arm/virt-acpi-build.c | 30 +++++-- hw/arm/virt.c | 100 +++++++++++++++++---- hw/intc/arm_gic_kvm.c | 4 +- hw/intc/arm_gicv3.c | 12 ++- hw/intc/arm_gicv3_common.c | 38 ++++++-- hw/intc/arm_gicv3_its_kvm.c | 2 +- hw/intc/arm_gicv3_kvm.c | 44 ++++++++- include/hw/arm/virt.h | 19 ++++ include/hw/intc/arm_gicv3_common.h | 8 +- include/standard-headers/linux/pci_regs.h | 8 ++ include/standard-headers/linux/virtio_gpu.h | 1 + include/standard-headers/linux/virtio_net.h | 3 + .../LICENSES/exceptions/Linux-syscall-note | 2 +- linux-headers/LICENSES/preferred/GPL-2.0 | 6 ++ linux-headers/asm-arm/kvm.h | 1 + linux-headers/asm-arm/unistd-common.h | 1 + linux-headers/asm-arm64/kvm.h | 1 + linux-headers/asm-generic/unistd.h | 4 +- linux-headers/asm-powerpc/unistd.h | 1 + linux-headers/asm-x86/unistd_32.h | 2 + linux-headers/asm-x86/unistd_64.h | 2 + linux-headers/asm-x86/unistd_x32.h | 2 + linux-headers/linux/kvm.h | 5 +- linux-headers/linux/psp-sev.h | 12 +++ target/arm/kvm.c | 10 ++- target/arm/kvm_arm.h | 3 +- 26 files changed, 277 insertions(+), 44 deletions(-)
Signature · 1 line
2.5.5