From: Jeff Cody <jcody@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: qemu-devel@nongnu.org, berrange@redhat.com, pbonzini@redhat.com,
kwolf@redhat.com, mreitz@redhat.com, mdroth@linux.vnet.ibm.com,
armbru@redhat.com, sw@weilnetz.de, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 3/8] vhdx: Use QEMU UUID API
Date: Mon, 8 Aug 2016 16:45:38 -0400 [thread overview]
Message-ID: <20160808204538.GL24882@localhost.localdomain> (raw)
In-Reply-To: <1470636568-8291-4-git-send-email-famz@redhat.com>
On Mon, Aug 08, 2016 at 02:09:23PM +0800, Fam Zheng wrote:
> This removes our dependency to libuuid, so that the driver can always be
> built.
>
> Similar to how we handled data plane configure options, --enable-vhdx
> and --disable-vhdx are also changed to a nop with a message saying it's
> obsolete.
>
> Signed-off-by: Fam Zheng <famz@redhat.com>
It's nice to get rid of the extra dependency.
> ---
> block/Makefile.objs | 2 +-
> block/vhdx-endian.c | 3 ---
> block/vhdx.c | 7 +++----
> configure | 27 +++------------------------
> 4 files changed, 7 insertions(+), 32 deletions(-)
>
> diff --git a/block/Makefile.objs b/block/Makefile.objs
> index 2593a2f..013abb8 100644
> --- a/block/Makefile.objs
> +++ b/block/Makefile.objs
> @@ -2,7 +2,7 @@ block-obj-y += raw_bsd.o qcow.o vdi.o vmdk.o cloop.o bochs.o vpc.o vvfat.o
> block-obj-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o
> block-obj-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o
> block-obj-y += qed-check.o
> -block-obj-$(CONFIG_VHDX) += vhdx.o vhdx-endian.o vhdx-log.o
> +block-obj-y += vhdx.o vhdx-endian.o vhdx-log.o
> block-obj-y += quorum.o
> block-obj-y += parallels.o blkdebug.o blkverify.o blkreplay.o
> block-obj-y += block-backend.o snapshot.o qapi.o
> diff --git a/block/vhdx-endian.c b/block/vhdx-endian.c
> index c306b90..429d755 100644
> --- a/block/vhdx-endian.c
> +++ b/block/vhdx-endian.c
> @@ -21,9 +21,6 @@
> #include "qemu/bswap.h"
> #include "block/vhdx.h"
>
> -#include <uuid/uuid.h>
> -
> -
> /*
> * All the VHDX formats on disk are little endian - the following
> * are helper import/export functions to correctly convert
> diff --git a/block/vhdx.c b/block/vhdx.c
> index 75ef2b1..acd218c 100644
> --- a/block/vhdx.c
> +++ b/block/vhdx.c
> @@ -25,8 +25,7 @@
> #include "qemu/bswap.h"
> #include "block/vhdx.h"
> #include "migration/migration.h"
> -
> -#include <uuid/uuid.h>
> +#include "qemu/uuid.h"
>
> /* Options for VHDX creation */
>
> @@ -213,10 +212,10 @@ bool vhdx_checksum_is_valid(uint8_t *buf, size_t size, int crc_offset)
> */
> void vhdx_guid_generate(MSGUID *guid)
> {
> - uuid_t uuid;
> + QemuUUID uuid;
> assert(guid != NULL);
>
> - uuid_generate(uuid);
> + qemu_uuid_generate(uuid);
> memcpy(guid, uuid, sizeof(MSGUID));
> }
>
> diff --git a/configure b/configure
> index f57fcc6..cbb96d5 100755
> --- a/configure
> +++ b/configure
> @@ -316,7 +316,6 @@ vte=""
> virglrenderer=""
> tpm="yes"
> libssh2=""
> -vhdx=""
> numa=""
> tcmalloc="no"
> jemalloc="no"
> @@ -1094,6 +1093,9 @@ for opt do
> --disable-virtio-blk-data-plane|--enable-virtio-blk-data-plane)
> echo "$0: $opt is obsolete, virtio-blk data-plane is always on" >&2
> ;;
> + --enable-vhdx|--disable-vhdx)
> + echo "$0: $opt is obsolete, VHDX driver is always built"
> + ;;
Data plan echoes this out to stderr, which is probably the best option. We
should probably do the same for VHDX.
> --disable-gtk) gtk="no"
> ;;
> --enable-gtk) gtk="yes"
> @@ -1134,10 +1136,6 @@ for opt do
> ;;
> --enable-libssh2) libssh2="yes"
> ;;
> - --enable-vhdx) vhdx="yes"
> - ;;
> - --disable-vhdx) vhdx="no"
> - ;;
> --disable-numa) numa="no"
> ;;
> --enable-numa) numa="yes"
> @@ -1376,7 +1374,6 @@ disabled with --disable-FEATURE, default is enabled if available:
> archipelago Archipelago backend
> tpm TPM support
> libssh2 ssh block device support
> - vhdx support for the Microsoft VHDX image format
> numa libnuma support
> tcmalloc tcmalloc support
> jemalloc jemalloc support
> @@ -2685,19 +2682,6 @@ EOF
> fi
> fi
>
> -if test "$vhdx" = "yes" ; then
> - if test "$uuid" = "no" ; then
> - error_exit "uuid required for VHDX support"
> - fi
> -elif test "$vhdx" != "no" ; then
> - if test "$uuid" = "yes" ; then
> - vhdx=yes
> - else
> - vhdx=no
> - fi
> -fi
> -
> -##########################################
> # xfsctl() probe, used for raw-posix
> if test "$xfs" != "no" ; then
> cat > $TMPC << EOF
> @@ -4891,7 +4875,6 @@ echo "TPM support $tpm"
> echo "libssh2 support $libssh2"
> echo "TPM passthrough $tpm_passthrough"
> echo "QOM debugging $qom_cast_debug"
> -echo "vhdx $vhdx"
> echo "lzo support $lzo"
> echo "snappy support $snappy"
> echo "bzip2 support $bzip2"
> @@ -5412,10 +5395,6 @@ if test "$libssh2" = "yes" ; then
> echo "LIBSSH2_LIBS=$libssh2_libs" >> $config_host_mak
> fi
>
> -if test "$vhdx" = "yes" ; then
> - echo "CONFIG_VHDX=y" >> $config_host_mak
> -fi
> -
> # USB host support
> if test "$libusb" = "yes"; then
> echo "HOST_USB=libusb legacy" >> $config_host_mak
> --
> 2.7.4
>
next prev parent reply other threads:[~2016-08-08 20:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 6:09 [Qemu-devel] [PATCH v2 0/8] UUID clean ups for 2.8 Fam Zheng
2016-08-08 6:09 ` [Qemu-devel] [PATCH v2 1/8] util: Add UUID API Fam Zheng
2016-08-08 11:07 ` Markus Armbruster
2016-08-08 19:51 ` Jeff Cody
2016-08-09 2:34 ` Fam Zheng
2016-08-08 6:09 ` [Qemu-devel] [PATCH v2 2/8] tests: Add uuid tests Fam Zheng
2016-08-08 8:58 ` Daniel P. Berrange
2016-08-08 6:09 ` [Qemu-devel] [PATCH v2 3/8] vhdx: Use QEMU UUID API Fam Zheng
2016-08-08 20:45 ` Jeff Cody [this message]
2016-08-08 6:09 ` [Qemu-devel] [PATCH v2 4/8] vdi: " Fam Zheng
2016-08-08 6:09 ` [Qemu-devel] [PATCH v2 5/8] vpc: " Fam Zheng
2016-08-08 20:49 ` Jeff Cody
2016-08-09 2:31 ` Fam Zheng
2016-08-08 6:09 ` [Qemu-devel] [PATCH v2 6/8] crypto: Switch to " Fam Zheng
2016-08-08 9:00 ` Daniel P. Berrange
2016-08-08 6:09 ` [Qemu-devel] [PATCH v2 7/8] tests: No longer dependent on CONFIG_UUID Fam Zheng
2016-08-08 6:09 ` [Qemu-devel] [PATCH v2 8/8] configure: Remove detection code for UUID Fam Zheng
2016-08-08 20:52 ` Jeff Cody
2016-08-09 2:31 ` Fam Zheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160808204538.GL24882@localhost.localdomain \
--to=jcody@redhat.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=mreitz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.