Re: [PATCH] KVM: x86: do not reset microcode version on INIT or RESET

From: linmiaohe
Date: Tue Feb 11 2020 - 20:53:59 EST


Paolo Bonzini <pbonzini@xxxxxxxxxx> writes:
> The microcode version should be set just once, since it is essentially a CPU feature; so do it on vCPU creation rather than reset.
>
> Userspace can tie the fix to the availability of MSR_IA32_UCODE_REV in the list of emulated MSRs.
>
> Reported-by: Alex Williamson <alex.williamson@xxxxxxxxxx>
> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>

Looks good. Thanks.
Reviewed-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>