mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-15 21:01:04 +00:00
get_vm_from_vmid,is_paused_vm and is_poweroff_vm should be common APIs. But now doesn't implement them as common for not introduce more VM related data structure and APIs. Tracked-On: #8805 Signed-off-by: Fei Li <fei1.li@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
22 lines
453 B
C
22 lines
453 B
C
/*
|
|
* Copyright (C) 2023-2025 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef VM_H_
|
|
#define VM_H_
|
|
|
|
#include <asm/guest/vm.h>
|
|
|
|
struct acrn_vm *get_vm_from_vmid(__unused uint16_t vm_id);
|
|
|
|
bool is_paused_vm(__unused const struct acrn_vm *vm);
|
|
|
|
bool is_poweroff_vm(__unused const struct acrn_vm *vm);
|
|
|
|
void arch_trigger_level_intr(__unused struct acrn_vm *vm,
|
|
__unused uint32_t irq, __unused bool assert);
|
|
|
|
#endif /* VM_H_ */
|