From patchwork Fri Feb 23 21:07:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Paul_Heidekr=C3=BCger?= X-Patchwork-Id: 205691 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp845738dyb; Fri, 23 Feb 2024 13:08:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVfbdIu1bJl5cSozqSjeDOHsx9Vvf4UdOaNZlCPIkkKoav412z5w2ANgfPjEksZCq3kn1sZQZAXTcrfchBhZn12/iOU1Q== X-Google-Smtp-Source: AGHT+IGGMCWm/RZHXXla1RSzzhGmqC46goHnM//tCRyW1Kpl/x8S/uHy1zgY8gTzqe6HwQV3yFqG X-Received: by 2002:a17:906:528c:b0:a3f:db30:872a with SMTP id c12-20020a170906528c00b00a3fdb30872amr612127ejm.66.1708722504226; Fri, 23 Feb 2024 13:08:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708722504; cv=pass; d=google.com; s=arc-20160816; b=kMo/njjtK2vf4e7Ngbfee3QQ4UXDV04hLbQDGe+4KsOVUW2QinMxNxV3BLCx+jheHT 9hvahkvMubKpjV5yjme6cHWIPQLXFRDiIhfUCQtcZ23olQRe9+ZHJIZFTbq0VRg4nvn6 m5Bpt1GWCw5C1WyK2r0kwh5vSl8Ky15BbAQ4HGe/Woa83DGRPFAKpYZa/nK3ohfun9br fevD+sBjdz1hRGKtASchT7M0EV34KLIoIyZ03u3rx4nIFDQ0P9mjTXir94tz1+cpDDAO YRDbaLhEzpOtSwgqvliU448/cwyQj/wSvD4fY/M7quzC4hB4Lrhr8KoroSZhCdLPEBjB FkWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=OsAtOP3HyeFECyD+gOM9C9a8tYttEgNL5Qe7BVzK3gk=; fh=e+VmoN5d8BvXfrSqmS3dySzajJAy48Je0CMA/1ExXr0=; b=oIZjlhRFy1qYAT0aflxp82/pUvxk40TwGIfnYV1LyVWb4U5XGUa7IlkjOryJh0OLXM yEUWkAAzJag2t8pv+wC6jtVzI1mgEMWP4v7G/pVXIZEqquiNfrGDYpQ+d8AjoH77f36I Bv4WMsLJAD/V6mZVim9lDPIf7JxPaXcF/S4qhdiaV4FwKHRDQ3jwvo4c16jfFwofiszL FC436Zw1dvUFDHpUBRgWbjA+SUyYESg01QNi8JC/aAKrR9MWoyQxiusKwMVpiYUF+ehR VbLoTEdHdDKCUF7foz7LoCIaSdDoRUUsVb7MNHDoK1qmz53wwLOa26jdOpq4TUWAX2aX vQvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tum.de header.s=tu-postout21 header.b=lqcI7ndp; arc=pass (i=1 spf=pass spfdomain=tum.de dkim=pass dkdomain=tum.de dmarc=pass fromdomain=tum.de); spf=pass (google.com: domain of linux-kernel+bounces-79179-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79179-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tum.de Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w8-20020a1709062f8800b00a3d201e67dasi6366033eji.764.2024.02.23.13.08.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 13:08:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79179-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@tum.de header.s=tu-postout21 header.b=lqcI7ndp; arc=pass (i=1 spf=pass spfdomain=tum.de dkim=pass dkdomain=tum.de dmarc=pass fromdomain=tum.de); spf=pass (google.com: domain of linux-kernel+bounces-79179-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79179-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tum.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CFDF41F23772 for ; Fri, 23 Feb 2024 21:08:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1CAA149391; Fri, 23 Feb 2024 21:08:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tum.de header.i=@tum.de header.b="lqcI7ndp" Received: from postout1.mail.lrz.de (postout1.mail.lrz.de [129.187.255.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2952813DBA8; Fri, 23 Feb 2024 21:08:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=129.187.255.137 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708722489; cv=none; b=Ifnovl97S5zN7iEAInHuZA1VB2or+Xohwv25W5D+rJ5VWoI27PZ55OntWm6fzro4LbmUgKWDBE973UR5epFy4firpUnbWWS6o4rYqHSsfLK5KDX6y81qyL2NdabPWLUoKSn4R2lminnJR1AdW0kNhrWoBsCsaiaSBQOgVUlhnkA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708722489; c=relaxed/simple; bh=3KpG0dZ2XwIzgEmxU5O4a/+aCHGJPy0nYK74PrTcq4k=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=hQMtU1EkkMBkZurAfINLznURvko8IN3DyuxFgMMXooedAmhRH+1zdUGLJCkoOc3RbJF1P3k6PSjJxl3LE6dr8HmM/WyQZnogUiFtQiHBOs+LLEeXWH8VRJzcT48XSYnELuHFJx4xQT6wp6fhwTsYy3cjs2FUx7C72MJMEw673dY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tum.de; spf=pass smtp.mailfrom=tum.de; dkim=pass (2048-bit key) header.d=tum.de header.i=@tum.de header.b=lqcI7ndp; arc=none smtp.client-ip=129.187.255.137 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tum.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tum.de Received: from lxmhs51.srv.lrz.de (localhost [127.0.0.1]) by postout1.mail.lrz.de (Postfix) with ESMTP id 4ThMzm6xYbzyV0; Fri, 23 Feb 2024 22:08:04 +0100 (CET) Authentication-Results: postout.lrz.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=tum.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tum.de; h= content-transfer-encoding:content-type:content-type:mime-version :references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received; s=tu-postout21; t= 1708722484; bh=3KpG0dZ2XwIzgEmxU5O4a/+aCHGJPy0nYK74PrTcq4k=; b=l qcI7ndpcpImO91fsKaGXkVs8bCQLaP8BEly4fKPXv6Y/Nw0fdKZStOkKpRs95lFS EeJ3Vvw6BM7RLTfV0ZFOUBWSK515nzHyPbof39cEivQoCNpfJhmlYBPx8pNt8Weo WUPnHljlkmqlGbi4bRQqx71A/93qpCVyVUwvIDch8CvK2KO9QkY+VzDsKfUq2bcK 0evbzDTSRGy7Ze+U/t2kv0Vzee9NWkVFDtP+VRCXxXhyzx3AW4aZR2r4yelvbZ3L ZeEcFB8aD6+dNIrJKI1uJMYxjOnDik+pNCTIeFt3d18xeIFW1bhdhoJxLxKhdcJh Z2u/znYJWyQxLmY/+n1Rg== X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs51.srv.lrz.de X-Spam-Flag: NO X-Spam-Score: -2.882 X-Spam-Level: Received: from postout1.mail.lrz.de ([127.0.0.1]) by lxmhs51.srv.lrz.de (lxmhs51.srv.lrz.de [127.0.0.1]) (amavisd-new, port 20024) with LMTP id 9idYgrUY4grQ; Fri, 23 Feb 2024 22:08:04 +0100 (CET) Received: from sienna.fritz.box (ppp-93-104-78-78.dynamic.mnet-online.de [93.104.78.78]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by postout1.mail.lrz.de (Postfix) with ESMTPSA id 4ThMzl5qNlzyTg; Fri, 23 Feb 2024 22:08:03 +0100 (CET) From: =?utf-8?q?Paul_Heidekr=C3=BCger?= To: Brendan Higgins , David Gow , Mark Brown , =?utf-8?q?Paul_Heidekr=C3=BCger?= , Shuah Khan , linux-kselftest@vger.kernel.org (open list:KERNEL UNIT TESTING FRAMEWORK (KUnit)), kunit-dev@googlegroups.com (open list:KERNEL UNIT TESTING FRAMEWORK (KUnit)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v1] kunit: tool: add 'mte=on' qemu arg on arm64 Date: Fri, 23 Feb 2024 21:07:58 +0000 Message-Id: <20240223210759.2431454-1-paul.heidekrueger@tum.de> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790878185518997618 X-GMAIL-MSGID: 1791725408759730218 Tests relying on the ARM Memory Tagging Extension (MTE) may crash when the corresponding qemu option, which is available since qemu 6.2, is not explicitly passed to kunit_tool via the command line. To make life easier, enable MTE by default for kunit_tool's arm64 qemu config. Link: https://lore.kernel.org/all/20240214124131.990872-1-paul.heidekrueger@tum.de/T/#u Reviewed-by: David Gow Signed-off-by: Paul Heidekrüger --- tools/testing/kunit/qemu_configs/arm64.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/kunit/qemu_configs/arm64.py b/tools/testing/kunit/qemu_configs/arm64.py index d3ff27024755..a525f7e1093b 100644 --- a/tools/testing/kunit/qemu_configs/arm64.py +++ b/tools/testing/kunit/qemu_configs/arm64.py @@ -9,4 +9,4 @@ CONFIG_SERIAL_AMBA_PL011_CONSOLE=y''', qemu_arch='aarch64', kernel_path='arch/arm64/boot/Image.gz', kernel_command_line='console=ttyAMA0', - extra_qemu_params=['-machine', 'virt', '-cpu', 'max,pauth-impdef=on']) + extra_qemu_params=['-machine', 'virt,mte=on', '-cpu', 'max,pauth-impdef=on'])