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
15 /* VM Specific IOCTLs */
16 #define V3_VM_CONSOLE_CONNECT 20
17 #define V3_VM_SERIAL_CONNECT 21
21 unsigned long long size;
26 struct v3_mem_region {
27 unsigned long long base_addr;
28 unsigned long long num_pages;
34 void * trace_malloc(size_t size, gfp_t flags);
35 void trace_free(const void * objp);
46 struct list_head files;
47 struct list_head streams;
48 struct list_head sockets;
50 struct palacios_console console;
52 struct completion start_done;
53 struct completion thread_done;
59 // For now MAX_VMS must be a multiple of 8
60 // This is due to the minor number bitmap
67 extern void send_key_to_palacios(unsigned char status, unsigned char scan_code);
70 int palacios_vmm_init( void );
71 int palacios_vmm_exit( void );