Re: [PATCH RFC v3 12/13] net: implement tunnel probing

2025-07-21 Thread Akihiko Odaki
On 2025/07/18 17:52, Paolo Abeni wrote: Tap devices support GSO over UDP tunnel offload. Probe for such feature in a similar manner to other offloads. GSO over UDP tunnel needs to be enabled in addition to a "plain" offload (TSO or USO). No need to check separately for the outer header checksum

Re: [PATCH v6 23/24] migration: Add error-parameterized function variants in VMSD struct

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 22:29, Daniel P. Berrangé wrote: On Mon, Jul 21, 2025 at 10:14:30PM +0900, Akihiko Odaki wrote: On 2025/07/21 20:29, Arun Menon wrote: - We need to have good error reporting in the callbacks in VMStateDescription struct. Specifically pre_save, post_save, pre_load and

Re: [PATCH v6 23/24] migration: Add error-parameterized function variants in VMSD struct

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 20:29, Arun Menon wrote: - We need to have good error reporting in the callbacks in VMStateDescription struct. Specifically pre_save, post_save, pre_load and post_load callbacks. - It is not possible to change these functions everywhere in one patch, therefore, we introduce

Re: [PATCH v6 20/24] migration: push Error **errp into qemu_loadvm_state()

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 20:29, Arun Menon wrote: This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that qemu_loadvm_state() must report an error in errp, in case of failure. Signed-off-by: Arun

Re: [PATCH v6 15/24] migration: make loadvm_postcopy_handle_resume() void

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 20:29, Arun Menon wrote: This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. Reviewed-by: Daniel P. Berrangé Signed-off-by: Arun Menon --- migration/savevm.c | 16 +---

Re: [PATCH v6 11/24] migration: push Error **errp into loadvm_postcopy_handle_advise()

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 20:29, Arun Menon wrote: This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_postcopy_handle_advise() must report an error in errp, in case of failure. Reviewe

Re: [PATCH v6 08/24] migration: push Error **errp into loadvm_process_command()

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 20:29, Arun Menon wrote: This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_process_command() must report an error in errp, in case of failure. Signed-off-by:

Re: [PATCH v6 02/24] migration: push Error **errp into vmstate_load_state()

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 20:29, Arun Menon wrote: This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that vmstate_load_state() must report an error in errp, in case of failure. Signed-off-by: Aru

Re: [PATCH v6 01/24] migration: push Error **errp into vmstate_subsection_load()

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 20:29, Arun Menon wrote: This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that vmstate_subsection_load() must report an error in errp, in case of failure. Signed-off-by

Re: [PATCH RFC v3 04/13] virtio: serialize extended features state

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 16:51, Paolo Abeni wrote: 7/20/25 12:44 PM, Akihiko Odaki wrote: On 2025/07/18 17:52, Paolo Abeni wrote: @@ -,26 +3362,23 @@ virtio_load(VirtIODevice *vdev, QEMUFile *f, int version_id) vdev->device_endian = virtio_default_endian(); } -

Re: [PATCH RFC v3 03/13] virtio: introduce extended features type

2025-07-21 Thread Akihiko Odaki
On 2025/07/21 16:33, Paolo Abeni wrote: On 7/20/25 12:41 PM, Akihiko Odaki wrote: On 2025/07/18 17:52, Paolo Abeni wrote: diff --git a/include/hw/virtio/virtio-features.h b/include/hw/virtio/virtio-features.h new file mode 100644 index 00..68e326e3e8 --- /dev/null +++ b/include/hw

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

2025-07-21 Thread Akihiko Odaki
On 2025/07/18 17:52, Paolo Abeni wrote: 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 f

Re: [PATCH RFC v3 04/13] virtio: serialize extended features state

2025-07-20 Thread Akihiko Odaki
On 2025/07/18 17:52, Paolo Abeni wrote: If the driver uses any of the extended features (i.e. 64 or above), store the extended features range (64-127 bits). At load time, let legacy features initialize the full features range and pass it to the set helper; sub-states loading will have filled-up

Re: [PATCH RFC v3 03/13] virtio: introduce extended features type

2025-07-20 Thread Akihiko Odaki
On 2025/07/18 17:52, Paolo Abeni wrote: The virtio specifications allows for up to 128 bits for the device features. Soon we are going to use some of the 'extended' bits features (bit 64 and above) for the virtio net driver. Represent the virtio features bitmask with a fixes size array, and intr

Re: [PATCH RFC v3 01/13] net: bundle all offloads in a single struct

2025-07-20 Thread Akihiko Odaki
On 2025/07/18 17:52, Paolo Abeni wrote: The set_offload() argument list is already pretty long and we are going to introduce soon a bunch of additional offloads. Replace the offload arguments with a single struct and update all the relevant call-sites. No functional changes intended. Signed-of

Re: [PATCH RFC v2 12/13] net: implement tunnel probing

2025-07-17 Thread Akihiko Odaki
On 2025/07/16 0:49, Paolo Abeni wrote: On 7/15/25 10:05 AM, Akihiko Odaki wrote: On 2025/07/11 22:02, Paolo Abeni wrote: diff --git a/net/tap-bsd.c b/net/tap-bsd.c index 86b6edee94..e7de0672f4 100644 --- a/net/tap-bsd.c +++ b/net/tap-bsd.c @@ -217,6 +217,11 @@ int tap_probe_has_uso(int fd

Re: [PATCH v5 09/23] migration: push Error **errp into ram_postcopy_incoming_init()

2025-07-17 Thread Akihiko Odaki
On 2025/07/18 2:02, Daniel P. Berrangé wrote: On Thu, Jul 17, 2025 at 12:34:21PM +0900, Akihiko Odaki wrote: On 2025/07/17 9:37, Arun Menon wrote: This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor

Re: [PATCH v5 09/23] migration: push Error **errp into ram_postcopy_incoming_init()

2025-07-16 Thread Akihiko Odaki
On 2025/07/17 9:37, Arun Menon wrote: This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that ram_postcopy_incoming_init() must report an error in errp, in case of failure. Signed-off-

Re: [PATCH v5 16/23] migration: push Error **errp into loadvm_process_enable_colo()

2025-07-16 Thread Akihiko Odaki
On 2025/07/17 9:37, Arun Menon wrote: This is an incremental step in converting vmstate loading code to report error via Error objects instead of directly printing it to console/monitor. It is ensured that loadvm_process_enable_colo() must report an error in errp, in case of failure. Signed-off-

Re: [PATCH RFC v2 13/13] net: implement UDP tunnel features offloading

2025-07-16 Thread Akihiko Odaki
On 2025/07/16 19:13, Paolo Abeni wrote: On 7/15/25 10:07 AM, Akihiko Odaki wrote: On 2025/07/11 22:02, Paolo Abeni wrote: When any host or guest GSO over UDP tunnel offload is enabled the virtio net header includes the additional tunnel-related fields, update the size accordingly. Push the

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

2025-07-16 Thread Akihiko Odaki
On 2025/07/16 0:43, Paolo Abeni wrote: On 7/15/25 9:59 AM, Akihiko Odaki wrote: On 2025/07/11 22:02, Paolo Abeni wrote: @@ -785,11 +821,12 @@ VirtioStatus *qmp_x_query_virtio_status(const char *path, Error **errp) status->vhost_dev->nvqs = hdev->nvqs; status-&

Re: [PATCH RFC v2 06/13] virtio-pci: implement support for extended features

2025-07-16 Thread Akihiko Odaki
On 2025/07/16 18:14, Paolo Abeni wrote: On 7/15/25 6:21 PM, Paolo Abeni wrote: On 7/15/25 9:42 AM, Akihiko Odaki wrote: On 2025/07/11 22:02, Paolo Abeni wrote: @@ -158,7 +159,10 @@ struct VirtIOPCIProxy { uint32_t nvectors; uint32_t dfselect; uint32_t gfselect

Re: [PATCH RFC v2 04/13] virtio: serialize extended features state

2025-07-16 Thread Akihiko Odaki
On 2025/07/16 0:40, Paolo Abeni wrote: On 7/15/25 9:24 AM, Akihiko Odaki wrote: On 2025/07/11 22:02, Paolo Abeni wrote: + */ +QEMU_BUILD_BUG_ON(VIRTIO_FEATURES_DWORDS != 2); +if (virtio_128bit_features_needed(vdev)) { There is no need to distinguish virtio_128bit_features_needed

Re: [PATCH RFC v2 01/13] net: bundle all offloads in a single struct

2025-07-16 Thread Akihiko Odaki
On 2025/07/15 23:52, Paolo Abeni wrote: On 7/15/25 8:36 AM, Akihiko Odaki wrote: On 2025/07/11 22:02, Paolo Abeni wrote: The set_offload() argument list is already pretty long and we are going to introduce soon a bunch of additional offloads. Replace the offload arguments with a single struct

Re: [PATCH RFC v2 13/13] net: implement UDP tunnel features offloading

2025-07-15 Thread Akihiko Odaki
On 2025/07/11 22:02, Paolo Abeni wrote: When any host or guest GSO over UDP tunnel offload is enabled the virtio net header includes the additional tunnel-related fields, update the size accordingly. Push the GSO over UDP tunnel offloads all the way down to the tap device extending the newly int

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

2025-07-15 Thread Akihiko Odaki
On 2025/07/11 22:02, Paolo Abeni wrote: Extend the VirtioDeviceFeatures struct with an additional u64 to track unknown features in the 65-128 bit range and decode the full virtio features spaces for vhost and virtio devices. Signed-off-by: Paolo Abeni --- I'm unsure if it's actually legit to up

Re: [PATCH RFC v2 12/13] net: implement tunnel probing

2025-07-15 Thread Akihiko Odaki
On 2025/07/11 22:02, Paolo Abeni wrote: Tap devices support GSO over UDP tunnel offload. Probe for such feature in a similar manner to other offloads. GSO over UDP tunnel needs to be enabled in addition to a "plain" offload (TSO or USO). No need to check separately for the outer header checksu

Re: [PATCH RFC v2 06/13] virtio-pci: implement support for extended features

2025-07-15 Thread Akihiko Odaki
On 2025/07/11 22:02, Paolo Abeni wrote: Extend the features configuration space to 128 bits, and allow the common read/write operation to access all of it. On migration, save the 128 bit version of the features only if the upper bits are non zero; after load zero the upper bits if the extended f

Re: [PATCH RFC v2 04/13] virtio: serialize extended features state

2025-07-15 Thread Akihiko Odaki
On 2025/07/11 22:02, Paolo Abeni wrote: If the driver uses any of the extended features (i.e. above 64), serialize the full features range (128 bits). This is one of the few spots that need explicitly to know and set in stone the extended features array size; add a build bug to prevent breaking

Re: [PATCH RFC v2 03/13] virtio: introduce extended features type

2025-07-15 Thread Akihiko Odaki
On 2025/07/11 22:02, Paolo Abeni wrote: The virtio specifications allows for up to 128 bits for the device features. Soon we are going to use some of the 'extended' bits features (above 64) for the virtio net driver. Represent the virtio features bitmask with a fixes size array, and introduce a

Re: [PATCH RFC v2 01/13] net: bundle all offloads in a single struct

2025-07-14 Thread Akihiko Odaki
On 2025/07/11 22:02, Paolo Abeni wrote: The set_offload() argument list is already pretty long and we are going to introduce soon a bunch of additional offloads. Replace the offload arguments with a single struct and update all the relevant call-sites. No functional changes intended. Signed-of

Re: [PATCH] gtk: Skip drawing if console surface is NULL

2025-07-14 Thread Akihiko Odaki
pen at all because we always install a placeholder surface to the console when there is nothing to display. Resolves: Coverity CID 1610328 Signed-off-by: Weifeng Liu Reviewed-by: Akihiko Odaki

[PATCH RFC v2] virtio-net: Fix VLAN filter table reset timing

2025-07-14 Thread Akihiko Odaki
do not reset vlan filtering at set_features") Cc: qemu-sta...@nongnu.org Reported-by: Konstantin Shkolnyy Signed-off-by: Akihiko Odaki --- Not tested. Konstantin, I would also want you to test this new version. Please also give it Tested-by, and, if possible, Reviewed-by. --- Changes in v2:

[PATCH RFC] virtio-net: Fix VLAN filter table initialization timing

2025-07-13 Thread Akihiko Odaki
feature negotiation sequence. Fixes: 06b636a1e2ad ("virtio-net: do not reset vlan filtering at set_features") Reported-by: Konstantin Shkolnyy Signed-off-by: Akihiko Odaki --- Not tested. Konstantin, please see if this patch fixes your workload. --- hw/net/virtio-net.c | 11 ++-

[PATCH] pcie_sriov: Fix configuration and state synchronization

2025-07-13 Thread Akihiko Odaki
d-by: Corentin BAYET Signed-off-by: Akihiko Odaki --- hw/pci/pcie_sriov.c | 42 +++--- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/hw/pci/pcie_sriov.c b/hw/pci/pcie_sriov.c index 3ad18744f4a8ed2b35144fafcdc8e7e00fec3672..a08b5258275f51876c18

Re: about 0x602 in e1000.c

2025-07-06 Thread Akihiko Odaki
ht. Can you submit a patch to fix it? Regards, Akihiko Odaki

Re: [PATCH RFC 00/16] virtio: introduce support for GSO over UDP tunnel

2025-06-20 Thread Akihiko Odaki
On 2025/05/23 18:43, Paolo Abeni wrote: On 5/23/25 9:19 AM, Akihiko Odaki wrote: On 2025/05/21 20:33, Paolo Abeni wrote: Some virtualized deployments use UDP tunnel pervasively and are impacted negatively by the lack of GSO support for such kind of traffic in the virtual NIC driver. The

Re: [PATCH v2] vdpa: Allow VDPA to work on big-endian machine

2025-06-20 Thread Akihiko Odaki
a: Restore vlan filtering state") Signed-off-by: Konstantin Shkolnyy Acked-by: Jason Wang Acked-by: Eugenio Pérez Reviewed-by: Akihiko Odaki

Re: [PULL 12/17] virtio-gpu: support context init multiple timeline

2025-06-20 Thread Akihiko Odaki
On 2025/06/21 4:47, Yiwei Zhang wrote: On Thu, Jun 19, 2025 at 11:45 PM Alex Bennée wrote: Yiwei Zhang writes: On Sun, Jun 8, 2025 at 1:24 AM Akihiko Odaki wrote: On 2025/06/06 1:26, Alex Bennée wrote: From: Yiwei Zhang Venus and later native contexts have their own fence context

Re: [PATCH v2 05/12] python: fix illegal escape sequences

2025-06-16 Thread Akihiko Odaki
On 2025/06/13 5:54, John Snow wrote: \{ is an illegal escape sequence, to get a literal backslash we need to use \\. This is being fixed because of an issue spotted when attempting to use the pyupgrade script. Signed-off-by: John Snow Reviewed-by: Akihiko Odaki

Re: [PATCH v2 04/12] python: update shebangs to standard, using /usr/bin/env

2025-06-16 Thread Akihiko Odaki
easily.) Signed-off-by: John Snow Reviewed-by: Akihiko Odaki

Re: [PATCH v2 03/12] python: sync changes from external qemu.qmp package

2025-06-16 Thread Akihiko Odaki
erent repositories. Signed-off-by: John Snow Reviewed-by: Akihiko Odaki

Re: [PATCH v2 02/12] python: update pylint ignores

2025-06-16 Thread Akihiko Odaki
On 2025/06/13 5:54, John Snow wrote: The next patch will synchronize the qemu.qmp library with the external, standalone version. That synchronization will require an extra ignore for pylint, so do that now. Signed-off-by: John Snow Reviewed-by: Akihiko Odaki

Re: [PATCH 10/12] contrib: replace FSF postal address with licenses URL

2025-06-16 Thread Akihiko Odaki
On 2025/06/14 1:53, Sean Wei wrote: The LGPLv2.1 boiler-plate in pdb.c file still contained the obsolete "51 Franklin Street" postal address. Replace it with the canonical GNU licenses URL recommended by the FSF: https://www.gnu.org/licenses/ Signed-off-by: Sean Wei Reviewed-b

Re: [PATCH v2 00/12] Python: Fix 'make check-dev' and modernize to 3.9+

2025-06-16 Thread Akihiko Odaki
ny time. I figured now was a good time as any to get rid of them before they become a problem randomly some day in the future. I guess you meant that the old style type hints are deprecated. Regards, Akihiko Odaki

Re: [PATCH] vdpa: Allow VDPA to work on big-endian machine

2025-06-16 Thread Akihiko Odaki
n't use Linux kernel internal types like u32, __u32 or __le32. It's unfortunate that QEMU lacks endian types and a checker for them; such a checker could not have caught this particular case, but can catch other similar bugs. Regards, Akihiko Odaki const struct iovec data

Re: Build platform guarantees, docs, tests, and snakes in the garden

2025-06-12 Thread Akihiko Odaki
rrangement where we are allowed to use versions of Meson that otherwise would break our build platform guarantee.) Lately, we've had some issues with the wide range of Sphinx versions we support presenting various cross-platform difficulties. In particular, Akihiko Odaki has sent patches to

Re: [PATCH v4 09/17] hw/display: re-arrange memory region tracking

2025-06-08 Thread Akihiko Odaki
On 2025/06/07 0:02, Akihiko Odaki wrote: On 2025/06/06 19:16, Alex Bennée wrote: Akihiko Odaki writes: On 2025/06/05 20:57, Alex Bennée wrote: Akihiko Odaki writes: On 2025/06/03 20:01, Alex Bennée wrote: QOM objects can be embedded in other QOM objects and managed as part of their

Re: [PULL 13/17] include/exec: fix assert in size_memop

2025-06-08 Thread Akihiko Odaki
ec76ce0-c3ca-48ed-befe-e0930d4a3...@linaro.org/ +assert(is_power_of_2(size) && size >= 1 && size <= (1 << MO_SIZE)); size >= 1 is unnecessary because being power of 2 implies that. The comment doesn't mention this condition either. Regards, Akihiko Odaki #endif return (MemOp)ctz32(size); }

Re: [PULL 12/17] virtio-gpu: support context init multiple timeline

2025-06-08 Thread Akihiko Odaki
7] ui/gtk-gl-area: Remove extra draw call in refresh" requires Cc: qemu-sta...@nongnu.org. Fixing -display gtk,gl=on for Wayland sounds as important as this patch. Regards, Akihiko Odaki Signed-off-by: Yiwei Zhang Reviewed-by: Dmitry Osipenko Message-Id: <20250518152651.334115-1-zzyi..

Re: [PULL 10/17] virtio-gpu: refactor async blob unmapping

2025-06-08 Thread Akihiko Odaki
> subregion (c) FlatView -> subregion Therefore, the subregion will be freed with (c). So the unmapping operation will never finish until the BQL gets unlocked. Regards, Akihiko Odaki Signed-off-by: Manos Pitsidianakis Reviewed-by: Philippe Mathieu-Daudé Message-Id: &l

Re: [PATCH 1/4] python: update requirements for Sphinx

2025-06-07 Thread Akihiko Odaki
no extra changes are needed for the tests to continue passing. Signed-off-by: John Snow Reviewed-by: Akihiko Odaki I didn't notice these files. Perhaps they are better to be documented with pythondeps.toml. Regards, Akihiko Odaki

Re: [PATCH v5 00/13] Improve futex usage

2025-06-06 Thread Akihiko Odaki
On 2025/06/07 5:38, Paolo Bonzini wrote: On Fri, Jun 6, 2025 at 11:46 AM Akihiko Odaki wrote: This conditional is unnecessary; docs/about/build-platforms.rst says we only supports MinGW. I failed to catch this problem because I ran MinGW on Windows, which is case-insensitive. Since it is case

Re: [PULL 09/17] hw/display: re-arrange memory region tracking

2025-06-06 Thread Akihiko Odaki
On 2025/06/06 20:31, Alex Bennée wrote: Akihiko Odaki writes: On 2025/06/06 18:54, Alex Bennée wrote: Akihiko Odaki writes: On 2025/06/06 1:26, Alex Bennée wrote: QOM objects can be embedded in other QOM objects and managed as part of their lifetime but this isn't the cas

Re: [PATCH v4 09/17] hw/display: re-arrange memory region tracking

2025-06-06 Thread Akihiko Odaki
On 2025/06/06 19:16, Alex Bennée wrote: Akihiko Odaki writes: On 2025/06/05 20:57, Alex Bennée wrote: Akihiko Odaki writes: On 2025/06/03 20:01, Alex Bennée wrote: QOM objects can be embedded in other QOM objects and managed as part of their lifetime but this isn't the cas

Re: [PULL 09/17] hw/display: re-arrange memory region tracking

2025-06-06 Thread Akihiko Odaki
On 2025/06/06 18:54, Alex Bennée wrote: Akihiko Odaki writes: On 2025/06/06 1:26, Alex Bennée wrote: QOM objects can be embedded in other QOM objects and managed as part of their lifetime but this isn't the case for virtio_gpu_virgl_hostmem_region. However before we can split it out we

Re: [PATCH v4 03/17] tests/tcg: make aarch64 boot.S handle different starting modes

2025-06-06 Thread Akihiko Odaki
On 2025/06/05 17:51, Alex Bennée wrote: Akihiko Odaki writes: On 2025/06/03 20:01, Alex Bennée wrote: Currently the boot.S code assumes everything starts at EL1. This will break things like the memory test which will barf on unaligned memory access when run at a higher level. Adapt the boot

Re: [PATCH v5 00/13] Improve futex usage

2025-06-06 Thread Akihiko Odaki
On 2025/06/05 22:24, Paolo Bonzini wrote: From: Akihiko Odaki In a recent discussion, Phil Dennis-Jordan pointed out a quirk in QemuEvent destruction due to futex-like abstraction, which prevented the usage of QemuEvent in new and existing code[1]. With some more thoughts after this

Re: [PATCH v4 09/17] hw/display: re-arrange memory region tracking

2025-06-06 Thread Akihiko Odaki
On 2025/06/05 20:57, Alex Bennée wrote: Akihiko Odaki writes: On 2025/06/03 20:01, Alex Bennée wrote: QOM objects can be embedded in other QOM objects and managed as part of their lifetime but this isn't the case for virtio_gpu_virgl_hostmem_region. However before we can split it out we

Re: [PULL 04/17] tests/qtest: Avoid unaligned access in IGB test

2025-06-06 Thread Akihiko Odaki
od to me, so: Reviewed-by: Akihiko Odaki Regards, Akihiko Odaki diff --git a/tests/qtest/libqos/igb.c b/tests/qtest/libqos/igb.c index f40c4ec4cd..ab3ef6f0c3 100644 --- a/tests/qtest/libqos/igb.c +++ b/tests/qtest/libqos/igb.c @@ -104,10 +104,10 @@ static void igb_pci_start_

Re: [PULL 09/17] hw/display: re-arrange memory region tracking

2025-06-05 Thread Akihiko Odaki
call in refresh" has an undressed comment[2][7]. I would like to see improvements in how comments are addressed before a series is resent. Regards, Akihiko Odaki [1] https://lore.kernel.org/qemu-devel/e6af12bd-1c36-4e50-8bae-d8d80cad1...@daynix.com [2] https://lore.kernel.org/qemu-deve

Re: [PATCH v4 09/17] hw/display: re-arrange memory region tracking

2025-06-05 Thread Akihiko Odaki
his patch can be simply dropped. Regards, Akihiko Odaki -mr = &vmr->mr; memory_region_init_ram_ptr(mr, OBJECT(mr), "blob", size, data); memory_region_add_subregion(&b->hostmem, offset, mr); memory_region_set_enabled(mr, true); @@ -131,7 +

Re: [PATCH v4 08/17] MAINTAINERS: add Akihiko and Dmitry as reviewers

2025-06-05 Thread Akihiko Odaki
On 2025/06/03 20:01, Alex Bennée wrote: Thanks for volunteering to help. Cc: Akihiko Odaki Cc: Dmitry Osipenko Reviewed-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Acked-by: Michael S. Tsirkin --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions

Re: [PATCH v4 03/17] tests/tcg: make aarch64 boot.S handle different starting modes

2025-06-05 Thread Akihiko Odaki
CH v4 11/17] ui/gtk-gl-area: Remove extra draw call in refresh". Regards, Akihiko Odaki + .quad cmdline + .quad 128 .text .align 4 .global __start __start: + /* + * Initialise the stack for whatever EL we are in before +* anything e

[PATCH v3 0/2] ui/vnc: Do not copy z_stream

2025-06-03 Thread Akihiko Odaki
state to fix the memory leak. Signed-off-by: Akihiko Odaki --- Changes in v3: - Rebased. - Reordered the patches. - Removed the extra allocation of VncWorker. - Removed the worker field from VncState. - Dropped the Reviewed-by tags. - Link to v2: https://lore.kernel.org/qemu-devel/20250531-zlib-v2

[PATCH v3 2/2] ui/vnc: Introduce the VncWorker type

2025-06-03 Thread Akihiko Odaki
copying. It allows allocating and freeing all shared data at once and shows that the race with the worker thread needs to be taken care of when accessing them. Signed-off-by: Akihiko Odaki --- ui/vnc.h | 49 -- ui/vnc-enc-tight.c| 456

[PATCH v3 1/2] ui/vnc: Do not copy z_stream

2025-06-03 Thread Akihiko Odaki
state to fix the memory leak. Fixes: bd023f953e5e ("vnc: threaded VNC server") Signed-off-by: Akihiko Odaki --- ui/vnc.h | 2 +- ui/vnc-enc-zlib.c | 30 +++--- ui/vnc.c | 13 ++--- 3 files changed, 26 insertions(+), 19 deletions(-) di

[PATCH v2 1/2] ui/vnc: Introduce the VncWorker type

2025-05-31 Thread Akihiko Odaki
copying. It allows allocating and freeing all shared data at once and shows that the race with the worker thread needs to be taken care of when accessing them. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé --- ui/vnc.h | 12 +- ui/vnc-enc-tight.c| 341

[PATCH v2 2/2] ui/vnc: Do not copy z_stream

2025-05-31 Thread Akihiko Odaki
state to fix the memory leak. Fixes: bd023f953e5e ("vnc: threaded VNC server") Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé --- ui/vnc.h | 2 +- ui/vnc-enc-zlib.c | 30 +++--- ui/vnc-jobs.c | 2 -- ui/vnc.c | 2 +

[PATCH v2 0/2] ui/vnc: Do not copy z_stream

2025-05-31 Thread Akihiko Odaki
state to fix the memory leak. Signed-off-by: Akihiko Odaki --- Changes in v2: - Rebased. - Link to v1: https://lore.kernel.org/qemu-devel/20250417-zlib-v1-0-34fad73b8...@daynix.com --- Akihiko Odaki (2): ui/vnc: Introduce the VncWorker type ui/vnc: Do not copy z_stream ui/vnc.h

[PATCH v6] target/arm: Always add pmu property for host

2025-05-31 Thread Akihiko Odaki
d when the user sets the property to true while it is defined as an an error for the "host" CPU when the host doesn't have a PMU. This fixes qtest-aarch64/arm-cpu-features on the hosts that supports KVM but doesn't support PMU emulation. Signed-off-by: Akihiko Odaki --- kvm-stea

[PATCH v3] target/arm: Define raw write for PMU CLR registers

2025-05-31 Thread Akihiko Odaki
exposes all these four registers to GDB. It is not necessary to add ARM_CP_ALIAS to these registers because the flag is already set. Signed-off-by: Akihiko Odaki --- Supersedes: <20250317-raw-v1-0-09e2dfff0...@daynix.com> ("[PATCH 0/4] target/arm: Flag PMCNTENCLR with ARM_CP_NO_RAW"

[PATCH] MAINTAINERS: Update Akihiko Odaki's affiliation

2025-05-31 Thread Akihiko Odaki
ps up. Signed-off-by: Akihiko Odaki --- My email address at Daynix will remain active at least for the next month. I added the submitter of the patches I recently reviewed to Cc. Please Cc my new email address for future reviews. I have a number of patches that are not pulled yet. Colleagues at D

[PATCH 2/6] net/vhost-vdpa: Report hashing capability

2025-05-29 Thread Akihiko Odaki
Report hashing capability so that virtio-net can deliver the correct capability information to the guest. Signed-off-by: Akihiko Odaki --- include/net/net.h | 3 +++ net/net.c | 9 + net/vhost-vdpa.c | 28 3 files changed, 40 insertions(+) diff

[PATCH 1/6] qdev-properties: Add DEFINE_PROP_ON_OFF_AUTO_BIT64()

2025-05-29 Thread Akihiko Odaki
DEFINE_PROP_ON_OFF_AUTO_BIT64() corresponds to DEFINE_PROP_ON_OFF_AUTO() as DEFINE_PROP_BIT64() corresponds to DEFINE_PROP_BOOL(). The difference is that DEFINE_PROP_ON_OFF_AUTO_BIT64() exposes OnOffAuto instead of bool. Signed-off-by: Akihiko Odaki --- include/hw/qdev-properties.h | 18

[PATCH v2] virtio-net: Add queues for RSS during migration

2025-05-29 Thread Akihiko Odaki
ing") Signed-off-by: Akihiko Odaki --- Changes in v2: - Updated a documentation comment of pre_load_queues() for clarity. - Link to v1: https://lore.kernel.org/qemu-devel/20250510-n-v1-1-19ee26ac3...@daynix.com --- include/hw/virtio/virtio.h | 10 -- hw/net/virtio-net.c| 1

[PATCH 5/6] net/vhost-vdpa: Remove dummy SetSteeringEBPF

2025-05-29 Thread Akihiko Odaki
It is no longer used. Signed-off-by: Akihiko Odaki --- net/vhost-vdpa.c | 8 1 file changed, 8 deletions(-) diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index 4f63ded40d47..149c0f7f1766 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -238,12 +238,6 @@ static void

[PATCH RFC v5 2/5] virtio-net: Offload hashing to peer

2025-05-29 Thread Akihiko Odaki
This allows offloading hash reporting and RSS to tap. Signed-off-by: Akihiko Odaki --- hw/net/virtio-net.c | 69 +++-- 1 file changed, 56 insertions(+), 13 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 52fe404b3431

[PATCH RFC v5 5/5] docs/devel/ebpf_rss.rst: Update for peer RSS

2025-05-29 Thread Akihiko Odaki
eBPF RSS virtio-net support was written in assumption that there is only one alternative RSS implementation: 'in-qemu' RSS. It is no longer true, and we now have yet another implementation; namely the peer RSS. Signed-off-by: Akihiko Odaki --- docs/devel/ebpf_rs

[PATCH RFC v5 0/5] virtio-net: Offload hashing without eBPF

2025-05-29 Thread Akihiko Odaki
v4: - Rebased. - Added a reference to the documentation to the cover letter. - Link to v3: https://lore.kernel.org/r/20240915-hash-v3-0-79cb08d28...@daynix.com --- Akihiko Odaki (5): net: Allow configuring virtio hashing virtio-net: Offload hashing to peer virtio-net: Offload hashin

[PATCH RFC v5 4/5] tap: Report virtio-net hashing support on Linux

2025-05-29 Thread Akihiko Odaki
This allows offloading virtio-net hashing to tap on Linux. Signed-off-by: Akihiko Odaki --- net/tap-linux.h | 1 + net/tap_int.h | 1 + net/tap-bsd.c | 5 + net/tap-linux.c | 5 + net/tap-solaris.c | 5 + net/tap-stub.c| 5 + net/tap.c | 8 7

[PATCH RFC v5 3/5] virtio-net: Offload hashing without vhost

2025-05-29 Thread Akihiko Odaki
This is necessary to offload hashing to tap. Signed-off-by: Akihiko Odaki --- hw/net/virtio-net.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 0a333d560d7b..3469c211b13a 100644 --- a/hw/net/virtio-net.c +++ b

[PATCH RFC v5 1/5] net: Allow configuring virtio hashing

2025-05-29 Thread Akihiko Odaki
This adds functions to configure virtio hashing and implements it for Linux's tap. vDPA will have empty functions as configuring virtio hashing is done with the load(). Signed-off-by: Akihiko Odaki --- include/net/net.h | 13 + net/tap-linux.h | 3 +++ net/tap_int.h

[PATCH 6/6] virtio-net: Add hash type options

2025-05-29 Thread Akihiko Odaki
ot;on" for the corresponding properties. Signed-off-by: Akihiko Odaki --- include/hw/virtio/virtio-net.h | 1 + hw/net/virtio-net.c| 45 -- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/include/hw/virtio/virtio-net.h b/

[PATCH 4/6] virtio-net: Retrieve peer hashing capability

2025-05-29 Thread Akihiko Odaki
Retrieve peer hashing capability instead of hardcoding. Signed-off-by: Akihiko Odaki --- include/hw/virtio/virtio-net.h | 5 ++- hw/net/virtio-net.c| 71 ++ net/vhost-vdpa.c | 4 +-- 3 files changed, 64 insertions(+), 16

[PATCH 3/6] virtio-net: Move virtio_net_get_features() down

2025-05-29 Thread Akihiko Odaki
Move virtio_net_get_features() to the later part of the file so that it can call other functions. Signed-off-by: Akihiko Odaki --- hw/net/virtio-net.c | 146 ++-- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/hw/net/virtio-net.c

[PATCH 0/6] net/vhost-vdpa: Report hashing capability

2025-05-29 Thread Akihiko Odaki
ypes. This also helps add another hashing mechanism proposed by the patch series mentioned earlier. Signed-off-by: Akihiko Odaki --- Akihiko Odaki (6): qdev-properties: Add DEFINE_PROP_ON_OFF_AUTO_BIT64() net/vhost-vdpa: Report hashing capability virtio-net: Move virtio_net_ge

[PATCH v2] file-posix: Tolerate unaligned hole at middle

2025-05-29 Thread Akihiko Odaki
the alignment of holes. So stop asserting the assumption on the holes and handle unaligned holes properly. Signed-off-by: Akihiko Odaki --- Changes in v2: - Changed to round the number also when the specified offset in a hole. - Changed to iterate until finding an aligned location. - Link to v1:

[PATCH v5 13/13] qemu-thread: Document QemuEvent memory ordering

2025-05-29 Thread Akihiko Odaki
intended to satisfy. Signed-off-by: Akihiko Odaki --- include/qemu/thread.h | 19 util/event.c | 84 --- 2 files changed, 66 insertions(+), 37 deletions(-) diff --git a/include/qemu/thread.h b/include/qemu/thread.h index

[PATCH v5 07/13] migration: Replace QemuSemaphore with QemuEvent

2025-05-29 Thread Akihiko Odaki
pause_event can utilize qemu_event_reset() to discard events. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé --- migration/migration.h | 2 +- migration/migration.c | 21 + 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/migration

[PATCH v5 04/13] qemu-thread: Avoid futex abstraction for non-Linux

2025-05-28 Thread Akihiko Odaki
atomic operations to ensure ordering between them. Signed-off-by: Akihiko Odaki Tested-by: Phil Dennis-Jordan Reviewed-by: Phil Dennis-Jordan --- util/qemu-thread-posix.c | 50 +++- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/util

[PATCH v5 11/13] qemu-thread: Remove qatomic_read() in qemu_event_set()

2025-05-28 Thread Akihiko Odaki
pair of it and qatomic_read() is cheaper than qatomic_xchg(). Therefore remove the pair and simplify the code instead. Signed-off-by: Akihiko Odaki --- util/event.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/util/event.c b/util/event.c index e937804a92a8..df6d6

[PATCH v5 05/13] qemu-thread: Use futex for QemuEvent on Windows

2025-05-28 Thread Akihiko Odaki
Use the futex-based implementation of QemuEvent on Windows to remove code duplication and remove the overhead of event object construction and destruction. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé --- include/qemu/thread-posix.h | 9 --- include/qemu/thread-win32.h

[PATCH v5 09/13] migration/postcopy: Replace QemuSemaphore with QemuEvent

2025-05-28 Thread Akihiko Odaki
thread_sync_sem is an one-shot event so it can be converted into QemuEvent, which is more lightweight. Signed-off-by: Akihiko Odaki Reviewed-by: Fabiano Rosas --- migration/migration.h| 4 ++-- migration/postcopy-ram.c | 10 +- migration/savevm.c | 2 +- 3 files changed, 8

[PATCH v5 03/13] qemu-thread: Replace __linux__ with CONFIG_LINUX

2025-05-28 Thread Akihiko Odaki
scripts/checkpatch.pl warns for __linux__ saying "architecture specific defines should be avoided". Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé --- include/qemu/thread-posix.h | 2 +- util/qemu-thread-posix.c| 6 +++--- 2 files changed, 4 insertions(+), 4

[PATCH v5 12/13] qemu-thread: Document QemuEvent

2025-05-28 Thread Akihiko Odaki
Document QemuEvent to help choose an appropriate synchronization primitive. Signed-off-by: Akihiko Odaki --- include/qemu/thread.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/qemu/thread.h b/include/qemu/thread.h index 573f8c9ede20..f0302ed01fdb 100644 --- a/include

[PATCH v5 02/13] futex: Support Windows

2025-05-28 Thread Akihiko Odaki
Windows supports futex-like APIs since Windows 8 and Windows Server 2012. Signed-off-by: Akihiko Odaki --- meson.build | 2 ++ include/qemu/futex.h | 53 ++- tests/unit/test-aio-multithread.c | 2 +- util/lockcnt.c

[PATCH v5 08/13] migration/colo: Replace QemuSemaphore with QemuEvent

2025-05-28 Thread Akihiko Odaki
colo_exit_sem and colo_incoming_sem represent one-shot events so they can be converted into QemuEvent, which is more lightweight. Signed-off-by: Akihiko Odaki Reviewed-by: Fabiano Rosas Reviewed-by: Philippe Mathieu-Daudé --- migration/migration.h | 6 +++--- migration/colo.c | 20

[PATCH v5 10/13] hw/display/apple-gfx: Replace QemuSemaphore with QemuEvent

2025-05-28 Thread Akihiko Odaki
sem in AppleGFXReadMemoryJob is an one-shot event so it can be converted into QemuEvent, which is more specialized for such a use case. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé --- hw/display/apple-gfx.m | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[PATCH v5 01/13] futex: Check value after qemu_futex_wait()

2025-05-28 Thread Akihiko Odaki
inue > to block or not. Signed-off-by: Akihiko Odaki --- include/qemu/futex.h | 9 + tests/unit/test-aio-multithread.c | 4 +++- util/qemu-thread-posix.c | 35 +-- 3 files changed, 25 insertions(+), 23 deletions(-) diff --git a/i

  1   2   3   4   5   6   7   8   9   10   >