From 0c90a8d25a2cfe91ceec0729c2238c911768a0bf Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 15 Jul 2015 14:35:56 +0100 Subject: [PATCH] libxl: events: Do not abort remus with ERROR_TIMEOUT When the timeout set for prompting the next remus iteration fires, we should not treat the ERROR_TIMEDOUT as an error. Bug in 31c836f4 "libxl: events: Permit timeouts to signal ao abort". Reported-by: Yang Hongyang Signed-off-by: Ian Jackson CC: Yang Hongyang CC: Wei Liu CC: Ian Campbell Acked-by: Ian Campbell Acked-by: Wei Liu Acked-by: Yang Hongyang --- tools/libxl/libxl_dom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 81adb3d532..4cb247a685 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -2024,6 +2024,9 @@ static void remus_next_checkpoint(libxl__egc *egc, libxl__ev_time *ev, STATE_AO_GC(dss->ao); + if (rc == ERROR_TIMEDOUT) /* As intended */ + rc = 0; + /* * Time to checkpoint the guest again. We return 1 to libxc * (xc_domain_save.c). in order to continue executing the infinite loop -- 2.30.2