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.


Added file stream functionality to keyed stream interface
[palacios.releases.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 #include <linux/slab.h>
8
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
17 #define V3_VM_STOP 22
18
19 #define V3_VM_INSPECT 30
20
21 #define V3_VM_FB_INPUT (256+1)
22 #define V3_VM_FB_QUERY (256+2)
23
24 #define V3_VM_HOST_DEV_CONNECT (10244+1)
25
26
27 struct v3_guest_img {
28     unsigned long long size;
29     void * guest_data;
30     char name[128];
31 };
32
33 struct v3_mem_region {
34     unsigned long long base_addr;
35     unsigned long long num_pages;
36 };
37
38
39 void * trace_malloc(size_t size, gfp_t flags);
40 void trace_free(const void * objp);
41
42
43 struct v3_guest {
44     void * v3_ctx;
45
46     void * img; 
47     u32 img_size;
48
49     char name[128];
50
51
52     struct rb_root vm_ctrls;
53     struct list_head exts;
54
55     struct completion start_done;
56     struct completion thread_done;
57
58     dev_t vm_dev; 
59     struct cdev cdev;
60 };
61
62 // For now MAX_VMS must be a multiple of 8
63 // This is due to the minor number bitmap
64 #define MAX_VMS 32
65
66
67
68 int palacios_vmm_init( void );
69 int palacios_vmm_exit( void );
70
71
72
73 #endif