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 barrier synchronization and integrated it with pause/continue functionality
[palacios.git] / linux_module / vm.c
index 852733c..967ecf6 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);