X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fvmm.c;h=9350cf01e7d020d086e99b6995ee71316d91d2aa;hb=7cb3bd8e4ed31b20163a79f2dd413ef45583dee7;hp=a162af95618498ae75ebf36edf4233e921ff5c83;hpb=828663cb96cc49aaf75ac091f191daac2733003e;p=palacios.git diff --git a/palacios/src/geekos/vmm.c b/palacios/src/geekos/vmm.c index a162af9..9350cf0 100644 --- a/palacios/src/geekos/vmm.c +++ b/palacios/src/geekos/vmm.c @@ -11,7 +11,10 @@ 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 +24,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"); @@ -30,3 +35,6 @@ void Init_VMM(struct vmm_os_hooks * hooks) { PrintDebug("CPU has no virtualization Extensions\n"); } } + + +