X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fsym_swap.c;h=d6740c40fca0dc3c65772d0829cea9f73a34bcdf;hp=4b7270d1b866d2a981c24209c0ecac3989d56bbf;hb=28cfe68985ef4360c9bd7428a19c222b295e9d85;hpb=e67f90ff8dbf5b58cd4930eba8b9907ea6a12d03 diff --git a/palacios/src/devices/sym_swap.c b/palacios/src/devices/sym_swap.c index 4b7270d..d6740c4 100644 --- a/palacios/src/devices/sym_swap.c +++ b/palacios/src/devices/sym_swap.c @@ -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; }