]> Git Repo - qemu.git/commit - vl.c
net: clean up network at qemu process termination
authorAmos Kong <[email protected]>
Tue, 11 Dec 2012 14:20:15 +0000 (22:20 +0800)
committerStefan Hajnoczi <[email protected]>
Mon, 7 Jan 2013 09:43:21 +0000 (10:43 +0100)
commitf30dbae63a46f23116715dff8d130c7d01ff02be
tree48cb59af5643df31a1fd65ebe87240d0405d3f87
parent2c0331f4f7d241995452b99afaf0aab00493334a
net: clean up network at qemu process termination

We don't clean up network if fails to parse "-device" parameters without
calling net_cleanup(). I touch a problem, the tap device which is
created by qemu-ifup script could not be removed by qemu-ifdown script.
Some similar problems also exist in vl.c

In this patch, if network initialization successes, a cleanup function
will be registered to be called at qemu process termination.

Signed-off-by: Amos Kong <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
vl.c
This page took 0.024152 seconds and 4 git commands to generate.