diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-07-05 13:49:54 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-07-15 09:51:38 +0200 |
commit | 5698346391b306c2c84358c68ee897c095d714cc (patch) | |
tree | 1591cd7c455999f77b7cd8d17805fef314651317 /stubs/vm-stop.c | |
parent | f0f0fdfeec6c67ad374114ecc4b3e3ccde5e94d2 (diff) | |
download | hqemu-5698346391b306c2c84358c68ee897c095d714cc.zip hqemu-5698346391b306c2c84358c68ee897c095d714cc.tar.gz |
cpus: Add return value for vm_stop()
If flushing the block devices fails, return an error. The VM is stopped
anyway.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'stubs/vm-stop.c')
-rw-r--r-- | stubs/vm-stop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stubs/vm-stop.c b/stubs/vm-stop.c index 4568935..f82c897 100644 --- a/stubs/vm-stop.c +++ b/stubs/vm-stop.c @@ -1,7 +1,7 @@ #include "qemu-common.h" #include "sysemu/sysemu.h" -void vm_stop(RunState state) +int vm_stop(RunState state) { abort(); } |