Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2529925ybg; Fri, 31 Jul 2020 02:30:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTEgB+ID58garW6h2WajL4bg+LXuAKRyfwMbJtHTNTGXPdyA5+TXXcCxj05+NuB3Q7kqA+ X-Received: by 2002:a50:935a:: with SMTP id n26mr2960091eda.107.1596187811600; Fri, 31 Jul 2020 02:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596187811; cv=none; d=google.com; s=arc-20160816; b=hrdtsqqgs5lX9GL1vqfEQlNwh+ppoXs6mdrXXfLN1EP+TO5gpHtbwYwz6Y1In3pygr ZQA5nLUyLoyJQWwyV08o1/oh4adwAALVcdzWb70oSsWz/vI/YeSRMnSoFUr5yTvT79VH StMF5PWBtJucPoadvUFTe99YE6Hd0io9+m13bzqQ3bHnoVGF7rAYLFnXDvWAmUDLvJvw qRRTB4A9G2InGglAl0BBmRnFQlaji5iZLl1eFsJ4vvwXP1GhWzKeFoOkKCsgigf/ae58 smunw05FJ7sZ88Vz0meFpi4RajoOCLpmILp9wn0zyB/X2dge5mXvKzL6uN8N/+Chwqip L8gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=zkvscX6ZdSWmORe/q9F52pVi9blxgznm8DDxOMkFxDg=; b=yLZ9H4rXuIAvYppH3eulgALFZJpwbyT94a0Lp7pXQ1BWimEGTAmD5j6/CpZ5AAq2HF +RYizfE76jH4ANs6WajMVMHXL4WcD8ogI6JZgvHFCbo+2HZ9BY/m/jKxC1o139dzcu3M l32+Y5XNdcbPSqVqkh9WZOCdpMrzIf+OhRyipoh2ksNBEsAkUzoXwCy8feyd6IDVZBag 8hPaVUrwlvUc7RamBQlJQ7b19xccQV0HdJ+meWyV1KxtSC9/K7YC29wIHOTJvwVCHhNL tmn+Du3t/yI5g8ZssUOVLllYhnfyflMi/cPnko4qGR2yEf3WYDG+1b0JLLanN9H5UmFQ 0D6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=plyQet7f; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x23si4306091ejy.571.2020.07.31.02.29.49; Fri, 31 Jul 2020 02:30:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=plyQet7f; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732906AbgGaJ2n (ORCPT + 99 others); Fri, 31 Jul 2020 05:28:43 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56344 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732203AbgGaJWv (ORCPT ); Fri, 31 Jul 2020 05:22:51 -0400 Date: Fri, 31 Jul 2020 09:22:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596187369; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zkvscX6ZdSWmORe/q9F52pVi9blxgznm8DDxOMkFxDg=; b=plyQet7f738U5yUtIUVSBEmZ4LCxUa1ctVxl5RWgR9DhvCIp9yz6r60MNI3i4wMgChDBF+ sWCLhK2lwAz7w8ZFiubgKZghkYTfzvS0h8034UU/s8g1Y/Bkk/GETb+Cpv+0PoSfCQ208w drIvaLp92qOgA7AK4gLfZtVbvvcyTiuXxELgQECkDFoE7Ilzu/tHauPW7xKNlmRpR8QSAT a5gHaYLha1WDsafCqa00se49O/MrgXZ2ptXbbkB++abluw4BWac8BjJSBFwr7SxM5GBTBP zr8xrcQDdrgOZ6WsqUramdjiZ5r2vJYpoGn/7sK4/iPTKwtMua41f37mCH+ayQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596187369; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zkvscX6ZdSWmORe/q9F52pVi9blxgznm8DDxOMkFxDg=; b=D7Mg+3wEKL/aAEV6pZMvZOx0AUhLTY54GwjmohTG3R+WYJymaVjqI4y1tPGyVWyCcsvXra xxygoxvbURDZViCw== From: "tip-bot2 for Paul E. McKenney" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/rcu] torture: Remove qemu dependency on EFI firmware Cc: Joel Fernandes , "Paul E. McKenney" , Sebastian Andrzej Siewior , x86 , LKML In-Reply-To: <20190701141403.GA246562@google.com> References: <20190701141403.GA246562@google.com> MIME-Version: 1.0 Message-ID: <159618736927.4006.11288693239254927787.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/rcu branch of tip: Commit-ID: 88513ae533756d10358e406743c21e8cf61fb72a Gitweb: https://git.kernel.org/tip/88513ae533756d10358e406743c21e8cf61fb72a Author: Paul E. McKenney AuthorDate: Tue, 28 Apr 2020 14:41:48 -07:00 Committer: Paul E. McKenney CommitterDate: Mon, 29 Jun 2020 12:01:43 -07:00 torture: Remove qemu dependency on EFI firmware On some (probably misconfigured) systems, the torture-test scripting will cause qemu to complain about missing EFI firmware, often because qemu is trying to traverse broken symbolic links to find that firmware. Which is a bit silly given that the default torture-test guest OS has but a single binary for its userspace, and thus is unlikely to do much in the way of networking in any case. This commit therefore avoids such problems by specifying "-net none" to qemu unless the TORTURE_QEMU_INTERACTIVE environment variable is set (for example, by having specified "--interactive" to kvm.sh), in which case "-net nic -net user" is specified to qemu instead. Either choice may be overridden by specifying the "-net" argument of your choice to the kvm.sh "--qemu-args" parameter. Link: https://lore.kernel.org/lkml/20190701141403.GA246562@google.com Reported-by: Joel Fernandes Signed-off-by: Paul E. McKenney Cc: Sebastian Andrzej Siewior --- tools/testing/selftests/rcutorture/bin/functions.sh | 21 ++++++- tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | 1 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh index 1281022..436b154 100644 --- a/tools/testing/selftests/rcutorture/bin/functions.sh +++ b/tools/testing/selftests/rcutorture/bin/functions.sh @@ -215,9 +215,6 @@ identify_qemu_args () { then echo -device spapr-vlan,netdev=net0,mac=$TORTURE_QEMU_MAC echo -netdev bridge,br=br0,id=net0 - elif test -n "$TORTURE_QEMU_INTERACTIVE" - then - echo -net nic -net user fi ;; esac @@ -275,3 +272,21 @@ specify_qemu_cpus () { esac fi } + +# specify_qemu_net qemu-args +# +# Appends a string containing "-net none" to qemu-args, unless the incoming +# qemu-args already contains "-smp" or unless the TORTURE_QEMU_INTERACTIVE +# environment variable is set, in which case the string that is be added is +# instead "-net nic -net user". +specify_qemu_net () { + if echo $1 | grep -q -e -net + then + echo $1 + elif test -n "$TORTURE_QEMU_INTERACTIVE" + then + echo $1 -net nic -net user + else + echo $1 -net none + fi +} diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh index 6ff611c..1b9aebd 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh @@ -141,6 +141,7 @@ then cpu_count=$TORTURE_ALLOTED_CPUS fi qemu_args="`specify_qemu_cpus "$QEMU" "$qemu_args" "$cpu_count"`" +qemu_args="`specify_qemu_net "$qemu_args"`" # Generate architecture-specific and interaction-specific qemu arguments qemu_args="$qemu_args `identify_qemu_args "$QEMU" "$resdir/console.log"`"