[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC v2 0/7] KVM/ARM: Relax the max 123 vcpus limitation al
[Qemu-devel] [RFC v2 0/7] KVM/ARM: Relax the max 123 vcpus limitation along with KVM GICv3
Sun, 13 May 2018 16:35:07 +0200
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
 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.
The total redistributor region capacity is set to 512 vcpus.
The max supported VCPUs in non accelerated mode is not modified.
Host Kernel dependencies:
 [PATCH v6 00/12] KVM: arm/arm64: Allow multiple GICv3 redistributor
This QEMU series can be found at:
v1 -> v2:
- Do not use KVM_MAX_VCPUS anymore
- In case the multiple redistributor region capability is not
supported by the host kernel, the GICv3 device realize() fails
with a hint for the end-user.
- use properties to set the redistributor region count
- sysbus_mmio_map is kept in virt and machine init done notifier
mechanism is used with an address fixup addition.
- I have not yet extended the second redist region as Peter suggested.
We can easily add another 3d region later on if requested. But
if mandated, I will fix that in next release.
Eric Auger (7):
linux-headers: Partial update for KVM/ARM multiple redistributor
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-acpi-build.c | 9 +++++++
hw/arm/virt.c | 48 ++++++++++++++++++++++++++++++++++----
hw/intc/arm_gic_kvm.c | 4 ++--
hw/intc/arm_gicv3.c | 11 ++++++++-
hw/intc/arm_gicv3_common.c | 35 +++++++++++++++++++++++----
hw/intc/arm_gicv3_its_kvm.c | 2 +-
hw/intc/arm_gicv3_kvm.c | 38 ++++++++++++++++++++++++++----
include/hw/arm/virt.h | 12 ++++++++++
include/hw/intc/arm_gicv3_common.h | 6 +++--
linux-headers/asm-arm/kvm.h | 1 +
linux-headers/asm-arm64/kvm.h | 1 +
target/arm/kvm.c | 10 +++++++-
target/arm/kvm_arm.h | 3 ++-
13 files changed, 158 insertions(+), 22 deletions(-)
[Qemu-devel] [RFC v2 4/7] hw/intc/arm_gicv3_kvm: Get prepared to handle multiple redist regions, Eric Auger, 2018/05/13
- [Qemu-devel] [RFC v2 0/7] KVM/ARM: Relax the max 123 vcpus limitation along with KVM GICv3,
Eric Auger <=