]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: Move IA32_XSS to kvm_{get,set}_msr_common
authorAaron Lewis <aaronlewis@google.com>
Mon, 21 Oct 2019 23:30:26 +0000 (16:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 13:47:12 +0000 (15:47 +0200)
commit1269575ca974ec3aa67e51f98c7bc3a325737e68
treeee3f68d5bfe20a1ed22f6927d8100aeab44c8562
parent8d0d51779b0880b7e497768ac4d626ffd0c4a374
kvm: x86: Move IA32_XSS to kvm_{get,set}_msr_common

Hoist support for RDMSR/WRMSR of IA32_XSS from vmx into common code so
that it can be used for svm as well.

Right now, kvm only allows the guest IA32_XSS to be zero,
so the guest's usage of XSAVES will be exactly the same as XSAVEC.

Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Change-Id: Ie4b0f777d71e428fbee6e82071ac2d7618e9bb40
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c