Re: çå: çå: [PATCH][v6] KVM: X86: support APERF/MPERF registers

From: Paolo Bonzini
Date: Fri Jun 05 2020 - 07:16:01 EST

On 05/06/20 11:41, Li,Rongqing wrote:
>> As you said, "Pass-though: it is only suitable for KVM_HINTS_REALTIME", which
>> means, KVM needs to make sure the kvm->arch.aperfmperf_mode value could
>> "only" be set to KVM_APERFMPERF_PT when the check
>> kvm_para_has_hint(KVM_HINTS_REALTIME) is passed.
> pining vcpu can ensure that guest get correct mperf/aperf, but a user
> has the choice to not pin, at that condition, do not think it is bug, this wants to say

Also, userspace can also pin without exposing KVM_HINTS_REALTIME. So
it's better not to check.