From patchwork Mon Nov 11 05:29:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 843386 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 DD52B14B95A; Mon, 11 Nov 2024 05:29:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731302976; cv=none; b=Eh47aCfk/bg2bFu4uRi7E1brP2jnnPFYz9M797PeA7X+ndmay37R9AIdRtT9oPlhTku6yR0pf0H5hAJT4BZ6mw4BUl+6+PBYGfbNrfG7aoa6Xx6XSkIMtQ99+WZereJurcVbMA0H3csZgs0v3XMb90MMnsn4vZke2iyA7vs2rKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731302976; c=relaxed/simple; bh=1H0lsA1melbP7Mkd+oLrxFN3y7nwa8EVtGO8EFXhi/A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Pd5fNP2KyKBZs3qW/JGno24z2WvdVRO08WHTTo0783y2cWKxMA5lNpWGjsoJVYilDmdUiRd7e3qDY9DhIxTklxLJB/CcOiz2pyuEbeDz3KyyGzg1hvuro53yeXS8BmXqKFd+pm2K0sHqI9FdcJjzvhN9HyOPWt8C4vyKt4m+oJI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=uzqfr+Hl; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=d3JIuFLw; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="uzqfr+Hl"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="d3JIuFLw" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1731302967; h=from:from: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=ifoGJMBHZ1DqZx2Obrxr/X5prXUNx0tqWRzJjSaO6kQ=; b=uzqfr+HlV4tT1qhLmCHVKuDJwDUkgECQzV0KEwbpKjqOL5hQSRsODdzI77K1XP+vlvRBjd XIsyuBW2tsdl96XDDkG8rP2AcjZ4dR5hYUz/gJlD4koPvds4PYRYxTzbFqAo7+ryVS7F0L SwFp3k/wk7efTCrgialIo+06i5LdrQTSf+uJfYWnzC+JhcSgZOI6ZTVTzGUAe0Xw/qlJxl m5bmWTY5LSU3nI2mwmoVl0xDOqExZ3ppspE39bMUkWppxYsNLfgnmhWgseX33I0iKfpUUX FwV4iV1jrq9VTwiTOSPbt0CrJDOxxRVva57ZdSREPPOM5ChKAk+gt481OQrMWA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1731302967; h=from:from: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=ifoGJMBHZ1DqZx2Obrxr/X5prXUNx0tqWRzJjSaO6kQ=; b=d3JIuFLw53tTVosNz6RG79DYTdEndoP8rAy6VJUQOY6vHEBypbCWAx3MDFlr0KN2PTet2r 3ZgP7LuWVEvPPxBA== Date: Mon, 11 Nov 2024 06:29:18 +0100 Subject: [PATCH v2 1/3] kunit: qemu_configs: Add LoongArch config Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241111-kunit-loongarch-v2-1-7676eb5f2da3@linutronix.de> References: <20241111-kunit-loongarch-v2-0-7676eb5f2da3@linutronix.de> In-Reply-To: <20241111-kunit-loongarch-v2-0-7676eb5f2da3@linutronix.de> To: Huacai Chen , WANG Xuerui , Jiaxun Yang , Brendan Higgins , David Gow , Rae Moar Cc: Bibo Mao , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1731302965; l=1247; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=1H0lsA1melbP7Mkd+oLrxFN3y7nwa8EVtGO8EFXhi/A=; b=5qrvr/riA2uB3GHVeHZnLAJB3A6LUapyCXEA+OrrgBheolSZfBFWT/g2Mu2BhB781zEK5t2S8 LcmfxtQkNXXCdUDk91TIbTFmOfz8zKZqRjdiwveLekIdux27rmgh5UU X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Add a basic config to run kunit tests on LoongArch. This requires QEMU 9.1.0 or later for the necessary direct kernel boot support. Signed-off-by: Thomas Weißschuh Reviewed-by: Bibo Mao Reviewed-by: David Gow --- tools/testing/kunit/qemu_configs/loongarch.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/testing/kunit/qemu_configs/loongarch.py b/tools/testing/kunit/qemu_configs/loongarch.py new file mode 100644 index 0000000000000000000000000000000000000000..a874a2156e0f791caaaf30e5f7b17fc175bb55ee --- /dev/null +++ b/tools/testing/kunit/qemu_configs/loongarch.py @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0 + +from ..qemu_config import QemuArchParams + +QEMU_ARCH = QemuArchParams(linux_arch='loongarch', + kconfig=''' +CONFIG_EFI_STUB=n +CONFIG_PCI_HOST_GENERIC=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_OF_PLATFORM=y +''', + qemu_arch='loongarch64', + kernel_path='arch/loongarch/boot/vmlinux.elf', + kernel_command_line='console=ttyS0', + extra_qemu_params=[ + '-machine', 'virt', + '-cpu', 'max',]) From patchwork Mon Nov 11 05:29:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 842602 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 2ECB014F10E; Mon, 11 Nov 2024 05:29:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731302976; cv=none; b=FrCMrGY1ZHoyINeeQ36Ha2c8bqMEk21Bxmp7lCoGz1p5/iIdv/9xvmRK5rK+NDjMv7ohSIaLyEJxPrhGQskE7TVjPUu7Tp+EKpEv6KCcI6u44O12pTCYCmOAZcUFTljgwyXA2PfLPJmCwWU3Jx5JIYNTINJUih7PMYV98Za50ek= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731302976; c=relaxed/simple; bh=P6D6l9tIzaDkoKCediE0RXRcJsoDvk5isylU++idoSs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JJaXkJ5/NP9URDyqDygOT35143EjmcAT+4KCmwtoQr4NSAB2gAdqs25hcrkt8dijWpcCJVu4iTBVofcE3fru31FEjCVaws6QL4mt96YNSL9jvtQheou0QST0X1sSixBN95B/SrSgCeHD8AY4JJHHpXmYkPJOQd+7BPCvcNwSmUs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XXlnRAkY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=H1ceS6cF; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XXlnRAkY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="H1ceS6cF" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1731302967; h=from:from: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=grb9aOUGCsu6mcDNoSN/gkNhsRCas0ib6KwPI7nk4FA=; b=XXlnRAkYlPVACNRguJXIrDposY+MUeXt57gYG5tRio6dBV9h3kR2PP7lYUS/qu+qxe4nB/ X+Nfr5Ra/uE0/XFnjl4zF7dDioPOq3Uj7my47VNK3bJaEeVSE5xXbyQbaMTA00y4BlahUm vUakXmHNgx+ahTYNs9N7DaiUguOaW5Yx69zou8QPG25U+g/v80T4CVwSyAMJRathlJ2Vkd sAM1TA683J2iUg9JxSOM2cGDZMgYwbvHXFsxuEL/9o5/cSPFkUcTutcUHxsOw74Fp2V1Zh /lSwwCw7uNbte3/AtMektuMcgErLi1L8ggDpihwyseaANAZSC1YLP6r9JPQlmw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1731302967; h=from:from: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=grb9aOUGCsu6mcDNoSN/gkNhsRCas0ib6KwPI7nk4FA=; b=H1ceS6cFUa2x7L3fHUk/lLHshC+1BVHKx0RazVaKKne4pDnAwrW2jhoyM0K3QQuwt+n9us bUVWmu6IljPRUHAQ== Date: Mon, 11 Nov 2024 06:29:19 +0100 Subject: [PATCH v2 2/3] kunit: tool: Allow overriding the shutdown mode from qemu config Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241111-kunit-loongarch-v2-2-7676eb5f2da3@linutronix.de> References: <20241111-kunit-loongarch-v2-0-7676eb5f2da3@linutronix.de> In-Reply-To: <20241111-kunit-loongarch-v2-0-7676eb5f2da3@linutronix.de> To: Huacai Chen , WANG Xuerui , Jiaxun Yang , Brendan Higgins , David Gow , Rae Moar Cc: Bibo Mao , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1731302965; l=1344; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=P6D6l9tIzaDkoKCediE0RXRcJsoDvk5isylU++idoSs=; b=mMfwECAWvFLsyIK0n/CuzsOkuGleKWWsbqJHUisaJBxE3SWokzepWr2yzi3JrQo+EV8NYgHSQ iViiiHs5K9ODu3usSykpKakqb/hXcAjLds3C4VuLiyOk9MQLEqXYnBh X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Not all platforms support machine reboot. If it a proper reboot is not supported the machine will hang. Allow the QEMU configuration to override the necessary shutdown mode for the specific system under test. Signed-off-by: Thomas Weißschuh Reviewed-by: David Gow --- tools/testing/kunit/kunit_kernel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/kunit/kunit_kernel.py b/tools/testing/kunit/kunit_kernel.py index 61931c4926fd6645f2c62dd13f9842a432ec4167..e76d7894b6c5195ece49f0d8c7ac35130df428a9 100644 --- a/tools/testing/kunit/kunit_kernel.py +++ b/tools/testing/kunit/kunit_kernel.py @@ -105,7 +105,9 @@ class LinuxSourceTreeOperationsQemu(LinuxSourceTreeOperations): self._kconfig = qemu_arch_params.kconfig self._qemu_arch = qemu_arch_params.qemu_arch self._kernel_path = qemu_arch_params.kernel_path - self._kernel_command_line = qemu_arch_params.kernel_command_line + ' kunit_shutdown=reboot' + self._kernel_command_line = qemu_arch_params.kernel_command_line + if 'kunit_shutdown=' not in self._kernel_command_line: + self._kernel_command_line += ' kunit_shutdown=reboot' self._extra_qemu_params = qemu_arch_params.extra_qemu_params self._serial = qemu_arch_params.serial From patchwork Mon Nov 11 05:29:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 843385 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 2949114C5AE; Mon, 11 Nov 2024 05:29:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731302976; cv=none; b=h7H/QWvJ8vv58RjaSDRwxSKoMoo45Eo2ruo/cB8mKAETPqJfyoPeysbCZb3q2GwWfuHb6QbyDhN5IX6/x/y9cPDZu3TUkf+FCbdYkANkK0zhTUY7q/i6HKMxvQRSesGBNcietty9EvgWyBQO+FOkqDgQM0zdVQu6uxJ9mcCDE2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731302976; c=relaxed/simple; bh=xb/b9qP6dTRXf6zeQaXgJn4vP0VJdWkzyw3GAXgH4QM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LxE+vHfsBI782emGni98K32m5lJyX4It5tJiCoam240VhHY7OfkTuIrFzSkU5tHZEPaaKGv2E1Y6f1VQf/UYgVylPx5IeQs9HSZVN+vhA1FeqItYyRsU02EfosFibcXCS4Hbu2qqqbab+xajgWCgBEfXP7QsKiKMqz6bf5ngBIc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rJm3nnOh; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GUmQRpeg; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rJm3nnOh"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GUmQRpeg" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1731302968; h=from:from: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=mPz5pTfSW1fYMOgeGzoArsFrU6Qcr3GhQ9X63RdirUU=; b=rJm3nnOhYpqZnpZ6/hjpd/tJL1PKgKQ70M7flz+MmgtfEzqfYyJwcUaixP+19xCHwCK/A2 SwchUfAUdiN/bW8k6ltrMNxumEulS60/6UEouHCk6bIHWW8GobWeprZ1T/+8iLhJSmH8UO FlZkLU3GDXtNZYRPUfVMeT2yeHvMcwTtpDF48qY3rKVJJ6FURQ0mL27W6w3+1JFDzpVCxW XIo+sK4FtExyCF2UIc93tiOap0/QEOleLkyWJc5izO6p68gWpCjwBZFSeoRDjIjNGa6RZS XKxhZiBFYzz/KC48KfFopWlBq9PVu8X5qLkla9JqE49FDtQxS7SWE8x0nm7AgA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1731302968; h=from:from: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=mPz5pTfSW1fYMOgeGzoArsFrU6Qcr3GhQ9X63RdirUU=; b=GUmQRpeg53bnBKeSTixSJURfMo86Zl4NVE8wQ1h6DgoSE1/6vxGZNQ95W2oWpElnjrhdIQ niCv+bnUfBZTx2AQ== Date: Mon, 11 Nov 2024 06:29:20 +0100 Subject: [PATCH v2 3/3] kunit: qemu_configs: loongarch: Enable shutdown Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241111-kunit-loongarch-v2-3-7676eb5f2da3@linutronix.de> References: <20241111-kunit-loongarch-v2-0-7676eb5f2da3@linutronix.de> In-Reply-To: <20241111-kunit-loongarch-v2-0-7676eb5f2da3@linutronix.de> To: Huacai Chen , WANG Xuerui , Jiaxun Yang , Brendan Higgins , David Gow , Rae Moar Cc: Bibo Mao , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1731302965; l=1426; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=xb/b9qP6dTRXf6zeQaXgJn4vP0VJdWkzyw3GAXgH4QM=; b=1sEhBxvK/yiUrPv2sjKx7s8UKUT3mFs5DeJdsfW23gI5UkUVFnaAHZrRcfg6uqx2gxL2lEeCV KZUtE1lAwhgB4DTV5kdMI86MXmEYb+3Bkreo0jGqTGuntF6ec18292r X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= QEMU for LoongArch does not yet support shutdown/restart through ACPI. Use the pvpanic driver to enable shutdowns. This requires 9.1.0 for shutdown support in pvpanic, but that is the requirement of kunit on LoongArch anyways. Signed-off-by: Thomas Weißschuh Reviewed-by: Bibo Mao Reviewed-by: David Gow --- tools/testing/kunit/qemu_configs/loongarch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/kunit/qemu_configs/loongarch.py b/tools/testing/kunit/qemu_configs/loongarch.py index a874a2156e0f791caaaf30e5f7b17fc175bb55ee..a92422967d1da9f1658ef1e80d0d7365ddbae307 100644 --- a/tools/testing/kunit/qemu_configs/loongarch.py +++ b/tools/testing/kunit/qemu_configs/loongarch.py @@ -6,13 +6,16 @@ QEMU_ARCH = QemuArchParams(linux_arch='loongarch', kconfig=''' CONFIG_EFI_STUB=n CONFIG_PCI_HOST_GENERIC=y +CONFIG_PVPANIC=y +CONFIG_PVPANIC_PCI=y CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_OF_PLATFORM=y ''', qemu_arch='loongarch64', kernel_path='arch/loongarch/boot/vmlinux.elf', - kernel_command_line='console=ttyS0', + kernel_command_line='console=ttyS0 kunit_shutdown=poweroff', extra_qemu_params=[ '-machine', 'virt', + '-device', 'pvpanic-pci', '-cpu', 'max',])