* [Qemu-devel] [7001] create qemu_file_set_error (Glauber Costa)
@ 2009-04-05 19:33 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-04-05 19:33 UTC (permalink / raw)
To: qemu-devel
Revision: 7001
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7001
Author: aliguori
Date: 2009-04-05 19:33:37 +0000 (Sun, 05 Apr 2009)
Log Message:
-----------
create qemu_file_set_error (Glauber Costa)
This is mainly for consistency, since we don't want
anything outside of savevm setting it explicitly. There
are current no users of that in qemu tree, but there
are potential candidates on kvm-userspace. And avi
is a nice guy, let's be nice with him.
Based on a patch by Yaniv Kamay
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Modified Paths:
--------------
branches/stable_0_10/hw/hw.h
branches/stable_0_10/savevm.c
Modified: branches/stable_0_10/hw/hw.h
===================================================================
--- branches/stable_0_10/hw/hw.h 2009-04-05 19:33:33 UTC (rev 7000)
+++ branches/stable_0_10/hw/hw.h 2009-04-05 19:33:37 UTC (rev 7001)
@@ -67,6 +67,7 @@
uint64_t qemu_get_be64(QEMUFile *f);
int qemu_file_rate_limit(QEMUFile *f);
int qemu_file_has_error(QEMUFile *f);
+void qemu_file_set_error(QEMUFile *f);
/* Try to send any outstanding data. This function is useful when output is
* halted due to rate limiting or EAGAIN errors occur as it can be used to
Modified: branches/stable_0_10/savevm.c
===================================================================
--- branches/stable_0_10/savevm.c 2009-04-05 19:33:33 UTC (rev 7000)
+++ branches/stable_0_10/savevm.c 2009-04-05 19:33:37 UTC (rev 7001)
@@ -366,6 +366,11 @@
return f->has_error;
}
+void qemu_file_set_error(QEMUFile *f)
+{
+ f->has_error = 1;
+}
+
void qemu_fflush(QEMUFile *f)
{
if (!f->put_buffer)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-05 19:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-05 19:33 [Qemu-devel] [7001] create qemu_file_set_error (Glauber Costa) Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).