OSDN Git Service

KVM: nSVM: Add VMLOAD/VMSAVE helper to deduplicate code
authorSean Christopherson <seanjc@google.com>
Fri, 5 Feb 2021 00:57:45 +0000 (16:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:17 +0000 (04:43 -0400)
commit2ac636a6ea4dae8260639e8df5c457c0c74cafa9
tree1ccca8311e328dbdde9eb00a1294925ff7a87dab
parent3a87c7e0d176ff73c9ef5d58d89ad65f3be31d1b
KVM: nSVM: Add VMLOAD/VMSAVE helper to deduplicate code

Add another helper layer for VMLOAD+VMSAVE, the code is identical except
for the one line that determines which VMCB is the source and which is
the destination.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210205005750.3841462-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c