X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fvmm.c;h=b1ff42a222d0beeed4318196baa1f4eab4c75375;hp=70f51561a7717290798b8fa93fa277cff42101a5;hb=01e2bfdc462dbbe8d62b71c7e99e198c27844f0f;hpb=72a450936e2da159d5febe1e96475493badd9070 diff --git a/palacios/src/geekos/vmm.c b/palacios/src/geekos/vmm.c index 70f5156..b1ff42a 100644 --- a/palacios/src/geekos/vmm.c +++ b/palacios/src/geekos/vmm.c @@ -2,22 +2,31 @@ #include #include + uint_t vmm_cpu_type; -void Init_VMM() { + +struct vmm_os_hooks * os_hooks = NULL; + + +void Init_VMM(struct vmm_os_hooks * hooks) { vmm_cpu_type = VMM_INVALID_CPU; + os_hooks = hooks; + + PrintDebug("sizeof ullong_t: %d\n", sizeof(ullong_t)); + if (is_svm_capable()) { vmm_cpu_type = VMM_SVM_CPU; - Print("Machine is SVM Capable\n"); + PrintDebug("Machine is SVM Capable\n"); Init_SVM(); } else if (is_vmx_capable()) { vmm_cpu_type = VMM_VMX_CPU; - Print("Machine is VMX Capable\n"); + PrintDebug("Machine is VMX Capable\n"); Init_VMX(); } else { - PrintBoth("CPU has no virtualization Extensions\n"); + PrintDebug("CPU has no virtualization Extensions\n"); } }