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;
41 struct list_head files;
42 struct list_head streams;
43 struct list_head sockets;
45 struct palacios_console console;
47 struct completion start_done;
48 struct completion thread_done;
54 // For now MAX_VMS must be a multiple of 8
55 // This is due to the minor number bitmap
62 extern void send_key_to_palacios(unsigned char status, unsigned char scan_code);
65 int palacios_vmm_init( void );
66 int palacios_vmm_exit( void );