X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fsym_swap.c;h=ab1a589ea75a3fe1191ce72bf288947762be3536;hp=49b0f32421616040793a6e39c1fec6fb94e8c4a9;hb=cfcc5717f659b3ed2954f41cf363d3bceae8dc84;hpb=5f0b4f8c5f9f53cea37dde072b37d09ba316487d diff --git a/palacios/src/devices/sym_swap.c b/palacios/src/devices/sym_swap.c index 49b0f32..ab1a589 100644 --- a/palacios/src/devices/sym_swap.c +++ b/palacios/src/devices/sym_swap.c @@ -20,6 +20,7 @@ #include #include #include +#include #ifdef CONFIG_SYMBIOTIC_SWAP_TELEMETRY @@ -146,10 +147,10 @@ static int swap_read(uint8_t * buf, uint64_t lba, uint64_t num_bytes, void * pri uint32_t length = num_bytes; - /* - PrintDebug("SymSwap: Reading %d bytes to %p from %p\n", length, - buf, (void *)(swap->swap_space + offset)); - */ + + PrintDebug("SymSwap: Reading %d bytes to %p from %p\n", length, + buf, (void *)(swap->swap_space + offset)); + if (length % 4096) { PrintError("Swapping in length that is not a page multiple\n"); @@ -314,7 +315,7 @@ static int swap_init(struct guest_info * vm, v3_cfg_tree_t * cfg) { } #ifdef CONFIG_SYMBIOTIC_SWAP_TELEMETRY - if (vm->enable_telemetry) { + if (vm->enable_telemetry == 1) { v3_add_telemetry_cb(vm, telemetry_cb, dev); } #endif