Re: [PATCH v6 04/16] KVM: x86/pmu: Set MSR_IA32_MISC_ENABLE_EMON bit when vPMU is enabled

From: Sean Christopherson
Date: Mon May 17 2021 - 17:19:08 EST


On Mon, May 17, 2021, Venkatesh Srinivas wrote:
> Should this bit be conditional on the host having it set?

No need, KVM advertises the architectural PMU to userspace iff hardware itself
has an architecture PMU. Userspace is free to lie to its guests so long as doing
so doesn't put KVM at risk.