]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Add CPUID tests for Hyper-V features that need in-kernel APIC
authorSean Christopherson <seanjc@google.com>
Sat, 18 Jan 2025 00:34:54 +0000 (16:34 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 16:55:11 +0000 (08:55 -0800)
commite36454461c5ebe6372952560b2abad5dc9ac579d
treee51ed27c53e59209dd96caa130aca97e804568fd
parentcd5a0c2f0faeb4a3fab3b78f6693a2d55ee51efa
KVM: selftests: Add CPUID tests for Hyper-V features that need in-kernel APIC

Add testcases to x86's Hyper-V CPUID test to verify that KVM advertises
support for features that require an in-kernel local APIC appropriately,
i.e. that KVM hides support from the vCPU-scoped ioctl if the VM doesn't
have an in-kernel local APIC.

Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/20250118003454.2619573-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/hyperv_cpuid.c