mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-02 05:34:04 +00:00
This patch creates vm_event support in HV, including: 1. Create vm_event data type. 2. Add vm_event sbuf and its initializer. The sbuf will be allocated by DM in Service VM. Its page address will then be share to HV through hypercall. 3. Add an API to send the HV generated event. Tracked-On: #8547 Signed-off-by: Wu Zhou <wu.zhou@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
17 lines
332 B
C
17 lines
332 B
C
/*
|
|
* Copyright (C) 2019-2023 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef VM_EVENT_H
|
|
#define VM_EVENT_H
|
|
|
|
#include <types.h>
|
|
#include <acrn_common.h>
|
|
|
|
int32_t init_vm_event(struct acrn_vm *vm, uint64_t *hva);
|
|
int32_t send_vm_event(struct acrn_vm *vm, struct vm_event *event);
|
|
|
|
#endif /* VM_EVENT_H */
|