Re: [PULL 2/3] vfio: Move the TYPE_* to hw/vfio/types.h

2025-07-20 Thread Cédric Le Goater
On 7/21/25 08:28, Gerd Hoffmann wrote: On Fri, Jul 18, 2025 at 11:03:40PM +0200, Cédric Le Goater wrote: On 7/18/25 21:43, Gerd Hoffmann wrote: From: Shaoqin Huang Move the TYPE_* to a new file hw/vfio/types.h because the TYPE_VFIO_PCI will be used in later patch, but directly include the hw/

Re: [PULL 2/3] vfio: Move the TYPE_* to hw/vfio/types.h

2025-07-20 Thread Gerd Hoffmann
On Fri, Jul 18, 2025 at 11:03:40PM +0200, Cédric Le Goater wrote: > On 7/18/25 21:43, Gerd Hoffmann wrote: > > From: Shaoqin Huang > > > > Move the TYPE_* to a new file hw/vfio/types.h because the > > TYPE_VFIO_PCI will be used in later patch, but directly include the > > hw/vfio/pci.h can cause

[PULL 01/12] net/tap: drop too small packets

2025-07-20 Thread Jason Wang
From: Vladimir Sementsov-Ogievskiy Theoretically tap_read_packet() may return size less than s->host_vnet_hdr_len, and next, we'll work with negative size (in case of !s->using_vnet_hdr). Let's avoid it. Don't proceed with size == s->host_vnet_hdr_len as well in case of !s->using_vnet_hdr, it do

[PULL 10/12] net/passt: Check return value of g_remove() in net_passt_cleanup() (CID 1612369)

2025-07-20 Thread Jason Wang
From: Laurent Vivier If g_remove() fails, use warn_report() to log an error. Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Jason Wang --- net/passt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/passt.c b/net/passt.c index ef59d0682b..

[PULL 07/12] net/passt: Remove unused "err" from passt_vhost_user_event() (CID 1612375)

2025-07-20 Thread Jason Wang
From: Laurent Vivier The "err" variable was declared but never used within the passt_vhost_user_event() function. This resulted in a dead code warning (CID 1612375) from Coverity. Remove the unused variable and the associated error block to resolve the issue. Signed-off-by: Laurent Vivier Revi

[PULL 06/12] hw/net/npcm_gmac.c: Drop 'buf' local variable

2025-07-20 Thread Jason Wang
From: Peter Maydell We use the local variable 'buf' only when we call dma_memory_read(), and it is always set to &tx_send_buffer[prev_buf_size] immediately before both of those calls. So remove the variable and pass tx_send_buffer + prev_buf_size to dma_memory_read(). This fixes in passing a pl

[PULL 08/12] net/vhost-user: Remove unused "err" from net_vhost_user_event() (CID 1612372)

2025-07-20 Thread Jason Wang
From: Laurent Vivier The "err" variable was declared but never used within the net_vhost_user_event() function. This resulted in a dead code warning (CID 1612372) from Coverity. Remove the unused variable and the associated error block to resolve the issue. Signed-off-by: Laurent Vivier Review

[PULL 09/12] net/passt: Remove dead code in passt_vhost_user_start error path (CID 1612371)

2025-07-20 Thread Jason Wang
From: Laurent Vivier In passt_vhost_user_start(), if vhost_net_init() fails, the "net" variable is NULL and execution jumps to the "err:" label. The cleanup code within this label is conditioned on "if (net)", which can never be true in this error case. This makes the cleanup block dead code, as

[PULL 11/12] net/passt: Initialize "error" variable in net_passt_send() (CID 1612368)

2025-07-20 Thread Jason Wang
From: Laurent Vivier This was flagged by Coverity as a memory illegal access. Initialize the pointer to NULL at declaration. Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Jason Wang --- net/passt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PULL 12/12] net/vhost-user: Remove unused "err" from chr_closed_bh() (CID 1612365)

2025-07-20 Thread Jason Wang
From: Laurent Vivier The "err" variable was declared but never used within the chr_closed_bh() function. This resulted in a dead code warning (CID 1612365) from Coverity. Remove the unused variable and the associated error block to resolve the issue. Signed-off-by: Laurent Vivier Reviewed-by:

[PULL 04/12] hw/net/npcm_gmac.c: Unify length and prev_buf_size variables

2025-07-20 Thread Jason Wang
From: Peter Maydell After the bug fix in the previous commit, the length and prev_buf_size variables are identical, except that prev_buf_size is uint32_t and length is uint16_t. We can therefore unify them. The only place where the type makes a difference is that we will truncate the packet at 64

[PULL 03/12] hw/net/npcm_gmac.c: Send the right data for second packet in a row

2025-07-20 Thread Jason Wang
From: Peter Maydell The transmit loop in gmac_try_send_next_packet() is constructed in a way that means it will send incorrect data if it it sends more than one packet. The function assembles the outbound data in a dynamically allocated block of memory which is pointed to by tx_send_buffer. We

[PULL 02/12] tap: fix net_init_tap() return code

2025-07-20 Thread Jason Wang
From: Steve Sistare net_init_tap intends to return 0 for success and -1 on error. However, when net_init_tap() succeeds for a multi-queue device, it returns 1, because of this code where ret becomes 1 when g_unix_set_fd_nonblocking succeeds: ret = g_unix_set_fd_nonblocking(fd, true, NUL

[PULL 05/12] hw/net/npcm_gmac.c: Correct test for when to reallocate packet buffer

2025-07-20 Thread Jason Wang
From: Peter Maydell In gmac_try_send_next_packet() we have code that does "if this block of data won't fit in the buffer, reallocate it". However, the condition it uses is if ((prev_buf_size + tx_buf_len) > sizeof(buf)) where buf is a uint8_t *. This means that sizeof(buf) is always 8 bytes,

[PULL 00/12] Net patches

2025-07-20 Thread Jason Wang
The following changes since commit e82989544e38062beeeaad88c175afbeed0400f8: Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2025-07-18 14:10:02 -0400) are available in the Git repository at: https://github.com/jasowang/qemu.git tags/net-pull-request for you to fe

Re: [PATCH RFC v3 07/13] vhost: add support for negotiating extended features

2025-07-20 Thread Lei Yang
On Fri, Jul 18, 2025 at 10:37 PM Stefano Garzarella wrote: > > On Fri, Jul 18, 2025 at 10:52:33AM +0200, Paolo Abeni wrote: > >Similar to virtio infra, vhost core maintains the features status > >in the full extended format and allows the devices to implement > >extended version of the getter/sett

Re: [PATCH 00/50] ppc/xive: updates for PowerVM

2025-07-20 Thread Cédric Le Goater
On 5/16/25 03:29, Nicholas Piggin wrote: On Fri May 16, 2025 at 1:36 AM AEST, Cédric Le Goater wrote: On 5/12/25 05:10, Nicholas Piggin wrote: These changes gets the powernv xive2 to the point it is able to run PowerVM with good stability. * Various bug fixes around lost interrupts particularl

Re: [PULL 0/6] Mostly target/i386 patches for QEMU 10.1 hard freeze

2025-07-20 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes. signature.asc Description: PGP signature

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