[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] kvm: x86/cpu: Support guest MAXPHYADDR < host MAXPHYADDR
From: |
Mohammed Gamal |
Subject: |
[PATCH 0/2] kvm: x86/cpu: Support guest MAXPHYADDR < host MAXPHYADDR |
Date: |
Fri, 19 Jun 2020 17:53:42 +0200 |
This series adds support for KVM_CAP_HAS_SMALLER_MAXPHYADDR to QEMU.
Some processors might not handle GUEST_MAXPHYADDR < HOST_MAXPHYADDR in
the expected manner. Hence, we added KVM_CAP_HAS_SMALLER_MAXPHYADDR to
KVM.
In this implementation KVM is queried for KVM_CAP_HAS_SMALLER_MAXPHYADDR
when setting vCPU physical bits, and if the CPU doesn't support
KVM_CAP_HAS_SMALLER_MAXPHYADDR the ,phys-bits is ignore and host phyiscal
bits are used. A warning message is printed to the user.
Mohammed Gamal (2):
kvm: Add support for KVM_CAP_HAS_SMALLER_MAXPHYADDR
x86/cpu: Handle GUEST_MAXPHYADDR < HOST_MAXPHYADDR for hosts that
don't support it
linux-headers/linux/kvm.h | 1 +
target/i386/cpu.c | 11 +++++++++++
target/i386/kvm.c | 5 +++++
target/i386/kvm_i386.h | 1 +
4 files changed, 18 insertions(+)
--
2.26.2
- [PATCH 0/2] kvm: x86/cpu: Support guest MAXPHYADDR < host MAXPHYADDR,
Mohammed Gamal <=