]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Verify that KVM returns the configured APIC cycle length
authorSean Christopherson <seanjc@google.com>
Fri, 22 May 2026 17:35:26 +0000 (10:35 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 23 May 2026 08:07:40 +0000 (10:07 +0200)
commitd9c41dc531b0e8feb046ee3d31ce37657101b137
tree932e0126afef4181c6d03f316a8deb8c987a4614
parent86e2de10eb14446a49019791bd0674faa5fae088
KVM: selftests: Verify that KVM returns the configured APIC cycle length

Add checks in the APIC bus clock test to verify that querying
KVM_CAP_X86_APIC_BUS_CYCLES_NS on the VM after changing the frequency
returns the VM's actual APIC cycle length, not KVM's default.  For
giggles, verify that KVM still returns its default frequency for the
system-scoped check.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20260522173526.3539407-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86/apic_bus_clock_test.c