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
13 #define V3_START_NETWORK 60
15 /* VM Specific IOCTLs */
16 #define V3_VM_CONSOLE_CONNECT 20
17 #define V3_VM_STREAM_CONNECT 21
20 #define V3_VM_INSPECT 30
22 #define V3_VM_FB_INPUT (256+1)
23 #define V3_VM_FB_QUERY (256+2)
25 #define V3_VM_HOST_DEV_CONNECT (10244+1)
29 unsigned long long size;
34 struct v3_mem_region {
35 unsigned long long base_addr;
36 unsigned long long num_pages;
40 void * trace_malloc(size_t size, gfp_t flags);
41 void trace_free(const void * objp);
53 struct rb_root vm_ctrls;
54 struct list_head exts;
56 struct completion start_done;
57 struct completion thread_done;
63 // For now MAX_VMS must be a multiple of 8
64 // This is due to the minor number bitmap
69 int palacios_vmm_init( void );
70 int palacios_vmm_exit( void );