Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
KVM: x86/cpuid: Exclude unpermitted xfeatures sizes at KVM_GET_SUPPOR…
…TED_CPUID With the help of xstate_get_guest_group_perm(), KVM can exclude unpermitted xfeatures in cpuid.0xd.0.eax, in which case the corresponding xfeatures sizes should also be matched to the permitted xfeatures. Fixing this inconsistency by introducing a local variable with the same name also helps to fix cpuid.0xd.1.ebx and later leaf-by-leaf queries. Fixes: 445ecdf ("kvm: x86: Exclude unpermitted xfeatures at KVM_GET_SUPPORTED_CPUID") Signed-off-by: Like Xu <likexu@tencent.com>
- Loading branch information