hv: Build mptable for OS in partition mode

This patch is an extension to the commit 6643adff8b.
It uses the mptable API to build mptable for each VM booted by ACRN in partition mode.

Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
Sainath Grandhi 2018-08-09 10:08:38 -07:00 committed by lijinxia
parent e40b998d21
commit 0c88f9b800

View File

@ -433,6 +433,8 @@ int prepare_vm(uint16_t pcpu_id)
ret = create_vm(vm_desc, &vm);
ASSERT(ret == 0, "VM creation failed!");
mptable_build(vm);
prepare_vcpu(vm, vm_desc->vm_pcpu_ids[0]);
/* Prepare the AP for vm */