]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit03c788f1ee6fbe6af18eb8f594e4f7ea86c4a9bc
treecafaba8f442a59c4fde6bd25a551c711a8cbe785
parent761d344981363ce09bd1d8b959fc49825859c6b3
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