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.


Added memory ranges
[palacios.git] / palacios / src / geekos / svm.c
index 28ef40e..9f30c49 100644 (file)
@@ -48,7 +48,7 @@ void Init_SVM(struct vmm_ctrl_ops * vmm_ops) {
   void * host_state;
 
 
-  // setup 
+  // Enable SVM on the CPU
   Get_MSR(EFER_MSR, &(msr.e_reg.high), &(msr.e_reg.low));
   msr.e_reg.low |= EFER_MSR_svm_enable;
   Set_MSR(EFER_MSR, 0, msr.e_reg.low);
@@ -113,6 +113,16 @@ int start_svm_guest(struct guest_info *info) {
 
 
 
+/** 
+ *  We handle the svm exits here
+ *  This function should probably be moved to another file to keep things managable....
+ */
+int handle_svm_exit(struct VMM_GPRs guest_gprs) {
+
+  return 0;
+}
+
+
 vmcb_t * Allocate_VMCB() {
   vmcb_t * vmcb_page = (vmcb_t*)os_hooks->Allocate_Pages(1);