mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
hv: remove vm_description_array
When we create an UOS, we didn't indicate the vmid. Thus we can't get the vm description for the vm description array. Instead we use a temporary vm description to save data to fill the vm structure when crate an UOS. It's uselesss once UOS has created. So we don't need to maintain vm description array here for UOS. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#ifndef VM_H_
|
||||
#define VM_H_
|
||||
#include <bsp_extern.h>
|
||||
|
||||
enum vm_privilege_level {
|
||||
VM_PRIVILEGE_LEVEL_HIGH = 0,
|
||||
@@ -209,11 +210,6 @@ struct vm_description {
|
||||
bool sworld_enabled;
|
||||
};
|
||||
|
||||
struct vm_description_array {
|
||||
int num_vm_desc;
|
||||
struct vm_description vm_desc_array[];
|
||||
};
|
||||
|
||||
int shutdown_vm(struct vm *vm);
|
||||
int pause_vm(struct vm *vm);
|
||||
int start_vm(struct vm *vm);
|
||||
@@ -222,7 +218,6 @@ int prepare_vm0(void);
|
||||
void vm_fixup(struct vm *vm);
|
||||
|
||||
struct vm *get_vm_from_vmid(int vm_id);
|
||||
struct vm_description *get_vm_desc(int idx);
|
||||
|
||||
extern struct list_head vm_list;
|
||||
extern spinlock_t vm_list_lock;
|
||||
|
Reference in New Issue
Block a user