From nobody Wed May 14 19:25:29 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1523446316525781.0929480747515; Wed, 11 Apr 2018 04:31:56 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C96455D685; Wed, 11 Apr 2018 11:31:54 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8827E5E4E7; Wed, 11 Apr 2018 11:31:54 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3F8544CA9F; Wed, 11 Apr 2018 11:31:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3BBTdiO029828 for ; Wed, 11 Apr 2018 07:29:39 -0400 Received: by smtp.corp.redhat.com (Postfix) id DEEC68884B; Wed, 11 Apr 2018 11:29:39 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6E65B863D0; Wed, 11 Apr 2018 11:29:38 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6C1E4C0587C9; Wed, 11 Apr 2018 11:29:31 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id t67so3493036wmt.0; Wed, 11 Apr 2018 04:29:31 -0700 (PDT) Received: from rst.Home ([2a02:c7d:692a:c500:1ebc:73f3:5f60:b131]) by smtp.gmail.com with ESMTPSA id 185sm1502933wmj.46.2018.04.11.04.29.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Apr 2018 04:29:29 -0700 (PDT) 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=wWRdSMqduB5OzN8MHBv9Kcmf7Af7f6TvnQwOAPUXX5I=; b=HFWAQFrIYgJAdu+XvWNs4vW9JE4EFsnHtzGkikCT9jWm58Q9EQNkm+3ozh2JC9D7DF dF9peenYlRGcaR1RJ3TH7TdgA7+J4C4Syy9zlEHSN4iCiqhz44HEcSH82PMHIKL9wH1V HFES2odO2VQ7wSCB6PeBWNaTbrfP+tK+FtNP/Cm1+KqSqOrzFcEIZOfQOl6P6UCfkEGP 9dEjsXSfp0Sf7Dmu4qiF53ROwiggqfEOkRSXL1DhW5iiIF8TNCcSnbwiKCZHyMiFZqJg Qk3Yx62W/QU/uzTMDDMweNjD/C6ppdYpxfZbcNPVWdeiz6jUmitkHZPOjmOUA6ErJ3T2 bmhA== 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=wWRdSMqduB5OzN8MHBv9Kcmf7Af7f6TvnQwOAPUXX5I=; b=T6jnec0LxVAasecz+SKFm9H0RLSG23hU0hoF7LmTsRLrhbd0EUvF6AW7yYBTfwVppc b52ebBrxsTBGyp9nnJIj+QzvtrcA+HL/BkEXZOpwrNohXwOYovuz2PSRHNflkbZ0Cjw0 WuXFXZOQ5/3geyZAJsp+Ks3MXq81h3ec9wGch5Z/3nB8XrGWSE5+irUjYUSnsJh9YLYe HMIA5PpJNNDThzQ2fS25PoKEXEUgIpMVpUkp1+Jbryhu9Rhvx6jJKJGDNC5fQ4oWG7Ed FsAZrvqoftgnruYn8+IshYB62gr8IOxnw1f9ThL6Qh4KG4b576DcH82OtAuAAt8PbRLQ fKmg== X-Gm-Message-State: ALQs6tApK0p8MSBUowKcaBkUGuVUJP1ar4pn1Vx6PTJGfzghX1oDpZO+ NBOLtdpx00zH2WQ3HM61UTj1//Iy X-Google-Smtp-Source: AIpwx48AmrJuoBlpt+Gs6mpFAPp/TC63Axs4xQz9InlA/cVXdfSZLn7k/Mgu9UkjPrzFlsr9m6cF+Q== X-Received: by 10.28.143.199 with SMTP id r190mr2164146wmd.132.1523446169855; Wed, 11 Apr 2018 04:29:29 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 11 Apr 2018 12:29:12 +0100 Message-Id: <20180411112915.5890-2-rstoyanov1@gmail.com> In-Reply-To: <20180411112915.5890-1-rstoyanov1@gmail.com> References: <20180411112915.5890-1-rstoyanov1@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 11 Apr 2018 11:29:31 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 11 Apr 2018 11:29:31 +0000 (UTC) for IP:'74.125.82.68' DOMAIN:'mail-wm0-f68.google.com' HELO:'mail-wm0-f68.google.com' FROM:'rstoyanov1@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.12 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.82.68 mail-wm0-f68.google.com 74.125.82.68 mail-wm0-f68.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: kkoukiou@redhat.com, mprivozn@redhat.com, cbosdonnat@suse.com, Radostin Stoyanov Subject: [libvirt] [RFC PATCH 1/4] configure: Include support for CRIU X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 11 Apr 2018 11:31:55 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Checkpoint/restore in User-space [1] enables the current running state of lxc containers to be stored as a set of image files. Then, one could restore the container to its previous state (before checkpointing) on the same or another system. [1] https://criu.org/ Signed-off-by: Radostin Stoyanov --- configure.ac | 1 + m4/virt-criu.m4 | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 m4/virt-criu.m4 diff --git a/configure.ac b/configure.ac index ae798faa5..8defba3bc 100644 --- a/configure.ac +++ b/configure.ac @@ -282,6 +282,7 @@ LIBVIRT_CHECK_AVAHI LIBVIRT_CHECK_BASH_COMPLETION LIBVIRT_CHECK_BLKID LIBVIRT_CHECK_CAPNG +LIBVIRT_CHECK_CRIU LIBVIRT_CHECK_CURL LIBVIRT_CHECK_DBUS LIBVIRT_CHECK_DEVMAPPER diff --git a/m4/virt-criu.m4 b/m4/virt-criu.m4 new file mode 100644 index 000000000..05847d96b --- /dev/null +++ b/m4/virt-criu.m4 @@ -0,0 +1,27 @@ +dnl CRIU is used to checkpoint/restore LXC containers. +dnl +dnl Copyright (C) 2016 Katerina Koukiou +dnl +dnl This library is free software; you can redistribute it and/or +dnl modify it under the terms of the GNU Lesser General Public +dnl License as published by the Free Software Foundation; either +dnl version 2.1 of the License, or (at your option) any later version. +dnl +dnl This library is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl Lesser General Public License for more details. +dnl +dnl You should have received a copy of the GNU Lesser General Public +dnl License along with this library. If not, see +dnl . +dnl + +AC_DEFUN([LIBVIRT_CHECK_CRIU],[ + AC_PATH_PROG([CRIU], [criu], [no], + [$PATH:/sbin:/usr/sbin:/usr/local/sbin]) + if test "x$ac_cv_path_CRIU" !=3D "xno"; then + AC_DEFINE_UNQUOTED([CRIU], ["$CRIU"], + [Location of criu program]) + fi +]) --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list