{"id":2222697,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2222697/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260413130748.6631-1-philmd@linaro.org/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.2/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260413130748.6631-1-philmd@linaro.org>","list_archive_url":null,"date":"2026-04-13T13:07:48","name":"[PATCH-for-11.0?] target/i386: Mandate monitor 'info lapic' take a vCPU ID argument","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"9e534c97fdda39489dc02108854edc802a48edb9","submitter":{"id":85046,"url":"http://patchwork.ozlabs.org/api/1.2/people/85046/?format=json","name":"Philippe Mathieu-Daudé","email":"philmd@linaro.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260413130748.6631-1-philmd@linaro.org/mbox/","series":[{"id":499701,"url":"http://patchwork.ozlabs.org/api/1.2/series/499701/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499701","date":"2026-04-13T13:07:48","name":"[PATCH-for-11.0?] target/i386: Mandate monitor 'info lapic' take a vCPU ID argument","version":1,"mbox":"http://patchwork.ozlabs.org/series/499701/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2222697/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2222697/checks/","tags":{},"related":[],"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=S+ZS6OvW;\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 4fvSQm55Ktz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 23:08:47 +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 1wCH19-0004bF-CX; Mon, 13 Apr 2026 09:07:55 -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 1wCH18-0004b7-Eu\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 09:07:54 -0400","from mail-wr1-x430.google.com ([2a00:1450:4864:20::430])\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 1wCH16-00042F-TE\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 09:07:54 -0400","by mail-wr1-x430.google.com with SMTP id\n ffacd0b85a97d-43d70c30767so903294f8f.0\n for <qemu-devel@nongnu.org>; Mon, 13 Apr 2026 06:07:51 -0700 (PDT)","from localhost.localdomain (88-187-86-199.subs.proxad.net.\n [88.187.86.199]) by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43d63de2e4csm34608412f8f.2.2026.04.13.06.07.49\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Mon, 13 Apr 2026 06:07:49 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1776085670; x=1776690470; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=T+polFJXIRW8YuYLuBeq5TCrPMFMgIHh/5hqcgt2EOQ=;\n b=S+ZS6OvWrgV5EClTXdBRIu+N3lSNJDqGR4mXus5QvfDXP5fZMGSmn/MaE0L6DiSi7e\n /Ie4O3yten/3Vpuy447kRYvUfPTJHqFWcHta+TRTHyGYQBB/dCkDsi640BP9pqzJBp2j\n YhYOsuBittuVOQ8IO/ukudFCAz/PHfAitSCKUQZYvEhkzH0SFLXTlJAs4NWMS9daBVsv\n XeG9EgK9Ik6+bqR6dbuWKW2z+bHR3czFfzWuP+/c1i6APBOANJn+nhvGUQEcXJSrefHl\n P5l/uiRy4I3sOJW7EWN0zU9aDuUpjsREm4lYP8If+u8RPwhVBZ5ZhAceW9/7muFWb7x1\n 2zWg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776085670; x=1776690470;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=T+polFJXIRW8YuYLuBeq5TCrPMFMgIHh/5hqcgt2EOQ=;\n b=en5ulMTg77AdJxGBtcznh1GWG2X1vRwJDfzE42tXCxc9MQKe7hyJi/4PQHcEzdx3yC\n NClDnBTqVDL1m3yYJ0E6Rd8naxrXCvDprDGaUbAO+8FOkwOtzCAWLYxuKCOiHP4Zqbl2\n mSk7AApaLXtb+/br+ZbBS790u91CeOhIe0sYeIttgtdWuFMt96v9P0HPWeztnp/7WXpx\n HfXlnwInmyrBFld/JInIwUQkSSr7QOks3QRdVLQHfTDbS/Zw+C8s79OJKhi+LE1qOxWL\n DLgWVCmfJwgsDynkJMvF8tMF35bWEdA7bVCGl+2y6/5lZQOo8zx2CBsICyls0eViAnxb\n CoSA==","X-Gm-Message-State":"AOJu0YzPj7jTyJSGw8qyCyFPEDY59YqxjIYOn+vygGtR8kznWZ+2R6aI\n 9fkygG7TKQCeDiw21YY3QaPEYC0Kpi/Et3qQoKzp6lh3G+x1/IvPsNIoudo+etpFWrwaCruZRMn\n U+o0UwRA=","X-Gm-Gg":"AeBDiet0a7Z10Yo6896ltCJgalubNAkWbD7Gt5gRPNiqKKSILtRx/Ddyy7EeFzAE41k\n nwsmwabdccpmMX6QdFkvNPFNXqA2KLkDr1ZbabW9zbD8Pc048gQuWSccHq/9v0C6gcG9Ux/PVJN\n 9rxhc/BOca8vSWOMrbhnpwvDEgnVNFGv0IyQPWGhMUVavVmRmqHquTS5iJESaBrzbJe5Gn+OuQl\n hQSA5hOtEBRT97uqXLGH5OJ3Vt6JT4hv0/WUuYxEvHIT73D9AFTrLK9RvkItYOj699/hxe6itd0\n DGpTO6K8YOzSpHLEA964nCcoZ8feOc9dN3FQ5wOnIbVYeLnzS9UwElhrXyTwGYMlK5hEfSgdQ8N\n TB91YrDBaYQMuqEl6Cw/2zLwX2UM+HgY6thYKX6CILAV1QbybxFift2JzNs7UPyBk0yzH4+qQjx\n /dIn0Irx2KzSsjStEbKwiN0kKYBByKN7t+p7ZyUEanPhdRFT5K8S28ZixDpF/O3Y1RDiGEAvKx","X-Received":"by 2002:a5d:5d03:0:b0:437:7719:ca82 with SMTP id\n ffacd0b85a97d-43d6491fef7mr18361158f8f.3.1776085670379;\n Mon, 13 Apr 2026 06:07:50 -0700 (PDT)","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>","To":"qemu-devel@nongnu.org","Cc":"devel@lists.libvirt.org, 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>,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>","Subject":"[PATCH-for-11.0?] target/i386: Mandate monitor 'info lapic' take a\n vCPU ID argument","Date":"Mon, 13 Apr 2026 15:07:48 +0200","Message-ID":"<20260413130748.6631-1-philmd@linaro.org>","X-Mailer":"git-send-email 2.53.0","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2a00:1450:4864:20::430;\n envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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"},"content":"With SMP configurations, using the 'current vCPU' under the\nmonitor isn't recommended, as it changes during runtime. Better\nto specify which vCPU we want to monitor by its index. Deprecate\nthe default of 'info lapic', mentioning an argument is expected,\nso we can remove this unpredictable behavior one day.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\nThe other command with this unpredictable behavior is 'info tlb'\nwhich we'll deal with differently, after the v11.0 release.\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(-)","diff":"diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst\nindex 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 \ndiff --git a/target/i386/cpu-apic.c b/target/i386/cpu-apic.c\nindex 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 \ndiff --git a/hmp-commands-info.hx b/hmp-commands-info.hx\nindex 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","prefixes":["PATCH-for-11.0?"]}