* [PATCH] tools/libxl: Do not use remus teardown paths for non-remus guests
@ 2015-02-19 12:43 Andrew Cooper
2015-02-19 16:44 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cooper @ 2015-02-19 12:43 UTC (permalink / raw)
To: Xen-devel; +Cc: Andrew Cooper, Ian Jackson, Ian Campbell, Wei Liu
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 <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
---
tools/libxl/libxl_dom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
index 48d661a..a16d4a1 100644
--- a/tools/libxl/libxl_dom.c
+++ b/tools/libxl/libxl_dom.c
@@ -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;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tools/libxl: Do not use remus teardown paths for non-remus guests
2015-02-19 12:43 [PATCH] tools/libxl: Do not use remus teardown paths for non-remus guests Andrew Cooper
@ 2015-02-19 16:44 ` Ian Campbell
2015-02-19 17:21 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2015-02-19 16:44 UTC (permalink / raw)
To: Andrew Cooper, Ian Jackson; +Cc: Wei Liu, Xen-devel
On Thu, 2015-02-19 at 12:43 +0000, Andrew Cooper wrote:
> 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 <andrew.cooper3@citrix.com>
> CC: Ian Campbell <Ian.Campbell@citrix.com>
> CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
> CC: Wei Liu <wei.liu2@citrix.com>
> ---
> tools/libxl/libxl_dom.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
> index 48d661a..a16d4a1 100644
> --- a/tools/libxl/libxl_dom.c
> +++ b/tools/libxl/libxl_dom.c
> @@ -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?
> return;
> }
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tools/libxl: Do not use remus teardown paths for non-remus guests
2015-02-19 16:44 ` Ian Campbell
@ 2015-02-19 17:21 ` Ian Campbell
0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2015-02-19 17:21 UTC (permalink / raw)
To: Andrew Cooper; +Cc: Wei Liu, Ian Jackson, Xen-devel
On Thu, 2015-02-19 at 16:44 +0000, Ian Campbell wrote:
> On Thu, 2015-02-19 at 12:43 +0000, Andrew Cooper wrote:
> > 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 <andrew.cooper3@citrix.com>
> > CC: Ian Campbell <Ian.Campbell@citrix.com>
> > CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
> > CC: Wei Liu <wei.liu2@citrix.com>
> > ---
> > tools/libxl/libxl_dom.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
> > index 48d661a..a16d4a1 100644
> > --- a/tools/libxl/libxl_dom.c
> > +++ b/tools/libxl/libxl_dom.c
> > @@ -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?
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 <ian.campbell@citrix.com>
and applied, thanks.
>
> > return;
> > }
> >
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-19 17:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-19 12:43 [PATCH] tools/libxl: Do not use remus teardown paths for non-remus guests Andrew Cooper
2015-02-19 16:44 ` Ian Campbell
2015-02-19 17:21 ` Ian Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.