On Sun, Jan 23, 2022 at 10:45 AM David Dunn <daviddunn@xxxxxxxxxx> wrote:
KVM_CAP_PMU_DISABLE is used to disable PMU virtualization on individual
x86 VMs. PMU configuration must be done prior to creating VCPUs.
To enable future extension, KVM_CAP_PMU_CAPABILITY reports available
settings via bitmask when queried via check_extension.
For VMs that have PMU virtualization disabled, usermode will need to
clear CPUID leaf 0xA to notify guests.
Signed-off-by: David Dunn <daviddunn@xxxxxxxxxx>
Nit: The two references to CPUID leaf 0xA should be qualified as
applying only to Intel VMs.
Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>