mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-07-27 08:50:58 +00:00
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>
23 lines
501 B
C
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 */
|