KVM: x86: Split core of hypercall emulation to helper function
authorSean Christopherson <seanjc@google.com>
Mon, 22 Jan 2024 23:54:02 +0000 (15:54 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Apr 2024 08:42:23 +0000 (04:42 -0400)
commite913ef159fad39dfe0b1a5f73e6b0a9c9ece2c1d
tree2fd8e4cdb696c1a5c400e49853b0354ada7eee43
parentf9cecb3c50eb9534cb82dafbd19de30efb73416c
KVM: x86: Split core of hypercall emulation to helper function

By necessity, TDX will use a different register ABI for hypercalls.
Break out the core functionality so that it may be reused for TDX.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Message-Id: <5134caa55ac3dec33fb2addb5545b52b3b52db02.1705965635.git.isaku.yamahata@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c