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 lists1p.gnu.org (lists1p.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 8F03FCA5FA2 for ; Mon, 28 Sep 2026 12:18:40 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xBAJU-0008Sh-Ps; Mon, 28 Sep 2026 08:18:35 -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 1xBAJ9-0008QR-BS for qemu-arm@nongnu.org; Mon, 28 Sep 2026 08:18:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xBAJ7-0007Oo-7J for qemu-arm@nongnu.org; Mon, 28 Sep 2026 08:18:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790597888; 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=bYJILyrkOjcB8wpCOaQMxQL60+8qu9IFm7AnWCdnWIY=; b=LlRLGEnB8MPuJa710UCjLpYp7ACvbZSgPzsBNjzZsFVJgTPXWokgIKLkYkB8JwLxcworUY gzMbg0bFXf1FsLVyADxWGLsH2Ubz6eEIipyiSl0BGQzjoMCkWzoLW+wmntKL/qsDPBjkrL C4cWVQTCWJS0ZD1WdjxmT6fYIfFibGo= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-312-XybCGkfKMwW9YHVF8Lnt6Q-1; Mon, 28 Sep 2026 08:18:03 -0400 X-MC-Unique: XybCGkfKMwW9YHVF8Lnt6Q-1 X-Mimecast-MFC-AGG-ID: XybCGkfKMwW9YHVF8Lnt6Q_1790597881 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2BC361955D4D; Mon, 28 Sep 2026 12:18:01 +0000 (UTC) Received: from blackfin.pond.sub.org (unknown [10.44.22.5]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 92796180036E; Mon, 28 Sep 2026 12:18:00 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id 27E7421E6A04; Mon, 28 Sep 2026 14:17:58 +0200 (CEST) From: Markus Armbruster To: Yonggang Luo Cc: qemu-devel@nongnu.org, Richard Henderson , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Daniel P. =?utf-8?Q?Berrang=C3=A9?= , "Edgar E. Iglesias" , Pierrick Bouvier , Fabiano Rosas , Laurent Vivier , Paolo Bonzini , Alistair Francis , Peter Maydell , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , qemu-arm@nongnu.org, kvm@vger.kernel.org Subject: Re: [PATCH v4 41/55] target-info: add SysEmuTarget none In-Reply-To: (Yonggang Luo's message of "Mon, 28 Sep 2026 20:04:59 +0800") References: <20260926070057.1234-1-luoyonggang@gmail.com> <20260926070057.1234-42-luoyonggang@gmail.com> <87zex1fvh4.fsf@pond.sub.org> Date: Mon, 28 Sep 2026 14:17:58 +0200 Message-ID: <87ik3pfu2x.fsf@pond.sub.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-MFC-PROC-ID: 4xXSBl-aARKJIYvg_ZPWdyTri0NvYM-V5tFV71pUCOU_1790597881 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=170.10.133.124; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.238, 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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Yonggang Luo writes: > On Mon, Sep 28, 2026 at 7:48=E2=80=AFPM Markus Armbruster wrote: >> >> Yonggang Luo writes: >> >> > Add a none target for when no TargetInfo is selected. It is last >> > so existing SYS_EMU_TARGET_* values stay put, and it is not a >> > qemu-system- executable name. target_is_none() and target_none() >> > report that state. >> >> Why does it matter that existing SYS_EMU_TARGET_* stay put? > > We need a state that not a real CPU target is selected( I called it none)= , > then we can use it to list all targets. for example, do query-targets. > query-machines(all machines for all targets). > Any better ways to handle it would be appreciated, I am not choosing to s= et > it to NULL because > that would cause too much NULL-check error, as the pre-existing code > presume there is always a > CPU target present. Doesn't answer my question, so let me try again :) In your commit message, you explain "it is last so existing SYS_EMU_TARGET_* values stay put". They do, but why is that useful?