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