xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Vasiliy Tolstov <v.tolstov@selfip.ru>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: xen 4.3 test report
Date: Sat, 25 May 2013 07:40:58 -0400	[thread overview]
Message-ID: <20130525114058.GH2418@localhost.localdomain> (raw)
In-Reply-To: <CACaajQuZC+HDgkx-gfg=8S2n95z2fHuGYrNPe+rfCB7W1e5V0w@mail.gmail.com>

On Sat, May 25, 2013 at 12:15:44AM +0400, Vasiliy Tolstov wrote:
> 2013/5/24 George Dunlap <George.Dunlap@eu.citrix.com>:
> >
> > Did you mean xm save or xl save?
> 
> 
> In my case xl save crash domU with messages like followind. And domU
> crashes centos 2.6.18 and 2.6.32 (xenlinux) and never 3.8.6 kernel and
> 3.4...

Is the 3.8.6 crashing at the same point?
> 
> [ 1826.587110] PM: late freeze of devices complete after 0.048 msecs
> [ 1826.591220] ------------[ cut here ]------------
> [ 1826.591220] kernel BUG at
> /build/buildd-linux_3.2.41-2-amd64-Wvc92F/linux-3.2.41/drivers/xen/events.c:1489!

That looks to be this (https://git.kernel.org/cgit/linux/kernel/git/bwh/linux-3.2.y.git/tree/drivers/xen/events.c)

	if (HYPERVISOR_event_channel_op(EVTCHNOP_bind_virq,
						&bind_virq) != 0)
			BUG();

which is odd. Would you be able to instrument evtchn_bind_virq (this is
in Xen) with some printks, like this (hand't compile tested it):

diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c
index 2d7afc9..c109cee 100644
--- a/xen/common/event_channel.c
+++ b/xen/common/event_channel.c
@@ -270,24 +270,34 @@ static long evtchn_bind_virq(evtchn_bind_virq_t *bind)
     int            port, virq = bind->virq, vcpu = bind->vcpu;
     long           rc = 0;
 
-    if ( (virq < 0) || (virq >= ARRAY_SIZE(v->virq_to_evtchn)) )
+    if ( (virq < 0) || (virq >= ARRAY_SIZE(v->virq_to_evtchn)) ) }
+gdprintk(XENLOG_WARNING, "d%dv%d [%s:%d], virq:%d, rc:%ld\n", d->domain_id,
+	vcpu, __func__,__LINE__, virq, -EINVAL);
         return -EINVAL;
-
-    if ( virq_is_global(virq) && (vcpu != 0) )
+    }
+    if ( virq_is_global(virq) && (vcpu != 0) ) {
+gdprintk(XENLOG_WARNING, "d%dv%d [%s:%d], virq_is_global:%d, rc:%ld\n", d->domain_id,
+	vcpu, __func__,__LINE__, virq_is_global(virq), -EINVAL);
         return -EINVAL;
-
+    }
     if ( (vcpu < 0) || (vcpu >= d->max_vcpus) ||
-         ((v = d->vcpu[vcpu]) == NULL) )
+         ((v = d->vcpu[vcpu]) == NULL) ) {
+gdprintk(XENLOG_WARNING, "d%dv%d [%s:%d], v:%p, max_vcpus:%d, rc:%ld\n", d->domain_id,
+	vcpu, __func__,__LINE__, v, d->max_vcpus, -ENOENT);
         return -ENOENT;
-
+    }
     spin_lock(&d->event_lock);
 
-    if ( v->virq_to_evtchn[virq] != 0 )
+    if ( v->virq_to_evtchn[virq] != 0 ) {
+gdprintk(XENLOG_WARNING, "d%dv%d [%s:%d], v:%p, evtchn:%d, rc:%ld\n", d->domain_id,
+	vcpu, __func__,__LINE__, v->virq_to_evtchn[virq] , -EEXIST);
         ERROR_EXIT(-EEXIST);
-
-    if ( (port = get_free_port(d)) < 0 )
+    }
+    if ( (port = get_free_port(d)) < 0 ) {
+gdprintk(XENLOG_WARNING, "d%dv%d [%s:%d], port:%d, rc:%ld\n", d->domain_id,
+	vcpu, __func__,__LINE__, port, port);
         ERROR_EXIT(port);
-
+    }
     chn = evtchn_from_port(d, port);
     chn->state          = ECS_VIRQ;
     chn->notify_vcpu_id = vcpu;

  reply	other threads:[~2013-05-25 11:40 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24 10:40 xen 4.3 test report Vasiliy Tolstov
2013-05-24 12:46 ` George Dunlap
2013-05-24 13:15   ` Vasiliy Tolstov
2013-05-24 14:11   ` Konrad Rzeszutek Wilk
2013-05-24 14:38     ` George Dunlap
2013-05-24 20:15       ` Vasiliy Tolstov
2013-05-25 11:40         ` Konrad Rzeszutek Wilk [this message]
2013-05-27  5:32           ` Vasiliy Tolstov
2013-05-28 15:31             ` Konrad Rzeszutek Wilk
2013-05-28 20:58               ` Vasiliy Tolstov
2013-05-31  4:56           ` Vasiliy Tolstov
2013-06-03 14:08             ` Konrad Rzeszutek Wilk
2013-06-04 12:17               ` Vasiliy Tolstov
2013-06-05 18:50                 ` Is: events not being cleared during fast migration over InfiniBand Was: " Konrad Rzeszutek Wilk
2013-06-06  9:23                   ` George Dunlap
2013-06-06  9:25                   ` George Dunlap
2013-06-13 11:22                     ` Vasiliy Tolstov
2013-06-13 13:14                       ` Konrad Rzeszutek Wilk
2013-06-13 13:17                         ` Vasiliy Tolstov
2013-06-13 11:24                   ` Vasiliy Tolstov
2013-05-25 11:27       ` Konrad Rzeszutek Wilk
2013-05-24 20:13     ` Vasiliy Tolstov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130525114058.GH2418@localhost.localdomain \
    --to=konrad.wilk@oracle.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=v.tolstov@selfip.ru \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).