hw/arm/virt: KVM: Set IPA limit when possible
Status from this message: Applied to target-arm.next, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | accel: kvm: Fix kvm_type invocationaccel/ include/ | +3 | 1 reply | |
| 2/2 | hw/arm/virt: KVM: The IPA lower bound is 32hw/ target/ target/ | +23 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Eric Auger | Marc Zyngier |
|---|---|---|
| 1/2 | R-b | |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] hw/arm/virt: KVM: Set IPA limit when possible
This series fixes IPA limit setting for mach-virt KVM guests. The first patch restores the setting of IPA limits for values greater than 40 (the default) when necessary. The second patch ensures values less than 40 may also be used. The default KVM type=0 (which means an IPA limit of 40) is still used for legacy KVM, since it must be.
I tested this with a KVM that supports KVM_CAP_ARM_VM_IPA_SIZE and with a KVM that does not. mach-virt's memory map didn't allow me to test with less than 40 on the KVM_CAP_ARM_VM_IPA_SIZE supporting host, but a quick VM fd opening test seemed to prove KVM would be happy with that. Testing was done with a typical Linux guest and also with kvm-unit-tests.
I caught the bug that the first patch fixes by instrumenting QEMU to observe which IPA limit was getting selected, and then seeing that QEMU wasn't actually running mach-virt's kvm_type method at all!
Thanks,
drew
Andrew Jones (2):
accel: kvm: Fix kvm_type invocation
hw/arm/virt: KVM: The IPA lower bound is 32
accel/kvm/kvm-all.c | 2 ++ hw/arm/virt.c | 23 ++++++++++++++++------- include/hw/boards.h | 1 + target/arm/kvm.c | 4 +++- target/arm/kvm_arm.h | 6 ++++-- 5 files changed, 26 insertions(+), 10 deletions(-)
Signature · 1 line
2.26.2