/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include #include #include struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { { /* VM0 */ CONFIG_SAFETY_VM(1), .name = "ACRN PRE-LAUNCHED VM0", .guest_flags = 0UL, .cpu_affinity = VM0_CONFIG_CPU_AFFINITY, .memory = { .start_hpa = VM0_CONFIG_MEM_START_HPA, .size = VM0_CONFIG_MEM_SIZE, }, .os_config = { .name = "Zephyr", .kernel_type = KERNEL_ZEPHYR, .kernel_mod_tag = "Zephyr_RawImage", .bootargs = "", .kernel_load_addr = 0x100000, .kernel_entry_addr = 0x100000, }, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, .irq = COM1_IRQ, }, .vuart[1] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM2_BASE, .irq = COM2_IRQ, .t_vuart.vm_id = 1U, .t_vuart.vuart_id = 1U, } }, { /* VM1 */ CONFIG_SOS_VM, .name = "ACRN SOS VM", .guest_flags = 0UL, .memory = { .start_hpa = 0UL, .size = CONFIG_SOS_RAM_SIZE, }, .os_config = { .name = "ACRN Service OS", .kernel_type = KERNEL_BZIMAGE, .kernel_mod_tag = "Linux_bzImage", .bootargs = SOS_VM_BOOTARGS, }, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = SOS_COM1_BASE, .irq = SOS_COM1_IRQ, }, .vuart[1] = { .type = VUART_LEGACY_PIO, .addr.port_base = SOS_COM2_BASE, .irq = SOS_COM2_IRQ, .t_vuart.vm_id = 0U, .t_vuart.vuart_id = 1U, }, }, { /* VM2 */ CONFIG_POST_STD_VM(1), .cpu_affinity = VM2_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, .irq = COM1_IRQ, }, .vuart[1] = { .type = VUART_LEGACY_PIO, .addr.port_base = INVALID_COM_BASE, } } };