1*b35f4c73SSean Christopherson /* SPDX-License-Identifier: GPL-2.0-only */
2*b35f4c73SSean Christopherson #ifndef SELFTEST_KVM_UCALL_H
3*b35f4c73SSean Christopherson #define SELFTEST_KVM_UCALL_H
4*b35f4c73SSean Christopherson 
5*b35f4c73SSean Christopherson #include "processor.h"
6*b35f4c73SSean Christopherson 
7*b35f4c73SSean Christopherson static inline void ucall_arch_init(struct kvm_vm *vm, vm_paddr_t mmio_gpa)
8*b35f4c73SSean Christopherson {
9*b35f4c73SSean Christopherson }
10*b35f4c73SSean Christopherson 
11*b35f4c73SSean Christopherson static inline void ucall_arch_do_ucall(vm_vaddr_t uc)
12*b35f4c73SSean Christopherson {
13*b35f4c73SSean Christopherson 	sbi_ecall(KVM_RISCV_SELFTESTS_SBI_EXT,
14*b35f4c73SSean Christopherson 		  KVM_RISCV_SELFTESTS_SBI_UCALL,
15*b35f4c73SSean Christopherson 		  uc, 0, 0, 0, 0, 0);
16*b35f4c73SSean Christopherson }
17*b35f4c73SSean Christopherson 
18*b35f4c73SSean Christopherson #endif
19