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 6ACC3C36010 for ; Fri, 4 Apr 2025 13:15:40 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u0gt4-0004zI-Ud; Fri, 04 Apr 2025 09:15:10 -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 1u0gt0-0004wd-VJ for qemu-riscv@nongnu.org; Fri, 04 Apr 2025 09:15:08 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0gsy-0004uu-LN for qemu-riscv@nongnu.org; Fri, 04 Apr 2025 09:15:06 -0400 Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-af523f4511fso1666334a12.0 for ; Fri, 04 Apr 2025 06:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1743772503; x=1744377303; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JwSA1LrA+gdPCuc648AN28U3mqTmQDlX8wziMIz8okU=; b=S3RUStyWQJ9HrbCPppZQTCIH9PJ+n2MI2RHJWLUyybKWMsNMRZ+NhU8GtR1lWlhFFU GKgcXWQXWK+jOQKSrvKrnczNpSQiFt/twAIE7P6nZnHHR51VC9uJI3H0R3mVVGwRLUiX r/FT+2ByaTS7YLBBYoz3iaqemDwF3MmNn0mFsXRn5vvGmEQ1A2ZMBrpkEEOd9OAiBMLW 1wan6ErOk4PobBGehDBbni6hZZQP7qayU8HM7p1E56ewfJxbUm34EI3piIe9zTjq96Yu xvZSnGHx23pVb1AvwWCDpCJd2EEf/4jPenhTFj1hV0v16z38Ck63+/ayVFfZX9IgubEu ktLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743772503; x=1744377303; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JwSA1LrA+gdPCuc648AN28U3mqTmQDlX8wziMIz8okU=; b=uua6of3Hje2rOMG+3RRipB9mpfKjxrX3LLJ8SJgO4bhvIFMyNnKidJ65xBk4yXdUxl Q3WTcJBT5G+zJ23m1xIsGr4nKIDj0T4jYajpeHVnMgF8571wMlSz43hz1bTW31YtHAwC XdAMyeNNk1aRuj0ABjGLtxs9jeFCJqECZI1M6Hl/uv7/7Mzb/kbkzReqgMxl6bjyp82i QST0rs/ijGDA5KYwVw4rXKiqyHJbcCMJbtIBe65nU7HN9X1VN8wuLkpkPCYhy/NNG77A mWSaUEMQ5NMTTBjh3AlqeyBATeU66CitI6lkEfyFjmSRAdqk4JCI+AcM2ZJ4ZPh6Lg/c /mSA== X-Gm-Message-State: AOJu0Yz1qwC9RF4rN6J8xlxH6ULIwlcSU3dssStyPaOrvsUqvyggt0BV KvU9BjQUejxa5CqXz5mN+ZtEsYV1/ROf08VZTePdUYo2s1mWqhaZYi+1oncAY18= X-Gm-Gg: ASbGncu/aeyKLXgMmg2hF5qp+uaFy+/y7CgTffFoqIBIH4t8nk4GV4OSs2h89F9ev83 OONuW/3E/Qa93S93fwt13vRiNigIOvWA8j/Xd4FkMRDUuMo3gvba7kTPw3omnI6TPaZ+OP2wdNI 8gOQAZkI4b9CuB4Jx+elugf8ua+Uh2gUlWlhL6akyxxgvJ/lWCswzKEQpIwy8/GeAh7cmoef+5A uyqhRXa2FhJ1cj0t04LlgTdDt9orB3C1s7iYtBHi9ag7rH4CqfP1qRPGkjZ7KdGoYTnHphEq0GF TZ4dT+9RxihDZTqhWIVCy5KrDaKXqBvOiQca4zDgyrqT2uzpKOVkLxWJ5RYE X-Google-Smtp-Source: AGHT+IEPDVJ2x/VQzBXIo/LJrRX0FqTy3cRUmMccyJV9u1ZlIAG3zhtzuXG6mIZjv1X0O8JcvOe5sQ== X-Received: by 2002:a17:90b:2811:b0:2f2:a664:df1a with SMTP id 98e67ed59e1d1-306a61208c8mr3997006a91.2.1743772502846; Fri, 04 Apr 2025 06:15:02 -0700 (PDT) Received: from [192.168.68.110] ([177.170.227.223]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3057cb9500dsm3955429a91.47.2025.04.04.06.14.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Apr 2025 06:15:02 -0700 (PDT) Message-ID: <95b4102b-2501-4030-8c3d-32b642c6d603@ventanamicro.com> Date: Fri, 4 Apr 2025 10:14:57 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH for-10.0] docs: deprecate RISC-V default machine option To: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, palmer@rivosinc.com References: <20250404122858.241598-1-dbarboza@ventanamicro.com> Content-Language: en-US From: Daniel Henrique Barboza In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=dbarboza@ventanamicro.com; helo=mail-pg1-x529.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: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 4/4/25 10:07 AM, Philippe Mathieu-Daudé wrote: > On 4/4/25 14:28, Daniel Henrique Barboza wrote: >> Commit 5b4beba124 ("RISC-V Spike Machines") added the Spike machine and >> made it default for qemu-system-riscv32/64. It was the first RISC-V >> machine added in QEMU so setting it as default was sensible. >> >> Today we have 7 riscv64 and 6 riscv32 machines and having 'spike' as >> default machine is not intuitive. For example, [1] is a bug that was >> opened with the 'virt' board in mind, but given that the user didn't >> pass a '-machine' option, the user was using 'spike' without knowing. >> >> Being explicit in the command line is desirable when we have a handful >> of boards available, so deprecate the default machine setting from >> RISC-V. >> >> [1] https://gitlab.com/qemu-project/qemu/-/issues/2467 >> >> Suggested-by: Philippe Mathieu-Daudé >> Signed-off-by: Daniel Henrique Barboza >> --- >>   docs/about/deprecated.rst | 17 +++++++++++++++++ >>   1 file changed, 17 insertions(+) >> >> diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst >> index 76291fdfd6..0f41a99c67 100644 >> --- a/docs/about/deprecated.rst >> +++ b/docs/about/deprecated.rst >> @@ -304,6 +304,23 @@ online to check that this board did not completely bitrot yet). It is >>   recommended to use another MIPS machine for future MIPS code development >>   instead. >> +RISC-V default machine option (since 10.0) >> +'''''''''''''''''''''''''''''''''''''''''' >> + >> +RISC-V defines ``spike`` as the default machine if no machine option is >> +given in the command line.  This happens because ``spike`` is the first >> +RISC-V machine implemented in QEMU and setting it as default was >> +convenient at that time.  Now we have 7 riscv64 and 6 riscv32 machines >> +and having ``spike`` as a default is no longer justified.  This default >> +will also promote situations where users think they're running ``virt`` >> +(the most used RISC-V machine type in 10.0) when in fact they're >> +running ``spike``. > > Reviewed-by: Philippe Mathieu-Daudé > > Having users specify "-M virt" doesn't seem much of a hassle IMHO, > so I'd not use 'virt' as the /new/ default in 10.2 (but we aren't > there yet). The idea is to not have any default machine at all. Users will need to specify "-M " in the command line for all RISC-V machines. Otherwise we might run in the same problem again if another RISC-V board becomes more popular than 'virt'. Thanks, Daniel > >> + >> +Removing the default machine option forces users to always set the machine >> +they want to use and avoids confusion.  Existing users of the ``spike`` >> +machine must ensure that they're setting the ``spike`` machine in the >> +command line (``-M spike``). >> +