Skip to contentSkip to conversation

tools/libxl: Do not use remus teardown paths for non-remus guests

PATCH In review Andrew Cooper 2 participants 3 messages Feb 19, 2015

lore
Share & tools
lore
#0 lore raw

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.

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 +1 -1
index 48d661a..a16d4a1 100644
@@ -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
#1 lore raw
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.

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
index 48d661a..a16d4a1 100644

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 -0
         return;
     }
 
#2 lore raw
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.

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
index 48d661a..a16d4a1 100644
@@ -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 -1
     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?

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 -0
         return;
     }