hv: sw_loader for VMs in ACRN partition mode

ACRN in partition mode needs to boot VMs from HV. This patch make ACRN
treat all VMs in the same way (as vm0)  w.r.t. setting up the guest memory
for kernel, bootargs and zeropage

Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
Sainath Grandhi 2018-08-16 00:27:45 -07:00 committed by wenlingz
parent fce586220f
commit 0c93a1388c
1 changed files with 3 additions and 0 deletions

View File

@ -128,10 +128,13 @@ int general_sw_loader(struct vm *vm, struct vcpu *vcpu)
pr_dbg("Loading guest to run-time location");
/* ACRN in partiton mode boots all VMs without devicemodel */
#ifndef CONFIG_PARTITION_MODE
/* FIXME: set config according to predefined offset */
if (!is_vm0(vm)) {
return load_guest(vm, vcpu);
}
#endif
/* calculate the kernel entry point */
zeropage = (struct zero_page *)sw_kernel->kernel_src_addr;