From 0c88f9b8000fa0447bdfee0db43b6893c0e66a8d Mon Sep 17 00:00:00 2001 From: Sainath Grandhi Date: Thu, 9 Aug 2018 10:08:38 -0700 Subject: [PATCH] hv: Build mptable for OS in partition mode This patch is an extension to the commit 6643adff8bfa05139992dfa1af7d129f8782b2e9. It uses the mptable API to build mptable for each VM booted by ACRN in partition mode. Signed-off-by: Sainath Grandhi --- hypervisor/arch/x86/guest/vm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypervisor/arch/x86/guest/vm.c b/hypervisor/arch/x86/guest/vm.c index 1ade43b5d..e442b5cf2 100644 --- a/hypervisor/arch/x86/guest/vm.c +++ b/hypervisor/arch/x86/guest/vm.c @@ -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 */