aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2021-01-15 14:03:53 -0800
committerPaolo Bonzini <[email protected]>2021-02-04 05:27:22 -0500
commitdb7d8e476821df85dce0cfd1e654c72c7db879dc (patch)
tree99210d85ddac21209e9556a1390b7747d05d6a96 /tools/perf/scripts/python
parentc32b1b896d2ab30ac30bc39194bac47a09f7f497 (diff)
x86/apic: Export x2apic_mode for use by KVM in "warm" path
Export x2apic_mode so that KVM can query whether x2APIC is active without having to incur the RDMSR in x2apic_enabled(). When Posted Interrupts are in use for a guest with an assigned device, KVM ends up checking for x2APIC at least once every time a vCPU halts. KVM could obviously snapshot x2apic_enabled() to avoid the RDMSR, but that's rather silly given that x2apic_mode holds the exact info needed by KVM. Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions