From nobody Sat Jul 25 20:10:53 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1784002155; cv=none; d=zohomail.com; s=zohoarc; b=TiLx5Unl0dPrXr7riEhB47zLk3+72T0z1UGXHR6psoD+43h/xE+rf2tI2ZYSA50j8AsMWumsP6o8MM24yN5z6go5Kr816LWhvSnCxbeMmRAaQF1SWojdwruJBdBVmnL5ztfciTQVBGeBqKkaKMReWLt+n6EPjcafoGzUUK8C99I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784002155; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=e+FKafERtewdflmiwwRoIFyp5qa6SrhFattQ2cDKqSU=; b=RkS0HnZB8Bj9/Kdb59TFq+PG6o47iPjHvs5P78LxCcmj3m/+dCa6YTSqaurmT0C7Ai4e4eIMKhbABlktfdGGQyaPgVmp5z8273ncpJnUmnaE8tvh8s0iHQMB7VEwDZvaI7Bw9njL9MrxjK6g5WIYgJYs8aOQp3HcPdUhsvPmfCU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1784002155627276.4044616137488; Mon, 13 Jul 2026 21:09:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wjURc-0003M4-Mb; Tue, 14 Jul 2026 00:08:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wjURJ-0003Ku-W6 for qemu-devel@nongnu.org; Tue, 14 Jul 2026 00:08:15 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wjURH-00083c-Jq for qemu-devel@nongnu.org; Tue, 14 Jul 2026 00:08:12 -0400 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-388b404ea89so497453a91.0 for ; Mon, 13 Jul 2026 21:08:11 -0700 (PDT) Received: from toolbx.alistair23.me ([2403:581e:fdf9:0:13b2:851f:d9cb:44c5]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38e172b6cfbsm778840a91.3.2026.07.13.21.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 21:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784002090; x=1784606890; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=e+FKafERtewdflmiwwRoIFyp5qa6SrhFattQ2cDKqSU=; b=Jr33Dr1ktDWZOkpPHdXrLvVFDyGiR2WcwXYa3WcMG4twcDy+f3orxdLw/pvfuTl4Cj +qVTkDdlUx6cj1shfNDZX7CZ81nT9h4EKawcY9VR+eil3wsLAMxvOoBrjI5YQnsT/U5Z /kbjpcS8mrmrvO4oPdcjuA0cKOsYdU/h0PBF6wtL/dAnVT/hrDyZVua+XDLKKY8safI0 i/BzaYBnosB5dQfW0lZpru5HkwXw9ny+dry0EQV0NHJCC8Zn02gUNhNt07bLhfnQS1DL gdXrqDC/ldJO4SlcId0W4g9+tVVVoOFV3/JmoryG6hjtC+d81kwbBXOE92bPlaD+f57b wmJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784002090; x=1784606890; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=e+FKafERtewdflmiwwRoIFyp5qa6SrhFattQ2cDKqSU=; b=IgMbs27e3PAXRX+h2AaHfWcd10uO9O9xjnvF88PZG69Rol9Ky73vcc1TqNuSVb9s2w SRmbAaMnQ79oFPM+HOFIxsKlxSQdhlRzyCNPDlwK3OyTbrk5uEj2/+MAZeAVQPx4iBat zGhqvPFBrovlx55y28rWQYNVbR2/Y4XrhGWv/qkY/nXi+GCrl/nuGMC6MC03umEt5YOm GIZO6g4+i+KIXXZK+uhtVnhQpH4cFkWCsX7Y4fJBXEJLzVS3uP1pWSyrhvg9gRlMk0fm YraXoR5EF1X0bMF0sBg6va6P1siNHVsmrPUCrDXz/f2UI2z6gPvcHel+ZgsWDGKkQ/mR HQ3w== X-Gm-Message-State: AOJu0YwiHFaRbdyG6MoiuQ0zZ1RusLGJVH3+M2oZOWXMT2yClB49lnLh N0ZbkbPYlGFbBOd8AUyH0GXLwOHalB0Q1UXmjXtemi9YifSkQwb0dpzUJXuleQ== X-Gm-Gg: AfdE7cmCacvvKLki4c1Rbn2eXcJjq9XAbN4/Qjcfr2mAax74dBnQyEOvtcipppVAGyc CbAIW8N2BUtCCCkq1N33SMY/Ubtm3yphAX7PPmA6meQ5j2GBM5cVesoPnLy8BQZM45fH/axUgiO 8DaprZ9WQ531ZVL44u+UdIcwsrWv54MRPDPGKFFsyvvT4kJD/ZO6VrQcwrTwklfQiWMSbvoeTKh cLxW27glbrClicHJvNTrp7otMELms6o/UZiJmAR8Lcr7cZvMFOELYpRJMdwrFKrmihRuCbTYvyY TqN2X12tkfm70wojMUXSYJb7mdyDTsadMwnvsZOydirDnB+rQQjDk98NrtT44QQttWdO6xpEY9O PJQt8ONzNjVisd7kgyYROzxfz/+ZeIyoVI1sJTxPcJXUqUtayiQ7yHDu6AjtDFd3F8Xfmhz7god 2hrBZLsu7yZbOy87Fu2GAzYVELr2E2aaHvf1H72bJNqA== X-Received: by 2002:a17:90b:57cb:b0:36b:769c:c037 with SMTP id 98e67ed59e1d1-38dc81978ecmr8690298a91.5.1784002090042; Mon, 13 Jul 2026 21:08:10 -0700 (PDT) From: alistair23@gmail.com X-Google-Original-From: alistair.francis@wdc.com To: qemu-devel@nongnu.org Cc: Alistair Francis , Conor Dooley , Sebastian Huber Subject: [PULL 1/4] MAINTAINERS: Mark Microchip PolarFire SoC as Odd Fixes Date: Tue, 14 Jul 2026 14:07:55 +1000 Message-ID: <20260714040758.28332-2-alistair.francis@wdc.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260714040758.28332-1-alistair.francis@wdc.com> References: <20260714040758.28332-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=alistair23@gmail.com; helo=mail-pj1-x102d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1784002157381158500 Content-Type: text/plain; charset="utf-8" From: Alistair Francis Mark the "Microchip PolarFire SoC Icicle Kit" as Odd Fixes and enlist Conor and Sebastian as people to help deal with the fixes. Acked-by: Conor Dooley Acked-by: Sebastian Huber Signed-off-by: Alistair Francis Message-ID: <20260513023859.518484-1-alistair.francis@wdc.com> Signed-off-by: Alistair Francis --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index e25df9493c..611845c626 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1760,8 +1760,10 @@ F: target/riscv/xlrbr.decode F: tests/tcg/riscv64/test-crc32.S =20 Microchip PolarFire SoC Icicle Kit +M: Conor Dooley +M: Sebastian Huber L: qemu-riscv@nongnu.org -S: Supported +S: Odd Fixes F: docs/system/riscv/microchip-icicle-kit.rst F: hw/riscv/microchip_pfsoc.c F: hw/char/mchp_pfsoc_mmuart.c --=20 2.54.0 From nobody Sat Jul 25 20:10:53 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1784002153; cv=none; d=zohomail.com; s=zohoarc; b=Movd05V2LGjXUS74GUHhXUOj9ziy2tSKPtEI5gFCkuCwkTfJT8q2V0+tX51U4Nyyza5xEl3wj9B0EyoQRJ8/uPcrDBU3R7XvsdvrnlcSf9oE/nhbLt1K1LTGV/EWtK8PLHKU7daEIWguoOS37luRLsXZaFhYLLaZpqUsqMpEcVc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784002153; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hUM7re2qkWc3Qaxh6rwwu//Pra5PQRoI7yDTSwv9ehY=; b=AXh+eUKMCpJimOQeMCzelcr9S3IPVzuptun0Hvq+PS5V3BpMhHg9SY5NvIUHvXfxZupx27e6O+f2VFBHtocALdQNogKlMZz1+7cF56pTJ7Lc9BcAqosqEM4XN+CdCdyF2ENV7aU1n9krLFifMSNpqNAWJ8xlbx/mZCgfQ/glbrk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1784002153887383.92131917768165; Mon, 13 Jul 2026 21:09:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wjURc-0003Lz-MU; Tue, 14 Jul 2026 00:08:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wjURL-0003L1-O1 for qemu-devel@nongnu.org; Tue, 14 Jul 2026 00:08:18 -0400 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wjURK-00083n-6h for qemu-devel@nongnu.org; Tue, 14 Jul 2026 00:08:15 -0400 Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-384930ca5e2so4030561a91.3 for ; Mon, 13 Jul 2026 21:08:13 -0700 (PDT) Received: from toolbx.alistair23.me ([2403:581e:fdf9:0:13b2:851f:d9cb:44c5]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38e172b6cfbsm778840a91.3.2026.07.13.21.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 21:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784002093; x=1784606893; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=hUM7re2qkWc3Qaxh6rwwu//Pra5PQRoI7yDTSwv9ehY=; b=hhUJ89hFU9Xa05+m4Ctwu46tWCDY4JTEUDwmX5PT1GHLXjUFWDLZ2U7cErxyx7nkpq ktrNQ2kfGgJ3fjkiK/+ZQMsUEXKYfH0xdDhaac9lzr7n0iZcYO3tMQ+fQxZ7RYvsA3nT JXD3uwQP7I3tWZp/lDKUQRfjaD3ikSIbPRCu5GMOQgsydarMy2fQu+DNtb0pBp05pIaV hThqJW+10wJgAyCjaPWXey6G0Q5g/b4uaSjYSKlLocs86W4nQQtQbos1Yt2s2s7cbRdL cCm+SPUAw4ZO5/9HyVf/kaZ2qee+mVbwOj16VQd9EuHXWdDO9aQav7O0+ff3fJTIu4LR TXrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784002093; x=1784606893; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=hUM7re2qkWc3Qaxh6rwwu//Pra5PQRoI7yDTSwv9ehY=; b=mHMYXvbXjzJCkvXYWrmtbQqJYtAygqB1Qdp0VJZsm17MLmjmaUnf1YqPOBV9yof+Mq geKBmqVD3jLnh6VsDmg0/mk9F7aQhciTf1wWBNVA7BKn0y5nzfL5c+Hm2rbT4DpOxgr5 mUPCMXZapgJuvusdTUO+v+oZymSoiXy6G1N4tVL3ht7dJchcCBDD6/dTZrxZS/LWV0fy kk5ItMLc5HQGaV429x2h9DE5GMAYSePtMRymes/z5dkRg115aUwJbw6kQruHvkYMl4J0 qMLkLXWIk/N52U0f8xdcgEGjRUAzRWA0zJeHv0rKaIMwRuACkymGbfqnvH77amCFZ9el T8gg== X-Gm-Message-State: AOJu0Ywd0T3VNsk1zAQZ60qiwTDdvTFCyPtj8TJWlPyLnY3T/4Hj3L9U v3/az0swlwry9BizaZJKSC309aZ5AkEFvJG8Sfiqoo/yaZJhGsysbzm4eFDbOg== X-Gm-Gg: AfdE7clLZCyKGwGChrIW5r2Fh4imC3czLWBT7AuO64Wr5UsXfEi7dY5Y9B9RfGFpabC MlN55nMBbRbjiUglUS3Pdp2oJH3xHMX5WTAUgRIOci/boQYZi/Ap5dYuJOMdsZq1EricCRQyD3A zH5xxSkWfGu5AFLxSDgBNSqpjwMr1kCYkuNNJIFrk3jqBj42zOWstrpPNkdjoddJKCyPvT63BCV L4qT6dNuWGq7AtkyjOjP8UQfE7J3lVqPEaWHdQrcPUrJbF69Vb1SXAH5QODP0BYJYgdtahOMIrN dc5BaHD4/SpezZXu5MrYYhzGWh5A6yGsKOUlYH1Sh+vzyqYrYx7J+w79UkjTXydzlR1vYageGQz EUW+47JaEsNrL+7kLQlE1zDAFV/E3oOcFTJqnHa4isZSW3JcaBbfUfsm5KWrH3OuMt7cRtOOC3t jbtMX2gjbDRmeQNyAdJA0UCUXYrRmPpxfmYa8R9Kh73yYgJZzq44r0 X-Received: by 2002:a17:90b:5585:b0:37f:db06:229c with SMTP id 98e67ed59e1d1-38dc777b895mr10962268a91.22.1784002092861; Mon, 13 Jul 2026 21:08:12 -0700 (PDT) From: alistair23@gmail.com X-Google-Original-From: alistair.francis@wdc.com To: qemu-devel@nongnu.org Cc: Yanfeng Liu , Alistair Francis Subject: [PULL 2/4] uftrace: riscv privilege level Date: Tue, 14 Jul 2026 14:07:56 +1000 Message-ID: <20260714040758.28332-3-alistair.francis@wdc.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260714040758.28332-1-alistair.francis@wdc.com> References: <20260714040758.28332-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=alistair23@gmail.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1784002155800158500 Content-Type: text/plain; charset="utf-8" From: Yanfeng Liu This adds RiscV virtual user and supervisor privilege levels to uftrace plugin to avoid crashing with H extension guests. Signed-off-by: Yanfeng Liu Reviewed-by: Alistair Francis Message-ID: Signed-off-by: Alistair Francis --- contrib/plugins/uftrace.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/contrib/plugins/uftrace.c b/contrib/plugins/uftrace.c index 9b0a4963ae..063e32220b 100644 --- a/contrib/plugins/uftrace.c +++ b/contrib/plugins/uftrace.c @@ -109,6 +109,8 @@ typedef enum { RISCV64_SUPERVISOR, RISCV64_RESERVED, RISCV64_MACHINE, + RISCV64_VUSER, + RISCV64_VSUPERVISOR, RISCV64_PRIVILEGE_LEVEL_MAX, } Riscv64PrivilegeLevel; =20 @@ -153,8 +155,10 @@ static void uftrace_write_map(bool system_emulation) const char *path =3D "./uftrace.data/sid-0.map"; =20 if (system_emulation && access(path, F_OK) =3D=3D 0) { - /* do not erase existing map in system emulation, as a custom one = might - * already have been generated by uftrace_symbols.py */ + /* + * do not erase existing map in system emulation, as a custom one = might + * already have been generated by uftrace_symbols.py + */ return; } =20 @@ -706,6 +710,8 @@ static const char *riscv64_get_privilege_level_name(uin= t8_t pl) case RISCV64_SUPERVISOR: return "Supervisor"; case RISCV64_RESERVED: return "Unknown"; case RISCV64_MACHINE: return "Machine"; + case RISCV64_VUSER: return "VUser"; + case RISCV64_VSUPERVISOR: return "VSupervisor"; default: g_assert_not_reached(); } @@ -986,7 +992,8 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_= id_t id, =20 score =3D qemu_plugin_scoreboard_new(sizeof(Cpu)); qemu_plugin_register_vcpu_init_cb(id, vcpu_init, NULL); - qemu_plugin_register_atexit_cb(id, at_exit, (void *) info->system_emul= ation); + qemu_plugin_register_atexit_cb(id, at_exit, + (void *) info->system_emulation); qemu_plugin_register_vcpu_tb_trans_cb(id, vcpu_tb_trans, NULL); =20 return 0; --=20 2.54.0 From nobody Sat Jul 25 20:10:53 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1784002182; cv=none; d=zohomail.com; s=zohoarc; b=UtlDFzFycM1Py9LWa35iJgmw0isIn8gkDvUYx9h/P4fmgmov/bZHRZcAJaP3hpEJZ1n9WmOMSKaPlGJtNyUCPBz8t+08rXPywtOD80PA+i5aedLScVB+Ee9Dqyhem3LlKr3yNR8t9fp2B+qsbNZQ8C+aR7wq15vvT4kO91nwqhw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784002182; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=gv77n6fbaqu9PEQiSL1yagq+rFdvmivv5MhuhcGHuIY=; b=hE2qKUtwxtzDiA84eAh7RplW1AD7vYGNKlG+pDo3UCsFxV5YQlimf+0nJ1uRrQRqBKhInkOZpTZBRePf5bagROc/ej+eeJlnjgIxpc5Gl5n67Imclu7DzUsEeatyh+7znKIcL20u4U61+yFmD0+Sb2qFTDsBiHDdnVzdgNubA+Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1784002182641521.1303197369655; Mon, 13 Jul 2026 21:09:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wjURm-0003No-Jg; Tue, 14 Jul 2026 00:08:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wjURd-0003Mg-DM for qemu-devel@nongnu.org; Tue, 14 Jul 2026 00:08:35 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wjURN-00085K-2O for qemu-devel@nongnu.org; Tue, 14 Jul 2026 00:08:18 -0400 Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-38dc4553f62so2567261a91.0 for ; Mon, 13 Jul 2026 21:08:16 -0700 (PDT) Received: from toolbx.alistair23.me ([2403:581e:fdf9:0:13b2:851f:d9cb:44c5]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38e172b6cfbsm778840a91.3.2026.07.13.21.08.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 21:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784002096; x=1784606896; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gv77n6fbaqu9PEQiSL1yagq+rFdvmivv5MhuhcGHuIY=; b=pJFxPbHrZbxO5pPFD9CnyERA7CjITzHywFMVcROlBPFyeGbh6fVpcXDnC7XOm4y+YY bZZTY4zzNeLpZT7AYWSZoz/aOGh5ra/iZXaGjq+RjsZTG4S/Da3/Zif8bR8KHwmDR0Cq uUlhdHNoy0Uiu5QtTVX59rVq3aAFTIrAEPw5tYA8uPfe+9MmbAubiumEvYxDDCPx3VtX N+6VbELmdYTaeLHQkqS6ZJp2sEL/Wgu23/gUgo4dCqdzdYKyiQpuefCuJsUMEKXgWSQ4 DQcQQfW2zJ4ujvz8V2gGLRP0n9Vkh5SpSQazgLJAZRPfh1kHiou1UN2kHCyHPWdm6bhw z6yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784002096; x=1784606896; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=gv77n6fbaqu9PEQiSL1yagq+rFdvmivv5MhuhcGHuIY=; b=WCX5XYS8k6jwO8m70jH9fUr9z8Xe4EPNgucDRMyFZ3KWQVeiAaQ3yqVoCzX/HS6M9P 91q86RKyD9HQVGfwKs9GICTloGjBuV4R8896+L9yvqJ2BjE6YgNv8MS6frO9zcHGRdmd y1segnX5Z+4YD//TQzTXAEiDgf0UOH0j5Ew92qVvCZ/hKl8f4GqC2tftft2YX0f3Emv3 SIWB0eIc7vH2VnZj8w88EKGk0W9+ZOGEYnXhMtcpn4xvg+l1IvftIEEzbruODwpkEQgG b+tqwWcTtA1o68Q3XAf9gzkz4+nfoKjF2qU7eIZlILDm9bBkPOPMACb32zbhxsALzJkt icDw== X-Gm-Message-State: AOJu0YwSPbOgx/lCopXVY2ls/Z0p2AGbaxDcrM26WnejTNiT0tKdUuYd In7r4bEe7JwDhbdLbK9xLf35pGdyluLUSx3i94UnBdmghKn9ukWmwq0la0xPPw== X-Gm-Gg: AfdE7cn7r4KBPXWXoHWvnDOGH3DUjXUNlQYPOB7hu7Vl5qdMXcO96Ys2J00nXGOcPAf qcwBn8KkJxl2IqK/+/wKQG2bh6zSk4y18+YOnYEVnqRUEUVGIi9JZlVyKO9dLqcHgWWLfUNgP3R qaRGGFk9NSfrBZFaYOPGJCIS0eUr1bArcwpIJ6g5tq26PU05LxkhbSdAb+p3Axf8eGdDPNfCV9N 8fooQgUp56mnhFYKlvw6rd6hY+WY7lQAMOD9BoXsiJHHSJbB1L7ZG3rvr0TMozZ1PBpZB7kzQXt VQvNcvbtlIS9jWInVM89cWjWymAlIoQN3R4Xlkg4pEub3BlvZ+KFpp9Wr7mVK1ImAHtnHzFxE6p a94jmhcVTioKcTs1QpfOu6/sf8gBr6rl4G5ZFu6xAjR+0biJWsZqj6TZoFSY5BbtJQm06DilVWV 93lLYDw8rnqf64ij8BUEdbjyx5iuIMUlQ= X-Received: by 2002:a17:90b:2685:b0:38e:6ab:32e0 with SMTP id 98e67ed59e1d1-38e1b015cbdmr891334a91.39.1784002095637; Mon, 13 Jul 2026 21:08:15 -0700 (PDT) From: alistair23@gmail.com X-Google-Original-From: alistair.francis@wdc.com To: qemu-devel@nongnu.org Cc: Junze Cao , Alistair Francis Subject: [PULL 3/4] tests/functional/riscv64: Add K230 Linux boot tests Date: Tue, 14 Jul 2026 14:07:57 +1000 Message-ID: <20260714040758.28332-4-alistair.francis@wdc.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260714040758.28332-1-alistair.francis@wdc.com> References: <20260714040758.28332-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=alistair23@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1784002183316158501 Content-Type: text/plain; charset="utf-8" From: Junze Cao The K230 machine supports direct Linux boot and firmware boot through the SDK U-Boot, but neither path has functional test coverage. Add one test for each boot path. Both tests use the Yocto initramfs assets and wait for the shell prompt to confirm a successful boot. Fetch the boot assets from the k230-boot-assets repository maintained by Chao Liu. Pin the URLs to a repository commit and verify each asset with its SHA-256 digest. Signed-off-by: Junze Cao Reviewed-by: Alistair Francis Message-ID: <20260711125320.72319-1-caojunze424@gmail.com> Signed-off-by: Alistair Francis --- MAINTAINERS | 1 + tests/functional/riscv64/meson.build | 2 + tests/functional/riscv64/test_k230.py | 108 ++++++++++++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100755 tests/functional/riscv64/test_k230.py diff --git a/MAINTAINERS b/MAINTAINERS index 611845c626..6bab70a7fa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1830,6 +1830,7 @@ F: hw/riscv/k230.c F: hw/watchdog/k230_wdt.c F: include/hw/riscv/k230.h F: include/hw/watchdog/k230_wdt.h +F: tests/functional/riscv64/test_k230.py F: tests/qtest/k230-wdt-test.c =20 RX Machines diff --git a/tests/functional/riscv64/meson.build b/tests/functional/riscv6= 4/meson.build index c9d4c090fb..d1a3e6c2bf 100644 --- a/tests/functional/riscv64/meson.build +++ b/tests/functional/riscv64/meson.build @@ -2,6 +2,7 @@ =20 test_riscv64_timeouts =3D { 'boston' : 120, + 'k230' : 120, 'tuxrun' : 120, } =20 @@ -13,6 +14,7 @@ tests_riscv64_system_quick =3D [ tests_riscv64_system_thorough =3D [ 'endianness', 'boston', + 'k230', 'sifive_u', 'tt_atlantis', 'tuxrun', diff --git a/tests/functional/riscv64/test_k230.py b/tests/functional/riscv= 64/test_k230.py new file mode 100755 index 0000000000..6ccbf2d581 --- /dev/null +++ b/tests/functional/riscv64/test_k230.py @@ -0,0 +1,108 @@ +#!/usr/bin/env python3 +# +# Functional tests that boot Linux on a Kendryte K230 machine. +# +# The direct boot test lets QEMU load OpenSBI, Linux, the device tree, and= the +# initramfs. The firmware boot test starts the K230 SDK U-Boot and uses b= ootm +# to launch OpenSBI and Linux from images preloaded into RAM. +# +# Author: +# Junze Cao +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import os + +from qemu_test import Asset, LinuxKernelTest +from qemu_test import exec_command_and_wait_for_pattern +from qemu_test import interrupt_interactive_console_until_pattern + + +class K230Machine(LinuxKernelTest): + + ASSET_KERNEL =3D Asset( + ('https://raw.githubusercontent.com/zevorn/k230-boot-assets/' + 'c3c32fb46e8307c5063f13e8f367c98bf9273cd1/' + 'yocto/direct-boot/Image'), + '3a44970213fa68ad318d308518adfc0bf4bee72ed1b2926f9b468f82ef7d7829') + ASSET_DTB =3D Asset( + ('https://raw.githubusercontent.com/zevorn/k230-boot-assets/' + 'c3c32fb46e8307c5063f13e8f367c98bf9273cd1/' + 'yocto/direct-boot/k230-canmv.dtb'), + '5050240b48ce0988c73eaefa73e4945a40abca503cf488d22a3adf6ef50bbe4c') + ASSET_INITRD =3D Asset( + ('https://raw.githubusercontent.com/zevorn/k230-boot-assets/' + 'c3c32fb46e8307c5063f13e8f367c98bf9273cd1/' + 'yocto/direct-boot/rootfs.cpio.gz'), + '4e1869a99a232ee60324f71f3a9e84a79b03ccabb5b73f8a727c5ff5be5c0914') + ASSET_UBOOT =3D Asset( + ('https://raw.githubusercontent.com/zevorn/k230-boot-assets/' + 'c3c32fb46e8307c5063f13e8f367c98bf9273cd1/common/u-boot'), + '0915b9a92a7c911846a8cf691866ef14ef050a51d04209f884ae8e9ec33f36d2') + ASSET_FW_JUMP =3D Asset( + ('https://raw.githubusercontent.com/zevorn/k230-boot-assets/' + 'c3c32fb46e8307c5063f13e8f367c98bf9273cd1/' + 'common/fw_jump.uImage'), + 'cf7788e470f1d6e8c85491ecdc2705518db1b6af54080e8c7a3464bad0d902b7') + + def wait_for_linux_shell(self): + self.wait_for_console_pattern('meta-k230 initramfs starting...') + self.wait_for_console_pattern('~ #') + + def test_k230_direct_boot(self): + self.set_machine('k230') + kernel_path =3D self.ASSET_KERNEL.fetch() + dtb_path =3D self.ASSET_DTB.fetch() + initrd_path =3D self.ASSET_INITRD.fetch() + + self.vm.set_console() + self.vm.add_args('-kernel', kernel_path, + '-dtb', dtb_path, + '-initrd', initrd_path, + '-append', 'console=3DttyS0,115200 earlycon=3Dsbi= ', + '-no-reboot') + self.vm.launch() + self.wait_for_linux_shell() + + def test_k230_uboot_boot(self): + self.set_machine('k230') + kernel_path =3D self.ASSET_KERNEL.fetch() + dtb_path =3D self.ASSET_DTB.fetch() + initrd_path =3D self.ASSET_INITRD.fetch() + uboot_path =3D self.ASSET_UBOOT.fetch() + fw_jump_path =3D self.ASSET_FW_JUMP.fetch() + initrd_end =3D 0x0a100000 + os.path.getsize(initrd_path) + + self.vm.set_console() + self.vm.add_args( + '-bios', uboot_path, + '-device', + f'loader,file=3D{fw_jump_path},addr=3D0xc100000,force-raw=3Don= ', + '-device', + f'loader,file=3D{kernel_path},addr=3D0x8200000,force-raw=3Don', + '-device', + f'loader,file=3D{initrd_path},addr=3D0xa100000,force-raw=3Don', + '-device', + f'loader,file=3D{dtb_path},addr=3D0xa000000,force-raw=3Don', + '-no-reboot') + self.vm.launch() + + interrupt_interactive_console_until_pattern(self, 'K230#') + commands =3D ( + 'setenv bootargs console=3DttyS0,115200 earlycon=3Dsbi', + 'fdt addr 0xa000000', + 'fdt resize 8192', + 'fdt set /chosen linux,initrd-start <0x0 0xa100000>', + f'fdt set /chosen linux,initrd-end <0x0 0x{initrd_end:x}>', + ) + for command in commands: + exec_command_and_wait_for_pattern(self, command, 'K230#') + + exec_command_and_wait_for_pattern( + self, 'bootm 0xc100000 - 0xa000000', + 'Starting kernel ...', failure_message=3D'ERROR') + self.wait_for_linux_shell() + + +if __name__ =3D=3D '__main__': + LinuxKernelTest.main() --=20 2.54.0 From nobody Sat Jul 25 20:10:53 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1784002157; cv=none; d=zohomail.com; s=zohoarc; b=fbrEPNng+8r0wixfU2eKpndhVU4XeP+hf7XP7R+0HOowMjOkYo9/keg2y8r//SgrVe9xyJ8DPIgNkMQf0IMKnH10HUolY7GDdSTM7E5XnOVFeo/sIodgPQyq1rg5jz/PW3LSTzTlIsTDgeXra4qDR2jtA7KgTppBj2EExiKjjzA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784002157; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yFgyz2PuTWXNXdAIxw4+nZ0WFieFllO62m9f0PvmWKw=; b=NLBZaCQ5AT+pAa2Yf97HfqXDgjWCu3gFSyx91XkKS7J4bYoPPZK2mdPVAEJQy9w584rTmNh0T4rlyr3540YbiSvZhrRGdLWyCmUltoQ4wZlLriaKkF8lo/bRe6t41Ybtt/YzN22BrKw0+uoMVjCy5O7mxzyWxxpD3mrrvEwowuA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1784002157988575.5486667138728; Mon, 13 Jul 2026 21:09:17 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wjURn-0003O8-TF; Tue, 14 Jul 2026 00:08:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wjURe-0003Mi-JY for qemu-devel@nongnu.org; Tue, 14 Jul 2026 00:08:35 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wjURX-00086p-2D for qemu-devel@nongnu.org; Tue, 14 Jul 2026 00:08:34 -0400 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-38dfe910e9dso1390779a91.3 for ; Mon, 13 Jul 2026 21:08:20 -0700 (PDT) Received: from toolbx.alistair23.me ([2403:581e:fdf9:0:13b2:851f:d9cb:44c5]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38e172b6cfbsm778840a91.3.2026.07.13.21.08.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 21:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784002099; x=1784606899; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=yFgyz2PuTWXNXdAIxw4+nZ0WFieFllO62m9f0PvmWKw=; b=TXL/P4ahVHRwZtUPImikbd478NuhYYqf3vx8vrCjgO5+cCOTSU3lpYWTvAnRos5P+k vmn1GTICbYkfexAB03aShoGMFTS7dKuhzCtqSH4rPqmQgzHwUNQ+NPcR6WVZQsQGAqgi iPbtk1xDNgTOYnK4dqcnng7Or3LThP4lDGFB0jxuXa87AC23IyAkpAo+U9YbW/J+O5Nv IZPV5tTPuDAeU0ueOvytjAfAx7vgPGMJQYRyAQEbtThX9sqB0r0ZZEW026U7CaZIDoEF GSRCVjZQyqWU4WmzBwMn3NNVZpzzNRUjL/56fcvhS+/4EKJ1POeOiYVnsv3wBxI6J1gG l2ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784002099; x=1784606899; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=yFgyz2PuTWXNXdAIxw4+nZ0WFieFllO62m9f0PvmWKw=; b=moXH0BnFsHxgLlDGeN6kttk8DGzbJ8ufIwwzMCC5GFPLbflroy18J9Dz/8TeqvNfn/ zuFU1LJtj7C/18AnNblDPweh08Ybn3pPXe4foOdn3Nw8v2nuOj/SYRMNSz1FWwkZ0kK/ zbyB6MbVBbaHyKkbcI0qOtIWVKmVWRAyNa2OiftD/IDz8qC92yCHLwDSidDCdXOVaf9Q lZSlGUQRpunDlraoZPnF9i2Up9/ZH4p6TOcw5IDZeKmrdMiTbZX9hrYrxaUfnEHiY1e5 Ly2NPGQMKuALrCX/efRftyq02ZGYs4jyXvcUbpQqyn8dKmfnbCd/Xq4o1v3bHDvNomj+ aKLw== X-Gm-Message-State: AOJu0YwwstoYVAilqG5Adyb1bK3plVlbJnM6KZe7c6We4seZgfEsAqNn Zr3WtJ8/BuDy1zpHDFzS9sYj7jv6cn05nmNxylplrxMpSoAIZwzYHN0yeu0olw== X-Gm-Gg: AfdE7cnypZbUDh/eDmCsdZymloDK7hGyQxEHt28im4dquKNFyUDVwa78MKnzYmwBT/X myoB5MZyQcmkTT120F+65uGhN64K5zGHHWe5x8pCxoItvaZuEzLa1SV74Tiepbmx9JaaIfodDpm qFqz4IFCH+H0xqRnt8UlwEAEBBEb7753eMD05IEtkyD9NKAJG85abdG/y+dJNOh1qTFoVBr3Xt+ VKd27y5foZbMRT9MenCXLlgrA92CCjHRyhx3vqaJ2KTQqaNejngn1b6G472OhoD8RfB1qmSDm1K NT/9yFOX/jZ+5WXlr5JQHlNW/oomBs2uYyfYbSz6HZgSbqBvncu8E+HNFiZXWRixNKOWfHHO9T3 OALY+r0xDUY+K9zSHLuBh+JzAwAaGpMFSFVESUlntqpxSAkn/jJ3R3hUZ5nV+yxicT2U4GsNxNZ 5OAV9fH1uO0mF5qbERkRBu6msdmdA24e8Mm3JlK/FxzQ== X-Received: by 2002:a17:90b:58c5:b0:380:83fc:4315 with SMTP id 98e67ed59e1d1-38e17e44165mr1676796a91.21.1784002098908; Mon, 13 Jul 2026 21:08:18 -0700 (PDT) From: alistair23@gmail.com X-Google-Original-From: alistair.francis@wdc.com To: qemu-devel@nongnu.org Cc: Bin Meng , Chao Liu , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alistair Francis Subject: [PULL 4/4] tests/functional/riscv64: sifive_u: Fix kernel command line Date: Tue, 14 Jul 2026 14:07:58 +1000 Message-ID: <20260714040758.28332-5-alistair.francis@wdc.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260714040758.28332-1-alistair.francis@wdc.com> References: <20260714040758.28332-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=alistair23@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1784002159433158500 From: Bin Meng Build the complete kernel command line before adding it to the QEMU arguments. This ensures the panic, noreboot and rootwait options are passed to the guest. Fixes: 7db162fa0138 ("tests/functional: Test SPI-SD adapter without SD card= connected") Signed-off-by: Bin Meng Reviewed-by: Chao Liu Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260713120245.781959-1-bin.meng@processmission.com> Signed-off-by: Alistair Francis --- tests/functional/riscv64/test_sifive_u.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functional/riscv64/test_sifive_u.py b/tests/functional/r= iscv64/test_sifive_u.py index 847f709da1..54a0f9c648 100755 --- a/tests/functional/riscv64/test_sifive_u.py +++ b/tests/functional/riscv64/test_sifive_u.py @@ -35,9 +35,6 @@ def do_test_riscv64_sifive_u_mmc_spi(self, connect_card): kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + 'earlycon=3Dsbi console=3DttySIF0 ' 'root=3D/dev/mmcblk0 ') - self.vm.add_args('-kernel', kernel_path, - '-append', kernel_command_line, - '-no-reboot') if connect_card: kernel_command_line +=3D 'panic=3D-1 noreboot rootwait ' self.vm.add_args('-drive', f'file=3D{rootfs_path},if=3Dsd,form= at=3Draw') @@ -46,6 +43,9 @@ def do_test_riscv64_sifive_u_mmc_spi(self, connect_card): kernel_command_line +=3D 'panic=3D0 noreboot ' pattern =3D 'Cannot open root device "mmcblk0" or unknown-bloc= k(0,0)' =20 + self.vm.add_args('-kernel', kernel_path, + '-append', kernel_command_line, + '-no-reboot') self.vm.launch() self.wait_for_console_pattern(pattern) =20 --=20 2.54.0