[PATCH v6 13/19] i386: prefer system KVM_GET_SUPPORTED_HV_CPUID ioctl over vCPU's one

2021-04-22 Thread Vitaly Kuznetsov
KVM_GET_SUPPORTED_HV_CPUID was made a system wide ioctl which can be called prior to creating vCPUs and we are going to use that to expand Hyper-V cpu features early. Use it when it is supported by KVM. Signed-off-by: Vitaly Kuznetsov --- target/i386/kvm/kvm.c | 17 + 1 file chan

Re: [PATCH v6 13/19] i386: prefer system KVM_GET_SUPPORTED_HV_CPUID ioctl over vCPU's one

2021-05-24 Thread Vitaly Kuznetsov
Eduardo Habkost writes: > On Thu, Apr 22, 2021 at 06:11:24PM +0200, Vitaly Kuznetsov wrote: >> KVM_GET_SUPPORTED_HV_CPUID was made a system wide ioctl which can be called >> prior to creating vCPUs and we are going to use that to expand Hyper-V cpu >> features early. Use it when it is supported b

Re: [PATCH v6 13/19] i386: prefer system KVM_GET_SUPPORTED_HV_CPUID ioctl over vCPU's one

2021-05-26 Thread Eduardo Habkost
On Mon, May 24, 2021 at 02:08:26PM +0200, Vitaly Kuznetsov wrote: [...] > >> @@ -980,7 +989,7 @@ static struct kvm_cpuid2 > >> *get_supported_hv_cpuid(CPUState *cs) > >> * information early, just check for the capability and set the bit > >> * manually. > >> */ > >> -if (kvm_

Re: [PATCH v6 13/19] i386: prefer system KVM_GET_SUPPORTED_HV_CPUID ioctl over vCPU's one

2021-05-26 Thread Daniel P . Berrangé
On Wed, May 26, 2021 at 12:46:25PM -0400, Eduardo Habkost wrote: > On Mon, May 24, 2021 at 02:08:26PM +0200, Vitaly Kuznetsov wrote: > [...] > > >> @@ -980,7 +989,7 @@ static struct kvm_cpuid2 > > >> *get_supported_hv_cpuid(CPUState *cs) > > >> * information early, just check for the capabil

Re: [PATCH v6 13/19] i386: prefer system KVM_GET_SUPPORTED_HV_CPUID ioctl over vCPU's one

2021-05-21 Thread Eduardo Habkost
On Thu, Apr 22, 2021 at 06:11:24PM +0200, Vitaly Kuznetsov wrote: > KVM_GET_SUPPORTED_HV_CPUID was made a system wide ioctl which can be called > prior to creating vCPUs and we are going to use that to expand Hyper-V cpu > features early. Use it when it is supported by KVM. > > Signed-off-by: Vita