Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


initial SVM guest running
[palacios.git] / palacios / src / geekos / vmm.c
index a162af9..e081816 100644 (file)
@@ -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,12 @@ 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();
+
+    vmm_ops->init_guest = &init_svm_guest;
+    vmm_ops->start_guest = &start_svm_guest;
+
   } else if (is_vmx_capable()) {
     vmm_cpu_type = VMM_VMX_CPU;
     PrintDebug("Machine is VMX Capable\n");
@@ -30,3 +38,6 @@ void Init_VMM(struct vmm_os_hooks * hooks) {
     PrintDebug("CPU has no virtualization Extensions\n");
   }
 }
+
+
+