kvm: x86: Add AMD's EX_CFG to the list of ignored MSRs
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 18 Dec 2018 00:34:18 +0000 (22:34 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Dec 2018 12:39:10 +0000 (13:39 +0100)
commitdf4ee073061999ebaed0d2ce0a6cd3380a2ed67f
tree1636f71cebb4b1e1e0f70042f6f7c6a1ed36bb8d
parent2f8f9e280abcb7b2a933091b65ceb19549d85e3e
kvm: x86: Add AMD's EX_CFG to the list of ignored MSRs

commit 0e1b869fff60c81b510c2d00602d778f8f59dd9a upstream.

Some guests OSes (including Windows 10) write to MSR 0xc001102c
on some cases (possibly while trying to apply a CPU errata).
Make KVM ignore reads and writes to that MSR, so the guest won't
crash.

The MSR is documented as "Execution Unit Configuration (EX_CFG)",
at AMD's "BIOS and Kernel Developer's Guide (BKDG) for AMD Family
15h Models 00h-0Fh Processors".

Cc: stable@vger.kernel.org
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/msr-index.h
arch/x86/kvm/x86.c