hv:Replace dynamic memory with static for vm

-- Replace dynamic memory allocation with static memory
-- Remove the parameter check if the vm is NULL

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-26 11:24:38 +08:00
committed by wenlingz
parent ff3f9bd1e6
commit b8e59e1638
7 changed files with 40 additions and 60 deletions

View File

@@ -19,7 +19,6 @@ static void fire_vhm_interrupt(void)
struct vcpu *vcpu;
vm0 = get_vm_from_vmid(0U);
ASSERT(vm0 != NULL, "VM Pointer is NULL");
vcpu = vcpu_from_vid(vm0, 0U);
ASSERT(vcpu != NULL, "vcpu_from_vid failed");