mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
The template xmls are used to be the dafault VM settings for dynamically adding VMs. Tracked-On: #4641 Signed-off-by: Shuang Zheng <shuang.zheng@intel.com> Reviewed-by: Victor Sun <victor.sun@intel.com> Acked-by: Terry Zou <terry.zou@intel.com>
50 lines
3.3 KiB
XML
50 lines
3.3 KiB
XML
<acrn-config board="" scenario="">
|
|
<vm id="0">
|
|
<vm_type desc="Specify the VM by its load order: PRE_LAUNCHED_VM, SOS_VM or POST_LAUNCHED_VM." readonly="true">PRE_STD_VM</vm_type>
|
|
<name desc="Specify the VM name which will be shown in hypervisor console command: vm_list."></name>
|
|
<guest_flags desc="Select all applicable flags for the VM" multiselect="true">
|
|
<guest_flag></guest_flag>
|
|
</guest_flags>
|
|
<vcpu_affinity desc="vCPU affinity map. Each vCPU will pin to the selected pCPU ID. Please make sure each vCPU pin to different pCPU.">
|
|
<pcpu_id></pcpu_id>
|
|
</vcpu_affinity>
|
|
<clos configurable="0" desc="Class of Service for Cache Allocation Technology. Please refer SDM 17.19.2 for details and use with caution.">
|
|
<vcpu_clos>0</vcpu_clos>
|
|
</clos>
|
|
<epc_section desc="epc section">
|
|
<base desc="SGX EPC section base, must be page aligned"></base>
|
|
<size desc="SGX EPC section size in Bytes, must be page aligned"></size>
|
|
</epc_section>
|
|
<memory>
|
|
<start_hpa desc="The start physical address in host for the VM"></start_hpa>
|
|
<size desc="The memory size in Bytes for the VM"></size>
|
|
<start_hpa2 desc="Start of second HPA for non-contiguous allocations in host for the VM"></start_hpa2>
|
|
<size_hpa2 desc="Memory size of second HPA for non-contiguous allocations in Bytes for the VM"></size_hpa2>
|
|
</memory>
|
|
<os_config>
|
|
<name desc="Specify the OS name of VM, currently it is not referenced by hypervisor code."></name>
|
|
<kern_type desc="Specify the kernel image type so that hypervisor could load it correctly. Currently support KERNEL_BZIMAGE and KERNEL_ZEPHYR."></kern_type>
|
|
<kern_mod desc="The tag for kernel image which act as multiboot module, it must exactly match the module tag in GRUB multiboot cmdline."></kern_mod>
|
|
<ramdisk_mod desc="The tag for ramdisk image which act as multiboot module, it must exactly match the module tag in GRUB multiboot cmdline."></ramdisk_mod>
|
|
<rootfs desc="rootfs for Linux kernel"></rootfs>
|
|
<bootargs desc="Specify kernel boot arguments"></bootargs>
|
|
</os_config>
|
|
<vuart id="0">
|
|
<type configurable="0" desc="vCOM1 type">VUART_LEGACY_PIO</type>
|
|
<base desc="vUART0 (A.K.A COM1) enabling switch. Enable by exposing its base address, disable by returning invalid base address." readonly="true">COM1_BASE</base>
|
|
<irq configurable="0" desc="vCOM1 irq">COM1_IRQ</irq>
|
|
</vuart>
|
|
<vuart id="1">
|
|
<type configurable="0" desc="vCOM2 type">VUART_LEGACY_PIO</type>
|
|
<base desc="vUART1 (A.K.A COM2) enabling switch. Enable by exposing its base address, disable by returning invalid base address."></base>
|
|
<irq configurable="0" desc="vCOM2 irq">COM2_IRQ</irq>
|
|
<target_vm_id desc="COM2 is used for VM communications. When it is enabled, please specify which target VM that current VM connect to."></target_vm_id>
|
|
<target_uart_id configurable="0" desc="target vUART ID that vCOM2 connect to">1</target_uart_id>
|
|
</vuart>
|
|
<pci_devs configurable="0" desc="pci devices list">
|
|
<pci_dev desc="pci device">00:17.0 SATA controller: Intel Corporation Device 9dd3 (rev 30)</pci_dev>
|
|
<pci_dev desc="pci device">03:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)</pci_dev>
|
|
</pci_devs>
|
|
</vm>
|
|
</acrn-config>
|