mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv:Remove CONFIG_VM0_DESC
If defined CONFIG_VM0_DESC, HV will use predefined vm0_desc to config VM0,now it is unneccessary, then remove these code. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -30,7 +30,6 @@ struct acpi_info {
|
||||
/**********************************/
|
||||
/* EXTERNAL VARIABLES */
|
||||
/**********************************/
|
||||
extern struct vm_description vm0_desc;
|
||||
extern struct acpi_info host_acpi_info;
|
||||
|
||||
/* BSP Interfaces */
|
||||
|
@@ -1,26 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <hypervisor.h>
|
||||
|
||||
#if defined(CONFIG_VM0_DESC) && !defined(CONFIG_PARTITION_MODE)
|
||||
|
||||
/* Number of CPUs in VM0 */
|
||||
#define VM0_NUM_CPUS 1
|
||||
|
||||
/* Logical CPU IDs assigned to VM0 */
|
||||
uint16_t VM0_CPUS[VM0_NUM_CPUS] = {0U};
|
||||
|
||||
struct vm_description vm0_desc = {
|
||||
.vm_hw_num_cores = VM0_NUM_CPUS,
|
||||
.vm_pcpu_ids = &VM0_CPUS[0],
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
struct vm_description vm0_desc;
|
||||
|
||||
#endif // CONFIG_VM0_DESC
|
@@ -1,26 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <hypervisor.h>
|
||||
|
||||
#ifdef CONFIG_VM0_DESC
|
||||
|
||||
/* Number of CPUs in VM0 */
|
||||
#define VM0_NUM_CPUS 1
|
||||
|
||||
/* Logical CPU IDs assigned to VM0 */
|
||||
uint16_t VM0_CPUS[VM0_NUM_CPUS] = {0U};
|
||||
|
||||
struct vm_description vm0_desc = {
|
||||
.vm_hw_num_cores = VM0_NUM_CPUS,
|
||||
.vm_pcpu_ids = &VM0_CPUS[0],
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
struct vm_description vm0_desc;
|
||||
|
||||
#endif // CONFIG_VM0_DESC
|
Reference in New Issue
Block a user