mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-07-26 07:17:31 +00:00
hv/misc: Add support for pre-launched VM FDT import
Just as we accept pre-compiled ACPI binary for pre-launched VM, this commit adds support for pre-launched VM to accept pre-compiled FDT binary with default tag FDT_VMx, where x is the VM id. Tracked-On: #8838 Signed-off-by: Yifan Liu <yifan1.liu@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -56,6 +56,7 @@ struct vm_sw_info {
|
||||
struct sw_module_info bootargs_info;
|
||||
struct sw_module_info ramdisk_info;
|
||||
struct sw_module_info acpi_info;
|
||||
struct sw_module_info fdt_info;
|
||||
/* HVA to IO shared page */
|
||||
void *io_shared_page;
|
||||
void *asyncio_sbuf;
|
||||
|
||||
@@ -98,6 +98,10 @@ struct acrn_vm_acpi_config {
|
||||
char acpi_mod_tag[MAX_MOD_TAG_LEN]; /* multiboot module tag for ACPI */
|
||||
} __aligned(8);
|
||||
|
||||
struct acrn_vm_fdt_config {
|
||||
char fdt_mod_tag[MAX_MOD_TAG_LEN]; /* multiboot module tag for FDT */
|
||||
} __aligned(8);
|
||||
|
||||
/* the vbdf is assgined by device model */
|
||||
#define UNASSIGNED_VBDF 0xFFFFU
|
||||
|
||||
@@ -142,6 +146,7 @@ struct acrn_vm_config {
|
||||
struct acrn_vm_pci_dev_config *pci_devs; /* point to PCI devices BDF list */
|
||||
struct acrn_vm_os_config os_config; /* OS information the VM */
|
||||
struct acrn_vm_acpi_config acpi_config; /* ACPI config for the VM */
|
||||
struct acrn_vm_fdt_config fdt_config; /* FDT config for the VM */
|
||||
|
||||
struct vuart_config vuart[MAX_VUART_NUM_PER_VM];/* vuart configuration for VM */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user