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:37:56 +0000 (13:37 +0100)
commit229468c62942ce0f4ec223c001009b58bbec25ce
tree5fc75996d4939a9373c6d5536f795cc9721b40a8
parent76281d12dac98ed877b0f199451eaa8e39df0395
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