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.


Avoid strict-aliasing related issues when compiling with optimization
[palacios.git] / linux_module / linux-exts.h
index c5aeea1..a6b7301 100644 (file)
@@ -1,9 +1,7 @@
 #include "palacios.h"
 
 
-int add_mod_cmd(struct v3_guest * guest, unsigned int cmd, 
-               int (*handler)(struct v3_guest * guest, 
-                              unsigned int cmd, unsigned long arg));
+
 
 
 struct linux_ext {
@@ -26,6 +24,22 @@ void * get_vm_ext_data(struct v3_guest * guest, char * ext_name);
 
 
 
+struct global_ctrl {
+    unsigned int cmd;
+
+    int (*handler)(unsigned int cmd, unsigned long arg);
+
+    struct rb_node tree_node;
+};
+
+int add_global_ctrl(unsigned int cmd, 
+                   int (*handler)(unsigned int cmd, unsigned long arg));
+
+struct global_ctrl * get_global_ctrl(unsigned int cmd);
+
+int remove_global_ctrl(unsigned int cmd);
+
+
 #define register_extension(ext)                                        \
     static struct linux_ext * _lnx_ext                         \
     __attribute__((used))                                      \