X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm.c;h=6257294a8a5435284d14d3557e807e6af43116ed;hb=3650bf4aaa4f83afae52c8fee98fce6e3ee68deb;hp=f9e07dfb088967f6065d879f0c9a1a1d29833eae;hpb=f2474c56a820b000ed444cb31c487d67aaf212c5;p=palacios.git diff --git a/palacios/src/palacios/vmm.c b/palacios/src/palacios/vmm.c index f9e07df..6257294 100644 --- a/palacios/src/palacios/vmm.c +++ b/palacios/src/palacios/vmm.c @@ -154,6 +154,10 @@ void Init_V3(struct v3_os_hooks * hooks, char * cpu_mask, int num_cpus, char *op // Parse host-os defined options into an easily-accessed format. v3_parse_options(options); +#ifdef V3_CONFIG_MULTIBOOT + v3_init_multiboot(); +#endif + #ifdef V3_CONFIG_HVM v3_init_hvm(); #endif @@ -263,6 +267,10 @@ void Shutdown_V3() { v3_deinit_hvm(); #endif +#ifdef V3_CONFIG_MULTIBOOT + v3_deinit_multiboot(); +#endif + v3_deinit_options(); @@ -385,6 +393,12 @@ int v3_start_vm(struct v3_vm_info * vm, unsigned int cpu_mask) { return -1; } +#if V3_CONFIG_MULTIBOOT + if (v3_setup_multiboot_vm_for_boot(vm)) { + PrintError(vm, VCORE_NONE, "Multiboot setup for boot failed\n"); + return -1; + } +#endif #if V3_CONFIG_HVM if (v3_setup_hvm_vm_for_boot(vm)) { PrintError(vm, VCORE_NONE, "HVM setup for boot failed\n"); @@ -616,7 +630,7 @@ int v3_move_vm_mem(struct v3_vm_info * vm, void *gpa, int target_cpu) { new_hpa = V3_AllocPagesExtended(num_pages, PAGE_SIZE_4KB, new_node, - 0); // no constraints given new shadow pager impl + 0, 0); // no constraints given new shadow pager impl if (!new_hpa) { PrintError(vm, VCORE_NONE, "Cannot allocate memory for new base region...\n");