Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pPTWB-00007A-0t for mharc-qemu-riscv@gnu.org; Tue, 07 Feb 2023 14:20:39 -0500 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 1pPTW9-00006V-0j for qemu-riscv@nongnu.org; Tue, 07 Feb 2023 14:20:37 -0500 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPTW7-0006zr-F9 for qemu-riscv@nongnu.org; Tue, 07 Feb 2023 14:20:36 -0500 Received: by mail-ed1-x534.google.com with SMTP id i38so6429501eda.1 for ; Tue, 07 Feb 2023 11:20:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=y4kzQ4G2/YWvQd1Js9x/k76y/oucxVOi5ZZcjeRNFFU=; b=Y+TtghdjFfBWJATRyFn3qGxj7DqJe4SgH7kDVve6zxBcwbGo7B0KJfSqwjegYXVC0v 5iz4boVm2ydru6nX5s370wprI6FaeZnIu1KCA0PnPxCpbVk1tc4XpZ03CmysXBDlXJz1 AXV7OAlWzIDNF09ayhPmqcw4UVxipguRw87b/r7vM8+hP0sVCxpn1yXpwnHXtU39Sub4 8sPwRwzakr3g3gscVAE8pBINAo+x0lXNy2b4CkBQ591BFEIjhcp2JV9nKdWMjDnW3Iqt ZAsotvRemap/VQi0LGmu4SaEwFgn3rF761wwtXl6YfHUu79uP9KaoYAhoaWDGscFcRJ7 e65g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=y4kzQ4G2/YWvQd1Js9x/k76y/oucxVOi5ZZcjeRNFFU=; b=ngQzsTc6/ygTmn/2HbXuUPGUDALNKRKLZJ2FSSigETf7agtPj0rvb3gn1rbac/jrPG kiGLm88XEA5xH9SOJPZu7uqw8LCdiECHpOg1XRB+P9qJOPEv/O4yW5b1Y9KlH0qepkpE 7CcKAJhgH1GF9URwT45PqGbDbXZZdGRLCXlxHN18wCjuuBbNSz/Nzl46Qc//W97iJEB5 +GD2x7JLeSvcAJoXIGrb4yVi21oChYahgtgaKk7yDa1PnblMZGcvyf+qU56YjleG7Z4x lZD6sbM5DBEFazC+q6Boj85R83I5hQR4MxtmrB5qsRvzLAaO8C4KaxhAeMjHoqn0lJJb a7dA== X-Gm-Message-State: AO0yUKU0f/fBGoFk5J6UcECwszXzyaU6bO6y54fwe8rnM8+WMQr3JIWx fCpZzDYv9KdsMePZXT56dHRQQA== X-Google-Smtp-Source: AK7set8yrpwivPAC5Tn2KvINyb5DNZQznltUCrVbf3PvSLze1zvRKMlXNbiN7dLZSl1gOsbEEC8RTg== X-Received: by 2002:a50:bac4:0:b0:497:948b:e8 with SMTP id x62-20020a50bac4000000b00497948b00e8mr4843838ede.6.1675797633424; Tue, 07 Feb 2023 11:20:33 -0800 (PST) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id u2-20020a509502000000b0049e08f781e3sm6971906eda.3.2023.02.07.11.20.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 11:20:32 -0800 (PST) Date: Tue, 7 Feb 2023 20:20:31 +0100 From: Andrew Jones To: Andrea Bolognani Cc: Thomas Huth , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Sunil V L , Palmer Dabbelt , Alistair Francis , Bin Meng , qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Anup Patel , Atish Kumar Patra , Ani Sinha , "Michael S. Tsirkin" , Markus Armbruster , Igor Mammedov , Gerd Hoffmann , Bernhard Beschow Subject: Re: [PATCH 02/10] hw/riscv/virt: Add a switch to enable/disable ACPI Message-ID: <20230207192031.pu5uy2yppv3htjw5@orel> References: <20230202045223.2594627-1-sunilvl@ventanamicro.com> <20230202045223.2594627-3-sunilvl@ventanamicro.com> <20230207102353.hpg2gxh22urjbebu@orel> <9c05b850-ae25-12aa-c6d0-b7a813a5ee03@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=ajones@ventanamicro.com; helo=mail-ed1-x534.google.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, 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: , X-List-Received-Date: Tue, 07 Feb 2023 19:20:37 -0000 On Tue, Feb 07, 2023 at 06:38:15AM -0800, Andrea Bolognani wrote: > On Tue, Feb 07, 2023 at 03:02:19PM +0100, Thomas Huth wrote: > > On 07/02/2023 14.56, Andrea Bolognani wrote: > > > It looks like i440fx and q35 both have an 'acpi' machine property. Is > > > -no-acpi just sugar for acpi=off? > > > > Yes, it is, see softmmu/vl.c: > > > > case QEMU_OPTION_no_acpi: > > qdict_put_str(machine_opts_dict, "acpi", "off"); > > break; > > > > > Is it considered desirable to get rid of -no-acpi? > > > > Sounds like a good idea, indeed! > > > > > If so, we should follow the usual deprecation > > > process and get rid of it after libvirt has had a chance to adapt. > > > > > > In the scenario described above, it would make sense for RISC-V to > > > only offer the machine type option (assuming that -no-acpi doesn't > > > come for free with that) instead of putting additional effort into > > > implementing an interface that is already on its way out. > > > > I agree. IMHO the machine parameter should be enough, no need to introduce > > "-no-acpi" here. > > Well, it looks like -no-acpi will come for free after all, thanks to > the code you pasted above, as long as the machine property follows > the convention established by x86, arm and (I just noticed this one) > loongarch. Not quite, because we also have $ grep -A1 '"no-acpi"' qemu-options.hx DEF("no-acpi", 0, QEMU_OPTION_no_acpi, "-no-acpi disable ACPI\n", QEMU_ARCH_I386 | QEMU_ARCH_ARM) So that means neither riscv nor loongarch get -no-acpi just by adding the "acpi" machine property. If the plan is to deprecate -no-acpi, then riscv can be like loongarch and only have the "acpi" property from the start. Thanks, drew