KVM: selftests: Move the guts of kvm_hypercall() to a separate macro
authorSean Christopherson <seanjc@google.com>
Sat, 4 Feb 2023 02:41:48 +0000 (02:41 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Mar 2023 14:20:07 +0000 (10:20 -0400)
commit4009e0bb7b83d967a14e108d271f003b378f9af9
tree792accf18a8ceb1ed21005e3c005609ceaf6153f
parentc281794eaa5c635c0edf39c6a9a3b0171000e92f
KVM: selftests: Move the guts of kvm_hypercall() to a separate macro

Extract the guts of kvm_hypercall() to a macro so that Xen hypercalls,
which have a different register ABI, can reuse the VMCALL vs. VMMCALL
logic.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230204024151.1373296-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/x86_64/processor.c