qemu-e2k/net
Kevin Wolf ee8a1c63d3 net/vhost-vdpa: Fix device compatibility check
vhost-vdpa works only with specific devices. At startup, it second
guesses what the command line option handling will do and error out if
it thinks a non-virtio device will attach to them.

This second guessing is not only ugly, it can lead to wrong error
messages ('-device floppy,netdev=foo' should complain about an unknown
property, not about the wrong kind of network device being attached) and
completely ignores hotplugging.

Drop the old checks and implement .check_peer_type() instead to fix
this. As a nice side effect, it also removes one more dependency on the
legacy QemuOpts infrastructure and even reduces the code size.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20211008133442.141332-4-kwolf@redhat.com>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2021-10-15 16:05:53 +02:00
..
can
announce.c
checksum.c net/checksum: Remove unused variable in net_checksum_add_iov 2021-07-26 07:06:58 -10:00
clients.h
colo-compare.c Fixed calculation error of pkt->header_size in fill_pkt_tcp_info() 2021-06-11 10:30:13 +08:00
colo-compare.h Add the function of colo_compare_cleanup 2021-06-11 10:30:13 +08:00
colo.c Add a function named packet_new_nocopy for COLO. 2021-06-11 10:30:13 +08:00
colo.h Add a function named packet_new_nocopy for COLO. 2021-06-11 10:30:13 +08:00
dump.c
eth.c
filter-buffer.c
filter-mirror.c Optimize the function of filter_send 2021-06-11 10:30:13 +08:00
filter-replay.c
filter-rewriter.c Add a function named packet_new_nocopy for COLO. 2021-06-11 10:30:13 +08:00
filter.c
hub.c
hub.h
l2tpv3.c
meson.build configure, meson: move netmap detection to meson 2021-10-14 09:50:57 +02:00
net.c net: Zero sockaddr_in in parse_host_port() 2021-08-26 17:02:00 +01:00
netmap.c
queue.c
slirp.c
socket.c
tap_int.h net: Added SetSteeringEBPF method for NetClientState. 2021-06-04 15:25:46 +08:00
tap-bsd.c -----BEGIN PGP SIGNATURE----- 2021-06-04 13:38:49 +01:00
tap-linux.c net: Added SetSteeringEBPF method for NetClientState. 2021-06-04 15:25:46 +08:00
tap-linux.h net/tap: Added TUNSETSTEERINGEBPF code. 2021-06-04 15:25:46 +08:00
tap-solaris.c net: Added SetSteeringEBPF method for NetClientState. 2021-06-04 15:25:46 +08:00
tap-stub.c net: Added SetSteeringEBPF method for NetClientState. 2021-06-04 15:25:46 +08:00
tap-win32.c
tap.c vhost_net: do not assume nvqs is always 2 2021-09-04 17:34:05 -04:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h
util.c
util.h
vde.c
vhost-user-stub.c
vhost-user.c net/vhost-user: Fix device compatibility check 2021-10-15 16:05:46 +02:00
vhost-vdpa.c net/vhost-vdpa: Fix device compatibility check 2021-10-15 16:05:53 +02:00