Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


moved linux module to main Palacios tree
[palacios.git] / linux_module / palacios.h
1 #ifndef _PALACIOS_H
2 #define _PALACIOS_H
3
4 #include <linux/cdev.h>
5 #include <linux/list.h>
6 #include <linux/sched.h>
7
8 #include "palacios-console.h"
9
10 /* Global Control IOCTLs */
11 #define V3_START_GUEST 10
12 #define V3_ADD_MEMORY 50
13
14 /* VM Specific IOCTLs */
15 #define V3_VM_CONSOLE_CONNECT 20
16 #define V3_VM_SERIAL_CONNECT 21
17 #define V3_VM_STOP 22
18
19 struct v3_guest_img {
20     unsigned long long size;
21     void * guest_data;
22     char name[128];
23 };
24
25 struct v3_mem_region {
26     unsigned long long base_addr;
27     unsigned long long num_pages;
28 };
29
30
31
32 struct v3_guest {
33     void * v3_ctx;
34
35     void * img; 
36     u32 img_size;
37
38     char name[128];
39
40     struct list_head files;
41     struct list_head streams;
42     struct list_head sockets;
43
44     struct palacios_console console;
45
46     struct completion thread_done;
47
48     dev_t vm_dev; 
49     struct cdev cdev;
50 };
51
52 // For now MAX_VMS must be a multiple of 8
53 // This is due to the minor number bitmap
54 #define MAX_VMS 32
55
56
57
58
59
60 extern void send_key_to_palacios(unsigned char status, unsigned char scan_code);
61
62
63 int palacios_vmm_init( void );
64 int palacios_vmm_exit( void );
65
66
67
68 #endif