defined reference to `g_subprocess_get_exit_status'
Fix this by adding an explicit weson dependency on GIO for the passt
option.
The existing dependency on linux is kept because passt is only available
on this OS.
Reported-by: Thomas Huth
Signed-off-by: Laurent Vivier
---
meson.build | 1 +
1
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
---
net/vhost-
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
---
net/p
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
---
net/vhost-user.c |
This was flagged by Coverity as a memory illegal access.
Initialize the pointer to NULL at declaration.
Signed-off-by: Laurent Vivier
---
net/passt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/passt.c b/net/passt.c
index 43c336e5968c..32ecffb763b4 100644
--- a/net
code, as reported by Coverity (CID 1612371).
Refactor the error handling to occur inline, removing the goto and
the unreachable cleanup block.
Signed-off-by: Laurent Vivier
---
net/passt.c | 10 ++
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/net/passt.c b/net/passt.c
in
If g_remove() fails, use warn_report() to log an error.
Signed-off-by: Laurent Vivier
---
net/passt.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/net/passt.c b/net/passt.c
index ef59d0682be1..43c336e5968c 100644
--- a/net/passt.c
+++ b/net/passt.c
@@ -103,7 +103,10
ial errors.
Laurent Vivier (6):
net/passt: Remove unused "err" from passt_vhost_user_event() (CID
1612375)
net/vhost-user: Remove unused "err" from net_vhost_user_event() (CID
1612372)
net/passt: Remove dead code in passt_vhost_user_start error path (CID
1612
On 17/07/2025 11:28, Peter Maydell wrote:
On Tue, 15 Jul 2025 at 05:42, Jason Wang wrote:
From: Laurent Vivier
This commit introduces support for passt as a new network backend.
passt is an unprivileged, user-mode networking solution that provides
connectivity for virtual machines by
dr(relval);
I think the ntohl() should be removed totally and flat_set_persistent()
should use put_user_ual().
Could you test this?
Thanks,
Laurent
calls the new function.
The vhost-user implementation is updated to use net_client_set_link()
directly, thereby eliminating the unnecessary client lookup.
Signed-off-by: Laurent Vivier
---
include/net/net.h | 1 +
net/net.c | 32
net/vhost-user.c | 4
tInfo struct. The central
get_vhost_net() function is now a simple, generic dispatcher that
invokes the callback provided by the net client.
Each backend now implements its own private getter and registers it in
its NetClientInfo.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c
supported maximum transmit queue size directly.
The virtio_net_max_tx_queue_size() function now retrieves the max
TX queue size from the vhost_net struct, if available and set.
Otherwise, it defaults to VIRTIO_NET_TX_QUEUE_DEFAULT_SIZE.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c
fix conflict with
837b87c4c5ba ("net/stream: skip automatic zero-init of large array")
- add path parameter to provide path of passt if it is not in PATH
- add 2 patches:
"net: Allow network backends to advertise max TX queue size"
"net: Consolidat
' with the new
flag. It improves readability and encapsulates the backend type
information directly within the vhost_net instance.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c| 3 ++-
hw/net/virtio-net.c | 8 ++--
include/hw/virtio/vhost.h | 1 +
include/net/vhost
dependency.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c | 6 ++
include/net/vhost-user.h | 2 --
include/net/vhost_net.h | 3 +++
net/tap.c| 1 +
net/vhost-user.c | 4 +++-
net/vhost-vdpa.c | 1 +
6 files changed, 10 insertions(+), 7 deletions
implementation.
This cleanup allows for the complete removal of the net/vhost-user.h
header file.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net-stub.c | 1 -
hw/net/vhost_net.c| 10 +-
include/hw/virtio/vhost.h | 2 ++
include/net/vhost-user.h | 16
include/net
-vhost.c, it has
been renamed to vhost_net_set_vring_enable(). This clarifies that the
function belongs to the vhost_net module.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net-stub.c | 2 +-
hw/net/vhost_net.c | 4 ++--
hw/net/virtio-net.c | 4 ++--
include/net/vhost_net.h | 2 +-
4 files
StreamData struct. This allows
callers to provide their own specific implementations while reusing
the common connection and data transfer logic.
Signed-off-by: Laurent Vivier
---
net/meson.build | 3 +-
net/stream.c | 282 +++---
net/stream_da
using the vhost-user protocol. This offloads the datapath from the
main QEMU loop, significantly improving network performance.
When the vhost-user=on option is used with -netdev passt, the new
vhost initialization path is taken instead of the standard
stream-based connection.
Signed-off-by: La
-off-by: Laurent Vivier
---
docs/system/devices/net.rst | 40 +++-
hmp-commands.hx | 3 +
meson.build | 6 +
meson_options.txt | 2 +
net/clients.h | 4 +
net/hub.c | 3 +
net/meson.build | 3
-user, and
vhost-vdpa).
This patch moves the definition of vhost feature bits directly into the
vhost_net structure for each relevant network client.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c| 90 ++-
include/hw/virtio/vhost.h | 1 +
include
implementation.
This cleanup allows for the complete removal of the net/vhost-user.h
header file.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net-stub.c | 1 -
hw/net/vhost_net.c| 10 +-
include/hw/virtio/vhost.h | 2 ++
include/net/vhost-user.h | 16
include/net
StreamData struct. This allows
callers to provide their own specific implementations while reusing
the common connection and data transfer logic.
Signed-off-by: Laurent Vivier
---
net/meson.build | 3 +-
net/stream.c | 282 +++---
net/stream_da
' with the new
flag. It improves readability and encapsulates the backend type
information directly within the vhost_net instance.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c| 3 ++-
hw/net/virtio-net.c | 8 ++--
include/hw/virtio/vhost.h | 1 +
include/net/vhost
-vhost.c, it has
been renamed to vhost_net_set_vring_enable(). This clarifies that the
function belongs to the vhost_net module.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net-stub.c | 2 +-
hw/net/vhost_net.c | 4 ++--
hw/net/virtio-net.c | 4 ++--
include/net/vhost_net.h | 2 +-
4 files
-off-by: Laurent Vivier
---
docs/system/devices/net.rst | 40 +-
hmp-commands.hx | 3 +
meson.build | 6 +
meson_options.txt | 2 +
net/clients.h | 4 +
net/hub.c | 3 +
net/meson.build
using the vhost-user protocol. This offloads the datapath from the
main QEMU loop, significantly improving network performance.
When the vhost-user=on option is used with -netdev passt, the new
vhost initialization path is taken instead of the standard
stream-based connection.
Signed-off-by: La
)
- add path parameter to provide path of passt if it is not in PATH
- add 2 patches:
"net: Allow network backends to advertise max TX queue size"
"net: Consolidate vhost feature bits into NetClientInfo"
Thanks,
Laurent
Laurent Vivier (11):
net: Refactor stre
-user, and
vhost-vdpa).
This patch moves the definition of vhost feature bits directly into the
vhost_net structure for each relevant network client.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c| 90 ++-
include/hw/virtio/vhost.h | 1 +
include
supported maximum transmit queue size directly.
The virtio_net_max_tx_queue_size() function now retrieves the max
TX queue size from the vhost_net struct, if available and set.
Otherwise, it defaults to VIRTIO_NET_TX_QUEUE_DEFAULT_SIZE.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c
dependency.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c | 6 ++
include/net/vhost-user.h | 2 --
include/net/vhost_net.h | 3 +++
net/tap.c| 1 +
net/vhost-user.c | 4 +++-
net/vhost-vdpa.c | 1 +
6 files changed, 10 insertions(+), 7 deletions
calls the new function.
The vhost-user implementation is updated to use net_client_set_link()
directly, thereby eliminating the unnecessary client lookup.
Signed-off-by: Laurent Vivier
---
include/net/net.h | 1 +
net/net.c | 32
net/vhost-user.c | 4
tInfo struct. The central
get_vhost_net() function is now a simple, generic dispatcher that
invokes the callback provided by the net client.
Each backend now implements its own private getter and registers it in
its NetClientInfo.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c
On 01/07/2025 03:46, Jason Wang wrote:
On Wed, Jun 18, 2025 at 11:58 PM Laurent Vivier wrote:
This commit introduces support for passt as a new network backend.
passt is an unprivileged, user-mode networking solution that provides
connectivity for virtual machines by launching an external
On 24/06/2025 14:03, Daniel P. Berrangé wrote:
On Tue, Jun 24, 2025 at 01:55:20PM +0200, Markus Armbruster wrote:
Laurent Vivier writes:
On 24/06/2025 10:16, Markus Armbruster wrote:
Laurent Vivier writes:
This commit introduces support for passt as a new network backend.
passt is an
On 24/06/2025 10:16, Markus Armbruster wrote:
Laurent Vivier writes:
This commit introduces support for passt as a new network backend.
passt is an unprivileged, user-mode networking solution that provides
connectivity for virtual machines by launching an external helper process.
The
On 23/06/2025 10:03, Jason Wang wrote:
On Wed, Jun 18, 2025 at 4:39 PM Laurent Vivier wrote:
This series introduces support for passt as a new network backend for
QEMU.
passt is a modern, unprivileged, user-mode networking solution that
provides guest connectivity by launching an external
is updated to provide this callback, and its
getter function is now static. The call site in vhost_net.c is
simplified to use the new generic helper, removing the type check and
the direct dependency.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c | 18 +++---
include/net
n the future without modifying core vhost logic.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c | 80 ++--
include/net/net.h| 1 +
include/net/vhost-vdpa.h | 2 -
net/tap.c| 19 ++
net/vhost-user.c
calls the new function.
The vhost-user implementation is updated to use net_client_set_link()
directly, thereby eliminating the unnecessary client lookup.
Signed-off-by: Laurent Vivier
---
include/net/net.h | 1 +
net/net.c | 32
net/vhost-user.c | 4
-user implementation.
This cleanup allows for the complete removal of the net/vhost-user.h
header file.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net-stub.c | 1 -
hw/net/vhost_net.c | 7 ++-
include/net/net.h| 2 ++
include/net/vhost-user.h | 16
net
-off-by: Laurent Vivier
---
hmp-commands.hx | 3 +
meson.build | 6 +
meson_options.txt | 2 +
net/clients.h | 4 +
net/hub.c | 3 +
net/meson.build | 3 +
net/net.c | 4 +
net/passt.c | 434 ++
qapi
not in PATH
- add 2 patches:
"net: Allow network backends to advertise max TX queue size"
"net: Consolidate vhost feature bits into NetClientInfo"
Thanks,
Laurent
Laurent Vivier (10):
net: Refactor stream logic for reuse in '-net passt'
net: Defi
StreamData struct. This allows
callers to provide their own specific implementations while reusing
the common connection and data transfer logic.
Signed-off-by: Laurent Vivier
---
net/meson.build | 3 +-
net/stream.c | 282 +++---
net/stream_da
pointer in the
NetClientInfo structure, which is implemented by the vhost-user
backend.
All existing direct checks are replaced with calls to the new helper.
This simplifies the logic in vhost_net.c and virtio-net.c,
making the code cleaner and more maintainable.
Signed-off-by: Laurent Vivier
When the vhost-user=on option is used with -netdev passt, the new
vhost initialization path is taken instead of the standard
stream-based connection.
Signed-off-by: Laurent Vivier
---
net/passt.c | 334
1 file changed, 334 insertions(+)
diff --
tInfo struct. The central
get_vhost_net() function is now a simple, generic dispatcher that
invokes the callback provided by the net client.
Each backend now implements its own private getter and registers it in
its NetClientInfo.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c
supported maximum transmit queue size directly.
This change centralizes the configuration of transmit queue sizes,
simplifying the virtio-net driver and making it easier to integrate
new network backends with diverse queue size capabilities.
Signed-off-by: Laurent Vivier
---
hw/net/virtio-net.c
is updated to provide this callback, and its
getter function is now static. The call site in vhost_net.c is
simplified to use the new generic helper, removing the type check and
the direct dependency.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c | 18 +++---
include/net
ytes 32.0 Gbits/sec
receiver
Thanks,
Laurent
Laurent Vivier (8):
net: Refactor stream logic for reuse in '-net passt'
net: Define net_client_set_link()
net: Introduce helper to identify vhost-user clients
net: Add get_vhost_net callback to NetClientInfo
net: Add get_acked_feat
StreamData struct. This allows
callers to provide their own specific implementations while reusing
the common connection and data transfer logic.
Signed-off-by: Laurent Vivier
---
net/meson.build | 3 +-
net/stream.c | 282 +++---
net/stream_da
-off-by: Laurent Vivier
---
hmp-commands.hx | 3 +
meson.build | 6 +
meson_options.txt | 2 +
net/clients.h | 4 +
net/hub.c | 3 +
net/meson.build | 3 +
net/net.c | 4 +
net/passt.c | 430 ++
qapi
tInfo struct. The central
get_vhost_net() function is now a simple, generic dispatcher that
invokes the callback provided by the net client.
Each backend now implements its own private getter and registers it in
its NetClientInfo.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net.c
When the vhost-user=on option is used with -netdev passt, the new
vhost initialization path is taken instead of the standard
stream-based connection.
Signed-off-by: Laurent Vivier
---
net/passt.c | 288
1 file changed, 288 insertions(+)
diff --
pointer in the
NetClientInfo structure, which is implemented by the vhost-user
backend.
All existing direct checks are replaced with calls to the new helper.
This simplifies the logic in vhost_net.c and virtio-net.c,
making the code cleaner and more maintainable.
Signed-off-by: Laurent Vivier
-user implementation.
This cleanup allows for the complete removal of the net/vhost-user.h
header file.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net-stub.c | 1 -
hw/net/vhost_net.c | 7 ++-
include/net/net.h| 2 ++
include/net/vhost-user.h | 16
net
calls the new function.
The vhost-user implementation is updated to use net_client_set_link()
directly, thereby eliminating the unnecessary client lookup.
Signed-off-by: Laurent Vivier
---
include/net/net.h | 1 +
net/net.c | 32
net/vhost-user.c | 4
r app, the string is '/', then into
the linux-user glibc it becomes '', so to pass it to the host glibc
again we need to restore the '/' by doing '- 1'.
So I don't think your change is correct.
Thanks,
Laurent
(ast1030_evb_data.tmp_path);
+g_free(palmetto_data.tmp_path);
+g_free(ast2500_evb_data.tmp_path);
+g_free(ast2600_evb_data.tmp_path);
+g_free(ast1030_evb_data.tmp_path);
+
return ret;
}
Reviewed-by: Laurent Vivier
On 05/05/2025 08:30, Thomas Huth wrote:
On 02/05/2025 00.09, Philippe Mathieu-Daudé wrote:
Hello,
(patch merged as commit 90c066cd682).
On 11/8/22 14:24, Jonah Palmer wrote:
From: Laurent Vivier
This new command shows the status of a VirtIODevice, including
its corresponding vhost device
|
-le16_to_cpu(*(uint16_t *)(address + 4)));
+lduw_le_p((uint16_t *)(address + 4)));
/* Set supported receive descriptor mode */
e1000e_macreg_write(&d->e1000e,
Reviewed-by: Laurent Vivier
Tested-by: Laurent Vivier
E1000_RAH_AV | E1000_RAH_POOL_1 |
-le16_to_cpu(*(uint16_t *)(address + 4)));
+le16_to_cpu(safe16_address));
You could use lduw_le_p().
/* Set supported receive descriptor mode */
e1000e_macreg_write(&d->e1000e,
Thanks,
Laurent
Hi,
I think it could be interesting to have this information in the current release.
Thanks,
Laurent
On 14/03/2025 09:43, Laurent Vivier wrote:
cc: trivial
On 11/03/2025 14:27, Laurent Vivier wrote:
Add a chapter to explain how to use passt(1) instead of '-net user'.
passt
oject/qemu/-/issues/2827
Signed-off-by: Laurent Vivier
---
docs/system/devices/net.rst | 93 +
1 file changed, 93 insertions(+)
diff --git a/docs/system/devices/net.rst b/docs/system/devices/net.rst
index 2ab516d4b097..5f70b1039198 100644
--- a/docs/syst
cc: trivial
On 11/03/2025 14:27, Laurent Vivier wrote:
Add a chapter to explain how to use passt(1) instead of '-net user'.
passt(1) can be connected to QEMU using UNIX socket or vhost-user.
With vhost-user, migration of the VM is allowed and internal state of
passt(1) is transfere
oject/qemu/-/issues/2827
Signed-off-by: Laurent Vivier
---
docs/system/devices/net.rst | 100
1 file changed, 100 insertions(+)
diff --git a/docs/system/devices/net.rst b/docs/system/devices/net.rst
index 2ab516d4b097..a3efbdcabd1a 100644
--- a/docs/syst
,preserve-argv0:,ignore-family:"
+options=$(getopt -o ds:Q:S:e:hc:p:g:F:i: -l ${_longopts} -- "$@")
eval set -- "$options"
while true ; do
@@ -418,6 +427,10 @@ while true ; do
shift
PRESERVE_ARG0="$1"
;;
+-i|--ignore-family)
+shift
+IGNORE_FAMILY="$1"
+;;
*)
break
;;
Reviewed-by: Laurent Vivier
*)
echo "$cpu"
@@ -309,7 +309,13 @@ EOF
qemu_set_binfmts() {
# probe cpu type
-host_family=$(qemu_get_family)
+host_cpu=$(qemu_normalize ${HOST_ARCH:-$(uname -m)})
+host_family=$(eval echo \$${host_cpu}_family)
+
+if [ "$host_family" = "" ] ; then
+echo "INTERNAL ERROR: unknown host cpu $host_cpu" 1>&2
+exit 1
+fi
# register the interpreter for each cpu except for the native one
Reviewed-by: Laurent Vivier
-qemu="$QEMU_PATH/qemu-i386"
+if [ "$host_family" = "$family" ] ; then
+continue
fi
-qemu="$qemu$QEMU_SUFFIX"
-if [ "$host_family" != "$family" ] ; then
-$BINFMT_SET
-fi
+$BINFMT_SET
done
}
Reviewed-by: Laurent Vivier
On 18/02/2025 08:50, Markus Armbruster wrote:
Laurent Vivier writes:
The netdev reports NETDEV_VHOST_USER_CONNECTED event when
the chardev is connected, and NETDEV_VHOST_USER_DISCONNECTED
when it is disconnected.
The NETDEV_VHOST_USER_CONNECTED event includes the chardev id.
This allows a
On 14/02/2025 15:19, Daniel P. Berrangé wrote:
On Fri, Feb 14, 2025 at 01:59:20PM +, Daniel P. Berrangé wrote:
On Fri, Feb 14, 2025 at 11:18:55AM +0100, Laurent Vivier wrote:
On 14/02/2025 11:06, Markus Armbruster wrote:
Laurent Vivier writes:
The netdev reports
t;: { "netdev-id": "netdev0" } }
[automatic reconnection with reconnect-ms]
{ "timestamp": { "seconds": 1739538638, "microseconds": 354181 },
"event": "NETDEV_VHOST_USER_CONNECTED",
"data": { "netdev-id":
t;: { "netdev-id": "netdev0" } }
[automatic reconnection with reconnect-ms]
{ "timestamp": { "seconds": 1739538638, "microseconds": 354181 },
"event": "NETDEV_VHOST_USER_CONNECTED",
"data": { "netdev-id": &qu
On 14/02/2025 11:06, Markus Armbruster wrote:
Laurent Vivier writes:
The netdev reports NETDEV_VHOST_USER_CONNECTED event when
the chardev is connected, and NETDEV_VHOST_USER_DISCONNECTED
when it is disconnected.
The NETDEV_VHOST_USER_CONNECTED event includes the ChardevInfo
(label, filename
"data": { "netdev-id": "netdev0",
"info": { "frontend-open": true,
"filename": "unix:",
"label": "chr0" } } }
Tested-by: Stefano Brivio
Signed-off-by: Laur
"data": { "netdev-id": "netdev0",
"info": { "frontend-open": true,
"filename": "unix:",
"label": "chr0" } } }
Signed-off-by: Laurent Vivier
---
qapi/char.
Le 01/02/2025 à 20:36, Michael Tokarev a écrit :
17.01.2025 17:05, Laurent Vivier wrote:
CC: qemu-stable and qemu-trivial.
On 17/01/2025 12:17, Laurent Vivier wrote:
announce_self that sends a RARP packet after migration
or with announce_self QMP/HMP command doesn't work with
vhost becau
On 18/01/2025 21:20, Michael Tokarev wrote:
17.01.2025 14:17, Laurent Vivier wrote:
announce_self that sends a RARP packet after migration
or with announce_self QMP/HMP command doesn't work with
vhost because of the vnet headers.
announce_self is the only user of QEMU_NET_PACKET_FLAG_RA
Le 22/01/2025 à 22:20, Helge Deller a écrit :
* Laurent Vivier :
[...]
It would be cleaner to replace all the IFA_XXX by their QEMU_IFA_XXX.
Thanks for review, Laurent!
Below I've merged patch #1 and #7, as suggested by you.
Is this OK?
Yes, thanks
Can you review?
Reviewed-by: La
On 22/01/2025 17:51, Stefano Garzarella wrote:
On Wed, Jan 22, 2025 at 05:41:15PM +0100, Laurent Vivier wrote:
On 22/01/2025 17:20, Stefano Garzarella wrote:
On Wed, Jan 22, 2025 at 08:59:22AM -0500, Michael S. Tsirkin wrote:
On Wed, Jan 22, 2025 at 02:42:14PM +0100, Stefano Garzarella wrote
and use those instead.
Already existing IFA_XXX usages are converted to QEMU_IFA_XXX in a
followup-patch.
Signed-off-by: Helge Deller
Reviewed-by: Laurent Vivier
---
linux-user/fd-trans.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/linux-user/fd-trans.c b/linux-user/fd
A_LOCAL:
+case QEMU_IFA_ADDRESS:
break;
default:
qemu_log_mask(LOG_UNIMP, "Unknown target IFA type: %d\n",
I would put this as patch one and adding the QEMU_IFA_XXX enum in this one.
Otherwise both patches (1 and 7) look good.
Thanks,
Laurent
On 22/01/2025 17:20, Stefano Garzarella wrote:
On Wed, Jan 22, 2025 at 08:59:22AM -0500, Michael S. Tsirkin wrote:
On Wed, Jan 22, 2025 at 02:42:14PM +0100, Stefano Garzarella wrote:
On Tue, Jan 21, 2025 at 11:00:29AM +0100, Laurent Vivier wrote:
> In vhost_user_receive()
pport VHOST_USER_PROTOCOL_F_RARP.
Don't report the error if vhost_net_notify_migration_done()
returns -ENOTSUP (from vhost_user_migration_done())
Update vhost_net-stub.c to return -ENOTSUP too.
Signed-off-by: Laurent Vivier
---
hw/net/vhost_net-stub.c | 2 +-
net/vhost-user.c| 2 +-
2 files
ed)
Perhaps you should move the vhost_set_iotlb_callback() call from
vhost_start()/vhost_stop() to vhost_iommu_region_add()/vhost_iommu_region_del()?
Thanks,
Laurent
Le 19/01/2025 à 05:41, del...@kernel.org a écrit :
From: Helge Deller
Fixes this warning:
Unknown host IFA type: 11
Signed-off-by: Helge Deller
Reviewed-by: Laurent Vivier
---
linux-user/fd-trans.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux-user/fd-trans.c b/linux-user
), the argument is an in_addr structure.
Signed-off-by: Helge Deller
v2: (based on feedback by Laurent Vivier)
- refined commit message and restructure the copying of ip_mreqn fields
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index bbe2560927..4360543e20 100644
--- a/linux-user
Le 19/01/2025 à 05:41, del...@kernel.org a écrit :
From: Helge Deller
Fixes those warnings:
Unsupported host ancillary data: 0/8
Signed-off-by: Helge Deller
v2: (based on feedback by Laurent Vivier)
- add target_in_pktinfo struct and fix copying target_in_addr fields
---
linux-user
CC: qemu-stable and qemu-trivial.
On 17/01/2025 12:17, Laurent Vivier wrote:
announce_self that sends a RARP packet after migration
or with announce_self QMP/HMP command doesn't work with
vhost because of the vnet headers.
announce_self is the only user of QEMU_NET_PACKET_FLAG_RAW and
..@daynix.com
Signed-off-by: Laurent Vivier
---
net/dump.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/dump.c b/net/dump.c
index d7dd2ce461de..140215aa1054 100644
--- a/net/dump.c
+++ b/net/dump.c
@@ -155,7 +155,8 @@ static ssize_t filter_dump_receive_iov(NetFi
010: 9a2b 2c2d 2e2f
0x0020:
Reported-by: Xiaohui Li
Bug: https://issues.redhat.com/browse/RHEL-73891
Fixes: b9ad513e1876 ("net: Remove receive_raw()")
Cc: akihiko.od...@daynix.com
Signed-off-by: Laurent Vivier
---
ilter-dump and in
qemu_deliver_packet_iov().
Laurent Vivier (2):
net: Fix announce_self
net/dump: Correctly compute Ethernet packet offset
net/dump.c | 3 ++-
net/net.c | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
--
2.47.1
Add support of VHOST_USER_PROTOCOL_F_DEVICE_STATE in virtio-net
with vhost-user backend.
v2:
- Add stubs for the migration state transfer interface
Laurent Vivier (2):
vhost: Add stubs for the migration state transfer interface
virtio-net: vhost-user: Implement internal migration
include
Add support of VHOST_USER_PROTOCOL_F_DEVICE_STATE in virtio-net
with vhost-user backend.
Cc: Hanna Czenczek
Signed-off-by: Laurent Vivier
---
hw/net/virtio-net.c | 135
1 file changed, 112 insertions(+), 23 deletions(-)
diff --git a/hw/net/virtio
vhost_supports_device_state(), vhost_save_backend_state() and
vhost_load_backend_state().
Cc: Hanna Czenczek
Signed-off-by: Laurent Vivier
---
include/hw/virtio/vhost.h | 23 +++
1 file changed, 23 insertions(+)
diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h
On 15/01/2025 11:10, Michael S. Tsirkin wrote:
On Wed, Dec 18, 2024 at 03:34:53PM +0100, Laurent Vivier wrote:
Add support of VHOST_USER_PROTOCOL_F_DEVICE_STATE in virtio-net
with vhost-user backend.
Cc: Hanna Czenczek
Signed-off-by: Laurent Vivier
Breaks windows builds:
https
tr(NDM_RTA(ndm), nlh->nlmsg_len -
+ NLMSG_LENGTH(sizeof(*ndm)));
+}
+break;
case RTM_NEWROUTE:
case RTM_DELROUTE:
case RTM_GETROUTE:
Reviewed-by: Laurent Vivier
uot;Unknown host QEMU_IFLA type: %d\n",
rtattr->rta_type);
Reviewed-by: Laurent Vivier
Le 27/12/2024 à 21:54, del...@kernel.org a écrit :
From: Helge Deller
Share code with IP_ADD_MEMBERSHIP/IP_DROP_MEMBERSHIP.
Signed-off-by: Helge Deller
---
linux-user/syscall.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-u
1 - 100 of 2532 matches
Mail list logo