Re: [PATCH] virtio_net: add link status handling

Anthony Liguori
2008-12-09T21:32:14Z

Mark McLoughlin wrote:
> Allow the host to inform us that the link is down by adding
> a VIRTIO_NET_F_STATUS which indicates that device status is
> available in virtio_net config.
>
> This is currently useful for simulating link down conditions
> (e.g. using proposed qemu 'set_link' monitor command) but
> would also be needed if we were to support device assignment
> via virtio.

It would be nice if the virtio-net card wrote some acknowledgement that
it has received the link status down/up events.

I'm thinking along the lines of doing live migration between two end
points that are not on the same subnet. It would be nice to be able to
signal link status down, have the guest acknowledge that it received it,
do the live migration, then do link status up so the guest reconnects
it's networking.

Regards,

Anthony Liguori