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.


various minor bug fixes
[palacios.git] / linux_module / vm.c
index 852733c..00111fc 100644 (file)
@@ -129,10 +129,20 @@ static long v3_vm_ioctl(struct file * filp,
     switch (ioctl) {
 
        case V3_VM_STOP: {
-           printk("Stopping VM\n");
+           printk("Stopping VM (%s)\n", guest->name);
            stop_palacios_vm(guest);
            break;
        }
+       case V3_VM_PAUSE: {
+           printk("Pausing VM (%s)\n", guest->name);
+           v3_pause_vm(guest->v3_ctx);
+           break;
+       }
+       case V3_VM_CONTINUE: {
+           printk("Continuing VM (%s)\n", guest->name);
+           v3_continue_vm(guest->v3_ctx);
+           break;
+       }
 
        default: {
            struct vm_ctrl * ctrl = get_ctrl(guest, ioctl);
@@ -264,7 +274,7 @@ int stop_palacios_vm(struct v3_guest * guest) {
 
     cdev_del(&(guest->cdev));
 
-    kfree(guest->img);
+    vfree(guest->img);
     kfree(guest);
 
     return 0;