X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm.c;h=b103c324f3e5ffed721e80e0764b0e3dc6078ed4;hb=d11d67ed4a0554803379bfc13002fa2ec0e14cb5;hp=9ac1597fdf208071b62f56f57aafcfcb003a2bc3;hpb=a1e0475bbefa968791679c5e71232ddca522868b;p=palacios.git diff --git a/palacios/src/palacios/vmm.c b/palacios/src/palacios/vmm.c index 9ac1597..b103c32 100644 --- a/palacios/src/palacios/vmm.c +++ b/palacios/src/palacios/vmm.c @@ -4,13 +4,14 @@ #include #include #include +#include v3_cpu_arch_t v3_cpu_type; struct vmm_os_hooks * os_hooks = NULL; -void * allocate_guest() { +struct guest_info * allocate_guest() { void * info = V3_Malloc(sizeof(struct guest_info)); memset(info, 0, sizeof(struct guest_info)); return info; @@ -23,6 +24,8 @@ void Init_V3(struct vmm_os_hooks * hooks, struct vmm_ctrl_ops * vmm_ops) { v3_cpu_type = V3_INVALID_CPU; + init_decoder(); + if (is_svm_capable()) { PrintDebug("Machine is SVM Capable\n");