• Paolo Bonzini's avatar
    KVM: SVM: retrieve VMCB from assembly · f6d58266
    Paolo Bonzini authored
    Continue moving accesses to struct vcpu_svm to vmenter.S.  Reducing the
    number of arguments limits the chance of mistakes due to different
    registers used for argument passing in 32- and 64-bit ABIs; pushing the
    VMCB argument and almost immediately popping it into a different
    register looks pretty weird.
    
    32-bit ABI is not a concern for __svm_sev_es_vcpu_run() which is 64-bit
    only; however, it will soon need @svm to save/restore SPEC_CTRL so stay
    consistent with __svm_vcpu_run() and let them share the same prototype.
    
    No functional change intended.
    
    Cc: stable@vger.kernel.org
    Fixes: a149180f ("x86: Add magic AMD return-thunk")
    Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    f6d58266
kvm-asm-offsets.c 637 Bytes