Re: [PATCH v5 11/19] KVM:VMX: Emulate read and write to CET MSRs

From: Paolo Bonzini
Date: Mon Aug 07 2023 - 03:04:13 EST


On 8/5/23 00:21, Sean Christopherson wrote:
Oooh, the MSRs that don't exempt host_initiated are added to the list

(are *not* added)

of MSRs to save/restore, i.e. KVM "silently" supports MSR_AMD64_OSVW_ID_LENGTH and MSR_AMD64_OSVW_STATUS.

And guest_pv_has() returns true unless userspace has opted in to
enforcement.

Two different ways of having the same bug. The latter was introduced in the implementation of KVM_CAP_ENFORCE_PV_FEATURE_CPUID; it would become a problem if some selftests started using it.

Paolo