diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-28 17:22:57 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-28 19:40:56 +0200 |
commit | 3e1caa5f76a9104a0d574b0f28b3dafe986a8408 (patch) | |
tree | bed937dd724bd2c6d2eb2a2678606f52fe1407a3 /qemu-tool.c | |
parent | 1ceee0d5cc841fc9ca8e72b81450b598ab307f14 (diff) | |
download | qemu-3e1caa5f76a9104a0d574b0f28b3dafe986a8408.zip |
iostatus: reorganize io error code
Move the common part of IDE/SCSI/virtio error handling to the block
layer. The new function bdrv_error_action subsumes all three of
bdrv_emit_qmp_error_event, vm_stop, bdrv_iostatus_set_err.
The same scheme will be used for errors in block jobs.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-tool.c')
-rw-r--r-- | qemu-tool.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qemu-tool.c b/qemu-tool.c index 18205babab..f2f98138ce 100644 --- a/qemu-tool.c +++ b/qemu-tool.c @@ -19,6 +19,7 @@ #include "qemu-log.h" #include "migration.h" #include "main-loop.h" +#include "sysemu.h" #include "qemu_socket.h" #include "slirp/libslirp.h" @@ -37,6 +38,11 @@ const char *qemu_get_vm_name(void) Monitor *cur_mon; +void vm_stop(RunState state) +{ + abort(); +} + int monitor_cur_is_qmp(void) { return 0; |