[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 00/11] KVM/ARM: virt-3.0: Multiple redistributor
[Qemu-devel] [PATCH v2 00/11] KVM/ARM: virt-3.0: Multiple redistributor regions and 256MB ECAM region
Fri, 15 Jun 2018 16:28:19 +0200
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:
 [RFC v3 0/8] KVM/ARM: Relax the max 123 vcpus limitation along
with KVM GICv3
 [PATCH 0/2] ARM virt: Support up to 256 PCIe buses
Both add features to the new 3.0 virt machine model.
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
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.
This QEMU series can be found at:
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
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(-)
[Qemu-devel] [PATCH v2 04/11] hw/intc/arm_gicv3_kvm: Get prepared to handle multiple redist regions, Eric Auger, 2018/06/15
[Qemu-devel] [PATCH v2 07/11] hw/arm/virt: Register two redistributor regions when necessary, Eric Auger, 2018/06/15
[Qemu-devel] [PATCH v2 03/11] hw/intc/arm_gicv3: Introduce redist-region-count array property, Eric Auger, 2018/06/15
- [Qemu-devel] [PATCH v2 00/11] KVM/ARM: virt-3.0: Multiple redistributor regions and 256MB ECAM region,
Eric Auger <=