Re: [PATCH v2 7/7] KVM: VMX: Only context switch some PT MSRs when they exist

From: Paolo Bonzini
Date: Mon Oct 18 2021 - 11:21:00 EST


On 18/10/21 16:04, Xiaoyao Li wrote:

If intel_pt_validate_hw_cap is not fast enough, it should be optimized.
Something like this:

If I understand correctly, you mean we don't need to cache the existence with two variable, right?


Yes, exactly.

Paolo