mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
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> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6998 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
b161d123e7
commit
4dabe24883
2 changed files with 6 additions and 0 deletions
5
savevm.c
5
savevm.c
|
@ -370,6 +370,11 @@ int qemu_file_has_error(QEMUFile *f)
|
|||
return f->has_error;
|
||||
}
|
||||
|
||||
void qemu_file_set_error(QEMUFile *f)
|
||||
{
|
||||
f->has_error = 1;
|
||||
}
|
||||
|
||||
void qemu_fflush(QEMUFile *f)
|
||||
{
|
||||
if (!f->put_buffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue