X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm.c;h=536f7dae5a12c14e92bde87e40e27c9fcfc0808e;hp=27edd92ac677bf2c79b4cca6e1658a59eae0a081;hb=4290e5f20a4ea5e5f32cb8228ac4d7446dc1021b;hpb=cd012ba87f57c1c694038f1a17f249f90f9a2be8 diff --git a/palacios/src/palacios/vmm.c b/palacios/src/palacios/vmm.c index 27edd92..536f7da 100644 --- a/palacios/src/palacios/vmm.c +++ b/palacios/src/palacios/vmm.c @@ -196,3 +196,27 @@ void v3_interrupt_cpu(struct guest_info * info, int logical_cpu) { (os_hooks)->interrupt_cpu(info, logical_cpu); } } + + + +int v3_vm_enter(struct guest_info * info) { + switch (v3_cpu_types[info->cpu_id]) { +#ifdef CONFIG_SVM + case V3_SVM_CPU: + case V3_SVM_REV3_CPU: + v3_svm_enter(info); + break; +#endif +#if CONFIG_VMX && 0 + case V3_VMX_CPU: + case V3_VMX_EPT_CPU: + v3_vmx_enter(info); + break; +#endif + default: + PrintError("Attemping to enter a guest on an invalid CPU\n"); + return -1; + } + + return 0; +}