Skip to content

Commit 0c88f9b

Browse files
Sainath Grandhilijinxia
authored andcommitted
hv: Build mptable for OS in partition mode
This patch is an extension to the commit 6643adf. 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>
1 parent e40b998 commit 0c88f9b

File tree

1 file changed

+2
-0
lines changed
  • hypervisor/arch/x86/guest

1 file changed

+2
-0
lines changed

hypervisor/arch/x86/guest/vm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ int prepare_vm(uint16_t pcpu_id)
433433
ret = create_vm(vm_desc, &vm);
434434
ASSERT(ret == 0, "VM creation failed!");
435435

436+
mptable_build(vm);
437+
436438
prepare_vcpu(vm, vm_desc->vm_pcpu_ids[0]);
437439

438440
/* Prepare the AP for vm */

0 commit comments

Comments
 (0)