]> git.baikalelectronics.ru Git - kernel.git/commit
kvm/svm: Setup MCG_CAP on AMD properly
authorBorislav Petkov <bp@suse.de>
Sun, 26 Mar 2017 21:51:24 +0000 (23:51 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Fri, 7 Apr 2017 14:49:00 +0000 (16:49 +0200)
commit1562b96f86afd59db9bcb8f654355f599bb99e08
tree6dd0f048d0e80397c72dc92ee490e19ba4266fa0
parentdcebc5183ba902c36ab6a61b899d27c58aff876c
kvm/svm: Setup MCG_CAP on AMD properly

MCG_CAP[63:9] bits are reserved on AMD. However, on an AMD guest, this
MSR returns 0x100010a. More specifically, bit 24 is set, which is simply
wrong. That bit is MCG_SER_P and is present only on Intel. Thus, clean
up the reserved bits in order not to confuse guests.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c