[{"id":3676740,"web_url":"http://patchwork.ozlabs.org/comment/3676740/","msgid":"<adztRa80X42EGP4Y@redhat.com>","list_archive_url":null,"date":"2026-04-13T13:19:01","subject":"Re: [PATCH-for-11.0?] target/i386: Mandate monitor 'info lapic' take\n a vCPU ID argument","submitter":{"id":2694,"url":"http://patchwork.ozlabs.org/api/people/2694/","name":"Daniel P. Berrangé","email":"berrange@redhat.com"},"content":"On Mon, Apr 13, 2026 at 03:07:48PM +0200, Philippe Mathieu-Daudé wrote:\n> With SMP configurations, using the 'current vCPU' under the\n> monitor isn't recommended, as it changes during runtime. Better\n> to specify which vCPU we want to monitor by its index. Deprecate\n> the default of 'info lapic', mentioning an argument is expected,\n> so we can remove this unpredictable behavior one day.\n> \n> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n> ---\n> The other command with this unpredictable behavior is 'info tlb'\n> which we'll deal with differently, after the v11.0 release.\n\nAren't there quite a few more commands that rely on the HMP\n\"current\" vCPU concept besides these two ?\n\ninfo registers  comes to mind, \n\nThere are others whic call mon_get_cpu(), which are not\ndirectly caring about a specific CPU, eg 'info mem',\n'memory_dump'\n\nWhy the rush to get lapic deprecated in 11.0 but not the\notherrs ?\n\n\n> ---\n>  docs/about/deprecated.rst | 6 ++++++\n>  target/i386/cpu-apic.c    | 2 ++\n>  hmp-commands-info.hx      | 3 +--\n>  3 files changed, 9 insertions(+), 2 deletions(-)\n> \n> diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst\n> index a6d6a713265..a62da93259a 100644\n> --- a/docs/about/deprecated.rst\n> +++ b/docs/about/deprecated.rst\n> @@ -169,6 +169,12 @@ The ``stopcapture`` command is deprecated and will be removed in a future releas\n>  \n>  The ``info capture`` command is deprecated and will be removed in a future release.\n>  \n> +``info lapic`` without ``apic-id`` argument (since 11.0)\n> +''''''''''''''''''''''''''''''''''''''''''''''''''''''''\n> +\n> +When no APIC ID is provided, ``info lapic`` defaults to the current vCPU.\n> +This behavior is now deprecated, the ID will be mandatory in a future release.\n> +\n>  Host Architectures\n>  ------------------\n>  \n> diff --git a/target/i386/cpu-apic.c b/target/i386/cpu-apic.c\n> index eaa10ad2a3d..9ca569f62b8 100644\n> --- a/target/i386/cpu-apic.c\n> +++ b/target/i386/cpu-apic.c\n> @@ -97,6 +97,8 @@ void hmp_info_local_apic(Monitor *mon, const QDict *qdict)\n>              cpu_synchronize_state(cs);\n>          }\n>      } else {\n> +        monitor_printf(mon, \"Not specifying the local apic id is deprecated\"\n> +                       \" (using the current CPU one)\\n\");\n>          cs = mon_get_cpu(mon);\n>      }\n>  \n> diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx\n> index 74c741f80e2..e4206d329fc 100644\n> --- a/hmp-commands-info.hx\n> +++ b/hmp-commands-info.hx\n> @@ -118,8 +118,7 @@ ERST\n>          .name       = \"lapic\",\n>          .args_type  = \"apic-id:i?\",\n>          .params     = \"[apic-id]\",\n> -        .help       = \"show local apic state (apic-id: local apic to read, default is which of current CPU)\",\n> -\n> +        .help       = \"show local apic state (apic-id: local apic to read)\",\n>          .cmd        = hmp_info_local_apic,\n>      },\n>  #endif\n> -- \n> 2.53.0\n> \n\nWith regards,\nDaniel","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=W4OyC2Gz;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvSgG4SSRz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 23:19:38 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wCHC9-0006sg-3s; Mon, 13 Apr 2026 09:19:18 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <berrange@redhat.com>)\n id 1wCHC8-0006sY-05\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 09:19:16 -0400","from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <berrange@redhat.com>)\n id 1wCHC6-0005p7-03\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 09:19:15 -0400","from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-28-6iflTfPMMVicRLlPceZZ5w-1; Mon,\n 13 Apr 2026 09:19:08 -0400","from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 104BB1956089; Mon, 13 Apr 2026 13:19:07 +0000 (UTC)","from redhat.com (headnet01.pony-001.prod.iad2.dc.redhat.com\n [10.2.32.101])\n by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id A3F283000C1F; Mon, 13 Apr 2026 13:19:04 +0000 (UTC)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776086352;\n h=from:from:reply-to:reply-to:subject:subject:date:date:\n message-id:message-id:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=DSVKvEnG2AmtI4dCWIctdV61Ja5Ms5AVxm9/sRciN4w=;\n b=W4OyC2GzY8V+oPndop/Ld+p63NGyHZeaHHD5ToxyI/N6W6wX86I3/HYJ8Gb8EGrLx7EaPY\n 2YTXKIEBS8pab1QHyz0EY/+J2Go3z+Oa+l5YD2bXQYKOs3azRFvu2v4BRMrUqlE54K/u7H\n q8oNe9kBQoXrsesu6dCW6HFMP9Nztd0=","X-MC-Unique":"6iflTfPMMVicRLlPceZZ5w-1","X-Mimecast-MFC-AGG-ID":"6iflTfPMMVicRLlPceZZ5w_1776086347","Date":"Mon, 13 Apr 2026 14:19:01 +0100","From":"Daniel =?utf-8?b?UC4gQmVycmFuZ8Op?= <berrange@redhat.com>","To":"Philippe =?utf-8?q?Mathieu-Daud=C3=A9?= <philmd@linaro.org>","Cc":"qemu-devel@nongnu.org, devel@lists.libvirt.org,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n Zhao Liu <zhao1.liu@intel.com>,\n \"Dr. David Alan Gilbert\" <dave@treblig.org>,\n Markus Armbruster <armbru@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>","Subject":"Re: [PATCH-for-11.0?] target/i386: Mandate monitor 'info lapic' take\n a vCPU ID argument","Message-ID":"<adztRa80X42EGP4Y@redhat.com>","References":"<20260413130748.6631-1-philmd@linaro.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"<20260413130748.6631-1-philmd@linaro.org>","User-Agent":"Mutt/2.2.14 (2025-02-20)","X-Scanned-By":"MIMEDefang 3.4.1 on 10.30.177.4","Received-SPF":"pass client-ip=170.10.133.124;\n envelope-from=berrange@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com","X-Spam_score_int":"7","X-Spam_score":"0.7","X-Spam_bar":"/","X-Spam_report":"(0.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.54,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_SBL_CSS=3.335,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Reply-To":"Daniel =?utf-8?b?UC4gQmVycmFuZ8Op?= <berrange@redhat.com>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"}},{"id":3676777,"web_url":"http://patchwork.ozlabs.org/comment/3676777/","msgid":"<CAFEAcA8LPMQnTk8PMS81FwRG+2yX=ScLc+6TtZzNqUJn9yAszA@mail.gmail.com>","list_archive_url":null,"date":"2026-04-13T13:59:36","subject":"Re: [PATCH-for-11.0?] target/i386: Mandate monitor 'info lapic' take\n a vCPU ID argument","submitter":{"id":5111,"url":"http://patchwork.ozlabs.org/api/people/5111/","name":"Peter Maydell","email":"peter.maydell@linaro.org"},"content":"On Mon, 13 Apr 2026 at 14:08, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:\n>\n> With SMP configurations, using the 'current vCPU' under the\n> monitor isn't recommended, as it changes during runtime. Better\n> to specify which vCPU we want to monitor by its index. Deprecate\n> the default of 'info lapic', mentioning an argument is expected,\n> so we can remove this unpredictable behavior one day.\n\nIs this really \"unpredictable\" ? This isn't the \"current CPU\" in\nthe sense of \"whatever is currently running\", it's the \"current CPU\"\nin the sense of \"whatever the user has set via the 'cpu' HMP command\".\n\nYou can certainly argue that a UI where you set the CPU via one\ncommand and then that's an implicit argument to various other\ncommands is not ideal, but it's not unpredictable. The\nonly time the CPU will change without user interaction is if\nthey have set the monitor's current-CPU to one that is hot-unplugged\n(in which case it will reset to the first CPU), but the user is\nalso likely to be in control of hot-unplug events anyway.\n\n-- PMM","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=fitvXvJV;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvTZy0myMz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 00:00:56 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wCHpX-0007uY-2i; Mon, 13 Apr 2026 09:59:59 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wCHpQ-0007qr-QJ\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 09:59:53 -0400","from mail-yx1-xb129.google.com ([2607:f8b0:4864:20::b129])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wCHpO-0004wc-Jd\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 09:59:52 -0400","by mail-yx1-xb129.google.com with SMTP id\n 956f58d0204a3-6501d242e3fso3898975d50.0\n for <qemu-devel@nongnu.org>; Mon, 13 Apr 2026 06:59:49 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; t=1776088789; cv=none;\n d=google.com; s=arc-20240605;\n b=CHhXD6d0g8wCfMkg+b4tpZQb4cJ9/0yWfA5o9VHpeCT97IqU94gbiWpo9h2GXe9TXa\n J77iQUDlnd63HDwLrjc2IroVj+MuiCZgXXuk+ZuPEQXQ76jG1vrHyWU8fIYEM05Q9KsT\n vAB/Lyl4bARzVR7X+fKiQI2nzc5oQC/vtp/2QMIF53ZnS+ABEhRWcXgYR3vO7x8vuP/u\n c0HaW9Au2DHyIgF2/JOmbuYxoyvWWWSVxT8EdyhNrBh2yRTOkfteNrNdTxeY2RsR11K5\n ATynES8HuSKI7xESpT8HFGn24+sLD0G1z46nk+mLQzTtxxHGIIUOzYIU8R/0u3oSDztb\n LSaA==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:dkim-signature;\n bh=FC7chCUPQmLp9ToarZO5ZTCRLfT2LzlBj6z9d1rhzUc=;\n fh=jTICRZQonhXnGZ6zW6ALtQubEH3CyhSroXRZicteSfI=;\n b=foaDiGfaOR4G7ACObcZH82JwtB046YqFXX+IZe0HxY/XrPS0NT1YLKSLC4PaU95Cz8\n UCO1RaRD2oz7kOHBgsXdLFCF/bI2tE4gxckfu7k2BPxox7w3A6TwQ9k5btvlkSTLF7Ua\n Ivlnx5qgS3Y2MKBsaeI6CDN/edAPx1vputv0vlqa08QY5N096ziuDV5FhkzagP2Jl4+b\n 450kTr01OsKvnylBf1cctg9UVN2dDZbEi+taJiyMGq2qKFAa03OYTME0e8dNaojye87g\n XyfiySpYo7AH79NTS0yHFqvKe+dEYgoVG7Lf8+FviekdDeSF1bM4RhnlMtEKqbRL6yqi\n nd7g==; darn=nongnu.org","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1776088789; x=1776693589; darn=nongnu.org;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:from:to:cc:subject:date\n :message-id:reply-to;\n bh=FC7chCUPQmLp9ToarZO5ZTCRLfT2LzlBj6z9d1rhzUc=;\n b=fitvXvJVwKbNBQQItkiZ0pRzRbsCrdt2uw3KXxLYjEB61/TJDsgb/EjvxINBTMvtVI\n xOH01nFXm+qM102xVmwvrJDFUjMyxF0kvjvdlgGEoZgCuFKT6eiy59zFa48IzrBPfcjo\n 3VJpC7n0ImQa14M4WEYI+Gnq8xmW5N8YOwZ1KsLyte8eExg8fRr709Qv3wtvy4+nUgQU\n EpJ6V3SEsqIhZ8gL0u5aWezcKu7BCjc47tTQ2xUF8jTC8stO/mJmN997w5Jw98OLHc6J\n 1mJAIiacIwXHUB3LYo+sptD8ceQiK6i9YjdXaOfbjlZZcYHfqEDXYu4nLXYKWd1JExej\n xGqA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776088789; x=1776693589;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=FC7chCUPQmLp9ToarZO5ZTCRLfT2LzlBj6z9d1rhzUc=;\n b=J1qj3HXh4Wcqw4sSyb8QQO7tr9GqNqC72jKIqMmaWQgEdqWx2SAJe6K7CQfZzgV/VR\n XeQe27xSj6OX7Pz7MO4WdRvkA8uDGKv2SDK1+if6eVPx5/oNA/Rw2FYGY5oBPLEyu3V+\n 1Fq4XzTkrvwR0L9fA2M7SbszR+JojG+X4kJfqXQwRZkMvmXGDXD3VL2JdBy/vQ/Mj+nJ\n ZZsnkPDd+T7j5khlkDhCsRLnJ1k2Pqg4eQHe7raUWTFDFzwD+JpCOw4oTJ0KF53m0eiY\n Gl60WEe7/6/ToA379/H1VW1XUdDCznUdY82smjTSS+pYHOiWSpGnPusVHslS7JQaGyv7\n eZgw==","X-Gm-Message-State":"AOJu0YzVMJPDljZpyc2pScpE//GEP4UczY6tpsHX9aiRJycco4XrnMGG\n 49vVmAlFrmuHCbDtyunJ0sVLNy5KLRM26xSx2j9UsBasUUJ/wfeqodvpMnAWXj0pWpekV3phPGj\n tr0GLFkdzEwK7x3bkRO4H2Go3thE6ZyYlUaJ7bl/toQ==","X-Gm-Gg":"AeBDieu8otXaJwGDAI1FQ8HoXBtX0jSBplF1l/SstZwvOI9bnWxwb+zhMdXtFuPROgJ\n BDWjluAAxh/+BI9+f1MyA2/r0DLuVLByQNXl+hDe+gsfN+Co8KxXCK5az0Ct44IncpGE3SdAqJJ\n UfMFLtBmQnunwtnE3S8cj8pa1/TdemyptMHsnXeHgYDqjlakRu3ahT5pfAH+l7WI9AWNbHUP7Yf\n p0YduCrvbJg5iHTttp7m67QNBPqImSUi79CdyII4uXUPE8G7Sykzp0C2/eW+qzitWuDvqgVnG+W\n 7r3bYq08d51OwH0KCWcZtvUFmKC44ryzv/LnmS7HcnOl+BAR7JyAKXZwqv4JCE1U8Mg=","X-Received":"by 2002:a05:690e:130a:b0:650:95e:2fc with SMTP id\n 956f58d0204a3-65198b566f5mr13463038d50.40.1776088788483; Mon, 13 Apr 2026\n 06:59:48 -0700 (PDT)","MIME-Version":"1.0","References":"<20260413130748.6631-1-philmd@linaro.org>","In-Reply-To":"<20260413130748.6631-1-philmd@linaro.org>","From":"Peter Maydell <peter.maydell@linaro.org>","Date":"Mon, 13 Apr 2026 14:59:36 +0100","X-Gm-Features":"AQROBzCDwzLgc15qiZaGD4UfBESj_wEp4vFWYc6qeHUe0mEMwtIRDqisrtAIZvQ","Message-ID":"\n <CAFEAcA8LPMQnTk8PMS81FwRG+2yX=ScLc+6TtZzNqUJn9yAszA@mail.gmail.com>","Subject":"Re: [PATCH-for-11.0?] target/i386: Mandate monitor 'info lapic' take\n a vCPU ID argument","To":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>","Cc":"qemu-devel@nongnu.org, devel@lists.libvirt.org,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n Zhao Liu <zhao1.liu@intel.com>,\n \"Dr. David Alan Gilbert\" <dave@treblig.org>,\n Markus Armbruster <armbru@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","Received-SPF":"pass client-ip=2607:f8b0:4864:20::b129;\n envelope-from=peter.maydell@linaro.org; helo=mail-yx1-xb129.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"}},{"id":3676940,"web_url":"http://patchwork.ozlabs.org/comment/3676940/","msgid":"<af54b324-a03f-4251-bcf0-58d457229e0d@linaro.org>","list_archive_url":null,"date":"2026-04-13T22:09:20","subject":"Re: [PATCH-for-11.0?] target/i386: Mandate monitor 'info lapic' take\n a vCPU ID argument","submitter":{"id":85046,"url":"http://patchwork.ozlabs.org/api/people/85046/","name":"Philippe Mathieu-Daudé","email":"philmd@linaro.org"},"content":"On 13/4/26 15:19, Daniel P. Berrangé wrote:\n> On Mon, Apr 13, 2026 at 03:07:48PM +0200, Philippe Mathieu-Daudé wrote:\n>> With SMP configurations, using the 'current vCPU' under the\n>> monitor isn't recommended, as it changes during runtime. Better\n>> to specify which vCPU we want to monitor by its index. Deprecate\n>> the default of 'info lapic', mentioning an argument is expected,\n>> so we can remove this unpredictable behavior one day.\n>>\n>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n>> ---\n>> The other command with this unpredictable behavior is 'info tlb'\n>> which we'll deal with differently, after the v11.0 release.\n> \n> Aren't there quite a few more commands that rely on the HMP\n> \"current\" vCPU concept besides these two ?\n> \n> info registers  comes to mind,\n> \n> There are others whic call mon_get_cpu(), which are not\n> directly caring about a specific CPU, eg 'info mem',\n> 'memory_dump'\n> \n> Why the rush to get lapic deprecated in 11.0 but not the\n> otherrs ?\n\nReading the \"Arm OABI and NWFPE\" deprecation patch triggered\n\"oh it is still possible to get deprecation message merged\"\nand I took that first patch of a bigger branch. Not a smart\nmove because no rush indeed.\n\n>> ---\n>>   docs/about/deprecated.rst | 6 ++++++\n>>   target/i386/cpu-apic.c    | 2 ++\n>>   hmp-commands-info.hx      | 3 +--\n>>   3 files changed, 9 insertions(+), 2 deletions(-)","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=HfaxREI1;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvhQr0C0rz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 08:09:40 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wCPTF-0001Zi-Ju; Mon, 13 Apr 2026 18:09:29 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1wCPTD-0001ZZ-V7\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 18:09:27 -0400","from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1wCPTB-00005J-Gs\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 18:09:27 -0400","by mail-wm1-x32f.google.com with SMTP id\n 5b1f17b1804b1-488ad135063so47331825e9.0\n for <qemu-devel@nongnu.org>; Mon, 13 Apr 2026 15:09:25 -0700 (PDT)","from [192.168.69.228] (88-187-86-199.subs.proxad.net.\n [88.187.86.199]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488d5d9fa22sm103224095e9.7.2026.04.13.15.09.21\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Mon, 13 Apr 2026 15:09:22 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1776118164; x=1776722964; darn=nongnu.org;\n h=content-transfer-encoding:in-reply-to:from:references:cc:to\n :content-language:subject:user-agent:mime-version:date:message-id\n :from:to:cc:subject:date:message-id:reply-to;\n bh=yJItwY8PngS/iJBr61aUH13ixYWYfGT0DejHpEoDqno=;\n b=HfaxREI1BBe6mqUozdD8RR2mj8jusHcgbbnRWxkqLMKbbR3qwcziDB+L5WUUtW/ftB\n VUDF6QdDN836609Zzo40WhbN8+RgotBxBmhSGVKT/BVUS9TBnClKtBNgNtQwP7QuTzAG\n xVsF9NPXsAJHmXAqjxuSRSKfUAVz4fPIycNGpwmu/XuJ8rDwS3zaP5MNWvWdcHHoYlhW\n db8goMAW2wSjKlRXVg+T6MCY4S5141FadE2ZOSlSHEZ9cWm3qjomS3DxVa3O3M80367d\n 9LkdF7YrpssDtLRZum/g8cqavxGNqACEEfc3DbkZTahIbyAe7FoIs5Lpl8kkMzVC6tEp\n XkLA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776118164; x=1776722964;\n h=content-transfer-encoding:in-reply-to:from:references:cc:to\n :content-language:subject:user-agent:mime-version:date:message-id\n :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=yJItwY8PngS/iJBr61aUH13ixYWYfGT0DejHpEoDqno=;\n b=rHG7ZFeDs2MCTI8Z0NqBu5IwRVvzJ3gk7+Av+gniZjIz/SQGGGI9eQijvM2NFGWQ0f\n wtIs5hL5sC6S0ZDAKPp0SlDOtccQPqqCTdeNqmNHMT9y/W9QIjAowGoOU7iVmM+/mDkx\n 2UW4az6LQwvtYH+1MYOC1ThaVgeRPh6RSN6L9NJyna+2vlV4GUTozKYIqySjY1unIcJM\n DBM/DHRLHxH7cFVkg2ETnoGM7orDJFckeotDdEVgLSly3zuZHBLtYF8TNc4tcfCjkksG\n bf/m/KAT3A8fRTZtz5MND4b7SgLZ3DtoDw7+tKYt8H53qSsJnYXFRisVA6aVmGg5wc1C\n VXxQ==","X-Gm-Message-State":"AOJu0Yy8PJgMJzGz/Uf7N3KeNXPIpSYHNTdkDJlYDCyzInJx2YsJXd8a\n IDlQl283VCSMbz2UMNkAGeh7uuKaI85rnbq1QyRV0GfHLGc1W8Ijm+Bpx6Mz4Wk2G18erMDKhjA\n olxakPb4=","X-Gm-Gg":"AeBDietEExYZhYORvJU3OEEDGX0OHv1iDlE5O3ODW/KNe73GhHEqDeH1YeZFOSbK3Lh\n cY/ir7qdHyGH/4hLn/tEWqZPY3nUnwjpa9tNwt93JsdEI8Ln56FWfDfJ4v1vZxWXUZoZLl4V0Rb\n ejbP/CRkiIxEEOZcoytibIXG9CVsIiofgefqnKcpq+sArYx9RcbOwJHUDnJWUnOi4jKXSCES3bx\n iIp/OiWc1PSecv9tTFGZHMKCh+rNTvIAnKd/xw3Und6/dihVfKGMD/bM4kYM1tZZWFMTRCsavNo\n 6UZmQQkTLCt5MsTaf6kYnNBevK/xRlYIPRfGw8Kqd1I6wZ5kptActDVclcXXhCowamqUPdqi62o\n em46gFnieSbLrhG6olzgVlV/cy4qCgmExRNqoBKRvZnYPjC5t12C+ohjljoI4FLezmxgu/1xnxf\n jImO051j5RUTi6q71bzSvMB4JxfSGjLPYvaiHnQLZTc7TrULXtBIcmk3fINjg7MUVK1Zja9nEJO\n Kp0","X-Received":"by 2002:a05:600c:674f:b0:488:a82f:bb9b with SMTP id\n 5b1f17b1804b1-488d68cb47amr218256835e9.30.1776118162868;\n Mon, 13 Apr 2026 15:09:22 -0700 (PDT)","Message-ID":"<af54b324-a03f-4251-bcf0-58d457229e0d@linaro.org>","Date":"Tue, 14 Apr 2026 00:09:20 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [PATCH-for-11.0?] target/i386: Mandate monitor 'info lapic' take\n a vCPU ID argument","Content-Language":"en-US","To":"=?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>","Cc":"qemu-devel@nongnu.org, devel@lists.libvirt.org,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n Zhao Liu <zhao1.liu@intel.com>, \"Dr. David Alan Gilbert\" <dave@treblig.org>,\n Markus Armbruster <armbru@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>","References":"<20260413130748.6631-1-philmd@linaro.org>\n <adztRa80X42EGP4Y@redhat.com>","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>","In-Reply-To":"<adztRa80X42EGP4Y@redhat.com>","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2a00:1450:4864:20::32f;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"}}]