tools/libxl: Do not use remus teardown paths for non-remus guests
PATCH 1/1 tools/libxl: Do not use remus teardown paths for non-remus guests
It causes a suspend failure to emit
libxl: error: libxl_dom.c:2035:remus_teardown_done: Remus: failed to teardown device for guest with domid 17, rc -3
for all domains, including those not using remus at all.
--- tools/libxl/libxl_dom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_dom.c +1 -1
@@ -2007,7 +2007,7 @@ static void domain_suspend_done(libxl__egc *egc, dss->guest_evtchn.port, &dss->guest_evtchn_lockfd);if (!dss->remus) { -remus_teardown_done (egc, &dss->rds, rc); + dss->callback (egc, dss, rc);return ; }
Signature · 1 line
1.7.10.4
Quoted 20 lines · Andrew Cooper
It causes a suspend failure to emit
libxl: error: libxl_dom.c:2035:remus_teardown_done: Remus: failed to teardown device for guest with domid 17, rc -3
for all domains, including those not using remus at all.
Signed-off-by Andrew Cooper <[email protected]>CC Ian Campbell <[email protected]>CC Ian Jackson <[email protected]>CC Wei Liu <[email protected]>--- tools/libxl/libxl_dom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/libxl/libxl_dom.c +0
-0
tools/libxl/libxl_dom.c static void domain_suspend_done(libxl__egc *egc, · line 2010
Quoted 5 lines
tools/libxl/libxl_dom.c +1
-1@@ -2007,7 +2007,7 @@ static void domain_suspend_done(libxl__egc *egc, dss->guest_evtchn.port, &dss->guest_evtchn_lockfd);if (!dss->remus) { -remus_teardown_done (egc, &dss->rds, rc); + dss->callback (egc, dss, rc);
This no longer logs the rc (although the wording was wrong confusing before). I think it needs probably to log something about the suspend having failed if rc is set. Ian?
Quoted 3 lines
tools/libxl/libxl_dom.c +0
-0return ; }
Quoted 23 lines · Ian Campbell
Quoted 22 lines · Andrew Cooper
It causes a suspend failure to emit
libxl: error: libxl_dom.c:2035:remus_teardown_done: Remus: failed to teardown device for guest with domid 17, rc -3
for all domains, including those not using remus at all.
Signed-off-by Andrew Cooper <[email protected]>CC Ian Campbell <[email protected]>CC Ian Jackson <[email protected]>CC Wei Liu <[email protected]>--- tools/libxl/libxl_dom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/libxl/libxl_dom.c +0
-0@@ -2007,7 +2007,7 @@ static void domain_suspend_done(libxl__egc *egc, dss->guest_evtchn.port, &dss->guest_evtchn_lockfd);
Quoted 7 lines
tools/libxl/libxl_dom.c static void domain_suspend_done(libxl__egc *egc, · line 2010
Quoted 3 lines
tools/libxl/libxl_dom.c +1
-1if (!dss->remus) { -remus_teardown_done (egc, &dss->rds, rc); + dss->callback (egc, dss, rc);This no longer logs the rc (although the wording was wrong confusing before). I think it needs probably to log something about the suspend having failed if rc is set. Ian?
Ian said on IRC:
I don't think it needs to log. Having looked at the patch but not the context it seems like a probably-right change which should be backported.
So: Acked-by: Ian Campbell <[email protected]> and applied, thanks.
Quoted 5 lines
Quoted 4 lines
tools/libxl/libxl_dom.c +0
-0return ; }