Re: [PATCH v5 10/23] KVM: VMX: Add support for FRED context save/restore

From: Xin Li
Date: Thu Jul 24 2025 - 14:02:17 EST


On 7/23/2025 10:35 PM, Chao Gao wrote:
Return KVM_MSR_RET_UNSUPPORTED instead of 1.

KVM's uAPI allows userspace to read MSRs and write 0 to MSRs even if an MSR
isn't supported according to guest CPUIDs. Returning KVM_MSR_RET_UNSUPPORTED
allows kvm_do_msr_access() to suppress the failure when needed to comply with
the uAPI.

For more details, see kvm_do_msr_access().

You're right; I missed the API improvement.

Thanks!
Xin