]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpufeatures: Add the Virtual SPEC_CTRL feature
authorBabu Moger <babu.moger@amd.com>
Fri, 29 Jan 2021 00:43:22 +0000 (18:43 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:25 +0000 (04:43 -0400)
commitd94658fc56e2eec040ca02cca93ff57f23932150
tree19ccf484cb92ee496f6a99a5b4241530b4c9d522
parent4df736a2556f1d476877e892b09d9ec6af8057a6
x86/cpufeatures: Add the Virtual SPEC_CTRL feature

Newer AMD processors have a feature to virtualize the use of the
SPEC_CTRL MSR. Presence of this feature is indicated via CPUID
function 0x8000000A_EDX[20]: GuestSpecCtrl. When present, the
SPEC_CTRL MSR is automatically virtualized.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Acked-by: Borislav Petkov <bp@suse.de>
Message-Id: <161188100272.28787.4097272856384825024.stgit@bmoger-ubuntu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/cpufeatures.h