aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-10-28 17:30:07 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2022-11-09 12:16:46 -0500
commitf7ef280132f9bf6f82acf5aa5c3c837206eef501 (patch)
tree661b83bdff9781276aa6b07eee33780e8653bd41 /net
parentKVM: SVM: replace regs argument of __svm_vcpu_run() with vcpu_svm (diff)
downloadlinux-dev-f7ef280132f9bf6f82acf5aa5c3c837206eef501.tar.xz
linux-dev-f7ef280132f9bf6f82acf5aa5c3c837206eef501.zip
KVM: SVM: adjust register allocation for __svm_vcpu_run()
32-bit ABI uses RAX/RCX/RDX as its argument registers, so they are in the way of instructions that hardcode their operands such as RDMSR/WRMSR or VMLOAD/VMRUN/VMSAVE. In preparation for moving vmload/vmsave to __svm_vcpu_run(), keep the pointer to the struct vcpu_svm in %rdi. In particular, it is now possible to load svm->vmcb01.pa in %rax without clobbering the struct vcpu_svm pointer. No functional change intended. Cc: stable@vger.kernel.org Fixes: a149180fbcf3 ("x86: Add magic AMD return-thunk") Reviewed-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions