Received: by 10.223.176.46 with SMTP id f43csp3877615wra; Tue, 23 Jan 2018 00:11:27 -0800 (PST) X-Google-Smtp-Source: AH8x225RTEu0NzyHNqoUwjsOzdQFfmbO7+/u+YidnzaZFlwccVY+BIujcxLoVqXOo6jLpNZL9fpm X-Received: by 2002:a17:902:20e3:: with SMTP id v32-v6mr5034292plg.405.1516695086980; Tue, 23 Jan 2018 00:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516695086; cv=none; d=google.com; s=arc-20160816; b=xgAFTTcVgGK/E1vzqfa208iaYVnh7DqRiU0fJCsjN1SGHC6IlQt43qGHA16NJIyOLe Y82Z1WK9hc7An6+//MOznAGHpkf6oOOCDNRb/jkpN6JmjTD34voEKcyhKBXFPSGNzstt T7SbIRxQ1Frzo69mxxwjEadp1Pc7zSzjf2i+ZSs2zIM5JGbZdVmETVQWxjlLgtP7uVTm WKmMLwCw7yLfYb7m9p8nuCuO1ymnEgWukpGB303aFoPh1oYnXnb4DInUvYfVuvqWwJzs 1JKIhA9jSlUsFpBr+oMEIo6kcc4+pUT17pFalDoyj8bKBQL//NM0l2OItyoQ9vXy43YJ WGRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=plRaFhbBbwHZcHWnrZvhDT8LWxX9BjA+DKswtRJKcHo=; b=bqvg2dQ7LV6HMLFrWvq/Ctdr9ykQnnok1gfwJmFURyvzuhk4OtjId20olRLGD4Mcu4 jqQaAEI1LuTE01B7BVZHA3erbK5xWQMPX7hoByS9TQn2pkPKczThK7o6w1YY9jcGaMTO w3wqV67uOZf3ny/vRhPXcz2OPttBo2eouVfFHcsA8+axwwhQS3kSnuBDCjs4dsfe4Sa4 VWBmoVr0H4yyFXT9Bclvlugoa5+zszGCKgsotLSqDUZDDPe8o9Cppe+KVmJ6dXDeFyli A9R+ylY32ODIB273jmVoj4c67CsfovmxYKYERtaFmGoo3S4DVbGlGZgnHKQe3OhcQS7S O7Qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r88si1091773pfi.263.2018.01.23.00.11.13; Tue, 23 Jan 2018 00:11:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751477AbeAWIKL (ORCPT + 99 others); Tue, 23 Jan 2018 03:10:11 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:4716 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751338AbeAWIIw (ORCPT ); Tue, 23 Jan 2018 03:08:52 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A439A89129F04; Tue, 23 Jan 2018 16:08:36 +0800 (CST) Received: from huawei.com (10.175.102.37) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.361.1; Tue, 23 Jan 2018 16:08:30 +0800 From: To: CC: , , , , Subject: [PATCH RFC 11/16] rcutorture: Add basic ARM64 support to run scripts Date: Tue, 23 Jan 2018 15:59:36 +0800 Message-ID: <1516694381-20333-12-git-send-email-lianglihao@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1516694381-20333-1-git-send-email-lianglihao@huawei.com> References: <1516694381-20333-1-git-send-email-lianglihao@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lihao Liang This commit adds support of the qemu command qemu-system-aarch64 to rcutorture. Signed-off-by: Lihao Liang --- tools/testing/selftests/rcutorture/bin/functions.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh index 1426a9b9..4a24b873 100644 --- a/tools/testing/selftests/rcutorture/bin/functions.sh +++ b/tools/testing/selftests/rcutorture/bin/functions.sh @@ -111,6 +111,9 @@ identify_boot_image () { qemu-system-x86_64|qemu-system-i386) echo arch/x86/boot/bzImage ;; + qemu-system-aarch64) + echo arch/arm64/boot/Image + ;; *) echo vmlinux ;; @@ -133,6 +136,9 @@ identify_qemu () { elif echo $u | grep -q "Intel 80386" then echo qemu-system-i386 + elif echo $u | grep -q aarch64 + then + echo qemu-system-aarch64 elif uname -a | grep -q ppc64 then echo qemu-system-ppc64 @@ -151,16 +157,20 @@ identify_qemu () { # Output arguments for the qemu "-append" string based on CPU type # and the TORTURE_QEMU_INTERACTIVE environment variable. identify_qemu_append () { + local console=ttyS0 case "$1" in qemu-system-x86_64|qemu-system-i386) echo noapic selinux=0 initcall_debug debug ;; + qemu-system-aarch64) + console=ttyAMA0 + ;; esac if test -n "$TORTURE_QEMU_INTERACTIVE" then echo root=/dev/sda else - echo console=ttyS0 + echo console=$console fi } @@ -172,6 +182,9 @@ identify_qemu_args () { case "$1" in qemu-system-x86_64|qemu-system-i386) ;; + qemu-system-arm|qemu-system-aarch64) + echo -machine virt,gic-version=host -cpu host + ;; qemu-system-ppc64) echo -enable-kvm -M pseries -nodefaults echo -device spapr-vscsi @@ -229,7 +242,7 @@ specify_qemu_cpus () { echo $2 else case "$1" in - qemu-system-x86_64|qemu-system-i386) + qemu-system-x86_64|qemu-system-i386|qemu-system-aarch64) echo $2 -smp $3 ;; qemu-system-ppc64) -- 2.14.1.729.g59c0ea183