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.


symbiotic fixups
[palacios.git] / palacios / src / devices / sym_swap.c
index 4b7270d..d6740c4 100644 (file)
@@ -116,12 +116,12 @@ static inline void * get_swap_entry(uint32_t pg_index, void * private_data) {
     struct vm_device * dev = (struct vm_device *)private_data;
     struct swap_state * swap = (struct swap_state *)(dev->private_data);
     void * pg_addr = NULL;
-    int ret = 0;
+    // int ret = 0;
 
-    if ((ret = get_index_usage(swap, pg_index))) {
-       // CAREFUL: The index might be offset by 1, because the first 4K is the header
-       pg_addr = (void *)(swap->swap_space + (pg_index * 4096));
-    }
+    //    if ((ret = get_index_usage(swap, pg_index))) {
+    // CAREFUL: The index might be offset by 1, because the first 4K is the header
+    pg_addr = (void *)(swap->swap_space + (pg_index * 4096));
+    //    }
 
     return pg_addr;
 }