X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvm_guest.c;h=d325e6b09c2d946151878ec9b67faf83459ce946;hp=acbb11ecdd2a15f54b40f445d5b9a8eb0259f242;hb=60ad6a41c6d0ee08ed689e8505eb0c3df0c2a289;hpb=d240aa16811174593dc6e6ca9c796db05948c353 diff --git a/palacios/src/palacios/vm_guest.c b/palacios/src/palacios/vm_guest.c index acbb11e..d325e6b 100644 --- a/palacios/src/palacios/vm_guest.c +++ b/palacios/src/palacios/vm_guest.c @@ -318,6 +318,9 @@ int v3_free_vm_internal(struct v3_vm_info * vm) { v3_remove_hypercall(vm, GUEST_INFO_HCALL); +#ifdef V3_CONFIG_HVM + v3_deinit_hvm_vm(vm); +#endif #ifdef V3_CONFIG_SYMBIOTIC v3_deinit_symbiotic_vm(vm); @@ -377,9 +380,6 @@ int v3_free_vm_internal(struct v3_vm_info * vm) { v3_deinit_telemetry(vm); #endif -#ifdef V3_CONFIG_HVM - v3_deinit_hvm_vm(vm); -#endif v3_deinit_events(vm); @@ -470,6 +470,10 @@ int v3_free_core(struct guest_info * core) { v3_deinit_symbiotic_core(core); #endif +#ifdef V3_CONFIG_HVM + v3_deinit_hvm_core(core); +#endif + v3_deinit_decoder(core); v3_deinit_intr_controllers(core); @@ -488,9 +492,6 @@ int v3_free_core(struct guest_info * core) { v3_deinit_core_telemetry(core); #endif -#ifdef V3_CONFIG_HVM - v3_deinit_hvm_core(core); -#endif switch (v3_mach_type) { #ifdef V3_CONFIG_SVM