X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Flnx_virtio_blk.c;h=0720e933f181bf0de23d55ef84a280a7f4db13e6;hb=f7bc654c609c9780d52f6fa980de987ddd337416;hp=17352ac92a95aeb9b097d4acba796c163d292739;hpb=a98c81f20b2579d31bb48bf47580809024a7901d;p=palacios.git diff --git a/palacios/src/devices/lnx_virtio_blk.c b/palacios/src/devices/lnx_virtio_blk.c index 17352ac..0720e93 100644 --- a/palacios/src/devices/lnx_virtio_blk.c +++ b/palacios/src/devices/lnx_virtio_blk.c @@ -27,10 +27,12 @@ #include +/* #ifndef DEBUG_VIRTIO_BLK #undef PrintDebug #define PrintDebug(fmt, args...) #endif +*/ #define BLK_CAPACITY_PORT 20 #define BLK_MAX_SIZE_PORT 28 @@ -611,6 +613,8 @@ static int virtio_init(struct guest_info * vm, void * cfg_data) { bars[i].type = PCI_BAR_NONE; } + PrintDebug("Virtio-BLK io_range_size = %d\n", virtio_state->io_range_size); + bars[0].type = PCI_BAR_IO; bars[0].default_base_port = -1; bars[0].num_ports = virtio_state->io_range_size;