4 #include <linux/cdev.h>
5 #include <linux/list.h>
6 #include <linux/sched.h>
7 #include <linux/slab.h>
10 /* Global Control IOCTLs */
11 #define V3_START_GUEST 10
12 #define V3_ADD_MEMORY 50
14 /* VM Specific IOCTLs */
15 #define V3_VM_CONSOLE_CONNECT 20
18 #define V3_VM_PAUSE 23
19 #define V3_VM_CONTINUE 24
21 #define V3_VM_INSPECT 30
23 #define V3_VM_MOVE_CORE 33
25 #define V3_VM_FB_INPUT (256+1)
26 #define V3_VM_FB_QUERY (256+2)
28 #define V3_VM_HOST_DEV_CONNECT (10244+1)
30 #define V3_VM_KSTREAM_USER_CONNECT (11244+1)
34 unsigned long long size;
39 struct v3_mem_region {
40 unsigned long long base_addr;
41 unsigned long long num_pages;
44 struct v3_core_move_cmd{
50 void * trace_malloc(size_t size, gfp_t flags);
51 void trace_free(const void * objp);
63 struct rb_root vm_ctrls;
64 struct list_head exts;
66 struct completion start_done;
67 struct completion thread_done;
73 // For now MAX_VMS must be a multiple of 8
74 // This is due to the minor number bitmap
79 int palacios_vmm_init( void );
80 int palacios_vmm_exit( void );