mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 03:40:27 +00:00
so that vm_configurations.h/vm_configurations.c are consistent for same scenario Upload configuration source code for: Board scenarios whl-ipc-i5 industry, hybrid, hybrid_rt, logical_partiton whl-ipc-i7 industry, hybrid, hybrid_rt, logical_partiton ehl-crb-b industry, hybrid, hybrid_rt, logical_partition nuc7i7dnb industry, hybrid, logical_partition Tracked-On: #5229 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
68 lines
1.8 KiB
C
68 lines
1.8 KiB
C
/*
|
|
* Copyright (C) 2020 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef MISC_CFG_H
|
|
#define MISC_CFG_H
|
|
|
|
#define SOS_ROOTFS "root=/dev/sda3 "
|
|
#define SOS_CONSOLE "console=ttyS0 "
|
|
#define SOS_COM1_BASE 0x3F8U
|
|
#define SOS_COM1_IRQ 4U
|
|
#define SOS_COM2_BASE 0x2F8U
|
|
#define SOS_COM2_IRQ 3U
|
|
|
|
#define SOS_BOOTARGS_DIFF "rw " \
|
|
"rootwait " \
|
|
"console=tty0 " \
|
|
"consoleblank=0 " \
|
|
"no_timer_check " \
|
|
"quiet " \
|
|
"loglevel=3 " \
|
|
"i915.nuclear_pageflip=1 " \
|
|
"hvlog=2M@0xe00000 " \
|
|
"memmap=0x200000$0xe00000 " \
|
|
"maxcpus=3"
|
|
|
|
#define VM0_CONFIG_CPU_AFFINITY (AFFINITY_CPU(3U))
|
|
|
|
#define SOS_VM_CONFIG_CPU_AFFINITY (AFFINITY_CPU(0U) | AFFINITY_CPU(1U) | AFFINITY_CPU(2U))
|
|
#define VM2_CONFIG_CPU_AFFINITY (AFFINITY_CPU(2U))
|
|
|
|
#ifdef CONFIG_RDT_ENABLED
|
|
|
|
/*
|
|
* The maximum CLOS that is allowed by ACRN hypervisor,
|
|
* its value is set to be least common Max CLOS (CPUID.(EAX=0x10,ECX=ResID):EDX[15:0])
|
|
* among all supported RDT resources in the platform. In other words, it is
|
|
* min(maximum CLOS of L2, L3 and MBA). This is done in order to have consistent
|
|
* CLOS allocations between all the RDT resources.
|
|
*/
|
|
#define HV_SUPPORTED_MAX_CLOS 0U
|
|
|
|
/*
|
|
* Max number of Cache Mask entries corresponding to each CLOS.
|
|
* This can vary if CDP is enabled vs disabled, as each CLOS entry
|
|
* will have corresponding cache mask values for Data and Code when
|
|
* CDP is enabled.
|
|
*/
|
|
#define MAX_MBA_CLOS_NUM_ENTRIES 0U
|
|
|
|
/* Max number of MBA delay entries corresponding to each CLOS. */
|
|
#define MAX_CACHE_CLOS_NUM_ENTRIES 0U
|
|
#endif
|
|
|
|
#define VM0_PASSTHROUGH_TPM
|
|
#define VM0_TPM_BUFFER_BASE_ADDR 0xFED40000UL
|
|
#define VM0_TPM_BUFFER_BASE_ADDR_GPA 0xFED40000UL
|
|
#define VM0_TPM_BUFFER_SIZE 0x5000UL
|
|
|
|
#define VM0_CONFIG_PCI_DEV_NUM 1U
|
|
|
|
|
|
#define VM0_PT_INTX_NUM 0U
|
|
|
|
#endif /* MISC_CFG_H */
|