qemu:virtio-net: Add a virtqueue for control commands from the guest (Alex Williamson)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Feb 2009 22:36:16 +0000 (22:36 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Feb 2009 22:36:16 +0000 (22:36 +0000)
commit1c9e3938b6d6fa94e66be6c8a8e63fe88ff3bc63
tree7044b25685fa0a2ce52ddcdce296f851e897b1ce
parente06f2520e2e05c639e46de76bc9401a6230c2b3c
qemu:virtio-net: Add a virtqueue for control commands from the guest (Alex Williamson)

This will be used for RX mode, MAC table, VLAN table control, etc...

The control transaction consists of one or more "out" sg entries and
one or more "in" sg entries.  The first out entry contains a header
defining the class and command.  Additional out entries may provide
data for the command.  A response via the ack entry is required
and the guest will typically be waiting for it.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6536 c046a42c-6fe2-441c-8c8c-71466251a162
hw/virtio-net.c
hw/virtio-net.h