virtio: Complete feature negotation before updating status
authorMark McLoughlin <markmc@redhat.com>
Sun, 15 Jun 2008 13:20:50 +0000 (23:20 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 15 Jun 2008 20:46:16 +0000 (13:46 -0700)
commitb92dea67cc66970cda6b5b11895d08e35b4618e7
tree556e842834c7316f57f3f27fea6b8622d74fde8e
parent0269c5c6d9a9de22715ecda589730547435cd3e8
virtio: Complete feature negotation before updating status

lguest (in rusty's use-tun-ringfd patch) assumes that the
guest has updated its feature bits before setting its status
to VIRTIO_CONFIG_S_DRIVER_OK.

That's pretty reasonable, so let's make it so.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/virtio/virtio.c