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.


fixed instruction emulation for 64 bit machines
[palacios.git] / palacios / include / palacios / vmm_rbtree.h
index 44131fc..6b72d6d 100644 (file)
@@ -96,6 +96,11 @@ static inline struct page * rb_insert_page_cache(struct inode * inode,
 
 #ifdef __V3VEE__
 
+#include <palacios/vmm_types.h>
+
+
+#undef offsetof
+#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
 
 #define container_of(ptr, type, member) ({                      \
         const typeof( ((type *)0)->member ) *__mptr = (ptr);    \