X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_usr%2Fv3_ctrl.h;h=442c2d9d484a2e07e4a4bbf1b349f27d99357e86;hb=0b342d28c860e4b3911b529f5363d35faa86aa25;hp=eb92d7dc183c4bb788ea35120fa9e2f4baf9f526;hpb=85e35050c4554c4807d96d037d9da18e7eb4c91b;p=palacios.git diff --git a/linux_usr/v3_ctrl.h b/linux_usr/v3_ctrl.h index eb92d7d..442c2d9 100644 --- a/linux_usr/v3_ctrl.h +++ b/linux_usr/v3_ctrl.h @@ -6,13 +6,24 @@ #ifndef _v3_ctrl_h #define _v3_ctrl_h -#define V3_START_GUEST 10 +#define V3_CREATE_GUEST 12 +#define V3_FREE_GUEST 13 + + +#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_ADD_MEMORY 50 -#define V3_START_NETWORK 60 #define V3_VM_CONSOLE_CONNECT 20 #define V3_VM_SERIAL_CONNECT 21 -#define V3_VM_STOP 22 + +#define V3_VM_MOVE_CORE 33 static const char * v3_dev = "/dev/v3vee"; @@ -20,12 +31,24 @@ 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)); #endif