diff options
author | Sean Christopherson <seanjc@google.com> | 2024-01-22 15:54:00 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-12 04:42:24 -0400 |
commit | 2325a21ac1e913de7723cdfef360e56319a268bf (patch) | |
tree | f8a527a4715ffe4fa9b49790c5c1021aab7f1c52 /tools/Makefile | |
parent | 5f18c642ff7e2106559388b055ba291fb48f58a5 (diff) | |
download | linux-2325a21ac1e913de7723cdfef360e56319a268bf.tar.gz linux-2325a21ac1e913de7723cdfef360e56319a268bf.tar.bz2 linux-2325a21ac1e913de7723cdfef360e56319a268bf.zip |
KVM: VMX: Modify NMI and INTR handlers to take intr_info as function argument
TDX uses different ABI to get information about VM exit. Pass intr_info to
the NMI and INTR handlers instead of pulling it from vcpu_vmx in
preparation for sharing the bulk of the handlers with TDX.
When the guest TD exits to VMM, RAX holds status and exit reason, RCX holds
exit qualification etc rather than the VMCS fields because VMM doesn't have
access to the VMCS. The eventual code will be
VMX:
- get exit reason, intr_info, exit_qualification, and etc from VMCS
- call NMI/INTR handlers (common code)
TDX:
- get exit reason, intr_info, exit_qualification, and etc from guest
registers
- call NMI/INTR handlers (common code)
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <0396a9ae70d293c9d0b060349dae385a8a4fbcec.1705965635.git.isaku.yamahata@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/Makefile')
0 files changed, 0 insertions, 0 deletions