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.


Cleanup of linkage issues for non-Linux hosts
[palacios.git] / linux_module / iface-guard-mods.h
1 #ifndef __IFACE_GUARD_MODS_H__
2 #define __IFACE_GUARD_MODS_H__
3
4 #define V3_VM_REGISTER_MOD 14124
5
6 #define MAX_MOD_NAME_LEN 256
7 #define MAX_HASH_LEN     128
8
9 struct v3_entry_point {
10     char * name;
11     unsigned long offset;
12     char is_ret;
13     
14    /* TODO: Fix this HACKERY! These last two are placeholders */
15     void * hack[3];
16 };
17
18
19 struct v3_guard_mod {
20     char * name;                     /* GM name */
21     char * content_hash;    /* hash of the module .text segment */
22     unsigned int hcall_offset;    /* offset from .text to hypercall */
23     unsigned int text_size;             /* size of module .text segment */
24     unsigned int num_entries;           /* number of entry points */
25     unsigned int num_privs;
26     char ** priv_array;           /* each bit represent a requested privilege */
27     unsigned long long id;              /* GM ID */
28     struct v3_entry_point * entry_points;        /* entry point array (offsets) */
29 };
30
31 #endif