* [PATCH] propagate errors on failed migration.
@ 2009-04-06 13:57 Glauber Costa
2009-04-11 11:12 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Glauber Costa @ 2009-04-06 13:57 UTC (permalink / raw)
To: kvm; +Cc: avi
We're currently ignoring any errors if dirty logging fails.
Set error on migration file if we're unable to put dirty logging
on.
Signed-off-by: Glauber Costa <glommer@redhat.com>
---
qemu/vl.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/qemu/vl.c b/qemu/vl.c
index 8aa9ebc..4da73b8 100644
--- a/qemu/vl.c
+++ b/qemu/vl.c
@@ -3226,8 +3226,15 @@ static int ram_save_block(QEMUFile *f)
int found = 0;
while (addr < phys_ram_size) {
- if (kvm_enabled() && current_addr == 0)
- kvm_update_dirty_pages_log(); /* FIXME: propagate errors */
+ if (kvm_enabled() && current_addr == 0) {
+ int r;
+ r = kvm_update_dirty_pages_log();
+ if (r) {
+ fprintf(stderr, "%s: update dirty pages log failed %d\n", __FUNCTION__, r);
+ qemu_file_set_error(f);
+ return 0;
+ }
+ }
if (cpu_physical_memory_get_dirty(current_addr, MIGRATION_DIRTY_FLAG)) {
uint8_t ch;
--
1.5.6.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] propagate errors on failed migration.
2009-04-06 13:57 [PATCH] propagate errors on failed migration Glauber Costa
@ 2009-04-11 11:12 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-04-11 11:12 UTC (permalink / raw)
To: Glauber Costa; +Cc: kvm
Glauber Costa wrote:
> We're currently ignoring any errors if dirty logging fails.
> Set error on migration file if we're unable to put dirty logging
> on.
>
Applied, thanks.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-11 11:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 13:57 [PATCH] propagate errors on failed migration Glauber Costa
2009-04-11 11:12 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox