summaryrefslogtreecommitdiff
path: root/include/uapi/linux/wireless.h
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2026-05-22 10:35:25 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2026-05-23 10:07:29 +0200
commit86e2de10eb14446a49019791bd0674faa5fae088 (patch)
tree9dbaaf7db2147410080b986cd88125ea943dc305 /include/uapi/linux/wireless.h
parent2d42c7cf1a2dad694db0c518b0e004502859f11c (diff)
KVM: x86: Return the VM's configured APIC bus frequency when queried
When KVM_CAP_X86_APIC_BUS_CYCLES_NS is queried on a specific VM, return the VM's configured APIC bus frequency, not KVM's default. Aside from the fact that returning the default frequency is blatantly wrong if userspace has changed the frequency, returning the configured frequency means userspace can blindly trust the result, e.g. when filling PV CPUID information that communicates the APIC bus frequency to the guest. Fixes: 6fef518594bc ("KVM: x86: Add a capability to configure bus frequency for APIC timer") Reported-by: David Woodhouse <dwmw2@infradead.org> Closes: https://lore.kernel.org/all/ab84153e33fbe7c25667f595c56b310d4d5a93ef.camel@infradead.org Signed-off-by: Sean Christopherson <seanjc@google.com> Message-ID: <20260522173526.3539407-2-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/uapi/linux/wireless.h')
0 files changed, 0 insertions, 0 deletions