xref: /openbmc/qemu/target/i386/kvm/tdx-stub.c (revision b92b39af4219df4250f121f64d215506909c7404)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #include "qemu/osdep.h"
4 
5 #include "tdx.h"
6 
tdx_pre_create_vcpu(CPUState * cpu,Error ** errp)7 int tdx_pre_create_vcpu(CPUState *cpu, Error **errp)
8 {
9     return -EINVAL;
10 }
11 
tdx_parse_tdvf(void * flash_ptr,int size)12 int tdx_parse_tdvf(void *flash_ptr, int size)
13 {
14     return -EINVAL;
15 }
16 
tdx_handle_report_fatal_error(X86CPU * cpu,struct kvm_run * run)17 int tdx_handle_report_fatal_error(X86CPU *cpu, struct kvm_run *run)
18 {
19     return -EINVAL;
20 }
21 
tdx_handle_get_quote(X86CPU * cpu,struct kvm_run * run)22 void tdx_handle_get_quote(X86CPU *cpu, struct kvm_run *run)
23 {
24 }
25 
tdx_handle_get_tdvmcall_info(X86CPU * cpu,struct kvm_run * run)26 void tdx_handle_get_tdvmcall_info(X86CPU *cpu, struct kvm_run *run)
27 {
28 }
29 
tdx_handle_setup_event_notify_interrupt(X86CPU * cpu,struct kvm_run * run)30 void tdx_handle_setup_event_notify_interrupt(X86CPU *cpu, struct kvm_run *run)
31 {
32 }
33