KVM: x86: hyper-v: allow KVM_GET_SUPPORTED_HV_CPUID as a system ioctl
KVM_GET_SUPPORTED_HV_CPUID is a vCPU ioctl but its output is now independent from vCPU and in some cases VMMs may want to use it as a system ioctl instead. In particular, QEMU doesn CPU feature expansion before any vCPU gets created so KVM_GET_SUPPORTED_HV_CPUID can't be used. Convert KVM_GET_SUPPORTED_HV_CPUID to 'dual' system/vCPU ioctl with the same meaning. Signed-off-by:Vitaly Kuznetsov <vkuznets@redhat.com> Message-Id: <20200929150944.1235688-2-vkuznets@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- Documentation/virt/kvm/api.rst 11 additions, 5 deletionsDocumentation/virt/kvm/api.rst
- arch/x86/kvm/hyperv.c 3 additions, 3 deletionsarch/x86/kvm/hyperv.c
- arch/x86/kvm/hyperv.h 2 additions, 2 deletionsarch/x86/kvm/hyperv.h
- arch/x86/kvm/vmx/evmcs.c 1 addition, 2 deletionsarch/x86/kvm/vmx/evmcs.c
- arch/x86/kvm/x86.c 27 additions, 18 deletionsarch/x86/kvm/x86.c
- include/uapi/linux/kvm.h 2 additions, 1 deletioninclude/uapi/linux/kvm.h
Loading
Please register or sign in to comment