[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v2 0/2] kvm: use kvm_vm_check_extension() with VM
Re: [Qemu-ppc] [PATCH v2 0/2] kvm: use kvm_vm_check_extension() with VM capabilities
Mon, 2 Oct 2017 14:38:24 +0200
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
On 21/09/2017 18:00, Greg Kurz wrote:
> Some VM capabilities are currently checked with kvm_check_extension(). This
> doesn't have any impact for most host architectures because they don't depend
> on the KVM type. However, this is a problem for server-class ppc hosts that
> can support the PR and HV KVM types. Both implementations can co-exist in the
> kernel at the same time and we decide which one will be used with the "type"
> argument of the KVM_CREATE_VM ioctl.
> Each KVM type has a different set of capabilities, and checking them with
> kvm_check_extension() will always cause KVM to assume we're in HV mode,
> even if they are VM specific and we have explicitely requested to run in
> PR mode. This may produce unexpected results.
> Similar issues were recently fixed in the ppc code:
> This series focuses on capabilities that are checked by the common code.
> Greg Kurz (2):
> kvm: check KVM_CAP_SYNC_MMU with kvm_vm_check_extension()
> kvm: check KVM_CAP_NR_VCPUS with kvm_vm_check_extension()
> accel/kvm/kvm-all.c | 51
> accel/stubs/kvm-stub.c | 4 ++--
> include/sysemu/kvm.h | 2 +-
> 3 files changed, 30 insertions(+), 27 deletions(-)
|[Prev in Thread]
||[Next in Thread]|
- Re: [Qemu-ppc] [PATCH v2 0/2] kvm: use kvm_vm_check_extension() with VM capabilities,
Paolo Bonzini <=