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.


Merge branch 'devel' of newskysaw.cs.northwestern.edu:/home/palacios/palacios into...
[palacios.git] / linux_module / linux-exts.h
1 #include "palacios.h"
2
3
4 int add_mod_cmd(struct v3_guest * guest, unsigned int cmd, 
5                 int (*handler)(struct v3_guest * guest, 
6                                unsigned int cmd, unsigned long arg));
7
8
9 struct linux_ext {
10     char * name;
11     int (*init)( void );
12     int (*deinit)( void );
13     int (*guest_init)(struct v3_guest * guest, void ** priv_data);
14     int (*guest_deinit)(struct v3_guest * guest, void * priv_data);
15 };
16
17
18
19 int init_lnx_extensions( void );
20 int deinit_lnx_extensions( void );
21
22 int init_vm_extensions(struct v3_guest * guest);
23 int deinit_vm_extensions(struct v3_guest * guest);
24
25 void * get_vm_ext_data(struct v3_guest * guest, char * ext_name);
26
27
28
29 #define register_extension(ext)                                 \
30     static struct linux_ext * _lnx_ext                          \
31     __attribute__((used))                                       \
32         __attribute__((unused, __section__("_lnx_exts"),                \
33                        aligned(sizeof(void *))))                \
34         = ext;