mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
If HV relocation is enabled, either ACRN efi-stub or GRUB relocates hypervisor image above HPA 256MB, thus we put hvlog and ramoops buffer under 256MB to avoid conflict with hypervisor owned address. This patch hardcodes these addresses: 0xa00000 - 0xdfffff: 4MiB for ramoops buffer 0xe00000 - 0xffffff: 2MiB for hvlog buffer However, user can customize them to other addresses as long as it's under 256MB, available in host e820, and SOS bootarg "nokaslr" is not specified. If HV relocation is disabled, need to make sure that these buffer addresses are not between HV_RAM_START and HV_RAM_START + HV_RAM_SIZE. Tracked-On: #4760 Signed-off-by: Zide Chen <zide.chen@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
37 lines
719 B
C
37 lines
719 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
|
|
#ifndef MISC_CFG_H
|
|
#define MISC_CFG_H
|
|
|
|
#define MAX_PCPU_NUM 4U
|
|
#define MAX_PLATFORM_CLOS_NUM 0U
|
|
|
|
#define ROOTFS_0 "root=/dev/nvme0n1p3 "
|
|
#define ROOTFS_1 "root=/dev/sda3 "
|
|
|
|
#define SOS_ROOTFS ROOTFS_1
|
|
#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
|
|
|
|
#ifndef CONFIG_RELEASE
|
|
#define SOS_BOOTARGS_DIFF "hvlog=2M@0xE00000 memmap=0x200000$0xE00000 "
|
|
#else
|
|
#define SOS_BOOTARGS_DIFF ""
|
|
#endif
|
|
|
|
#define MAX_HIDDEN_PDEVS_NUM 0U
|
|
|
|
#define HI_MMIO_START ~0UL
|
|
#define HI_MMIO_END 0UL
|
|
|
|
|
|
#endif /* MISC_CFG_H */
|