mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv: Boot multiple OS for Partitioning mode ACRN
ACRN in partitioning mode boots multiple OS. Adding code to parse VM description structure and a reference description structure for booting 2 OSes. Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
committed by
lijinxia
parent
5e32c0227f
commit
ff96453993
@@ -170,7 +170,9 @@ struct vm_description {
|
||||
/* Whether secure world is enabled for current VM. */
|
||||
bool sworld_enabled;
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
uint8_t vm_id;
|
||||
struct mptable_info *mptable;
|
||||
const char *bootargs;
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -191,4 +193,16 @@ struct vm *get_vm_from_vmid(uint16_t vm_id);
|
||||
extern struct list_head vm_list;
|
||||
extern spinlock_t vm_list_lock;
|
||||
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
struct vm_description_array {
|
||||
int num_vm_desc;
|
||||
const struct vm_description vm_desc_array[];
|
||||
};
|
||||
|
||||
struct pcpu_vm_desc_mapping {
|
||||
const struct vm_descriptin *vm_desc_ptr;
|
||||
bool is_bsp;
|
||||
};
|
||||
extern const struct pcpu_vm_desc_mapping pcpu_vm_desc_map[];
|
||||
#endif
|
||||
#endif /* VM_H_ */
|
||||
|
Reference in New Issue
Block a user