Re: [PATCH v6 16/19] i386: kill off hv_cpuid_check_and_set()

2021-05-24 Thread Vitaly Kuznetsov
Eduardo Habkost writes: > On Thu, Apr 22, 2021 at 06:11:27PM +0200, Vitaly Kuznetsov wrote: >> hv_cpuid_check_and_set() does too much: >> - Checks if the feature is supported by KVM; >> - Checks if all dependencies are enabled; >> - Sets the feature bit in cpu->hyperv_features for 'passthrough'

Re: [PATCH v6 16/19] i386: kill off hv_cpuid_check_and_set()

2021-05-21 Thread Eduardo Habkost
On Thu, Apr 22, 2021 at 06:11:27PM +0200, Vitaly Kuznetsov wrote: > hv_cpuid_check_and_set() does too much: > - Checks if the feature is supported by KVM; > - Checks if all dependencies are enabled; > - Sets the feature bit in cpu->hyperv_features for 'passthrough' mode. > > To reduce the

[PATCH v6 16/19] i386: kill off hv_cpuid_check_and_set()

2021-04-22 Thread Vitaly Kuznetsov
hv_cpuid_check_and_set() does too much: - Checks if the feature is supported by KVM; - Checks if all dependencies are enabled; - Sets the feature bit in cpu->hyperv_features for 'passthrough' mode. To reduce the complexity, move all the logic except for dependencies check out of it. Also, in