diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-03-18 10:58:47 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-03-18 10:58:47 +0000 |
commit | 45b676a245020c41675e97fd6a5d5a629d110d0e (patch) | |
tree | 5351bb610bd772195d3f00cfc31dd8fe7c8b8819 /tools/ioemu/vl.c | |
parent | 566fa0e0bfb4a864e1d52cafd9bb5d6412792863 (diff) | |
download | xen-45b676a245020c41675e97fd6a5d5a629d110d0e.tar.gz xen-45b676a245020c41675e97fd6a5d5a629d110d0e.tar.bz2 xen-45b676a245020c41675e97fd6a5d5a629d110d0e.zip |
Use ioemu block drivers through blktap.
Add support for a tap:ioemu pseudo driver. Devices using this driver
won't use tapdisk (containing the code duplication) any more, but will
connect to the qemu-dm of the domain. In this way no working
configuration should be broken right now as you can still choose to
use the tapdisk drivers.
Signed-off-by: Kevin Wolf <kwolf@suse.de>
Diffstat (limited to 'tools/ioemu/vl.c')
-rw-r--r-- | tools/ioemu/vl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/ioemu/vl.c b/tools/ioemu/vl.c index 51d89faa16..9e3699705f 100644 --- a/tools/ioemu/vl.c +++ b/tools/ioemu/vl.c @@ -6272,6 +6272,12 @@ void qemu_system_powerdown_request(void) cpu_interrupt(cpu_single_env, CPU_INTERRUPT_EXIT); } +static void qemu_sighup_handler(int signal) +{ + fprintf(stderr, "Received SIGHUP, terminating.\n"); + exit(0); +} + void main_loop_wait(int timeout) { IOHandlerRecord *ioh; @@ -7980,7 +7986,7 @@ int main(int argc, char **argv) #ifndef CONFIG_STUBDOM /* Unblock SIGTERM and SIGHUP, which may have been blocked by the caller */ - signal(SIGHUP, SIG_DFL); + signal(SIGHUP, qemu_sighup_handler); sigemptyset(&set); sigaddset(&set, SIGTERM); sigaddset(&set, SIGHUP); |