4 #include <linux/cdev.h>
5 #include <linux/list.h>
6 #include <linux/sched.h>
7 #include <linux/slab.h>
12 #ifdef V3_CONFIG_HOST_DEVICE
13 #include "palacios-host-dev.h"
17 /* Global Control IOCTLs */
18 #define V3_START_GUEST 10
19 #define V3_ADD_MEMORY 50
20 #define V3_START_NETWORK 60
22 /* VM Specific IOCTLs */
23 #define V3_VM_CONSOLE_CONNECT 20
24 #define V3_VM_STREAM_CONNECT 21
27 #define V3_VM_INSPECT 30
29 #define V3_VM_FB_INPUT (256+1)
30 #define V3_VM_FB_QUERY (256+2)
32 #define V3_VM_HOST_DEV_CONNECT (10244+1)
36 unsigned long long size;
41 struct v3_mem_region {
42 unsigned long long base_addr;
43 unsigned long long num_pages;
47 void * trace_malloc(size_t size, gfp_t flags);
48 void trace_free(const void * objp);
60 struct rb_root vm_ctrls;
61 struct list_head exts;
64 #ifdef V3_CONFIG_HOST_DEVICE
65 struct palacios_host_dev hostdev;
69 struct completion start_done;
70 struct completion thread_done;
76 // For now MAX_VMS must be a multiple of 8
77 // This is due to the minor number bitmap
84 extern void send_key_to_palacios(unsigned char status, unsigned char scan_code);
87 int palacios_vmm_init( void );
88 int palacios_vmm_exit( void );