X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=linux_module%2Fpalacios.h;h=d96739cae82a22c60d0ef96d560178b6b927251d;hp=cece0805cafd8f3989039b766791ae094303d330;hb=793f9cd53a472668dbeb16341085e5512484485c;hpb=639d38dc437f87b9eab6648074f7b3eb8800e5d7 diff --git a/linux_module/palacios.h b/linux_module/palacios.h index cece080..d96739c 100644 --- a/linux_module/palacios.h +++ b/linux_module/palacios.h @@ -10,6 +10,9 @@ /* Global Control IOCTLs */ #define V3_START_GUEST 10 #define V3_STOP_GUEST 11 +#define V3_CREATE_GUEST 12 +#define V3_FREE_GUEST 13 + #define V3_ADD_MEMORY 50 /* VM Specific IOCTLs */ @@ -19,6 +22,11 @@ #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 @@ -35,17 +43,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{ - uint16_t vcore_id; - uint16_t pcore_id; -}; + 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);