mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-17 14:58:43 +00:00
config_tools: refine console virtual UARTs
As is recommended by UX/DX reviews, the per-VM console virtual UART is now limited to the following choices: - Disabled - a COM port from COM1 to COM4 - PCI based This patch converts the schema of scenario XMLs to integrate this recommendation and add logic in the scenario upgrader to migrate data from old scenario XMLs. v1 -> v2: * Update the static allocators and C source transformers according to the new console vUART config item. Tracked-On: #6690 Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -92,14 +92,7 @@
|
||||
<ramdisk_mod/>
|
||||
<bootargs/>
|
||||
</os_config>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<mmio_resources>
|
||||
<TPM2>n</TPM2>
|
||||
<p2sb>n</p2sb>
|
||||
@@ -132,14 +125,7 @@
|
||||
quiet loglevel=3 i915.nuclear_pageflip=1 swiotlb=131072
|
||||
</bootargs>
|
||||
</os_config>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>SERVICE_VM_COM1_BASE</base>
|
||||
<irq>SERVICE_VM_COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<pci_devs>
|
||||
<pci_dev/>
|
||||
</pci_devs>
|
||||
@@ -158,14 +144,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<PTM>n</PTM>
|
||||
</vm>
|
||||
<vm id="3">
|
||||
@@ -182,14 +161,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<PTM>n</PTM>
|
||||
</vm>
|
||||
</acrn-config>
|
||||
|
@@ -105,14 +105,7 @@
|
||||
idle=poll irqaffinity=0 no_ipi_broadcast=1 reboot=acpi
|
||||
</bootargs>
|
||||
</os_config>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<mmio_resources>
|
||||
<TPM2>n</TPM2>
|
||||
</mmio_resources>
|
||||
@@ -151,14 +144,7 @@
|
||||
<ramdisk_mod/>
|
||||
<bootargs>root=/dev/nvme0n1p3 rw rootwait console=ttyS0,115200n8 ignore_loglevel no_timer_check</bootargs>
|
||||
</os_config>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>SERVICE_VM_COM1_BASE</base>
|
||||
<irq>SERVICE_VM_COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<pci_devs>
|
||||
<pci_dev/>
|
||||
</pci_devs>
|
||||
@@ -181,14 +167,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<PTM>n</PTM>
|
||||
</vm>
|
||||
<vm id="3">
|
||||
@@ -207,14 +186,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<PTM>n</PTM>
|
||||
</vm>
|
||||
</acrn-config>
|
||||
|
@@ -95,14 +95,7 @@
|
||||
<bootargs> rw rootwait root=/dev/sda3 console=ttyS0 noxsave nohpet no_timer_check ignore_loglevel log_buf_len=16M consoleblank=0 tsc=reliable reboot=acpi
|
||||
</bootargs>
|
||||
</os_config>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<mmio_resources>
|
||||
<TPM2>n</TPM2>
|
||||
</mmio_resources>
|
||||
@@ -143,14 +136,7 @@
|
||||
consoleblank=0 tsc=reliable reboot=acpi
|
||||
</bootargs>
|
||||
</os_config>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<mmio_resources>
|
||||
<TPM2>n</TPM2>
|
||||
</mmio_resources>
|
||||
|
@@ -77,14 +77,7 @@
|
||||
<bootargs>root=/dev/nvme0n1p3 rw rootwait console=tty0 console=ttyS0 consoleblank=0 no_timer_check quiet loglevel=3
|
||||
i915.nuclear_pageflip=1</bootargs>
|
||||
</os_config>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>SERVICE_VM_COM1_BASE</base>
|
||||
<irq>SERVICE_VM_COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<pci_devs>
|
||||
<pci_dev/>
|
||||
</pci_devs>
|
||||
@@ -105,14 +98,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
</vm>
|
||||
<vm id="2">
|
||||
<load_order>POST_LAUNCHED_VM</load_order>
|
||||
@@ -130,14 +116,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<PTM>n</PTM>
|
||||
</vm>
|
||||
<vm id="3">
|
||||
@@ -156,14 +135,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<PTM>n</PTM>
|
||||
</vm>
|
||||
<vm id="4">
|
||||
@@ -182,14 +154,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<PTM>n</PTM>
|
||||
</vm>
|
||||
<vm id="5">
|
||||
@@ -208,14 +173,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<PTM>n</PTM>
|
||||
</vm>
|
||||
<vm id="6">
|
||||
@@ -234,14 +192,7 @@
|
||||
<base>0</base>
|
||||
<size>0</size>
|
||||
</epc_section>
|
||||
<legacy_vuart id="0">
|
||||
<type>VUART_LEGACY_PIO</type>
|
||||
<base>COM1_BASE</base>
|
||||
<irq>COM1_IRQ</irq>
|
||||
</legacy_vuart>
|
||||
<console_vuart id="0">
|
||||
<base>INVALID_PCI_BASE</base>
|
||||
</console_vuart>
|
||||
<console_vuart>COM Port 1</console_vuart>
|
||||
<PTM>n</PTM>
|
||||
</vm>
|
||||
</acrn-config>
|
||||
|
Reference in New Issue
Block a user