OSDN Git Service

vhost user: add rarp sending after live migration for legacy guest
authorThibaut Collet <thibaut.collet@6wind.com>
Fri, 9 Oct 2015 15:17:32 +0000 (17:17 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Oct 2015 11:34:49 +0000 (14:34 +0300)
commit3e866365e1eb6bcfa2d01c21debb05b9e47a47f7
treee729ff5a9a19d482984eb8e930c065ffa0d7b634
parentf6f56291de879827766d17b172465d4377ad2c11
vhost user: add rarp sending after live migration for legacy guest

A new vhost user message is added to allow QEMU to ask to vhost user backend to
broadcast a fake RARP after live migration for guest without GUEST_ANNOUNCE
capability.

This new message is sent only if the backend supports the new
VHOST_USER_PROTOCOL_F_RARP protocol feature.
The payload of this new message is the MAC address of the guest (not known by
the backend). The MAC address is copied in the first 6 bytes of a u64 to avoid
to create a new payload message type.

This new message has no equivalent ioctl so a new callback is added in the
userOps structure to send the request.

Upon reception of this new message the vhost user backend must generate and
broadcast a fake RARP request to notify the migration is terminated.

Signed-off-by: Thibaut Collet <thibaut.collet@6wind.com>
[Rebased and fixed checkpatch errors - Marc-AndrĂ©]
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
docs/specs/vhost-user.txt
hw/net/vhost_net.c
hw/virtio/vhost-user.c
include/hw/virtio/vhost-backend.h
include/net/vhost_net.h
net/vhost-user.c