X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Flnx_virtio_blk.c;h=e58ec10e126d42b8bfd122b71f636753547c9aef;hb=82b8b87c344fcd1eab22e3f3be5ad54cbb3f8f68;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..e58ec10 100644 --- a/palacios/src/devices/lnx_virtio_blk.c +++ b/palacios/src/devices/lnx_virtio_blk.c @@ -27,11 +27,13 @@ #include -#ifndef DEBUG_VIRTIO_BLK + +#ifndef CONFIG_DEBUG_VIRTIO_BLK #undef PrintDebug #define PrintDebug(fmt, args...) #endif + #define BLK_CAPACITY_PORT 20 #define BLK_MAX_SIZE_PORT 28 #define BLK_MAX_SEG_PORT 32 @@ -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;