From: Eric Auger <eric.auger@redhat.com>
To: eric.auger.pro@gmail.com, eric.auger@redhat.com,
qemu-devel@nongnu.org, qemu-arm@nongnu.org,
peter.maydell@linaro.org
Cc: drjones@redhat.com, wei@redhat.com, zhaoshenglong@huawei.com,
lersek@redhat.com, ard.biesheuvel@linaro.org,
christoffer.dall@arm.com, marc.zyngier@arm.com
Subject: [Qemu-devel] [PATCH 0/9] KVM/ARM: virt-3.0: Multiple redistributor regions and 256MB ECAM region
Date: Wed, 13 Jun 2018 10:48:34 +0200 [thread overview]
Message-ID: <1528879723-24675-1-git-send-email-eric.auger@redhat.com> (raw)
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 3.0 virt machine.
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:
Previous version:
https://github.com/eauger/qemu/tree/v2.12.0-virt3.0-v1
Eric Auger (9):
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-acpi-build.c | 30 ++++--
hw/arm/virt.c | 104 +++++++++++++++++----
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 | 40 +++++++-
include/hw/arm/virt.h | 17 ++++
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, 274 insertions(+), 45 deletions(-)
--
2.5.5
next reply other threads:[~2018-06-13 8:49 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-13 8:48 Eric Auger [this message]
2018-06-13 8:48 ` [Qemu-devel] [PATCH 1/9] linux-headers: Update to 4.18-rc0 Eric Auger
2018-06-13 8:48 ` [Qemu-devel] [PATCH 2/9] target/arm: Allow KVM device address overwriting Eric Auger
2018-06-13 8:48 ` [Qemu-devel] [PATCH 3/9] hw/intc/arm_gicv3: Introduce redist-region-count array property Eric Auger
2018-06-14 13:32 ` Andrew Jones
2018-06-14 13:55 ` Auger Eric
2018-06-14 14:06 ` Andrew Jones
2018-06-13 8:48 ` [Qemu-devel] [PATCH 4/9] hw/intc/arm_gicv3_kvm: Get prepared to handle multiple redist regions Eric Auger
2018-06-14 13:39 ` Andrew Jones
2018-06-14 13:48 ` Auger Eric
2018-06-14 14:03 ` Andrew Jones
2018-06-13 8:48 ` [Qemu-devel] [PATCH 5/9] hw/arm/virt: GICv3 DT node with one or two redistributor regions Eric Auger
2018-06-14 13:21 ` Andrew Jones
2018-06-13 8:48 ` [Qemu-devel] [PATCH 6/9] hw/arm/virt-acpi-build: Advertise one or two GICR structures Eric Auger
2018-06-14 13:43 ` Andrew Jones
2018-06-13 8:48 ` [Qemu-devel] [PATCH 7/9] hw/arm/virt: Register two redistributor regions when necessary Eric Auger
2018-06-14 13:45 ` Andrew Jones
2018-06-13 8:48 ` [Qemu-devel] [PATCH 8/9] hw/arm/virt: Add a new 256MB ECAM region Eric Auger
2018-06-14 13:53 ` Andrew Jones
2018-06-13 8:48 ` [Qemu-devel] [PATCH 9/9] hw/arm/virt: Add virt-3.0 machine type Eric Auger
2018-06-13 21:05 ` Laszlo Ersek
2018-06-14 6:27 ` Auger Eric
2018-06-14 8:56 ` Laszlo Ersek
2018-06-14 8:59 ` Daniel P. Berrangé
2018-06-14 9:04 ` Auger Eric
2018-06-14 9:03 ` Auger Eric
2018-06-14 14:17 ` Andrew Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1528879723-24675-1-git-send-email-eric.auger@redhat.com \
--to=eric.auger@redhat.com \
--cc=ard.biesheuvel@linaro.org \
--cc=christoffer.dall@arm.com \
--cc=drjones@redhat.com \
--cc=eric.auger.pro@gmail.com \
--cc=lersek@redhat.com \
--cc=marc.zyngier@arm.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=wei@redhat.com \
--cc=zhaoshenglong@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).