]> git.proxmox.com Git - mirror_qemu.git/commit
vhost-net: move stubs to a separate file
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Feb 2019 17:35:48 +0000 (18:35 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Feb 2019 17:28:01 +0000 (12:28 -0500)
commit7b28c61524540e325e241aa31e6f10e99a5a9516
treeee5dcb9fc5a246408a10180ea496b9a9486e9326
parentfc3dbb90f2eb069801bfb4cfe9cbc83cf9c5f4a9
vhost-net: move stubs to a separate file

There is no reason for CONFIG_VHOST_NET to be specific to a single target;
it is a host feature that can be add to all targets, as long as they support
the virtio-net device.  Currently CONFIG_VHOST_NET depends on CONFIG_KVM,
but ioeventfd support is present in the core memory API and works with
other accelerators as well.

As a first step, move the vhost-net stubs to a separate file.  Later, they
will become conditional on CONFIG_VIRTIO_NET, which is not available in .c
files.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1543851204-41186-2-git-send-email-pbonzini@redhat.com>
Message-Id: <1550165756-21617-2-git-send-email-pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/Makefile.objs
hw/net/vhost_net-stub.c [new file with mode: 0644]
hw/net/vhost_net.c