2018-03-07 20:57:14 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
|
|
*
|
2018-05-26 01:49:13 +08:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2018-03-07 20:57:14 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <hypervisor.h>
|
|
|
|
|
2018-05-30 20:06:26 +08:00
|
|
|
#ifdef CONFIG_VM0_DESC
|
|
|
|
|
2018-03-07 20:57:14 +08:00
|
|
|
/* Number of CPUs in VM0 */
|
|
|
|
#define VM0_NUM_CPUS 1
|
|
|
|
|
|
|
|
/* Logical CPU IDs assigned to VM0 */
|
2018-07-13 11:43:29 +08:00
|
|
|
uint16_t VM0_CPUS[VM0_NUM_CPUS] = {0U};
|
2018-03-07 20:57:14 +08:00
|
|
|
|
2018-05-28 14:51:24 +08:00
|
|
|
struct vm_description vm0_desc = {
|
|
|
|
.vm_hw_num_cores = VM0_NUM_CPUS,
|
2018-07-13 11:43:29 +08:00
|
|
|
.vm_pcpu_ids = &VM0_CPUS[0],
|
2018-03-07 20:57:14 +08:00
|
|
|
};
|
2018-05-30 20:06:26 +08:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
struct vm_description vm0_desc;
|
|
|
|
|
|
|
|
#endif // CONFIG_VM0_DESC
|