hv: Remove vm_list

Loop the global vm_array[] instead of the vm_list.

Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Mingqiang Chi
2018-09-27 14:15:32 +08:00
committed by wenlingz
parent b8e59e1638
commit eff2ac7a90
3 changed files with 26 additions and 56 deletions

View File

@@ -139,7 +139,6 @@ struct vm {
struct acrn_vuart vuart; /* Virtual UART */
enum vpic_wire_mode wire_mode;
struct iommu_domain *iommu; /* iommu domain of this VM */
struct list_head list; /* list of VM */
spinlock_t spinlock; /* Spin-lock used to protect VM modifications */
struct list_head mmio_list; /* list for mmio. This list is not updated
@@ -279,9 +278,6 @@ const struct vm_description_array *get_vm_desc_base(void);
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;