From patchwork Thu May 18 06:49:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Rzeszutek Wilk X-Patchwork-Id: 9732375 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C81D7600CC for ; Thu, 18 May 2017 02:41:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A25E426861 for ; Thu, 18 May 2017 02:41:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94F61286AB; Thu, 18 May 2017 02:41:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_03_06, DKIM_SIGNED, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 212CF26861 for ; Thu, 18 May 2017 02:41:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBBLC-0004iB-5S; Thu, 18 May 2017 02:39:02 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBBLB-0004i5-E6 for xen-devel@lists.xenproject.org; Thu, 18 May 2017 02:39:01 +0000 Received: from [85.158.143.35] by server-7.bemta-6.messagelabs.com id 9D/B1-03620-4490D195; Thu, 18 May 2017 02:39:00 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFKsWRWlGSWpSXmKPExsVyMfTONl1nTtl IgzuTVSy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oxdz9axF7zWrzg0cw1LA+NB5S5GLg4hgZmM Ent2zGUEcVgElrFKLFm2gR3EkRA4xCqx4d4D5i5GTiAnTqLxx25GCLtaounAerC4kICSxJbJj xkhRm1mkng4v48VJCEsoCcx+dttsAYWAVWJ5w9msIHYbAL6Ek/XXgNrFhHQlnixah0bSDOzQA +jxMLN34AcDqBmD4k/pxNBangFLCUWzNnKArFgJ6PEvlnb2CASghInZz5hAalnFrCSWP+hCsK Ullj+jwOkglPAQWL72yNg54gKqEhcmfCWfQKjyCwkzbMQmmchNINUMAtoSdz495IJQ1hb4uHE qUwQdrbE+clrmVHFQcoTJKZPs13AyLmKUaM4tagstUjX0EQvqSgzPaMkNzEzR9fQwEwvN7W4O DE9NScxqVgvOT93EyMwFhmAYAfj9Y0BhxglOZiURHld/8lECvEl5adUZiQWZ8QXleakFh9ilO HgUJLgdWOXjRQSLEpNT61Iy8wBJgWYtAQHj5IIryAHUJq3uCAxtzgzHSJ1itGe48Xl9++ZON4 t/QAkn6z8ASQPPf/5nkmIJS8/L1VKnHcPyFQBkLaM0jy4obAkdolRVkqYlxHoTCGegtSi3MwS VPlXjOIcjErCvDwgy3ky80rgdr8COosJ6KzmB9IgZ5UkIqSkGhjXzj11ZN++uqL7hh2fEpdsf qDEyVXZfc69xjkrcH9cwgvRRZd/nXAV/Bo9KZLf5JQ2f1Hfi6gGxw/G1755XZr6b1a8v+SMHy X3rViPvf37NyxnwcWTuyIyrj6Z/TWXqfrGipoNzc+3RCgphL6cKJjK4+NTfe/WLMakDpXn7+2 a7ks12P5/c6pUiaU4I9FQi7moOBEA0CsBvl0DAAA= X-Env-Sender: ketuzsezr@gmail.com X-Msg-Ref: server-3.tower-21.messagelabs.com!1495075138!65738590!1 X-Originating-IP: [209.85.220.182] X-SpamReason: No, hits=2.6 required=7.0 tests=BODY_RANDOM_LONG, DATE_IN_FUTURE_03_06 X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 21995 invoked from network); 18 May 2017 02:38:59 -0000 Received: from mail-qk0-f182.google.com (HELO mail-qk0-f182.google.com) (209.85.220.182) by server-3.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 18 May 2017 02:38:59 -0000 Received: by mail-qk0-f182.google.com with SMTP id k74so25701440qke.1 for ; Wed, 17 May 2017 19:38:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dBSSG8ROfZc7aJH2BzCUqpkQbMmlcGuAIi3QU0BUgPw=; b=JcUBB4WctrBazV40lcQctzboxgh8ZG7RdocExhSceRLbBOhyYyosU+zfnBwf3zCyLZ yVknBhqL1Z9Y2tcxgM/Yg46FCTKfXlTIitRnSYxyVu+iCHb7TnTCuIL7Vym2dUM7wJGU c8jqNcgpfEuj4Su+bZweZnC45T8mO50mmNmt3JlHaScA0MX2K0oSrNc1n5H6bJIGZm56 unGMFul+0i/eVDFudqCETUy1OHv24mTH4RoBTcPeHIsIGJ9KM8cPon78ANT82VZNiJPr wsqhy89Nhjiwaqb01uw/ryA5UIq6giPaA1EgX6cUDgVsu6A+y/OFBgufdTzKiuk5C4lB 1lAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=dBSSG8ROfZc7aJH2BzCUqpkQbMmlcGuAIi3QU0BUgPw=; b=SVxKH5tnP7FvPF1V6DGJoBWlSfpnxXnml5iGkL/CUeN/I9naAWRST+CQ4GwiSL8nId Hw7GdZTqy+OwHJwjXiERCRuHI7yE9ZOasH8JOqmMib2pMzATqjN/0LvPD0hm/uLSLBz0 RKO+uSvk+paJHYf2ky6sftQ8PLQMmJLgXUhBrwJYTY54SmDME0/QYPJAn2kUa/HkAwz3 LSftY6aqvdialBxjeeQjhMF5RfkKRojzCsUQ10uBTBiNW+ho0ZEg6E/V9Dln/R8sP1BR BT/X59fgtMYCG42QhEJerruWTz0F1mk13Wv6s5PBTGTzkW/Aee4e/osUl9IibcHYzPe0 S9Tg== X-Gm-Message-State: AODbwcBm1tFPbl8ZnX0u/TKdGK3Y393slMjnMYl0fIYRpvz9Nz1Kc4U6 43H40/Z3nE4Ehg== X-Received: by 10.55.141.133 with SMTP id p127mr1652963qkd.216.1495075138375; Wed, 17 May 2017 19:38:58 -0700 (PDT) Received: from osstest.dumpdata.com (209-6-200-48.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com. [209.6.200.48]) by smtp.gmail.com with ESMTPSA id l184sm2659572qkc.33.2017.05.17.19.38.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 May 2017 19:38:57 -0700 (PDT) Date: Thu, 18 May 2017 02:49:28 -0400 From: Konrad Rzeszutek Wilk To: Ian Jackson Message-ID: <20170518064925.GA28013@osstest.dumpdata.com> References: <1481611195-105372-1-git-send-email-konrad.wilk@oracle.com> <1481611195-105372-7-git-send-email-konrad.wilk@oracle.com> <22608.9877.805751.831868@mariner.uk.xensource.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <22608.9877.805751.831868@mariner.uk.xensource.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: xen-devel@lists.xenproject.org, Marcos.Matsunaga@oracle.com, ross.lagerwall@citrix.com Subject: Re: [Xen-devel] [PATCH v2 6/9] ts-xen-build: Build the livepatch test-cases X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP > or something ? I ended up doing two patches - one to create an enable_livepatch (in mfi-common) to seed the jobs. And then another to piggyback on that. I am attaching them here (as attachment), and I think it makes it simpler? From e7d697d4812ea22171fc738435c640adb5df1363 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Mon, 21 Nov 2016 17:11:13 -0500 Subject: [PATCH v3 4/7] ts-xen-build: Build livepatches test-cases Livepatch compiles and works on x86/ARM{32|64} so we can enable it. It only gets built and put in xentlpdist.tar.gz if enable_livepatch is set to true. Signed-off-by: Konrad Rzeszutek Wilk --- v1: New posting v2: Put the livepatch test-cases in xentlpdist.tar.gz file v3: Use enable_livepatch to gate the build and tarring the test-cases. --- ts-xen-build | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ts-xen-build b/ts-xen-build index 31acb9d..92f467b 100755 --- a/ts-xen-build +++ b/ts-xen-build @@ -51,6 +51,7 @@ $dashdashdash //= -1; builddirsprops(); my $enable_xsm = ($r{enable_xsm}//'false') =~ m/true/ ? 1 : 0; +my $enable_livepatch = ($r{enable_livepatch}//'false') =~ m/true/ ? 1 : 0; $buildcmd_global_prefix= <>.config LIBLEAFDIR_x86_64=lib echo >>.config KERNELS='' END + (${enable_livepatch} ? <>xen/.config CONFIG_LIVEPATCH=y + echo >>xen/.config CONFIG_FAST_SYMBOL_LOOKUP=y + fi +END (nonempty($r{enable_xsm}) ? <>xen/.config CONFIG_XSM='${build_xsm}' @@ -164,6 +171,18 @@ END END store_runvar("flaskpolicy", "xenpolicy-" . $xen_version); } + + if ($enable_livepatch) { + buildcmd_stamped_logged(600, 'xen', 'xenlpt', <