OSDN Git Service

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)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Dec 2018 21:15:44 +0000 (22:15 +0100)
commit0e1b869fff60c81b510c2d00602d778f8f59dd9a
tree60368e72c7054beb43b0bf402a4169cad7b10f3a
parentdcbd3e49c2f0b2c2d8a321507ff8f3de4af76d7c
kvm: x86: Add AMD's EX_CFG to the list of ignored MSRs

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>
arch/x86/include/asm/msr-index.h
arch/x86/kvm/x86.c