4 #include <linux/cdev.h>
5 #include <linux/list.h>
6 #include <linux/sched.h>
7 #include <linux/slab.h>
9 #include "palacios-console.h"
11 /* Global Control IOCTLs */
12 #define V3_START_GUEST 10
13 #define V3_ADD_MEMORY 50
14 #define V3_START_NETWORK 60
16 /* VM Specific IOCTLs */
17 #define V3_VM_CONSOLE_CONNECT 20
18 #define V3_VM_SERIAL_CONNECT 21
22 unsigned long long size;
27 struct v3_mem_region {
28 unsigned long long base_addr;
29 unsigned long long num_pages;
38 void * trace_malloc(size_t size, gfp_t flags);
39 void trace_free(const void * objp);
50 struct list_head files;
51 struct list_head streams;
52 struct list_head sockets;
54 struct palacios_console console;
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
71 extern void send_key_to_palacios(unsigned char status, unsigned char scan_code);
74 int palacios_vmm_init( void );
75 int palacios_vmm_exit( void );