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.


more shadow paging changes
[palacios.git] / palacios / include / palacios / vmm.h
index 92597ff..01d4d35 100644 (file)
@@ -46,6 +46,7 @@
 #define V3_AllocPages(ptr, num_pages)                  \
   do {                                                 \
     extern struct vmm_os_hooks * os_hooks;             \
+    ptr = 0;                                           \
     if ((os_hooks) && (os_hooks)->allocate_pages) {    \
       ptr = (os_hooks)->allocate_pages(num_pages);     \
     }                                                  \
@@ -56,6 +57,7 @@
 #define V3_Malloc(type, var, size)                     \
   do {                                                 \
     extern struct vmm_os_hooks * os_hooks;             \
+    var = 0;                                           \
     if ((os_hooks) && (os_hooks)->malloc) {            \
       var = (type)(os_hooks)->malloc(size);            \
     }                                                  \