KVM: x86: do not reset microcode version on INIT or RESET
linmiaohe
Reviewed-byQuoted 6 lines · Paolo Bonzini
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_REVin the list of emulated MSRs.Reported-by Alex Williamson <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>
Looks good. Thanks.
Reviewed-by Miaohe Lin <[email protected]>