mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-04-30 04:33:58 +00:00
-- 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>
34 lines
838 B
C
34 lines
838 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <types.h>
|
|
#include <errno.h>
|
|
#include <vm.h>
|
|
|
|
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;
|
|
}
|