mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-14 02:00:27 +00:00
vUART will not enable before VM could be created. Tracked-On: #8805 Signed-off-by: Fei Li <fei1.li@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
28 lines
479 B
C
28 lines
479 B
C
/*
|
|
* Copyright (C) 2023-2025 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef RISCV_VCPU_H
|
|
#define RISCV_VCPU_H
|
|
|
|
|
|
#include <cpu.h>
|
|
#include <io_req.h>
|
|
|
|
|
|
struct acrn_vm;
|
|
struct acrn_vcpu {
|
|
struct acrn_vm *vm; /* Reference to the VM this VCPU belongs to */
|
|
struct io_request req; /* used by io/ept emulation */
|
|
|
|
};
|
|
|
|
static inline uint16_t pcpuid_from_vcpu(__unused const struct acrn_vcpu *vcpu)
|
|
{
|
|
return INVALID_CPU_ID;
|
|
}
|
|
|
|
#endif /* RISCV_VCPU_H */
|