X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fvmm.c;h=ab9a5f6ce9efcd016decd2eedef9774d7ccb9db4;hb=b85f79b8030114370851ed3422c078debe630570;hp=a162af95618498ae75ebf36edf4233e921ff5c83;hpb=828663cb96cc49aaf75ac091f191daac2733003e;p=palacios.releases.git diff --git a/palacios/src/geekos/vmm.c b/palacios/src/geekos/vmm.c index a162af9..ab9a5f6 100644 --- a/palacios/src/geekos/vmm.c +++ b/palacios/src/geekos/vmm.c @@ -11,7 +11,8 @@ uint_t vmm_cpu_type; struct vmm_os_hooks * os_hooks = NULL; -void Init_VMM(struct vmm_os_hooks * hooks) { + +void Init_VMM(struct vmm_os_hooks * hooks, struct vmm_ctrl_ops * vmm_ops) { vmm_cpu_type = VMM_INVALID_CPU; os_hooks = hooks; @@ -21,7 +22,9 @@ void Init_VMM(struct vmm_os_hooks * hooks) { if (is_svm_capable()) { vmm_cpu_type = VMM_SVM_CPU; PrintDebug("Machine is SVM Capable\n"); - Init_SVM(); + + Init_SVM(vmm_ops); + } else if (is_vmx_capable()) { vmm_cpu_type = VMM_VMX_CPU; PrintDebug("Machine is VMX Capable\n");