From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E89DC2D0CD for ; Thu, 15 May 2025 12:37:34 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uFXpR-0003vA-H9; Thu, 15 May 2025 08:36:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uFXpM-0003sO-Tz; Thu, 15 May 2025 08:36:44 -0400 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uFXpK-0006xc-1b; Thu, 15 May 2025 08:36:44 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1747312559; cv=none; d=zohomail.com; s=zohoarc; b=mJI7QE8vwde86Qo38uW5D6665a7D6zQ/BVn1bDgSWq0OsYac6nHB8e/JoRjLSXbG5xt/s6kn5ZQy0n1gIIxVdZL9mfXIrJlYspy3qZvN2JTU/ZPJzYmC9q2qCEIdInpuWL4CjAPFMtYFc48ctBOvlUpN9tNh9nZSECrDTx9uIe0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1747312559; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=DhzVf+/zd/L811b/GSupjdEZC8EpQtL3QJUTQukMbIw=; b=jnB/yQ4yAOMhCr0uETg6sfy0kkQtC3XZeW9oNnzlbBCH1rozlud59e8+UcI9S0gn7EGpUTqxzNC0mdyojk17bIv3huIfIjyS33QvPe8M2lXCzWLwGP1aClz4nli5U+G0nMnvcoiZstP/IFn80lOILnG0DwAZnEyNGRf+ZC0o34c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=linux.beauty; spf=pass smtp.mailfrom=me@linux.beauty; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1747312559; s=zmail; d=linux.beauty; i=me@linux.beauty; h=Date:Date:Message-ID:From:From:To:To:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=DhzVf+/zd/L811b/GSupjdEZC8EpQtL3QJUTQukMbIw=; b=KVBl7vQolcvK5GQOEmkMlTAqOOhzdKjyKQAlfPkIUbv3xwj9GPwvMB9t5cM2DUJu ec0PpFvf4DExolA8Q3Lprhtoybiq0Iks4mCuGmnwUrV/OwLiAXlJWCMfC10FpWVOVXx CLh/5sDRQopsIwmruolDe0QoKJGfkTvSclaE1iok= Received: by mx.zohomail.com with SMTPS id 1747312555901507.4337961815878; Thu, 15 May 2025 05:35:55 -0700 (PDT) Date: Thu, 15 May 2025 20:35:45 +0800 Message-ID: <87msberqzi.wl-me@linux.beauty> From: Li Chen To: "Peter Maydell" ,"Shannon Zhao" ,"Michael S. Tsirkin" ,"Igor Mammedov" ,"Ani Sinha" ,"Eduardo Habkost" ,"Marcel Apfelbaum" ,=?ISO-8859-1?Q?=22Philippe_Mathieu-Daud=E9?= =?ISO-8859-1?Q?=22?= ,"Yanan Wang" ,"Zhao Liu" ,"Song Gao" ,"Jiaxun Yang" ,"Sunil V L" ,"Palmer Dabbelt" ,"Alistair Francis" ,"Weiwei Li" ,"qemu-arm" ,"qemu-devel" ,"qemu-riscv" Subject: [PATCH V3 0/4] acpi: Add machine option to disable SPCR table User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.15; envelope-from=me@linux.beauty; helo=sender4-op-o15.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org This series introduces a new machine option, spcr=3Don|off, allowing users to disable the ACPI SPCR (Serial Port Console Redirection) table. By default, SPCR is enabled. Disabling it can help ensure that the guest's console behavior is determined solely by kernel command-line parameters on arch like arm64, avoiding unintended serial console configurations impos= ed by firmware. Also add tests on AArch64 and RISC-V virt machines using TCG and UEFI boot. Changes since v2: - Omit UART device from DSDT and SPCR construction if no serial device is p= resent, as suggested by Philippe Mathieu-Daud=E9. - Add Reviewed-by from Gavin Shan for the first patch an= d fix style issue. Changes since v1: - Add bios-tables-test for RISC-V and ARM as suggested by=20 - Add Acked-by from Michael S. Tsirkin for the first patch - Add Reviewed-by from Bibo Mao for the first patch Li Chen (4): acpi: Add machine option to disable SPCR table tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64 tests/qtest/bios-tables-test: Add test for disabling SPCR on RISC-V acpi/virt: suppress UART device & SPCR when guest has no serial hardware hw/arm/virt-acpi-build.c | 18 ++++++++++----- hw/core/machine.c | 22 ++++++++++++++++++ hw/loongarch/virt-acpi-build.c | 4 +++- hw/riscv/virt-acpi-build.c | 9 ++++++-- include/hw/boards.h | 1 + include/system/system.h | 2 ++ qemu-options.hx | 5 ++++ system/vl.c | 5 ++++ tests/qtest/bios-tables-test.c | 42 ++++++++++++++++++++++++++++++++++ 9 files changed, 99 insertions(+), 9 deletions(-) --=20 2.49.0