mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
add CONFIG_VM0_DESC support
if defined CONFIG_VM0_DESC, HV will use predefined vm0_desc to config VM0, otherwise, HV will run VM0 with all physical cpus. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
#include <hypervisor.h>
|
||||
|
||||
#ifdef CONFIG_VM0_DESC
|
||||
|
||||
/* Number of CPUs in VM0 */
|
||||
#define VM0_NUM_CPUS 1
|
||||
|
||||
@@ -16,3 +18,9 @@ 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
|
||||
|
@@ -6,6 +6,8 @@
|
||||
|
||||
#include <hypervisor.h>
|
||||
|
||||
#ifdef CONFIG_VM0_DESC
|
||||
|
||||
/* Number of CPUs in VM0 */
|
||||
#define VM0_NUM_CPUS 1
|
||||
|
||||
@@ -16,3 +18,9 @@ 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