#include <palacios/vmm_barrier.h>
#include <palacios/vmm_debug.h>
+#ifdef V3_CONFIG_MEM_TRACK
+#include <palacios/vmm_mem_track.h>
+#endif
+
v3_cpu_mode_t v3_get_vm_cpu_mode(struct guest_info * info) {
struct cr0_32 * cr0;
return -1;
}
+#ifdef V3_CONFIG_MEM_TRACK
+ v3_mem_track_init(vm);
+#endif
+
v3_init_time_vm(vm);
v3_init_vm_debugging(vm);
v3_remove_hypercall(vm, GUEST_INFO_HCALL);
+#ifdef V3_CONFIG_HVM
+ v3_deinit_hvm_vm(vm);
+#endif
+
+#ifdef V3_CONFIG_MULTIBOOT
+ v3_deinit_multiboot_vm(vm);
+#endif
+
#ifdef V3_CONFIG_SYMBIOTIC
v3_deinit_symbiotic_vm(vm);
v3_deinit_telemetry(vm);
#endif
+
v3_deinit_events(vm);
+#ifdef V3_CONFIG_MEM_TRACK
+ v3_mem_track_deinit(vm);
+#endif
+
v3_fw_cfg_deinit(vm);
v3_deinit_symbiotic_core(core);
#endif
+#ifdef V3_CONFIG_HVM
+ v3_deinit_hvm_core(core);
+#endif
+
+#ifdef V3_CONFIG_MULTIBOOT
+ v3_deinit_multiboot_core(core);
+#endif
+
v3_deinit_decoder(core);
v3_deinit_intr_controllers(core);
v3_deinit_core_telemetry(core);
#endif
+
switch (v3_mach_type) {
#ifdef V3_CONFIG_SVM
case V3_SVM_CPU: