Skip to contentSkip to conversation

Addition of Veritas HyperScale VxHS block device support

RFC PATCH New Ashish Mittal 2 participants 4 messages Jul 31, 2016 – Aug 8, 2016 Block layer

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 Addition of Veritas HyperScale VxHS block device support

This is a request to include a new block device protocol called vxhs in qemu.

Following work items have been completed:
(1) Rebase VxHS code to latest qemu master.
(2) Removed all errors/warnings found by checkpatch.pl
(3) Unit-tested qemu and qemu-io binaries to ensure that we are able to open a vxhs type vdisk and read/write to it.
(4) Source code for the new network IO library (libqnio) that we use has been open sourced and can be downloaded from:
https://github.com/MittalAshish/libqnio.git

Ashish Mittal (1):
block/vxhs: Initial commit to add Veritas HyperScale VxHS block device
support

 block/Makefile.objs |    1 +
 block/vxhs.c        | 1460 +++++++++++++++++++++++++++++++++++++++++++++++++++
 block/vxhs.h        |  355 +++++++++++++
 configure           |   24 +-
 4 files changed, 1839 insertions(+), 1 deletion(-)
 create mode 100644 block/vxhs.c
 create mode 100644 block/vxhs.h
Signature · 1 line
2.5.5
#1 lore raw

RFC PATCH 1/1 block/vxhs: Initial commit to add Veritas HyperScale VxHS block device support

This patch adds support for a new block device type called "vxhs". Source code for the library that this code loads can be downloaded from:
https://github.com/MittalAshish/libqnio.git

---
 block/Makefile.objs |    1 +
 block/vxhs.c        | 1460 +++++++++++++++++++++++++++++++++++++++++++++++++++
 block/vxhs.h        |  355 +++++++++++++
 configure           |   24 +-
 4 files changed, 1839 insertions(+), 1 deletion(-)
 create mode 100644 block/vxhs.c
 create mode 100644 block/vxhs.h
block/Makefile.objs +1 -0
index 2593a2f..8ebda10 100644
@@ -20,6 +20,7 @@ block-obj-$(CONFIG_RBD) += rbd.o
 block-obj-$(CONFIG_GLUSTERFS) += gluster.o
 block-obj-$(CONFIG_ARCHIPELAGO) += archipelago.o
 block-obj-$(CONFIG_LIBSSH2) += ssh.o
+block-obj-$(CONFIG_VXHS) += vxhs.o
 block-obj-y += accounting.o dirty-bitmap.o
 block-obj-y += write-threshold.o
 
block/vxhs.c new file +1460 -0

1,460 lines not on this page · raw message

block/vxhs.h new file +355 -0

355 lines not on this page · raw message

configure +23 -1
index f57fcc6..3456f26 100755
@@ -320,6 +320,7 @@ vhdx=""
 numa=""
 tcmalloc="no"
 jemalloc="no"
+vxhs="yes"
 
 # parse CC options first
 for opt do
@@ -1150,6 +1151,11 @@ for opt do
   ;;
   --enable-jemalloc) jemalloc="yes"
   ;;
+  --disable-vxhs) vxhs="no"
+  ;;
+  --enable-vxhs) vxhs="yes"
+  ;;
+
   *)
       echo "ERROR: unknown option $opt"
       echo "Try '$0 --help' for more information"
@@ -1380,6 +1386,7 @@ disabled with --disable-FEATURE, default is enabled if available:
   numa            libnuma support
   tcmalloc        tcmalloc support
   jemalloc        jemalloc support
+  vxhs            Veritas HyperScale vDisk backend support
 
 NOTE: The object files are built at the place where configure is launched
 EOF
@@ -4541,7 +4548,18 @@ fi
 if do_cc -nostdlib -Wl,-r -Wl,--no-relax -o $TMPMO $TMPO; then
   LD_REL_FLAGS="-Wl,--no-relax"
 fi
-
+#################################################
+# gmodule support probe
+if $pkg_config --modversion glib-2.0 gmodule-2.0 > /dev/null 2>&1 ; then
+    glib_cflags=`$pkg_config --cflags glib-2.0 gmodule-2.0 2>/dev/null`
+    glib_libs=`$pkg_config --libs glib-2.0 gmodule-2.0 2>/dev/null`
+    LIBS="$glib_libs $LIBS"
+    LIBS="$glib_libs $LIBS"
+    libs_qga="$glib_libs $libs_qga"
+else
+    echo "glib-2.0 gmodule-2.0 required to compile QEMU"
+    exit 1
+fi
 ##########################################
 # End of CC checks
 # After here, no more $cc or $ld runs
@@ -5479,6 +5497,10 @@ if test "$pthread_setname_np" = "yes" ; then
   echo "CONFIG_PTHREAD_SETNAME_NP=y" >> $config_host_mak
 fi
 
+if test "$vxhs" = "yes" ; then
+  echo "CONFIG_VXHS=y" >> $config_host_mak
+fi
+
 if test "$tcg_interpreter" = "yes"; then
   QEMU_INCLUDES="-I\$(SRC_PATH)/tcg/tci $QEMU_INCLUDES"
 elif test "$ARCH" = "sparc64" ; then
Signature · 1 line
2.5.5
#2 lore raw

Re: [Qemu-devel] [PATCH RFC] block/vxhs: Initial commit to add Veritas HyperScale VxHS block device support

Quoted 3 lines · Ashish Mittal

This patch adds support for a new block device type called "vxhs". Source code for the library that this code loads can be downloaded from:
https://github.com/MittalAshish/libqnio.git

Do you also have a pointer to the server implementation?

#3 lore raw

Re: [Qemu-devel] [PATCH RFC] block/vxhs: Initial commit to add Veritas HyperScale VxHS block device support

Hi Christopher,

We are working on a sample server implementation, and will add it to libqnio soon.

Thanks,
Ashish

Quoted 7 lines · Christoph Hellwig
Quoted 3 lines · Ashish Mittal

This patch adds support for a new block device type called "vxhs". Source code for the library that this code loads can be downloaded from:
https://github.com/MittalAshish/libqnio.git

Do you also have a pointer to the server implementation?