X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fpalacios.h;h=5eca55d4702a377161273be9fdf3e494e3105749;hb=0b342d28c860e4b3911b529f5363d35faa86aa25;hp=8730346fe2edb485fe6c1eb297c4f8186d50ea4c;hpb=1c4d4772663c7bb6ddf78db445a27b92c58b8fad;p=palacios.git diff --git a/linux_module/palacios.h b/linux_module/palacios.h index 8730346..5eca55d 100644 --- a/linux_module/palacios.h +++ b/linux_module/palacios.h @@ -8,16 +8,27 @@ /* Global Control IOCTLs */ -#define V3_START_GUEST 10 +#define V3_CREATE_GUEST 12 +#define V3_FREE_GUEST 13 + #define V3_ADD_MEMORY 50 /* VM Specific IOCTLs */ #define V3_VM_CONSOLE_CONNECT 20 -#define V3_VM_STOP 22 + +#define V3_VM_PAUSE 23 +#define V3_VM_CONTINUE 24 + +#define V3_VM_LAUNCH 25 +#define V3_VM_STOP 26 +#define V3_VM_LOAD 27 +#define V3_VM_SAVE 28 #define V3_VM_INSPECT 30 +#define V3_VM_MOVE_CORE 33 + #define V3_VM_FB_INPUT (256+1) #define V3_VM_FB_QUERY (256+2) @@ -30,12 +41,23 @@ struct v3_guest_img { unsigned long long size; void * guest_data; char name[128]; -}; +} __attribute__((packed)); struct v3_mem_region { unsigned long long base_addr; unsigned long long num_pages; -}; +} __attribute__((packed)); + +struct v3_core_move_cmd{ + unsigned short vcore_id; + unsigned short pcore_id; +} __attribute__((packed)); + +struct v3_chkpt_info { + char store[128]; + char url[256]; /* This might need to be bigger... */ +} __attribute__((packed)); + void * trace_malloc(size_t size, gfp_t flags); @@ -54,9 +76,6 @@ struct v3_guest { struct rb_root vm_ctrls; struct list_head exts; - struct completion start_done; - struct completion thread_done; - dev_t vm_dev; struct cdev cdev; };