Received: from eggs.gnu.org ([2001:4830:134:3::10]:50568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY45P-0004Ew-Iq for qemu-devel@nongnu.org; Sun, 20 Oct 2013 21:15:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VY45G-0004DD-La for qemu-devel@nongnu.org; Sun, 20 Oct 2013 21:15:11 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:46790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY45G-0004Ax-AK for qemu-devel@nongnu.org; Sun, 20 Oct 2013 21:15:02 -0400 Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 20 Oct 2013 21:15:01 -0400 Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id D727AC90041 for ; Sun, 20 Oct 2013 21:14:57 -0400 (EDT) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by b01cxnp22036.gho.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r9L1Ewp59175448 for ; Mon, 21 Oct 2013 01:14:58 GMT Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r9L1IAbL001006 for ; Sun, 20 Oct 2013 19:18:10 -0600 From: mrhines@linux.vnet.ibm.com Date: Mon, 21 Oct 2013 01:14:20 +0000 Message-Id: <1382318062-6288-11-git-send-email-mrhines@linux.vnet.ibm.com> In-Reply-To: <1382318062-6288-1-git-send-email-mrhines@linux.vnet.ibm.com> References: <1382318062-6288-1-git-send-email-mrhines@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH v1: 10/12] mc: configure and makefile support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, quintela@redhat.com, owasserm@redhat.com, onom@us.ibm.com, abali@us.ibm.com, mrhines@us.ibm.com, gokul@us.ibm.com, pbonzini@redhat.com From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- Makefile.objs | 1 + configure | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/Makefile.objs b/Makefile.objs index 2b6c1fe..15356d6 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -52,6 +52,7 @@ common-obj-$(CONFIG_LINUX) += fsdev/ common-obj-y += migration.o migration-tcp.o common-obj-$(CONFIG_RDMA) += migration-rdma.o +common-obj-$(CONFIG_MC) += migration-checkpoint.o common-obj-y += qemu-char.o #aio.o common-obj-y += block-migration.o common-obj-y += page_cache.o xbzrle.o diff --git a/configure b/configure index 57ee62a..64c0d5e 100755 --- a/configure +++ b/configure @@ -182,6 +182,7 @@ kvm="no" rdma="" gprof="no" debug_tcg="no" +mc="" debug="no" strip_opt="yes" tcg_interpreter="no" @@ -969,6 +970,10 @@ for opt do ;; --enable-libssh2) libssh2="yes" ;; + --disable-mc) mc="no" + ;; + --enable-mc) mc="yes" + ;; *) echo "ERROR: unknown option $opt"; show_help="yes" ;; esac @@ -1200,6 +1205,8 @@ echo " --gcov=GCOV use specified gcov [$gcov_tool]" echo " --enable-tpm enable TPM support" echo " --disable-libssh2 disable ssh block device support" echo " --enable-libssh2 enable ssh block device support" +echo " --disable-mc disable Micro-Checkpointing support" +echo " --enable-mc enable Micro-Checkpointing support" echo "" echo "NOTE: The object files are built at the place where configure is launched" exit 1 @@ -1861,6 +1868,35 @@ EOF fi fi +################################################## +# Micro-Checkpointing requires netlink +if test "$mc" != "no" ; then + cat > $TMPC < +#include +#include +#include +#include +#include +int main(void) { return 0; } +EOF + mc_libs="-lnl-3 -lnl-cli-3 -lnl-route-3" + mc_cflags="-I/usr/include/libnl3" + if compile_prog "$mc_cflags" "$mc_libs" ; then + mc="yes" + libs_softmmu="$libs_softmmu $mc_libs" + QEMU_CFLAGS="$QEMU_CFLAGS $mc_cflags" + else + if test "$mc" = "yes" ; then + error_exit \ + " NetLink v3 libs/headers not present." \ + " Please install the libnl3-*-dev(el) packages from your distro." + fi + mc="no" + fi +fi + + ########################################## # VNC TLS/WS detection if test "$vnc" = "yes" -a \( "$vnc_tls" != "no" -o "$vnc_ws" != "no" \) ; then @@ -3723,6 +3759,7 @@ echo "KVM support $kvm" echo "RDMA support $rdma" echo "TCG interpreter $tcg_interpreter" echo "fdt support $fdt" +echo "Micro checkpointing $mc" echo "preadv support $preadv" echo "fdatasync $fdatasync" echo "madvise $madvise" @@ -4206,6 +4243,10 @@ if test "$rdma" = "yes" ; then echo "CONFIG_RDMA=y" >> $config_host_mak fi +if test "$mc" = "yes" ; then + echo "CONFIG_MC=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 @@ -4633,6 +4674,10 @@ echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak done # for target in $targets +if test "$mc" = "yes" ; then +echo "CONFIG_MC=y" >> $config_host_mak +fi + if [ "$pixman" = "internal" ]; then echo "config-host.h: subdir-pixman" >> $config_host_mak fi -- 1.8.1.2