Skip to contentSkip to conversation

block: Loose dataplane dependency

PATCH In review Fam Zheng 2 participants 2 messages Aug 29, 2014

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

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>".

---
 configure | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
configure +3 -3
index 2063cf6..a7d5a69fe 100755
@@ -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
#1 lore raw

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
---
 configure | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
configure +3 -3
index 2063cf6..a7d5a69fe 100755
@@ -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
 
 ##########################################