Files
acrn-hypervisor/hypervisor/include/dm/vfdt.h
Yifan Liu 7bcb81314f hv: riscv: initialize service vm vfdt
Initialize Service VM vFDT by reserving hypervisor and pre-launched VM
memory regions.

The vFDT is copied to Service VM to the place just before the kernel
load address, and this needs to be fixed later when MMU module is
implemented.

Tracked-On: #8841
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Acked-by: Wang Yu1 <yu1.wang@intel.com>
2025-11-14 10:44:41 +08:00

23 lines
501 B
C

/*
* Copyright (C) 2019-2022 Intel Corporation.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef VFDT_H
#define VFDT_H
/* Use a pre-loaded multiboot module as pre-launched VM FDT.
* The module file should be generated by acrn-config tool;
*/
#define VIRT_FDT_LOAD_ADDR 0x80200000UL
void init_service_vm_vfdt(struct acrn_vm *vm);
void arch_init_service_vm_vfdt(struct acrn_vm *vm);
static inline void *vm_get_vfdt(struct acrn_vm *vm) {
return (void *)vm->fdt_raw;
}
#endif /* VFDT_H */