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:
Yifan Liu
2025-10-06 02:48:47 +00:00
committed by acrnsi-robot
parent 834a1f8b97
commit b5098f8f25
3 changed files with 16 additions and 0 deletions

View File

@@ -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;

View File

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