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)
commit74f169090b6f36b867c9df0454366dd9af6f62d1
tree6dd0f048d0e80397c72dc92ee490e19ba4266fa0
parent1279a6b124e4c93fac161dd3e481a24a423551c0
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