https://github.com/torvalds/linux
Revision a57b802c10fd409f65d40dbe23494ce951cb4f01 authored by KarimAllah Ahmed on 03 February 2018, 14:56:23 UTC, committed by Seth Forshee on 08 February 2018, 03:08:36 UTC
BugLink: http://bugs.launchpad.net/bugs/1748072

commit b2ac58f90540e39324e7a29a7ad471407ae0bf48

[ Based on a patch from Paolo Bonzini <pbonzini@redhat.com> ]

... basically doing exactly what we do for VMX:

- Passthrough SPEC_CTRL to guests (if enabled in guest CPUID)
- Save and restore SPEC_CTRL around VMExit and VMEntry only if the guest
  actually used it.

Signed-off-by: KarimAllah Ahmed <karahmed@amazon.de>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jun Nakajima <jun.nakajima@intel.com>
Cc: kvm@vger.kernel.org
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Asit Mallick <asit.k.mallick@intel.com>
Cc: Arjan Van De Ven <arjan.van.de.ven@intel.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ashok Raj <ashok.raj@intel.com>
Link: https://lkml.kernel.org/r/1517669783-20732-1-git-send-email-karahmed@amazon.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
1 parent 7446999
History
Tip revision: a57b802c10fd409f65d40dbe23494ce951cb4f01 authored by KarimAllah Ahmed on 03 February 2018, 14:56:23 UTC
KVM/SVM: Allow direct access to MSR_IA32_SPEC_CTRL
Tip revision: a57b802
File Mode Size
Documentation
arch
block
certs
crypto
debian
debian.master
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
spl
tools
ubuntu
usr
virt
zfs
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.4 KB
.mailmap -rw-r--r-- 8.8 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.2 KB
Kbuild -rw-r--r-- 2.2 KB
Kconfig -rw-r--r-- 287 bytes
MAINTAINERS -rw-r--r-- 427.1 KB
Makefile -rw-r--r-- 59.3 KB
README -rw-r--r-- 722 bytes
dropped.txt -rw-r--r-- 3.3 KB
snapcraft.yaml -rw-r--r-- 607 bytes

README

back to top