mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
refine hypercall
-- use an array to fast locate the hypercall handler to replace switch case. -- uniform hypercall handler as below: int32_t (*handler)(sos_vm, target_vm, param1, param2) Tracked-On: #4958 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -8,8 +8,26 @@
|
||||
#include <errno.h>
|
||||
#include <vm.h>
|
||||
|
||||
int32_t hcall_debug(__unused struct acrn_vm *vm, __unused uint64_t param1, __unused uint64_t param2,
|
||||
__unused uint64_t hypcall_id)
|
||||
int32_t hcall_setup_sbuf(__unused struct acrn_vm *vm, __unused struct acrn_vm *target_vm,
|
||||
__unused uint64_t param1, __unused uint64_t param2)
|
||||
{
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
int32_t hcall_setup_hv_npk_log(__unused struct acrn_vm *vm, __unused struct acrn_vm *target_vm,
|
||||
__unused uint64_t param1, __unused uint64_t param2)
|
||||
{
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
int32_t hcall_get_hw_info(__unused struct acrn_vm *vm, __unused struct acrn_vm *target_vm,
|
||||
__unused uint64_t param1, __unused uint64_t param2)
|
||||
{
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
int32_t hcall_profiling_ops(__unused struct acrn_vm *vm, __unused struct acrn_vm *target_vm,
|
||||
__unused uint64_t param1, __unused uint64_t param2)
|
||||
{
|
||||
return -EPERM;
|
||||
}
|
||||
|
Reference in New Issue
Block a user