From: Jack Lange Date: Wed, 12 Jan 2011 00:15:47 +0000 (-0600) Subject: VMCB address space fix for free X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe719150440abe776a01faed02a2e40bed8029f9;hp=4a9377be280dd8f2c298fd845d63728650a1060f;p=palacios.git VMCB address space fix for free --- diff --git a/palacios/src/palacios/svm.c b/palacios/src/palacios/svm.c index f59bdc7..3bde027 100644 --- a/palacios/src/palacios/svm.c +++ b/palacios/src/palacios/svm.c @@ -291,7 +291,7 @@ static void Init_VMCB_BIOS(vmcb_t * vmcb, struct guest_info * core) { int v3_init_svm_vmcb(struct guest_info * core, v3_vm_class_t vm_class) { PrintDebug("Allocating VMCB\n"); - core->vmm_data = (void*)Allocate_VMCB(); + core->vmm_data = (void *)Allocate_VMCB(); if (core->vmm_data == NULL) { PrintError("Could not allocate VMCB, Exiting...\n"); @@ -311,7 +311,7 @@ int v3_init_svm_vmcb(struct guest_info * core, v3_vm_class_t vm_class) { int v3_deinit_svm_vmcb(struct guest_info * core) { - V3_FreePages(core->vmm_data, 1); + V3_FreePages(V3_PAddr(core->vmm_data), 1); return 0; } diff --git a/palacios/src/palacios/vm_guest.c b/palacios/src/palacios/vm_guest.c index 0fc8018..9c37b6f 100644 --- a/palacios/src/palacios/vm_guest.c +++ b/palacios/src/palacios/vm_guest.c @@ -529,6 +529,14 @@ int v3_init_vm(struct v3_vm_info * vm) { return 0; } + +int v3_free_vm_internal(struct v3_vm_info * vm) { + + + return 0; +} + + int v3_init_core(struct guest_info * core) { v3_cpu_arch_t cpu_type = v3_get_cpu_type(V3_Get_CPU()); struct v3_vm_info * vm = core->vm_info; @@ -635,8 +643,3 @@ int v3_free_core(struct guest_info * core) { -int v3_free_vm_internal(struct v3_vm_info * vm) { - - - return 0; -}