block: Loose dataplane dependency
PATCH 1/1 block: Loose dataplane dependency
Before virtio-blk dataplane is switched to use block layer, it used to rely on the presence of linux-aio. Now the dependency is Linux, where the vring code has "#include <linux/virtio_ring.h>".
Signed-off-by Fam Zheng <[email protected]>
--- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
configure +3 -3
@@ -2939,10 +2939,10 @@ fi # adjust virtio-blk-data-plane based on linux-aio if test "$virtio_blk_data_plane" = "yes" -a \ - "$linux_aio" != "yes" ; then - error_exit "virtio-blk-data-plane requires Linux AIO, please try --enable-linux-aio" + "$linux" != "yes" ; then + error_exit "virtio-blk-data-plane requires Linux" elif test -z "$virtio_blk_data_plane" ; then - virtio_blk_data_plane=$linux_aio + virtio_blk_data_plane=$linux fi ##########################################
Signature · 1 line
2.1.0
Il 29/08/2014 03:25, Fam Zheng ha scritto:
Quoted 3 lines
Before virtio-blk dataplane is switched to use block layer, it used to rely on the presence of linux-aio. Now the dependency is Linux, where the vring code has "#include <
linux/virtio_ring.h>".
Can you instead move linux/virtio_ring.h to include/hw/virtio, with __uNN types renamed to uNN_t?
Paolo
Quoted 24 lines
Signed-off-by Fam Zheng <[email protected]>--- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)configure +3
-3@@ -2939,10 +2939,10 @@ fi # adjust virtio-blk-data-plane based on linux-aio if test "$virtio_blk_data_plane" = "yes" -a \ - "$linux_aio" != "yes" ; then - error_exit "virtio-blk-data-plane requires Linux AIO, please try --enable-linux-aio" + "$linux" != "yes" ; then + error_exit "virtio-blk-data-plane requires Linux" elif test -z "$virtio_blk_data_plane" ; then - virtio_blk_data_plane=$linux_aio + virtio_blk_data_plane=$linux fi ##########################################