Skip to content
  • Borislav Petkov's avatar
    x86, kvm: Add MSR_AMD64_BU_CFG2 to the list of ignored MSRs · 2e32b719
    Borislav Petkov authored
    
    
    The "x86, AMD: Enable WC+ memory type on family 10 processors" patch
    currently in -tip added a workaround for AMD F10h CPUs which #GPs my
    guest when booted in kvm. This is because it accesses MSR_AMD64_BU_CFG2
    which is not currently ignored by kvm. Do that because this MSR is only
    baremetal-relevant anyway. While at it, move the ignored MSRs at the
    beginning of kvm_set_msr_common so that we exit then and there.
    
    Acked-by: default avatarGleb Natapov <gleb@redhat.com>
    Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
    Cc: Andre Przywara <andre@andrep.de>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1361298793-31834-2-git-send-email-bp@alien8.de
    Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
    2e32b719