mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
HV: rename nuc7i7bnh to nuc7i7dnb
NUC7i7BNH is not a board name but a product name of KBL NUC, and it is outdated to support LOGICAL_PARTITION scenario and HYBRID scenario. NUC7i7DNH is the product name of KBL NUC that ACRN currently supported, but its official board name is NUC7i7DNB, so change the folder name from "nuc7i7bnh" to "nuc7i7dnb" under arch/x86/configs/. Please refer more details on below documentation: Intel® NUC Board/Kit NUC7i7DN Technical Product Specification Tracked-On: #3446 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
This commit is contained in:
10
hypervisor/arch/x86/configs/nuc7i7dnb/board.c
Normal file
10
hypervisor/arch/x86/configs/nuc7i7dnb/board.c
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
|
||||
struct platform_clos_info platform_clos_array[0];
|
||||
uint16_t platform_clos_num = 0;
|
||||
22
hypervisor/arch/x86/configs/nuc7i7dnb/misc_cfg.h
Normal file
22
hypervisor/arch/x86/configs/nuc7i7dnb/misc_cfg.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef MISC_CFG_H
|
||||
#define MISC_CFG_H
|
||||
|
||||
#define ROOTFS_0 "root=/dev/sda3 "
|
||||
#define ROOTFS_1 "root=/dev/nvme0n1p3 "
|
||||
|
||||
#define SOS_ROOTFS ROOTFS_0
|
||||
#define SOS_CONSOLE "console=ttyS0 "
|
||||
|
||||
#ifndef CONFIG_RELEASE
|
||||
#define SOS_BOOTARGS_DIFF "hvlog=2M@0x1FE00000"
|
||||
#else
|
||||
#define SOS_BOOTARGS_DIFF ""
|
||||
#endif
|
||||
|
||||
#endif /* MISC_CFG_H */
|
||||
15
hypervisor/arch/x86/configs/nuc7i7dnb/pci_devices.h
Normal file
15
hypervisor/arch/x86/configs/nuc7i7dnb/pci_devices.h
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef PCI_DEVICES_H_
|
||||
#define PCI_DEVICES_H_
|
||||
|
||||
#define HOST_BRIDGE .pbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U}
|
||||
#define SATA_CONTROLLER_0 .pbdf.bits = {.b = 0x00U, .d = 0x17U, .f = 0x00U}
|
||||
#define USB_CONTROLLER_0 .pbdf.bits = {.b = 0x00U, .d = 0x14U, .f = 0x00U}
|
||||
#define ETHERNET_CONTROLLER_0 .pbdf.bits = {.b = 0x00U, .d = 0x1fU, .f = 0x06U}
|
||||
|
||||
#endif /* PCI_DEVICES_H_ */
|
||||
49
hypervisor/arch/x86/configs/nuc7i7dnb/ve820.c
Normal file
49
hypervisor/arch/x86/configs/nuc7i7dnb/ve820.c
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <e820.h>
|
||||
#include <vm.h>
|
||||
|
||||
#define VE820_ENTRIES_KBL_NUC_i7 5U
|
||||
static const struct e820_entry ve820_entry[VE820_ENTRIES_KBL_NUC_i7] = {
|
||||
{ /* usable RAM under 1MB */
|
||||
.baseaddr = 0x0UL,
|
||||
.length = 0xF0000UL, /* 960KB */
|
||||
.type = E820_TYPE_RAM
|
||||
},
|
||||
|
||||
{ /* mptable */
|
||||
.baseaddr = 0xF0000UL, /* 960KB */
|
||||
.length = 0x10000UL, /* 16KB */
|
||||
.type = E820_TYPE_RESERVED
|
||||
},
|
||||
|
||||
{ /* lowmem */
|
||||
.baseaddr = 0x100000UL, /* 1MB */
|
||||
.length = 0x1FF00000UL, /* 511MB */
|
||||
.type = E820_TYPE_RAM
|
||||
},
|
||||
|
||||
{ /* between lowmem and PCI hole */
|
||||
.baseaddr = 0x20000000UL, /* 512MB */
|
||||
.length = 0xA0000000UL, /* 2560MB */
|
||||
.type = E820_TYPE_RESERVED
|
||||
},
|
||||
|
||||
{ /* between PCI hole and 4GB */
|
||||
.baseaddr = 0xe0000000UL, /* 3.5GB */
|
||||
.length = 0x20000000UL, /* 512MB */
|
||||
.type = E820_TYPE_RESERVED
|
||||
},
|
||||
};
|
||||
/**
|
||||
* @pre vm != NULL
|
||||
*/
|
||||
void create_prelaunched_vm_e820(struct acrn_vm *vm)
|
||||
{
|
||||
vm->e820_entry_num = VE820_ENTRIES_KBL_NUC_i7;
|
||||
vm->e820_entries = ve820_entry;
|
||||
}
|
||||
Reference in New Issue
Block a user