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.


pci_front bugfix - do not propagate cmd reg write twice
[palacios.git] / linux_module / linux-exts.h
index 041d8dc..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 {
@@ -19,6 +17,27 @@ struct linux_ext {
 int init_lnx_extensions( void );
 int deinit_lnx_extensions( void );
 
+int init_vm_extensions(struct v3_guest * guest);
+int deinit_vm_extensions(struct v3_guest * guest);
+
+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)                                        \