Files
acrn-hypervisor/hypervisor/include/arch/riscv/asm/guest/vcpu.h
Fei Li f687574a58 vuart: add dummy vuart for risc-v
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>
2025-10-14 14:45:12 +08:00

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 */