target/i386: check for availability of MSR_IA32_UCODE_REV as an emulated MSR
commit6702514814c7e7b4cbf179624539b5f38c72740b
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Feb 2020 17:55:16 +0000 (11 18:55 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Feb 2020 15:29:40 +0000 (12 16:29 +0100)
tree876fc79afd7e4269509f4cf3686633e9892f46e3
parent9028c75c9d08be303ccc425bfe3d3b23d8f4cac7
target/i386: check for availability of MSR_IA32_UCODE_REV as an emulated MSR

Even though MSR_IA32_UCODE_REV has been available long before Linux 5.6,
which added it to the emulated MSR list, a bug caused the microcode
version to revert to 0x100000000 on INIT.  As a result, processors other
than the bootstrap processor would not see the host microcode revision;
some Windows version complain loudly about this and crash with a
fairly explicit MICROCODE REVISION MISMATCH error.

[If running 5.6 prereleases, the kernel fix "KVM: x86: do not reset
 microcode version on INIT or RESET" should also be applied.]

Reported-by: Alex Williamson <alex.williamson@redhat.com>
Message-id: <20200211175516.10716-1-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm.c