mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
Merge branch 'kvm-vmenter' into HEAD
Move SPEC_CTRL handling for VMX entirely to vmenter.S, also improving assembly code reuse between SVM and VMX. The prototype of __vmx_vcpu_run() and __svm_vcpu_run() becomes the same, with a set of bit flags for the second argument. The register allocation also becomes very similar, with %edi/%rdi pointing to the vmx (resp. svm) argument. Thanks to this, the code to save and restore SPEC_CTRL values for the host and guest is the same up to the register names and can be dropped into a new header arch/x86/kvm/vmenter.h. APX enablement will also move common code to load and save registers from VMX and SVM to vmenter.h. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
commit
fcaf986d10
9 changed files with 213 additions and 239 deletions
Loading…
Add table
Add a link
Reference in a new issue