[{"id":1773235,"web_url":"http://patchwork.ozlabs.org/comment/1773235/","msgid":"<2ea507f1-3ff3-54e9-2fbf-d69c727de5c6@amsat.org>","list_archive_url":null,"date":"2017-09-22T03:17:40","subject":"Re: [Qemu-devel] [PATCH v11 07/13] tests: Add FreeBSD image","submitter":{"id":70924,"url":"http://patchwork.ozlabs.org/api/people/70924/","name":"Philippe Mathieu-Daudé","email":"f4bug@amsat.org"},"content":"Hi Fam,\n\nOn 09/21/2017 12:07 PM, Fam Zheng wrote:\n> The image is prepared following instructions as in:\n> \n> https://wiki.qemu.org/Hosts/BSD\n> \n> Signed-off-by: Fam Zheng <famz@redhat.com>\n> ---\n>   tests/vm/freebsd | 42 ++++++++++++++++++++++++++++++++++++++++++\n>   1 file changed, 42 insertions(+)\n>   create mode 100755 tests/vm/freebsd\n> \n> diff --git a/tests/vm/freebsd b/tests/vm/freebsd\n> new file mode 100755\n> index 0000000000..039dad8f69\n> --- /dev/null\n> +++ b/tests/vm/freebsd\n> @@ -0,0 +1,42 @@\n> +#!/usr/bin/env python\n> +#\n> +# FreeBSD VM image\n> +#\n> +# Copyright 2017 Red Hat Inc.\n> +#\n> +# Authors:\n> +#  Fam Zheng <famz@redhat.com>\n> +#\n> +# This code is licensed under the GPL version 2 or later.  See\n> +# the COPYING file in the top-level directory.\n> +#\n> +\n> +import os\n> +import sys\n> +import subprocess\n> +import basevm\n> +\n> +class FreeBSDVM(basevm.BaseVM):\n> +    name = \"freebsd\"\n> +    BUILD_SCRIPT = \"\"\"\n> +        set -e;\n> +        cd $(mktemp -d /var/tmp/qemu-test.XXXXXX);\n> +        tar -xf /dev/vtbd1;\n> +        ./configure {configure_opts};\n> +        gmake -j{jobs};\n> +        gmake check;\n> +    \"\"\"\n> +\n> +    def build_image(self, img):\n> +        cimg = self._download_with_cache(\"http://download.patchew.org/freebsd-11.1-amd64.img.xz\",\n> +                sha256sum='adcb771549b37bc63826c501f05121a206ed3d9f55f49145908f7e1432d65891')\n> +        img_tmp_xz = img + \".tmp.xz\"\n> +        img_tmp = img + \".tmp\"\n> +        subprocess.check_call([\"cp\", \"-f\", cimg, img_tmp_xz])\n\nI'd rather see this part common to 3 images refactored as @static \nBaseVM.download_and_extract_image() and some logging:\n\n         logging.debug(\"Extracting %s...\", fname)\n\n> +        subprocess.check_call([\"xz\", \"-df\", img_tmp_xz])\n\nelse one wonder what's happening here.\n\n(for another patch on top on this series)\n\n> +        if os.path.exists(img):\n> +            os.remove(img)\n> +        os.rename(img_tmp, img)\n> +\n> +if __name__ == \"__main__\":\n> +    sys.exit(basevm.main(FreeBSDVM))\n>","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"p/YTm6Rh\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xyzFr5ZgJz9sRW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 13:18:24 +1000 (AEST)","from localhost ([::1]:56493 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dvETu-0000XP-TS\n\tfor incoming@patchwork.ozlabs.org; Thu, 21 Sep 2017 23:18:22 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:53696)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvETV-0000X8-K3\n\tfor qemu-devel@nongnu.org; Thu, 21 Sep 2017 23:18:00 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvETR-0001jy-5e\n\tfor qemu-devel@nongnu.org; Thu, 21 Sep 2017 23:17:57 -0400","from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:47239)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvETR-0001hL-0t\n\tfor qemu-devel@nongnu.org; Thu, 21 Sep 2017 23:17:53 -0400","by mail-qk0-x22f.google.com with SMTP id b82so7644712qkc.4\n\tfor <qemu-devel@nongnu.org>; Thu, 21 Sep 2017 20:17:51 -0700 (PDT)","from [192.168.1.240] ([181.93.89.178])\n\tby smtp.gmail.com with ESMTPSA id\n\tg31sm2079159qtg.21.2017.09.21.20.17.47\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 21 Sep 2017 20:17:50 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=2jW7w2tl7nnvajSVJJILFjk8yIwWQD2feZsQ1MloVHk=;\n\tb=p/YTm6RhfOHjqkmOl83gVUUwpkj4r6icaymHNuyJ3rJZXZavaeckvqhKZNeM6jXFoK\n\tFbbcNqXHK/ad5zFZY1Bw3D22OB/6jBk6GlUQNxz3rcMGbu+sblD0quukHTBS/yL5JYHN\n\t/Tc8S4T3OtU/RWVY+5yQQvr7PYVLv1aI548WYLRL+a1rKmUkmfSVK2aYGY8VB9Wz9mrY\n\t67K/cRqZucCsQnZIBq353ETU8TriZ+FaJarJL89DH/wkrGFZYXE5Mfqpx1KJ+jGPVUA+\n\tIb22fzLvgFQ/T2/8zc92hR0tACES4YP0M4WlQWGIc7FJmLDMnTJyJ9ut0HY2Qy5SPEVU\n\tVN2Q==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:subject:to:cc:references:from:message-id\n\t:date:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=2jW7w2tl7nnvajSVJJILFjk8yIwWQD2feZsQ1MloVHk=;\n\tb=msbzkdPbFmm3p5okYlflI4NKkHa+/55tc7MMIViz9ar8YRLMDobdm0Wc+edMC2IMYN\n\tFEW6Qqrm4bYjz6xl4Hpd97qiPRLvkX6cpsSM9i/nG9xvzI0aUEsSiSDLUeDs7NGghdAv\n\tMR1RBx83dL7OtMWLwVtm518ZmQoJxYT6kFLUPamDzwp5jUXp7wr4Csoq64NBrpo/nbgR\n\tJLUVGSoJ+rM303eB6KITuWlIPv9HjQisdMop9O0RCtZByWV/SeS1K9GC5oRruy5AysN4\n\tgSC3N5TC7eDYBYuEjchsolsJRiz8i0EXVHVlhjmyl72hCTeifv5/NV+Ol9977YMoeDnu\n\tU2Rg==","X-Gm-Message-State":"AHPjjUhusRj1qvpyPHBhaRsU3seKCHSvqPkXHv2nN0rPg2dvoCpPUSVw\n\tqijJezWKu9nXz6dE5MWmROY=","X-Google-Smtp-Source":"AOwi7QAqElk1RRWUN/sW+nsQPVV8fEuv/rHjZQDkdK8qmx9bqKHt/N08yKRxenB3IvrHv3S8zTml1g==","X-Received":"by 10.55.130.129 with SMTP id e123mr3881574qkd.295.1506050270907;\n\tThu, 21 Sep 2017 20:17:50 -0700 (PDT)","To":"Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org","References":"<20170921150755.19914-1-famz@redhat.com>\n\t<20170921150755.19914-8-famz@redhat.com>","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>","Message-ID":"<2ea507f1-3ff3-54e9-2fbf-d69c727de5c6@amsat.org>","Date":"Fri, 22 Sep 2017 00:17:40 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170921150755.19914-8-famz@redhat.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2607:f8b0:400d:c09::22f","Subject":"Re: [Qemu-devel] [PATCH v11 07/13] tests: Add FreeBSD image","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, Kamil Rytarowski\n\t<kamil@netbsd.org>, stefanha@redhat.com, Cleber Rosa <crosa@redhat.com>,\n\tpbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?=\n\t<alex.bennee@linaro.org>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1773277,"web_url":"http://patchwork.ozlabs.org/comment/1773277/","msgid":"<20170922053107.GF1397@lemon.lan>","list_archive_url":null,"date":"2017-09-22T05:31:07","subject":"Re: [Qemu-devel] [PATCH v11 07/13] tests: Add FreeBSD image","submitter":{"id":24872,"url":"http://patchwork.ozlabs.org/api/people/24872/","name":"Fam Zheng","email":"famz@redhat.com"},"content":"On Fri, 09/22 00:17, Philippe Mathieu-Daudé wrote:\n> Hi Fam,\n> \n> On 09/21/2017 12:07 PM, Fam Zheng wrote:\n> > The image is prepared following instructions as in:\n> > \n> > https://wiki.qemu.org/Hosts/BSD\n> > \n> > Signed-off-by: Fam Zheng <famz@redhat.com>\n> > ---\n> >   tests/vm/freebsd | 42 ++++++++++++++++++++++++++++++++++++++++++\n> >   1 file changed, 42 insertions(+)\n> >   create mode 100755 tests/vm/freebsd\n> > \n> > diff --git a/tests/vm/freebsd b/tests/vm/freebsd\n> > new file mode 100755\n> > index 0000000000..039dad8f69\n> > --- /dev/null\n> > +++ b/tests/vm/freebsd\n> > @@ -0,0 +1,42 @@\n> > +#!/usr/bin/env python\n> > +#\n> > +# FreeBSD VM image\n> > +#\n> > +# Copyright 2017 Red Hat Inc.\n> > +#\n> > +# Authors:\n> > +#  Fam Zheng <famz@redhat.com>\n> > +#\n> > +# This code is licensed under the GPL version 2 or later.  See\n> > +# the COPYING file in the top-level directory.\n> > +#\n> > +\n> > +import os\n> > +import sys\n> > +import subprocess\n> > +import basevm\n> > +\n> > +class FreeBSDVM(basevm.BaseVM):\n> > +    name = \"freebsd\"\n> > +    BUILD_SCRIPT = \"\"\"\n> > +        set -e;\n> > +        cd $(mktemp -d /var/tmp/qemu-test.XXXXXX);\n> > +        tar -xf /dev/vtbd1;\n> > +        ./configure {configure_opts};\n> > +        gmake -j{jobs};\n> > +        gmake check;\n> > +    \"\"\"\n> > +\n> > +    def build_image(self, img):\n> > +        cimg = self._download_with_cache(\"http://download.patchew.org/freebsd-11.1-amd64.img.xz\",\n> > +                sha256sum='adcb771549b37bc63826c501f05121a206ed3d9f55f49145908f7e1432d65891')\n> > +        img_tmp_xz = img + \".tmp.xz\"\n> > +        img_tmp = img + \".tmp\"\n> > +        subprocess.check_call([\"cp\", \"-f\", cimg, img_tmp_xz])\n> \n> I'd rather see this part common to 3 images refactored as @static\n> BaseVM.download_and_extract_image() and some logging:\n> \n>         logging.debug(\"Extracting %s...\", fname)\n> \n> > +        subprocess.check_call([\"xz\", \"-df\", img_tmp_xz])\n> \n> else one wonder what's happening here.\n> \n> (for another patch on top on this series)\n\nYep, that sounds good.\n\nFam","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ext-mx10.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx10.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=famz@redhat.com"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xz2Cg4QNgz9sPk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 15:31:42 +1000 (AEST)","from localhost ([::1]:56727 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dvGYt-00052T-MM\n\tfor incoming@patchwork.ozlabs.org; Fri, 22 Sep 2017 01:31:39 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:42611)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <famz@redhat.com>) id 1dvGYW-000528-0l\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 01:31:17 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <famz@redhat.com>) id 1dvGYS-0006wd-R6\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 01:31:16 -0400","from mx1.redhat.com ([209.132.183.28]:33798)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <famz@redhat.com>) id 1dvGYS-0006wJ-LQ\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 01:31:12 -0400","from smtp.corp.redhat.com\n\t(int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 522A06146E;\n\tFri, 22 Sep 2017 05:31:11 +0000 (UTC)","from localhost (ovpn-12-122.pek2.redhat.com [10.72.12.122])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id BE6555D9CC;\n\tFri, 22 Sep 2017 05:31:08 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com 522A06146E","Date":"Fri, 22 Sep 2017 13:31:07 +0800","From":"Fam Zheng <famz@redhat.com>","To":"Philippe =?iso-8859-1?q?Mathieu-Daud=E9?= <f4bug@amsat.org>","Message-ID":"<20170922053107.GF1397@lemon.lan>","References":"<20170921150755.19914-1-famz@redhat.com>\n\t<20170921150755.19914-8-famz@redhat.com>\n\t<2ea507f1-3ff3-54e9-2fbf-d69c727de5c6@amsat.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=iso-8859-1","Content-Disposition":"inline","In-Reply-To":"<2ea507f1-3ff3-54e9-2fbf-d69c727de5c6@amsat.org>","User-Agent":"Mutt/1.8.3 (2017-05-23)","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.14","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.39]);\n\tFri, 22 Sep 2017 05:31:11 +0000 (UTC)","Content-Transfer-Encoding":"quoted-printable","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"209.132.183.28","Subject":"Re: [Qemu-devel] [PATCH v11 07/13] tests: Add FreeBSD image","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org, Kamil\n\tRytarowski <kamil@netbsd.org>, stefanha@redhat.com, Cleber Rosa\n\t<crosa@redhat.com>, pbonzini@redhat.com, Alex =?iso-8859-1?q?Benn=E9e?=\n\t<alex.bennee@linaro.org>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1773288,"web_url":"http://patchwork.ozlabs.org/comment/1773288/","msgid":"<49d5d158-9103-d14d-8ce6-35196754aafb@amsat.org>","list_archive_url":null,"date":"2017-09-22T06:09:26","subject":"Re: [Qemu-devel] [PATCH v11 07/13] tests: Add FreeBSD image","submitter":{"id":70924,"url":"http://patchwork.ozlabs.org/api/people/70924/","name":"Philippe Mathieu-Daudé","email":"f4bug@amsat.org"},"content":"On 09/21/2017 12:07 PM, Fam Zheng wrote:\n> The image is prepared following instructions as in:\n> \n> https://wiki.qemu.org/Hosts/BSD\n> \n> Signed-off-by: Fam Zheng <famz@redhat.com>\n\n$ QEMU=`pwd`/x86_64-softmmu/qemu-system-x86_64 make vm-build-freebsd V=1\n[...]\n   CC      tests/test-io-channel-socket.o\n   CC      tests/io-channel-helpers.o\n   LINK    tests/test-io-channel-socket\n\nthe build hang here, stopping to use the cpu, keeping 2GB of resident \nphysical memory until I hit ^C ... not enough ram for the guest? guest \ntmpfs full?\n\nuseful enough for:\nTested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n\n> ---\n>   tests/vm/freebsd | 42 ++++++++++++++++++++++++++++++++++++++++++\n>   1 file changed, 42 insertions(+)\n>   create mode 100755 tests/vm/freebsd\n> \n> diff --git a/tests/vm/freebsd b/tests/vm/freebsd\n> new file mode 100755\n> index 0000000000..039dad8f69\n> --- /dev/null\n> +++ b/tests/vm/freebsd\n> @@ -0,0 +1,42 @@\n> +#!/usr/bin/env python\n> +#\n> +# FreeBSD VM image\n> +#\n> +# Copyright 2017 Red Hat Inc.\n> +#\n> +# Authors:\n> +#  Fam Zheng <famz@redhat.com>\n> +#\n> +# This code is licensed under the GPL version 2 or later.  See\n> +# the COPYING file in the top-level directory.\n> +#\n> +\n> +import os\n> +import sys\n> +import subprocess\n> +import basevm\n> +\n> +class FreeBSDVM(basevm.BaseVM):\n> +    name = \"freebsd\"\n> +    BUILD_SCRIPT = \"\"\"\n> +        set -e;\n> +        cd $(mktemp -d /var/tmp/qemu-test.XXXXXX);\n> +        tar -xf /dev/vtbd1;\n> +        ./configure {configure_opts};\n> +        gmake -j{jobs};\n> +        gmake check;\n> +    \"\"\"\n> +\n> +    def build_image(self, img):\n> +        cimg = self._download_with_cache(\"http://download.patchew.org/freebsd-11.1-amd64.img.xz\",\n> +                sha256sum='adcb771549b37bc63826c501f05121a206ed3d9f55f49145908f7e1432d65891')\n> +        img_tmp_xz = img + \".tmp.xz\"\n> +        img_tmp = img + \".tmp\"\n> +        subprocess.check_call([\"cp\", \"-f\", cimg, img_tmp_xz])\n> +        subprocess.check_call([\"xz\", \"-df\", img_tmp_xz])\n> +        if os.path.exists(img):\n> +            os.remove(img)\n> +        os.rename(img_tmp, img)\n> +\n> +if __name__ == \"__main__\":\n> +    sys.exit(basevm.main(FreeBSDVM))\n>","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"NM9+iQYl\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xz33p71fmz9sNr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 16:09:58 +1000 (AEST)","from localhost ([::1]:56822 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dvH9x-0004nP-47\n\tfor incoming@patchwork.ozlabs.org; Fri, 22 Sep 2017 02:09:57 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:48901)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvH9c-0004nI-C7\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 02:09:37 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvH9Y-0007Q1-5g\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 02:09:36 -0400","from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:33586)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dvH9Y-0007Pv-0Z\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 02:09:32 -0400","by mail-qt0-x243.google.com with SMTP id b1so97291qtc.0\n\tfor <qemu-devel@nongnu.org>; Thu, 21 Sep 2017 23:09:32 -0700 (PDT)","from [192.168.1.240] ([181.93.89.178])\n\tby smtp.gmail.com with ESMTPSA id\n\tc1sm2182259qkg.55.2017.09.21.23.09.27\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 21 Sep 2017 23:09:30 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=X6zMtJ5wcHeUMdTd1dW/5+pcADTs1fGoDtw+32nh4A4=;\n\tb=NM9+iQYlhmLaOB0UlBfuImWlcBMd3vHijS4pFzZaxdczVO2cJo+QCME2T+BjqgKgi3\n\tp25pTy3kxfZ2ZdLON0D5VaXqJW3VEVGGSb/u4PzwuiO//snsqG/7wdtWcsZbLHE5ivbT\n\tLwCT/mHfNvU8OiYAXD6I7BIwI0XiV6adiVFgQOFm5rNClaEjxX78Yy+TLiqMtKyPs9/P\n\t8DJl4GlthgO2H2sxXEDxr7CIoviRXbHJTRrwyaCVRPeWSqsrRebnjWInUzOVLA8iqk1C\n\tTPLvJdJK0jh2Mfxeaie7R9ktWk3oUYHoWCXKaXkhjFJVoQ4Nw9xLSYp5mHa3BaiEA8aZ\n\tQ3NQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:subject:to:cc:references:from:message-id\n\t:date:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=X6zMtJ5wcHeUMdTd1dW/5+pcADTs1fGoDtw+32nh4A4=;\n\tb=nR8Cb7YqjiIkwGWH7m8cqmdRaCOCqZthH1GmVl3hiwmX4/xXJ98aDAAQohKtiihSF1\n\taVVrDyE8WhI48ASOwlHou4mXew7cZ+WeC+vFHAqykFEs+DcckZY12xTwgYoq16JWBIOY\n\tZg7kp/gp7DWtOVYuY/2CiVll3oPfrW2di+6LZM3JEunynvLnZCSDcSyuJOKLbM8KdTM/\n\t0Erw2/L5QzopaaK60KX1yv72UOJ0kbzc1ye7TqQsf2ejgAMP4+B8bBBk7q22OuLmMm33\n\twIBT1ndiZpHDFr8K6sE2uGUaT6umTB0CGjX+fiEJgK/eHqSSZdaZ2tQaGUPs7X7NkoIh\n\tZKfA==","X-Gm-Message-State":"AHPjjUjnRRtZK0HOwob27rSj3hZmshhKqiOqqDCFjQ4t1UfXvXX9reUS\n\tN72g0IvFzWJ5d5D3gT5+pnI=","X-Google-Smtp-Source":"AOwi7QBbGsK5wMb3pfT01b78zWCTldBQIQpBBCSUBXy22HpvCEadWBrim8Nml/cmaFk+B2V/o4tXzA==","X-Received":"by 10.200.22.188 with SMTP id r57mr7346949qtj.230.1506060571248; \n\tThu, 21 Sep 2017 23:09:31 -0700 (PDT)","To":"Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org","References":"<20170921150755.19914-1-famz@redhat.com>\n\t<20170921150755.19914-8-famz@redhat.com>","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>","Message-ID":"<49d5d158-9103-d14d-8ce6-35196754aafb@amsat.org>","Date":"Fri, 22 Sep 2017 03:09:26 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170921150755.19914-8-famz@redhat.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Language":"en-US","Content-Transfer-Encoding":"8bit","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2607:f8b0:400d:c0d::243","Subject":"Re: [Qemu-devel] [PATCH v11 07/13] tests: Add FreeBSD image","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, Kamil Rytarowski\n\t<kamil@netbsd.org>, stefanha@redhat.com, Cleber Rosa <crosa@redhat.com>,\n\tpbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?=\n\t<alex.bennee@linaro.org>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1773299,"web_url":"http://patchwork.ozlabs.org/comment/1773299/","msgid":"<20170922064533.GH1397@lemon.lan>","list_archive_url":null,"date":"2017-09-22T06:45:33","subject":"Re: [Qemu-devel] [PATCH v11 07/13] tests: Add FreeBSD image","submitter":{"id":24872,"url":"http://patchwork.ozlabs.org/api/people/24872/","name":"Fam Zheng","email":"famz@redhat.com"},"content":"On Fri, 09/22 03:09, Philippe Mathieu-Daudé wrote:\n> On 09/21/2017 12:07 PM, Fam Zheng wrote:\n> > The image is prepared following instructions as in:\n> > \n> > https://wiki.qemu.org/Hosts/BSD\n> > \n> > Signed-off-by: Fam Zheng <famz@redhat.com>\n> \n> $ QEMU=`pwd`/x86_64-softmmu/qemu-system-x86_64 make vm-build-freebsd V=1\n> [...]\n>   CC      tests/test-io-channel-socket.o\n>   CC      tests/io-channel-helpers.o\n>   LINK    tests/test-io-channel-socket\n> \n> the build hang here, stopping to use the cpu, keeping 2GB of resident\n> physical memory until I hit ^C ... not enough ram for the guest? guest tmpfs\n> full?\n\nFor how long? The four images doing \"J=8\" takes 1~2 hours here usually.  This\nworked for me on at least two machines (one laptop and one server). :-/\n\n> \n> useful enough for:\n> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n\nFam","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ext-mx07.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx07.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=famz@redhat.com"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xz3sS05T5z9sNr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 16:46:04 +1000 (AEST)","from localhost ([::1]:56932 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dvHis-0002bO-5Z\n\tfor incoming@patchwork.ozlabs.org; Fri, 22 Sep 2017 02:46:02 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:52889)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <famz@redhat.com>) id 1dvHiY-0002bD-DL\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 02:45:43 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <famz@redhat.com>) id 1dvHiV-0003Yp-3l\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 02:45:42 -0400","from mx1.redhat.com ([209.132.183.28]:14915)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <famz@redhat.com>) id 1dvHiU-0003Yd-MK\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 02:45:38 -0400","from smtp.corp.redhat.com\n\t(int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id A11E3C04B952;\n\tFri, 22 Sep 2017 06:45:37 +0000 (UTC)","from localhost (ovpn-12-122.pek2.redhat.com [10.72.12.122])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 063E162671;\n\tFri, 22 Sep 2017 06:45:34 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com A11E3C04B952","Date":"Fri, 22 Sep 2017 14:45:33 +0800","From":"Fam Zheng <famz@redhat.com>","To":"Philippe =?iso-8859-1?q?Mathieu-Daud=E9?= <f4bug@amsat.org>","Message-ID":"<20170922064533.GH1397@lemon.lan>","References":"<20170921150755.19914-1-famz@redhat.com>\n\t<20170921150755.19914-8-famz@redhat.com>\n\t<49d5d158-9103-d14d-8ce6-35196754aafb@amsat.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=iso-8859-1","Content-Disposition":"inline","In-Reply-To":"<49d5d158-9103-d14d-8ce6-35196754aafb@amsat.org>","User-Agent":"Mutt/1.8.3 (2017-05-23)","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.15","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.31]);\n\tFri, 22 Sep 2017 06:45:37 +0000 (UTC)","Content-Transfer-Encoding":"quoted-printable","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"209.132.183.28","Subject":"Re: [Qemu-devel] [PATCH v11 07/13] tests: Add FreeBSD image","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org, Kamil\n\tRytarowski <kamil@netbsd.org>, stefanha@redhat.com, Cleber Rosa\n\t<crosa@redhat.com>, pbonzini@redhat.com, Alex =?iso-8859-1?q?Benn=E9e?=\n\t<alex.bennee@linaro.org>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}}]