Re: [PATCH RFC v3 08/13] qmp: update virtio features map to support extended features

2025-07-19 Thread Markus Armbruster
Paolo Abeni writes: > Extend the VirtioDeviceFeatures struct with an additional u64 > to track unknown features in the 64-127 bit range and decode > the full virtio features spaces for vhost and virtio devices. > > Also add entries for the soon-to-be-supported virtio net GSO over > UDP features.

Re: [PATCH] util: win32: Write hex value when can't get error message

2025-07-19 Thread Markus Armbruster
Kostiantyn Kostiuk writes: > g_win32_error_message - translate a Win32 error code > (as returned by GetLastError()) into the corresponding message. > > In the same time, we call error_setg_win32_internal with > error codes from different Windows componets like VSS or > Performance monitor that pr

Re: [PATCH] xen/passthrough: add missing error-report include

2025-07-18 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Fri, Jul 18, 2025 at 07:59:50AM +0200, Markus Armbruster wrote: >> Markus Armbruster writes: >> >> > Adam Williamson writes: >> > >> >> In cfcacba an `error_report` was added to this file, but the >> >>

Re: [PATCH] xen/passthrough: add missing error-report include

2025-07-17 Thread Markus Armbruster
Markus Armbruster writes: > Adam Williamson writes: > >> In cfcacba an `error_report` was added to this file, but the >> corresponding include of `qemu/error-report.h` was missed. This >> only becomes apparent when building against Xen 4.20+. >> >> Signed-of

Re: [PATCH] xen/passthrough: add missing error-report include

2025-07-17 Thread Markus Armbruster
Adam Williamson writes: > In cfcacba an `error_report` was added to this file, but the > corresponding include of `qemu/error-report.h` was missed. This > only becomes apparent when building against Xen 4.20+. > > Signed-off-by: Adam Williamson > --- > hw/xen/xen_pt.c | 1 + > 1 file changed, 1

[PATCH] qapi: Add more cross-references

2025-07-17 Thread Markus Armbruster
We recently (merge commit 504632dcc631) enclosed command and type names in `backquotes`, so they become links in generated HTML. Take care of a few we missed. Signed-off-by: Markus Armbruster --- qapi/dump.json | 2 +- qapi/machine.json | 2 +- qapi/migration.json | 4 ++-- qapi/misc

[PATCH v2 4/4] qga: Add cross-references

2025-07-17 Thread Markus Armbruster
Enclose command and type names in `backquotes`, so they become links in generated HTML. We did this for qapi/ in merge commit 504632dcc631. Signed-off-by: Markus Armbruster --- qga/qapi-schema.json | 80 ++-- 1 file changed, 40 insertions(+), 40

[PATCH v2 1/4] qga: Fix guest-network-get-route return value documentation

2025-07-17 Thread Markus Armbruster
tion about route of network. Return: [GuestNetworkRoute] -- List of route info of guest. Fixes: commit 8e326d36dd16 (qga/linux: Add new api 'guest-network-get-route') Signed-off-by: Markus Armbruster Reviewed-by: Daniel P. Berrangé --- qga/qapi-schema.json | 1 + 1 file

[PATCH v2 3/4] qga: Rephrase return docs to avoid type name

2025-07-17 Thread Markus Armbruster
ned-off-by: Markus Armbruster Reviewed-by: Daniel P. Berrangé --- qga/qapi-schema.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index a9cc9150dc..6c26ace3c9 100644 --- a/qga/qapi-schema.json +++ b/qga/qapi-schema.json @@ -53

[PATCH v2 0/4] qga: Doc fixes and improvements

2025-07-17 Thread Markus Armbruster
This series touches only doc comments. I'd like to get it into 10.1. v2: * PATCH 4: More cross-references [Daniel] Markus Armbruster (4): qga: Fix guest-network-get-route return value documentation qga: Remove trivial "Returns:" sections qga: Rephrase return docs to avoid

[PATCH v2 2/4] qga: Remove trivial "Returns:" sections

2025-07-17 Thread Markus Armbruster
iously no worse. For instance, guest-info's documentation changes from Return: GuestAgentInfo -- GuestAgentInfo to Return: GuestAgentInfo The auto-generated returns all are in the exact same spot. We did this for qapi/ in commit 0462da9d6b1 (qapi: remove trivial "Ret

Re: [PATCH 4/4] qga: Add cross-references

2025-07-17 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Thu, Jul 17, 2025 at 10:21:17AM +0200, Markus Armbruster wrote: >> Enclose command and type names in `backquotes`, so they become links >> in generated HTML. >> >> We did this for qapi/ in merge commit 504632dcc631. >> &g

[PATCH 3/4] qga: Rephrase return docs to avoid type name

2025-07-17 Thread Markus Armbruster
ned-off-by: Markus Armbruster --- qga/qapi-schema.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index a9cc9150dc..6c26ace3c9 100644 --- a/qga/qapi-schema.json +++ b/qga/qapi-schema.json @@ -534,8 +534,7 @@ # discarded. T

[PATCH 1/4] qga: Fix guest-network-get-route return value documentation

2025-07-17 Thread Markus Armbruster
tion about route of network. Return: [GuestNetworkRoute] -- List of route info of guest. Fixes: commit 8e326d36dd16 (qga/linux: Add new api 'guest-network-get-route') Signed-off-by: Markus Armbruster --- qga/qapi-schema.json | 1 + 1 file changed, 1 insertion(+) diff --git a/qg

[PATCH 0/4] qga: Doc fixes and improvements

2025-07-17 Thread Markus Armbruster
This series touches only doc comments. I'd like to get it into 10.1. Markus Armbruster (4): qga: Fix guest-network-get-route return value documentation qga: Remove trivial "Returns:" sections qga: Rephrase return docs to avoid type name qga: Add cross-references qga/q

[PATCH 2/4] qga: Remove trivial "Returns:" sections

2025-07-17 Thread Markus Armbruster
iously no worse. For instance, guest-info's documentation changes from Return: GuestAgentInfo -- GuestAgentInfo to Return: GuestAgentInfo The auto-generated returns all are in the exact same spot. We did this for qapi/ in commit 0462da9d6b1 (qapi: remove trivial "Ret

[PATCH 4/4] qga: Add cross-references

2025-07-17 Thread Markus Armbruster
Enclose command and type names in `backquotes`, so they become links in generated HTML. We did this for qapi/ in merge commit 504632dcc631. Signed-off-by: Markus Armbruster --- qga/qapi-schema.json | 50 ++-- 1 file changed, 25 insertions(+), 25

Re: [PATCH RFC 1/1] block/export: FUSE-over-io_uring Support for QEMU FUSE Exports

2025-07-16 Thread Markus Armbruster
Brian Song writes: > This work provides an initial implementation of fuse-over-io_uring > support for QEMU export. According to the fuse-over-io_uring protocol > specification, the userspace side must create the same number of queues > as the number of CPUs (nr_cpu), just like the kernel. Current

[PULL 0/6] QAPI patches patches for 2025-07-16

2025-07-16 Thread Markus Armbruster
The following changes since commit f96b157ebb93f94cd56ebbc99bc20982b8fd86ef: Merge tag 'accel-20250715' of https://github.com/philmd/qemu into staging (2025-07-16 07:13:40 -0400) are available in the Git repository at: https://repo.or.cz/qemu/armbru.git tags/pull-qapi-2025-07-16 for you to

[PULL 4/6] docs: Bump sphinx to 6.2.1

2025-07-16 Thread Markus Armbruster
ed if they are present and functional. The version used for building docs on readthedocs is pinned to the recommended version, 6.2.1.) Signed-off-by: Akihiko Odaki Tested-by: Markus Armbruster Reviewed-by: John Snow Signed-off-by: John Snow Message-ID: <20250715212848.171879-2-js...@redhat.

[PULL 2/6] python: use qom-list-get

2025-07-16 Thread Markus Armbruster
From: Steve Sistare Use qom-list-get to speed up the qom-tree command. Signed-off-by: Steve Sistare Acked-by: Markus Armbruster Message-ID: <1752248703-217318-3-git-send-email-steven.sist...@oracle.com> Tested-by: Markus Armbruster [Lint picked off to mollify make check-minreqs] Sign

[PULL 5/6] MAINTAINERS: Add docs/requirements.txt

2025-07-16 Thread Markus Armbruster
From: Akihiko Odaki Add docs/requirements.txt to "Sphinx documentation configuration and build machinery". Signed-off-by: Akihiko Odaki Signed-off-by: John Snow Message-ID: <20250715212848.171879-3-js...@redhat.com> Reviewed-by: Thomas Huth Signed-off-by: Markus Armbruster

[PULL 3/6] tests/qtest/qom-test: unit test for qom-list-get

2025-07-16 Thread Markus Armbruster
From: Steve Sistare Add a unit test for qom-list-get. Signed-off-by: Steve Sistare Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster Message-ID: <1752248703-217318-4-git-send-email-steven.sist...@oracle.com> Signed-off-by: Markus Armbruster --- tests/qtest/qom-test.c

[PULL 6/6] python: fix editable installs for modern pip/setuptools

2025-07-16 Thread Markus Armbruster
--- 80.9.0 8.2.3 pkgsrc_current 3.12.11 25.1.1 80.9.0 8.2.3 Signed-off-by: John Snow Message-ID: <20250715222548.19-1-js...@redhat.com> Tested-by: Markus Armbruster Signed-off-by: Markus Armbruster --- python/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2

[PULL 1/6] qom: qom-list-get

2025-07-16 Thread Markus Armbruster
ed-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster Message-ID: <1752248703-217318-2-git-send-email-steven.sist...@oracle.com> Signed-off-by: Markus Armbruster --- qapi/qom.json | 50 +++ qom/qom-qmp-

Re: [PATCH] python: fix editable installs for modern pip/setuptools

2025-07-16 Thread Markus Armbruster
Queued for 10.1. Thanks!

Re: [PATCH 0/2] docs, python: bump sphinx preferred version

2025-07-16 Thread Markus Armbruster
John Snow writes: > On Wed, Jul 16, 2025, 11:04 AM Markus Armbruster wrote: > >> Okay to include this in my next QAPI PR? >> > > That would be very convenient, thank you! > > (And thanks to Akihiko Odaki for spotting and fixing the issue, even if it > took me a

Re: [PATCH] python: fix editable installs for modern pip/setuptools

2025-07-16 Thread Markus Armbruster
t; > Until that time, we can make use of a transitional feature in > pip/setuptools to use "legacy" editable installs, which is enough to fix > "make check-dev" on modern local workstations for now. This fixes "make check-dev" for me on Fedora 41. Thank you! Tested-by: Markus Armbruster [...]

Re: [PATCH 0/2] docs, python: bump sphinx preferred version

2025-07-16 Thread Markus Armbruster
Okay to include this in my next QAPI PR?

Re: [RFC PATCH 1/2] system/os-win32: Remove unused Error** argument in qemu_socket_unselect

2025-07-16 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Wed, Jul 16, 2025 at 12:41:31PM +0200, Markus Armbruster wrote: >> Daniel P. Berrangé writes: >> >> > On Tue, Jul 15, 2025 at 10:35:16AM +0200, Philippe Mathieu-Daudé wrote: >> >> @errp is always NULL. Remove it, as unused.

Re: [RFC PATCH 2/2] system/os-win32: Remove unused Error** argument in qemu_socket_select

2025-07-16 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Tue, Jul 15, 2025 at 10:35:17AM +0200, Philippe Mathieu-Daudé wrote: >> @errp is always NULL. Remove it, as unused. >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> include/system/os-win32.h | 2 +- >> util/aio-win32.c | 2 +- >> util/oslib-win32

Re: [RFC PATCH 1/2] system/os-win32: Remove unused Error** argument in qemu_socket_unselect

2025-07-16 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Tue, Jul 15, 2025 at 10:35:16AM +0200, Philippe Mathieu-Daudé wrote: >> @errp is always NULL. Remove it, as unused. >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> include/system/os-win32.h | 2 +- >> io/channel-socket.c | 4 ++-- >> util/oslib-win32

Re: [PATCH V4 2/3] python: use qom-list-get

2025-07-16 Thread Markus Armbruster
John Snow writes: > On Fri, Jul 11, 2025, 10:47 AM Markus Armbruster wrote: [...] >> Exception ignored in: > 0x7fcfcd080d60> >> Traceback (most recent call last): >> File "/work/armbru/qemu/scripts/qmp/../../python/qemu/qmp/legacy.py", >> line 31

Re: [PATCH v5 28/69] qapi: Move definitions related to accelerators in their own file

2025-07-16 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > Hi Markus, I missed this one, sorry! > On 3/7/25 12:54, Philippe Mathieu-Daudé wrote: >> Extract TCG and KVM definitions from machine.json to accelerator.json. >> Signed-off-by: Philippe Mathieu-Daudé >> Reviewed-by: Pierrick Bouvier >> Reviewed-by: Zhao Liu

[PULL v2 00/29] QAPI patches patches for 2025-07-14

2025-07-14 Thread Markus Armbruster
oss-references to sockets.json qapi: add cross-references to ui.json qapi: add cross-references to virtio.json qapi: add cross-references to yank.json qapi: add cross-references to misc modules Markus Armbruster (2): qapi: Clean up "This command will do ..." com

Re: [PULL 00/32] QAPI patches patches for 2025-07-14

2025-07-14 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Mon, Jul 14, 2025 at 11:14 AM Markus Armbruster wrote: >> >> The following changes since commit 9a4e273ddec3927920c5958d2226c6b38b543336: >> >> Merge tag 'pull-tcg-20250711' of https://gitlab.com/rth7680/qemu into >> st

[PULL 03/32] docs/sphinx: remove legacy QAPI manual generator

2025-07-14 Thread Markus Armbruster
tput. This is a bug fix. Signed-off-by: John Snow Message-ID: <20250618165353.1980365-4-js...@redhat.com> Acked-by: Markus Armbruster Fixes: b61a4eb3f32 (docs/qapidoc: support header-less freeform sections) [Tweak commit message to say it's a bug fix, add Fixes:] Signed-off-by: Ma

[PULL 04/32] docs/sphinx: remove special parsing for freeform sections

2025-07-14 Thread Markus Armbruster
as invalid QAPI doc section heading in free-form comments. Signed-off-by: John Snow Message-ID: <20250618165353.1980365-5-js...@redhat.com> Reviewed-by: Markus Armbruster [Add more detail to commit message] Signed-off-by: Markus Armbruster --- docs/devel/qapi-code-gen.

[PULL 15/32] qapi: add cross-references to crypto.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-5-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/crypto.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qapi/crypto.json b/qapi/crypt

[PULL 31/32] python: use qom-list-get

2025-07-14 Thread Markus Armbruster
From: Steve Sistare Use qom-list-get to speed up the qom-tree command. Signed-off-by: Steve Sistare Acked-by: Markus Armbruster Message-ID: <1752248703-217318-3-git-send-email-steven.sist...@oracle.com> Tested-by: Markus Armbruster Signed-off-by: Markus Armbruster --- python/qemu

[PULL 09/32] qapi: Fix undocumented return values by generating something

2025-07-14 Thread Markus Armbruster
0250711051045.51110-3-js...@redhat.com> Reviewed-by: Markus Armbruster [_insert_near_kind() code replaced by something simpler, commit message amended to explain why we're doing this] Signed-off-by: Markus Armbruster --- docs/sphinx/qapidoc.py | 14 -- qapi/machine.

[PULL 20/32] qapi: add cross-references to net.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-10-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/net.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qapi/net.json b/qapi/net.json

[PULL 30/32] qom: qom-list-get

2025-07-14 Thread Markus Armbruster
ed-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster Message-ID: <1752248703-217318-2-git-send-email-steven.sist...@oracle.com> Signed-off-by: Markus Armbruster --- qapi/qom.json | 50 +++ qom/qom-qmp-

[PULL 07/32] qapi: Clean up a few Errors: sections

2025-07-14 Thread Markus Armbruster
Use the conventional "- If " phrasing, optionally with ", ". Signed-off-by: Markus Armbruster Message-ID: <20250708072828.105185-3-arm...@redhat.com> Reviewed-by: Daniel P. Berrangé --- qapi/misc-i386.json | 7 +++ qapi/qom.json | 4 ++-- 2 files changed, 5

[PULL 17/32] qapi: add cross-references to job.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-7-js...@redhat.com> Reviewed-by: Markus Armbruster [Accidental line rewrap and an unwanted cross-refence dropped] Signed-off-by: Markus Armbruster --- qapi/job.jso

[PULL 10/32] qapi: remove trivial "Returns:" sections

2025-07-14 Thread Markus Armbruster
John Snow Message-ID: <20250711051045.51110-4-js...@redhat.com> Reviewed-by: Markus Armbruster [Two more Returns: removed, commit message amended to explain auto-generated returns generated into a different spot] Signed-off-by: Markus Armbruster --- qapi/audio.json | 2 -- qapi/

[PULL 12/32] qapi: add cross-references to acpi.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-2-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/acpi.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/acpi.json b/qapi/acpi.json

[PULL 24/32] qapi: add cross-references to run-state.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-14-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/run-state.json | 46 ++--- 1 file changed, 23 insertions(+), 23 deletions(-)

[PULL 16/32] qapi: add cross-references to dump.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-6-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/dump.json | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qapi/dump.json b/qapi/dum

[PULL 21/32] qapi: add cross-references to pci.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-11-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/pci.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/pci.json b/qapi/pci.json index 418e

[PULL 02/32] docs/sphinx: parse @references in freeform text

2025-07-14 Thread Markus Armbruster
365-3-js...@redhat.com> Acked-by: Markus Armbruster Signed-off-by: Markus Armbruster --- docs/sphinx/qapidoc.py | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/sphinx/qapidoc.py b/docs/sphinx/qapidoc.py index 5374dee8fa..adc14ade45 100644 --- a/docs/sphinx/qapid

[PULL 27/32] qapi: add cross-references to virtio.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-17-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/virtio.json | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qapi/virtio.json b/qapi/virti

[PULL 05/32] qapi: lift restriction on using '=' in doc blocks

2025-07-14 Thread Markus Armbruster
Signed-off-by: John Snow Message-ID: <20250618165353.1980365-6-js...@redhat.com> Reviewed-by: Markus Armbruster [Amend commit message to explain why] Signed-off-by: Markus Armbruster --- scripts/qapi/parser.py | 4 tests/qapi-schema/doc-bad-section.err | 1 -

[PULL 01/32] docs/sphinx: adjust qapidoc to cope with same-line error sections

2025-07-14 Thread Markus Armbruster
t; Acked-by: Markus Armbruster Fixes: e9fbf1a0c6c2 (docs/qapidoc: add visit_errors() method) [Amend commit message to point to reproducer, and add Fixes:] Signed-off-by: Markus Armbruster --- docs/sphinx/qapidoc.py | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/

[PULL 00/32] QAPI patches patches for 2025-07-14

2025-07-14 Thread Markus Armbruster
oss-references to sockets.json qapi: add cross-references to ui.json qapi: add cross-references to virtio.json qapi: add cross-references to yank.json qapi: add cross-references to misc modules Markus Armbruster (2): qapi: Clean up "This command will do ..." c

[PULL 18/32] qapi: add cross-references to Machine core

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-8-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/machine-common.json | 20 +- qapi/machine.json| 80 2 files c

[PULL 26/32] qapi: add cross-references to ui.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-16-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/ui.json | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git

[PULL 32/32] tests/qtest/qom-test: unit test for qom-list-get

2025-07-14 Thread Markus Armbruster
From: Steve Sistare Add a unit test for qom-list-get. Signed-off-by: Steve Sistare Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster Message-ID: <1752248703-217318-4-git-send-email-steven.sist...@oracle.com> Signed-off-by: Markus Armbruster --- tests/qtest/qom-test.c

[PULL 28/32] qapi: add cross-references to yank.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Acked-by: Lukas Straub Message-ID: <20250711054005.60969-18-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/yank.json | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PULL 19/32] qapi: add cross-references to migration.json

2025-07-14 Thread Markus Armbruster
:migration.MIGRATION` Signed-off-by: John Snow Message-ID: <20250711054005.60969-9-js...@redhat.com> Reviewed-by: Markus Armbruster [Commit message amended to explain need for :qapi:event:] Signed-off-by: Markus Armbruster --- qapi/migration.json | 68 ++-

[PULL 08/32] docs/qapi-domain: add return-nodesc

2025-07-14 Thread Markus Armbruster
2-js...@redhat.com> Acked-by: Markus Armbruster [Long line wrapped] Signed-off-by: Markus Armbruster --- docs/devel/qapi-domain.rst | 31 +++ docs/sphinx/qapi_domain.py | 8 2 files changed, 39 insertions(+) diff --git a/docs/devel/qapi-domain.rst b/docs/

[PULL 29/32] qapi: add cross-references to misc modules

2025-07-14 Thread Markus Armbruster
From: John Snow These modules don't have specific maintainers, so they're lumped in together here as miscellaneous. Signed-off-by: John Snow Message-ID: <20250711054005.60969-19-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/cont

[PULL 25/32] qapi: add cross-references to sockets.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Reviewed-by: Eric Blake Message-ID: <20250711054005.60969-15-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/sockets.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PULL 23/32] qapi: add cross-references to replay.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-13-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/replay.json | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qapi/replay.json

[PULL 22/32] qapi: add cross-references to QOM

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-12-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/qdev.json | 4 ++-- qapi/qom.json | 13 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git

Re: [PATCH v2 00/18] QAPI: add cross-references to qapi docs

2025-07-14 Thread Markus Armbruster
Queued for 10.1. Thanks!

[PULL 13/32] qapi: add cross-references to authz.json

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-3-js...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi/authz.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/authz.json b/qapi/authz.json

[PULL 06/32] qapi: Clean up "This command will do ..." command descriptions

2025-07-14 Thread Markus Armbruster
Use imperative mood "Do ..." instead. Signed-off-by: Markus Armbruster Message-ID: <20250708072828.105185-2-arm...@redhat.com> Reviewed-by: Daniel P. Berrangé --- qapi/control.json | 9 + qapi/misc-i386.json | 11 +-- qapi/qom.json | 10 -- 3 f

[PULL 14/32] qapi: add cross-references to block layer

2025-07-14 Thread Markus Armbruster
From: John Snow Signed-off-by: John Snow Message-ID: <20250711054005.60969-4-js...@redhat.com> Reviewed-by: Markus Armbruster [Two unwanted cross-references dropped] Signed-off-by: Markus Armbruster --- qapi/block-core.json | 184 - qapi

[PULL 11/32] qapi: rephrase return docs to avoid type name

2025-07-14 Thread Markus Armbruster
js...@redhat.com> Acked-by: Markus Armbruster [Commit message amended to explain why] Signed-off-by: Markus Armbruster --- qapi/block-core.json | 6 +++--- qapi/block-export.json | 2 +- qapi/block.json| 2 +- qapi/control.json | 5 ++--- qapi/dump.json | 5 ++---

Re: [PATCH v6 0/4] qapi: add auto-generated return docs

2025-07-14 Thread Markus Armbruster
Queued for 10.1. Thanks!

Re: [PATCH v3 0/5] docs: remove legacy qapidoc

2025-07-14 Thread Markus Armbruster
John Snow writes: > Remove docs/sphinx/qapidoc_legacy.py, and remove special parsing of > freeform QAPI documentation block sections in favor of using standard > rST syntax that is included in the final document with no special > parsing or post-processing. PATCH 1-3 Acked-by: Marku

Re: [PATCH v3 4/5] docs/sphinx: remove special parsing for freeform sections

2025-07-14 Thread Markus Armbruster
Markus Armbruster writes: > John Snow writes: > >> On Fri, Jun 27, 2025, 5:52 AM Markus Armbruster wrote: >> >>> John Snow writes: >>> >>> > This change removes special parsing for freeform sections and allows >>> > them to s

Re: [PATCH v3 1/5] docs/sphinx: adjust qapidoc to cope with same-line error sections

2025-07-14 Thread Markus Armbruster
Markus Armbruster writes: > John Snow writes: > >> Signed-off-by: John Snow > > Let's mention the reproducer: "# Errors: some" in doc-good.json with > :transmogrify:. I'm adding Without this, the line the new QAPI doc generator chokes on

Re: [PATCH v6 4/4] qapi: rephrase return docs to avoid type name

2025-07-13 Thread Markus Armbruster
Markus Armbruster writes: > John Snow writes: > >> Well, I tried. Maybe not very hard. Sorry! > > Recommend to explain *why* we want to avoid the type name. > > "Returns: " is rendered like "Return: – > ". Mentioning the type in the descrip

Re: [PATCH 0/2] qapi: Minor documentation cleanups

2025-07-11 Thread Markus Armbruster
Queued for 10.1. Thanks for the review!

Re: [PATCH V5 0/3] fast qom tree get

2025-07-11 Thread Markus Armbruster
Steve Sistare writes: > Using qom-list and qom-get to get all the nodes and property values in a > QOM tree can take multiple seconds because it requires 1000's of individual > QOM requests. Some managers fetch the entire tree or a large subset > of it when starting a new VM, and this cost is a

Re: [PATCH v6 1/4] docs/qapi-domain: add return-nodesc

2025-07-11 Thread Markus Armbruster
a/docs/sphinx/qapi_domain.py b/docs/sphinx/qapi_domain.py > index ebc46a72c61..f561dc465f8 100644 > --- a/docs/sphinx/qapi_domain.py > +++ b/docs/sphinx/qapi_domain.py > @@ -532,6 +532,14 @@ class QAPICommand(QAPIObject): > names=("return",), > can_collapse=True, >

Re: [PATCH] hw/misc/ivshmem-pci: Improve error handling

2025-07-11 Thread Markus Armbruster
error_setg(errp, "server sent invalid message %" PRId64, msg); > - close(fd); > +if (fd >= 0) { > +close(fd); > +} Coverity is overly picky. close(-1) is *fine*. Just like free(NULL). > return; > } Regardless Reviewed-by: Markus Armbruster

Re: [PATCH V4 2/3] python: use qom-list-get

2025-07-11 Thread Markus Armbruster
Steven Sistare writes: > On 7/11/2025 10:47 AM, Markus Armbruster wrote: >> Steve Sistare writes: >> >>> Use qom-list-get to speed up the qom-tree command. >>> >>> Signed-off-by: Steve Sistare >> >> Quick test... Differences in outpu

Re: [PATCH V4 0/3] fast qom tree get

2025-07-11 Thread Markus Armbruster
This feels ready. Have a look at my (few) comments, and tell me what you think. Happy to apply finishing touches in my tree, without another respin. Thanks your your patience!

Re: [PATCH V4 2/3] python: use qom-list-get

2025-07-11 Thread Markus Armbruster
d version barfs a stack backtrace (appended), and is ~18x slower: real0m8.176s user0m0.395s sys 0m0.126s Did you see the stack backtrace, too? Regardless Acked-by: Markus Armbruster $ diff old new 59c59 < rtc-time: {'tm_year': 125, 'tm_sec':

Re: [PATCH V4 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-11 Thread Markus Armbruster
*path, bool recurse) > { > char *child_path; > @@ -85,8 +193,10 @@ static void test_machine(gconstpointer data) > const char *machine = data; > QDict *response; > QTestState *qts; > +g_autoptr(QList) paths = qlist_new(); > > -qts = qtest_initf("-machine %s", machine); > +qts = qtest_initf("-machine %s -object memory-backend-ram,id=%s,size=%d", > + machine, RAM_NAME, RAM_SIZE); > > if (g_test_slow()) { > /* Make sure we can get the machine class properties: */ > @@ -101,6 +211,10 @@ static void test_machine(gconstpointer data) > > test_properties(qts, "/machine", true); > > +qlist_append_str(paths, "/machine"); > +test_list_get(qts, paths); > +test_list_get_value(qts); > + > response = qtest_qmp(qts, "{ 'execute': 'quit' }"); > g_assert(qdict_haskey(response, "return")); > qobject_unref(response); Reviewed-by: Markus Armbruster

Re: [PATCH V4 1/3] qom: qom-list-get

2025-07-11 Thread Markus Armbruster
ertiesValuesList *qmp_qom_list_get(strList *paths, Error **errp) > +{ > +ObjectPropertiesValuesList *head = NULL, **tail = &head; > +strList *path; > + > +for (path = paths; path; path = path->next) { > +ObjectPropertiesValues *item = g_new0(ObjectPropertiesValues, 1); > + > +QAPI_LIST_APPEND(tail, item); > + > +item->properties = qom_get_property_value_list(path->value, errp); > +if (!item->properties) { > +qapi_free_ObjectPropertiesValuesList(head); > +return NULL; > +} > +} > + > +return head; > +} > + > void qmp_qom_set(const char *path, const char *property, QObject *value, > Error **errp) > { Reviewed-by: Markus Armbruster

Re: [PATCH v6 4/4] qapi: rephrase return docs to avoid type name

2025-07-11 Thread Markus Armbruster
John Snow writes: > Well, I tried. Maybe not very hard. Sorry! Recommend to explain *why* we want to avoid the type name. "Returns: " is rendered like "Return: – ". Mentioning the type in the description again is commonly redundant. Rephrase such descriptions not to. > Signed-off-by:

Re: [PATCH v6 3/4] qapi: remove trivial "Returns:" sections

2025-07-11 Thread Markus Armbruster
ties (Since: 2 This is only supported on AMD X86 platforms with KVM enabled. Return: - "SevCapability" -- SevCapability objects. + "SevCapability" Clause 2. Else if we have errors, return goes right before them. Good. Errors: * If SEV is not available on the platform, GenericError @@ -19370,7 +19369,7 @@ Command query-sev-attestation-report (Si base64 (it will be included in report) Return: - "SevAttestationReport" -- SevAttestationReport objects. + "SevAttestationReport" Clause 1. If we have arguments, return goes right after them. Good. Errors: * This will return an error if the attestation report is @@ -19414,7 +19413,7 @@ Command query-sgx (Since: 6.2) Return information about configured SGX capabilities of guest Return: - "SgxInfo" -- "SgxInfo" + "SgxInfo" Clause 4. Else return goes right after the intro. Good. Example:: @@ -19429,7 +19428,7 @@ Command query-sgx-capabilities (Since: 6 Return information about SGX capabilities of host Return: - "SgxInfo" -- "SgxInfo" + "SgxInfo" Clause 4. Else return goes right after the intro. Good. Example:: @@ -19946,7 +19945,7 @@ Command query-audiodevs (Since: 8.0) Return information about audiodev configuration Return: - "[""Audiodev""]" -- array of "Audiodev" + "[""Audiodev""]" Clause 4. Else return goes right after the intro. Good. ACPI @@ -21238,12 +21237,12 @@ Command x-query-virtio-queue-element (Si * **index** ("int", *optional*) -- Index of the element in the queue (default: head of the queue) + Return: + "VirtioQueueElement" + Clause 1. If we have arguments, return goes right after them. The move is good. Features: * **unstable** -- This command is meant for debugging. - Return: - "VirtioQueueElement" -- VirtioQueueElement information - Example: Introspect on virtio-net's VirtQueue 0 at index 5: -> { "execute": "x-query-virtio-queue-element", @@ -21494,7 +21493,7 @@ Command query-cryptodev (Since: 8.0) Return information about current crypto devices. Return: - "[""QCryptodevInfo""]" -- a list of "QCryptodevInfo" + "[""QCryptodevInfo""]" Clause 4. Else return goes right after the intro. Good. CXL devices Placement is all good. Two more Returns: sections this patch should remove: # @query-cpu-definitions: # # Return a list of supported virtual CPU definitions # # Returns: a list of CpuDefinitionInfo # # Since: 1.2 ## { 'command': 'query-cpu-definitions', 'returns': ['CpuDefinitionInfo'] } and ## # @query-gic-capabilities: # # It will return a list of `GICCapability` objects that describe its # capability bits. # # On non-ARM targets this command will report an error as the GIC # technology is not applicable. # # Returns: a list of GICCapability objects. # # Since: 2.6 # # .. qmp-example:: # # -> { "execute": "query-gic-capabilities" } # <- { "return": [{ "version": 2, "emulated": true, "kernel": false }, # { "version": 3, "emulated": false, "kernel": true } ] } ## { 'command': 'query-gic-capabilities', 'returns': ['GICCapability'] } Tracked down with $ git-grep '# Returns:.*`' with your "[PATCH v2 00/18] QAPI: add cross-references to qapi docs" applied. Shows lines containing QAPI names, which your series helpfully puts into `backquotes` for easy grepping. With these two removed, and the commit message amended to note the moves: Reviewed-by: Markus Armbruster

Re: [PATCH v6 2/4] docs, qapi: generate undocumented return sections

2025-07-11 Thread Markus Armbruster
Runtime-collected statistics and their names fall outside QEMU's Placement is all good. Clauses 1, 3, 4 covered. The next patch will cover clause 2. In all instances of clause 4 but one, intro is terminated by a Since: section. The exception is query-memory-size-summary, which has its Since: at the end. It therefore needs the "TODO:" hack line you add to separate intro from example. All but one of the intro-terminating Since: are followed by an example. We more commonly put Since: at the very end (roughly 3 out of four times). But if we moved these to the end, we'd need a "TODO:" hack line to separate intro from example. The need for terminating the intro is not obvious when writing doc comments. Mistakes are bound to happen. I understand the inliner similarly relies on intro-termination for placement. We've toyed with the idea of automating since information. If we pull that off, the Since: go away. I think relying on existing Since: for separation is fine for now, but we'll likely need a more robust solution eventually. With the commit message amended and preferably with a less clever version of _insert_near_kind(): Reviewed-by: Markus Armbruster

Re: [PATCH v2 00/18] QAPI: add cross-references to qapi docs

2025-07-11 Thread Markus Armbruster
Markus Armbruster writes: > John Snow writes: > >> Based-on: 20250711051045.51110-1-js...@redhat.com >> [PATCH v6 0/4] qapi: add auto-generated return docs >> >> v2: >> - Applied a few new transformations I had missed. >> - Manually excluded t

Re: [PATCH v2 04/18] qapi: add cross-references to crypto.json

2025-07-11 Thread Markus Armbruster
John Snow writes: > Signed-off-by: John Snow > --- > qapi/crypto.json | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/qapi/crypto.json b/qapi/crypto.json > index 9ec6301e188..57620d95da6 100644 > --- a/qapi/crypto.json > +++ b/qapi/crypto.json > @@ -589,9 +589,9 @@

Re: [PATCH v2 00/18] QAPI: add cross-references to qapi docs

2025-07-11 Thread Markus Armbruster
an drop them in my tree. I also suggested a commit message amendment. Can do that in my tree, too. With that, series Reviewed-by: Markus Armbruster > Hi, this patch series is a *mostly* mechanical application of QAPI > cross-references to the QAPI/QMP documentation. I exported all >

Re: [PATCH v2 03/18] qapi: add cross-references to block layer

2025-07-11 Thread Markus Armbruster
John Snow writes: > Signed-off-by: John Snow > --- > qapi/block-core.json | 188 - > qapi/block-export.json | 36 > qapi/block.json| 14 +-- > qapi/transaction.json | 12 +-- > 4 files changed, 125 insertions(+), 125 deletions(-) >

Re: [PATCH v2 08/18] qapi: add cross-references to migration.json

2025-07-11 Thread Markus Armbruster
John Snow writes: > Signed-off-by: John Snow > --- > qapi/migration.json | 68 ++--- > 1 file changed, 34 insertions(+), 34 deletions(-) > > diff --git a/qapi/migration.json b/qapi/migration.json > index 59a213aeb6c..eda27c18102 100644 > --- a/qapi/migrat

Re: [PATCH v2 06/18] qapi: add cross-references to job.json

2025-07-11 Thread Markus Armbruster
John Snow writes: > Signed-off-by: John Snow > --- > qapi/job.json | 71 ++- > 1 file changed, 36 insertions(+), 35 deletions(-) > > diff --git a/qapi/job.json b/qapi/job.json > index c1ddae9c0fe..a6026f6a810 100644 > --- a/qapi/job.json > +++ b/q

Re: [PATCH V3 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-10 Thread Markus Armbruster
Steven Sistare writes: > On 7/8/2025 6:02 PM, Philippe Mathieu-Daudé wrote: >> Hi Steve, >> On 8/7/25 19:24, Steve Sistare wrote: >>> Add a unit test for qom-list-getv. >>> >>> Signed-off-by: Steve Sistare >>> --- >>>   tests/qtest/qom-test.c | 64 >>> +++

Re: [PATCH v4 0/7] Move memory listener register to vhost_vdpa_init

2025-07-09 Thread Markus Armbruster
Jonah Palmer writes: [...] >> I think I finally know enough to give you constructive feedback. >> >> Your commit messages should answer the questions I had. Specifically: >> >> * Why are we doing this? To shorten guest-visible downtime. >> >> * How are we doing this? We additionally pin me

Re: Python ecosystem versions overview

2025-07-09 Thread Markus Armbruster
John Snow writes: > On Tue, Jul 8, 2025, 7:23 PM Paolo Bonzini wrote: > >> On 7/8/25 22:36, John Snow wrote: >> > centos_stream_9 3.9.23 21.3.1 53.0.0 3.4.3 BaseOS, CRB >> >> Ok, so the lowest version of Sphinx (3.4.3) is currently used for CentOS >> Stream 9. It's supported for r

Re: [PATCH v5 1/1] hw/display: Allow injection of virtio-gpu EDID name

2025-07-09 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Tue, Jul 8, 2025 at 9:07 PM Andrew Keesler wrote: >> >> Thanks to 72d277a7, 1ed2cb32, and others, EDID (Extended Display >> Identification Data) is propagated by QEMU such that a virtual display >> presents legitimate metadata (e.g., name, serial number, pre

Re: [PATCH V3 1/3] qom: qom-list-getv

2025-07-09 Thread Markus Armbruster
Steve Sistare writes: > Define the qom-list-getv command, which fetches all the properties and > values for a list of paths. This is faster than qom-tree-get when > fetching a subset of the QOM tree. See qom.json for details. > > Signed-off-by: Steve Sistare You cover letter explains *why* we

Re: [PATCH V3 3/3] tests/qtest/qom-test: unit test for qom-list-getv

2025-07-08 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > Hi Steve, > > On 8/7/25 19:24, Steve Sistare wrote: >> Add a unit test for qom-list-getv. >> Signed-off-by: Steve Sistare >> --- >> tests/qtest/qom-test.c | 64 >> ++ >> 1 file changed, 64 insertions(+) >> diff

Re: [PATCH V2 1/5] qom: qom-tree-get

2025-07-08 Thread Markus Armbruster
Steven Sistare writes: > On 7/4/2025 8:22 AM, Markus Armbruster wrote: >> Steve Sistare writes: >> >>> Define the qom-tree-get QAPI command, which fetches an entire tree of >>> properties and values with a single QAPI call. This is much faster >>>

  1   2   3   4   5   6   7   8   9   10   >