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.


*** empty log message ***
[palacios.git] / palacios / src / palacios / svm_halt.c
diff --git a/palacios/src/palacios/svm_halt.c b/palacios/src/palacios/svm_halt.c
new file mode 100644 (file)
index 0000000..299421c
--- /dev/null
@@ -0,0 +1,25 @@
+#include <palacios/svm_halt.h>
+
+// From GeekOS
+void Yield(void);
+
+
+int handle_svm_halt(struct guest_info * info)
+{
+  // What we should do is starting waiting on an OS event that will
+  // result in an injection of an interrupt.
+
+  // What we will hackishly do instead is resume on any event
+  // Plus is this totally GeekOS specific
+
+  PrintDebug("GeekOS Yield\n");
+
+  Yield();
+
+  PrintDebug("GeekOS Yield Done\n");
+
+  info->rip+=1;
+
+  return 0;
+
+}