KVM: SVM: Use wrmsr for switching between guest and host IA32_XSS on AMD
Aaron Lewis authored

When the guest can execute the XSAVES/XRSTORS instructions, set the
hardware IA32_XSS MSR to guest/host values on VM-entry/VM-exit.

Note that vcpu->arch.ia32_xss is currently guaranteed to be 0 on AMD,
since there is no way to change it.
Suggested-by: default avatarSean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: default avatarJim Mattson <jmattson@google.com>
Signed-off-by: default avatarAaron Lewis <aaronlewis@google.com>
Change-Id: Id51a782462086e6d7a3ab621838e200f1c005afd
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
312a1c87
Name Last commit Last update
Documentation Merge tag 'pinctrl-v5.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
LICENSES LICENSES: Rename other to deprecated
arch KVM: SVM: Use wrmsr for switching between guest and host IA32_XSS on AMD
block blk-rq-qos: fix first node deletion of rq_qos_del()
certs PKCS#7: Refactor verify_pkcs7_signature()
crypto Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
drivers KVM: SVM: Remove unneeded WBINVD and DF_FLUSH when starting SEV guests
fs Merge branch 'akpm' (patches from Andrew)
include KVM: x86: Remove unneeded kvm_vcpu variable, guest_xcr0_loaded
init Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
ipc ipc/sem.c: convert to use built-in RCU list checking
kernel Merge tag 'kbuild-fixes-v5.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
lib Merge tag 'copy-struct-from-user-v5.4-rc4' of gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux
mm mm/thp: allow dropping THP from page cache
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
samples samples/bpf: Add a workaround for asm_inline
scripts Merge tag 'kbuild-fixes-v5.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
security Merge tag 'selinux-pr-20191007' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux
sound ALSA: hda - Force runtime PM on Nvidia HDMI codecs
tools selftests: kvm: fix sync_regs_test with newer gccs
usr kbuild: update compile-test header list for v5.4-rc2
virt Merge tag 'kvmarm-fixes-5.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.