From nobody Wed Nov 5 10:32:23 2025 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1541430612764524.2177914200325; Mon, 5 Nov 2018 07:10:12 -0800 (PST) Received: from localhost ([::1]:35707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJgVz-0006Ub-P5 for importer@patchew.org; Mon, 05 Nov 2018 10:10:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJgUb-0005lK-Cs for qemu-devel@nongnu.org; Mon, 05 Nov 2018 10:08:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJgUa-0002Jz-8U for qemu-devel@nongnu.org; Mon, 05 Nov 2018 10:08:41 -0500 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]:36309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJgUa-0002DH-0z; Mon, 05 Nov 2018 10:08:40 -0500 Received: by mail-qk1-x741.google.com with SMTP id o125so15213710qkf.3; Mon, 05 Nov 2018 07:08:39 -0800 (PST) Received: from localhost.localdomain ([177.45.6.151]) by smtp.gmail.com with ESMTPSA id v57sm5720501qtv.80.2018.11.05.07.08.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 07:08:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ypt9ezqEebBCqb0TCU6dVPj2vej6yxKel3Owqk/F/tI=; b=fgfzjc2y7deY2jWqd6fA5/CweCNkMmtUE61ACqJj22210sprlOgf6vikHE6f29APqS P0IasuGABRyXUJCSUx7noflTNfW176ey6AgJJr6v+GXzLNDEsmUPi9F2mEA7udJl/VrV mEfUuiyTbuURn7DYpNE8TOxbptywTcwP8tGYJrtw/puHkcoFDfF0aHDnacroCp+CKZXR Ej/newn5bBjGP3fFmcP2+ReK9nmUVkt4YLbiPdySSz9lmzmhUvQTgaILzPewy6b2YZF1 mPDHfAAsmiI5XhCxBBIIea2r8qbXTERBiySrsUAKXT2+tE04LzouyWM5i2QTPZJn1Iq9 2qsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ypt9ezqEebBCqb0TCU6dVPj2vej6yxKel3Owqk/F/tI=; b=WO6k24AcJuxPRolG8y2nXvPuUTVZ8DJ1zSrW16wxw8RT57X/7JvT/plGXPTAaZXN1I zRtvjlF4f00pspuyWOd+r5VLhsHwPg9whGequw5QX70qv9l0gDGKTpY4cO/o736ycV+W xa5IigXhJEfj0BvpwZMSwXeleNYgF2pAYtDgRT5uZliwbKEzIIQQssvL3YANXZlqhIn7 /NH4FSrpv2K/lqfQWV/ljit6b7bQ70IkQqbFhk9lZWlUFA5Hm52btPRTuhY5OvL+02L1 voprsTUUjrcsadJYPkA4kQq714fy4M0nodma7a+i/WvIiLQZPj3CfK1nyRjV2krYCOsY BaqQ== X-Gm-Message-State: AGRZ1gIFYPR07yLH0XAwra9k3H4+bhUrUImJdWTtlwfoaBXCTNBjHAkE i3ZfWDeqHQie2K/dNtZm4felZjLH X-Google-Smtp-Source: AJdET5c7limoT76Lf2HlMnR8vdLoQXfbw/ikalv6HXycq6mREKAh8tDmgzcNq7HmeGJnwUo9zeMhcA== X-Received: by 2002:a0c:ec50:: with SMTP id n16mr22291154qvq.105.1541430519026; Mon, 05 Nov 2018 07:08:39 -0800 (PST) From: Julio Faracco To: qemu-devel@nongnu.org Date: Mon, 5 Nov 2018 13:08:04 -0200 Message-Id: <20181105150806.13649-3-jcfaracco@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181105150806.13649-1-jcfaracco@gmail.com> References: <20181105150806.13649-1-jcfaracco@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::741 Subject: [Qemu-devel] [PATCH v3 2/4] configure: adding support to lzfse library. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , qemu-block@nongnu.org, Stefan Hajnoczi , Max Reitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This commit includes the support to lzfse opensource library. With this library dmg block driver can decompress images with this type of compression inside. Signed-off-by: Julio Faracco --- block/Makefile.objs | 2 ++ configure | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/block/Makefile.objs b/block/Makefile.objs index c8337bf186..f4ddbb9c7b 100644 --- a/block/Makefile.objs +++ b/block/Makefile.objs @@ -47,6 +47,8 @@ ssh.o-cflags :=3D $(LIBSSH2_CFLAGS) ssh.o-libs :=3D $(LIBSSH2_LIBS) block-obj-$(if $(CONFIG_BZIP2),m,n) +=3D dmg-bz2.o dmg-bz2.o-libs :=3D $(BZIP2_LIBS) +block-obj-$(if $(CONFIG_LZFSE),m,n) +=3D dmg-lzfse.o +dmg-lzfse.o-libs :=3D $(LZFSE_LIBS) qcow.o-libs :=3D -lz linux-aio.o-libs :=3D -laio parallels.o-cflags :=3D $(LIBXML2_CFLAGS) diff --git a/configure b/configure index 46ae1e8c76..56b26f0579 100755 --- a/configure +++ b/configure @@ -434,6 +434,7 @@ capstone=3D"" lzo=3D"" snappy=3D"" bzip2=3D"" +lzfse=3D"" guest_agent=3D"" guest_agent_with_vss=3D"no" guest_agent_ntddscsi=3D"no" @@ -1301,6 +1302,10 @@ for opt do ;; --enable-bzip2) bzip2=3D"yes" ;; + --enable-lzfse) lzfse=3D"yes" + ;; + --disable-lzfse) lzfse=3D"no" + ;; --enable-guest-agent) guest_agent=3D"yes" ;; --disable-guest-agent) guest_agent=3D"no" @@ -1700,6 +1705,8 @@ disabled with --disable-FEATURE, default is enabled i= f available: snappy support of snappy compression library bzip2 support of bzip2 compression library (for reading bzip2-compressed dmg images) + lzfse support of lzfse compression library + (for reading lzfse-compressed dmg images) seccomp seccomp support coroutine-pool coroutine freelist (better performance) glusterfs GlusterFS backend @@ -2209,6 +2216,24 @@ EOF fi fi =20 +########################################## +# lzfse check + +if test "$lzfse" !=3D "no" ; then + cat > $TMPC << EOF +#include +int main(void) { lzfse_decode_scratch_size(); return 0; } +EOF + if compile_prog "" "-llzfse" ; then + lzfse=3D"yes" + else + if test "$lzfse" =3D "yes"; then + feature_not_found "lzfse" "Install lzfse devel" + fi + lzfse=3D"no" + fi +fi + ########################################## # libseccomp check =20 @@ -6036,6 +6061,7 @@ echo "Live block migration $live_block_migration" echo "lzo support $lzo" echo "snappy support $snappy" echo "bzip2 support $bzip2" +echo "lzfse support $lzfse" echo "NUMA host support $numa" echo "libxml2 $libxml2" echo "tcmalloc support $tcmalloc" @@ -6549,6 +6575,11 @@ if test "$bzip2" =3D "yes" ; then echo "BZIP2_LIBS=3D-lbz2" >> $config_host_mak fi =20 +if test "$lzfse" =3D "yes" ; then + echo "CONFIG_LZFSE=3Dy" >> $config_host_mak + echo "LZFSE_LIBS=3D-llzfse" >> $config_host_mak +fi + if test "$libiscsi" =3D "yes" ; then echo "CONFIG_LIBISCSI=3Dm" >> $config_host_mak echo "LIBISCSI_CFLAGS=3D$libiscsi_cflags" >> $config_host_mak --=20 2.17.1