Commit eb4f0f0
committed
qemu: use stream netdev with reconnect for socketVMNet networking
Use -netdev stream instead of legacy -netdev socket for socketVMNet
networking on macOS Intel (QEMU backend), with version-appropriate
reconnect. Applies to all socketVMNet modes (bridged, shared, host).
QEMU >= 9.2: stream with reconnect-ms=500
QEMU 8.0-9.1: stream with reconnect=1 (seconds granularity)
QEMU 7.2-7.9: stream without reconnect
QEMU < 7.2: fall back to socket (no stream support)
The stream backend connects directly to the socket_vmnet UNIX socket,
eliminating the pre-dialed fd approach. When reconnect is available,
QEMU automatically re-establishes the connection after link failures,
recovering VM networking without manual restart.
In testing, stream netdev showed ~2x throughput improvement over
legacy socket netdev (~1.84 Gbits/sec vs ~970 Mbits/sec).
Feature-detected via -netdev help output; version checked for the
reconnect parameter which was renamed from reconnect (8.0) to
reconnect-ms (9.2) and the old form removed in 10.2.
Signed-off-by: Lon C. Lundgren <lon@ocelot.net>1 parent 2d4314e commit eb4f0f0
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
819 | | - | |
820 | | - | |
821 | | - | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
822 | 830 | | |
823 | 831 | | |
824 | 832 | | |
| |||
0 commit comments