mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-06 02:35:10 +00:00
HV: add generic board config
hypervisor/arch/x86/configs/($CONFIG_BOARD) will store Board specific configs, add a generic folder to store configs for generic boards that they can share one build binary with minimal and common features in some scenarios like SDC. Please be aware that BDF of pci devices are different on each board, so one binary for LOGICAL_PARTITION scenario is not supported. Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
ae07844717
commit
6378b74db4
3
hypervisor/arch/x86/configs/generic.config
Normal file
3
hypervisor/arch/x86/configs/generic.config
Normal file
@ -0,0 +1,3 @@
|
||||
# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
|
||||
CONFIG_BOARD="generic"
|
||||
CONFIG_SERIAL_LEGACY=y
|
10
hypervisor/arch/x86/configs/generic/board.c
Normal file
10
hypervisor/arch/x86/configs/generic/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;
|
12
hypervisor/arch/x86/configs/generic/pci_devices.h
Normal file
12
hypervisor/arch/x86/configs/generic/pci_devices.h
Normal file
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef PCI_DEVICES_H_
|
||||
#define PCI_DEVICES_H_
|
||||
|
||||
#error "This is a dummy pci_devices.h, please generate PCI BDF info for your board."
|
||||
|
||||
#endif /* PCI_DEVICES_H_ */
|
16
hypervisor/arch/x86/configs/generic/ve820.c
Normal file
16
hypervisor/arch/x86/configs/generic/ve820.c
Normal file
@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <vm.h>
|
||||
|
||||
/**
|
||||
* @pre vm != NULL
|
||||
*/
|
||||
void create_prelaunched_vm_e820(struct acrn_vm *vm)
|
||||
{
|
||||
vm->e820_entry_num = 0U;
|
||||
vm->e820_entries = NULL;
|
||||
}
|
Loading…
Reference in New Issue
Block a user