mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
KVM: selftests: Ignore CPUID.0DH.1H in get_cpuid_test
Similar to CPUID.0DH.0H this entry depends on the vCPU's XCR0 register and IA32_XSS MSR. Since this test does not control for either before assigning the vCPU's CPUID, these entries will not necessarily match the supported CPUID exposed by KVM. This fixes get_cpuid_test on Cascade Lake CPUs. Suggested-by: Jim Mattson <jmattson@google.com> Signed-off-by: David Matlack <dmatlack@google.com> Message-Id: <20210519211345.3944063-1-dmatlack@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ef4c9f4f65
commit
50bc913d52
@ -19,7 +19,12 @@ struct {
|
|||||||
u32 function;
|
u32 function;
|
||||||
u32 index;
|
u32 index;
|
||||||
} mangled_cpuids[] = {
|
} mangled_cpuids[] = {
|
||||||
|
/*
|
||||||
|
* These entries depend on the vCPU's XCR0 register and IA32_XSS MSR,
|
||||||
|
* which are not controlled for by this test.
|
||||||
|
*/
|
||||||
{.function = 0xd, .index = 0},
|
{.function = 0xd, .index = 0},
|
||||||
|
{.function = 0xd, .index = 1},
|
||||||
};
|
};
|
||||||
|
|
||||||
static void test_guest_cpuids(struct kvm_cpuid2 *guest_cpuid)
|
static void test_guest_cpuids(struct kvm_cpuid2 *guest_cpuid)
|
||||||
|
Loading…
Reference in New Issue
Block a user