From 290886d4d0cfb0fa5323e53fc05a32bda64e7d0a Mon Sep 17 00:00:00 2001 From: Vijay Dhanraj Date: Wed, 29 Apr 2020 18:00:41 -0700 Subject: [PATCH] acrn-config: Platform xml file support to run ACRN on QEMU This patch adds xml file, both board as well scenario files that are need to run ACRN on top of QEMU as a nested hypervisor. Currently support is only for SDC scenario. Tracked-On: #3198 Signed-off-by: Vijay Dhanraj Acked-by: Victor Sun --- misc/acrn-config/xmls/board-xmls/qemu.xml | 70 ++++++++++ .../acrn-config/xmls/config-xmls/qemu/sdc.xml | 122 ++++++++++++++++++ 2 files changed, 192 insertions(+) create mode 100644 misc/acrn-config/xmls/board-xmls/qemu.xml create mode 100644 misc/acrn-config/xmls/config-xmls/qemu/sdc.xml diff --git a/misc/acrn-config/xmls/board-xmls/qemu.xml b/misc/acrn-config/xmls/board-xmls/qemu.xml new file mode 100644 index 000000000..116bda68e --- /dev/null +++ b/misc/acrn-config/xmls/board-xmls/qemu.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /dev/vda1: TYPE="ext4" + + + + seri:/dev/ttyS0 type:portio base:0x3F8 irq:4 + seri:/dev/ttyS1 type:portio base:0x2F8 irq:3 + + + + + + + 4194304 kB + + + + 0, 1, 2, 3 + + + diff --git a/misc/acrn-config/xmls/config-xmls/qemu/sdc.xml b/misc/acrn-config/xmls/config-xmls/qemu/sdc.xml new file mode 100644 index 000000000..751b106e2 --- /dev/null +++ b/misc/acrn-config/xmls/config-xmls/qemu/sdc.xml @@ -0,0 +1,122 @@ + + + + n + /dev/ttyS0 + 5 + 5 + 3 + 7 + 0x40000 + + + + y + SCHED_BVT + y + y + n + y + n + n + + + + 0x2000 + 0x07800000 + 0x11000000 + 0x00010000 + 0x20000000 + 0x100000000 + 0x100000000 + + + + 0x100 + 256 + 1 + 96 + 120 + 64 + 16 + 16 + + + + 0x00000010 + \\EFI\\org.clearlinux\\bootloaderx64.efi + + + + + SOS_VM + ACRN SOS VM + + 0 + + + 0 + + + 0 + CONFIG_SOS_RAM_SIZE + + + ACRN Service OS + KERNEL_BZIMAGE + Linux_bzImage + + SOS_VM_BOOTARGS + + + VUART_LEGACY_PIO + SOS_COM1_BASE + SOS_COM1_IRQ + + + VUART_LEGACY_PIO + INVALID_COM_BASE + SOS_COM2_IRQ + 1 + 1 + + + + + + /dev/vda1 + + earlyprintk=serial,ttyS0,115200n8 rw rootwait console=tty0 consoleblank=0 no_timer_check ignore_loglevel + ignore_loglevel no_timer_check intel_iommu=off tsc=reliable hvlog=2M@0x1FE00000 + + + + + POST_STD_VM + + 0 + + + 1 + + + 0 + + + 0 + 0 + + + VUART_LEGACY_PIO + INVALID_COM_BASE + COM1_IRQ + + + VUART_LEGACY_PIO + INVALID_COM_BASE + COM2_IRQ + 0 + 1 + + +