]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38cb33e5fe4da9baf14e72aa4ced85e9cc40ef51
tree1ccca8311e328dbdde9eb00a1294925ff7a87dab
parent1b7f652629be076c1c5a93a83c5900f97a65945b
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