tools/lguest: handle device reset correctly in example launcher.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 13 Feb 2015 06:43:40 +0000 (17:13 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 13 Feb 2015 06:45:45 +0000 (17:15 +1030)
commitd2dbdac336e8ea1296fd08c4eb8a28daacec1817
treecafaba8f442a59c4fde6bd25a551c711a8cbe785
parenta2e199915725e666772dd077dbffbef154e58096
tools/lguest: handle device reset correctly in example launcher.

The example launcher doesn't reset the queue_enable like the spec says
we have to.  Plus, we should reset the size in case they negotiated
a different (smaller) one.

This is easy to test by unloading and reloading a virtio module.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/lguest/lguest.c