X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fvm.c;h=da9b460c9266c33f3e3eb2606ad0e3af5b11cf4a;hb=3a4199e3954eafb0f2ef886ca3a24a9cee391a43;hp=98693340d7454e374ebadc1d033399c7f2936cb5;hpb=0b342d28c860e4b3911b529f5363d35faa86aa25;p=palacios.git diff --git a/linux_module/vm.c b/linux_module/vm.c index 9869334..da9b460 100644 --- a/linux_module/vm.c +++ b/linux_module/vm.c @@ -130,7 +130,7 @@ static long v3_vm_ioctl(struct file * filp, case V3_VM_LAUNCH: { printk("palacios: launching vm\n"); - if (v3_start_vm(guest->v3_ctx, 0xfffffffe) < 0) { + if (v3_start_vm(guest->v3_ctx, (0x1 << num_online_cpus()) - 1) < 0) { printk("palacios: launch of vm failed\n"); return -1; } @@ -158,6 +158,13 @@ static long v3_vm_ioctl(struct file * filp, v3_continue_vm(guest->v3_ctx); break; } + case V3_VM_SIMULATE: { + printk("Simulating VM (%s) for %lu msecs\n", guest->name, arg); + v3_simulate_vm(guest->v3_ctx, arg); + break; + } + + #ifdef V3_CONFIG_CHECKPOINT case V3_VM_SAVE: { struct v3_chkpt_info chkpt;