From: "Jan Beulich" Subject: Re: [PATCH] evtchn: clean last_vcpu_id on EVTCHNOP_reset to avoid crash Date: Fri, 08 Aug 2014 16:03:16 +0100 Message-ID: <53E502D4020000780002AAC0@mail.emea.novell.com> References: <1407507752-26349-1-git-send-email-vkuznets@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XFlhM-0004eB-Q8 for xen-devel@lists.xenproject.org; Fri, 08 Aug 2014 15:03:16 +0000 In-Reply-To: <1407507752-26349-1-git-send-email-vkuznets@redhat.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Vitaly Kuznetsov Cc: xen-devel@lists.xenproject.org, Andrew Jones , David Vrabel List-Id: xen-devel@lists.xenproject.org >>> On 08.08.14 at 16:22, wrote: > --- a/xen/common/event_fifo.c > +++ b/xen/common/event_fifo.c > @@ -61,6 +61,15 @@ static struct evtchn_fifo_queue *lock_old_queue(const struct domain *d, > for ( try = 0; try < 3; try++ ) > { > v = d->vcpu[evtchn->last_vcpu_id]; > + > + if ( !v->evtchn_fifo ) > + { > + gdprintk(XENLOG_ERR, > + "domain %d vcpu %d has no control block!\n", > + d->domain_id, v->vcpu_id); But not gdprintk() please (which also prints the current vCPU/domain (confusing everyone looking at such a message), and make use of %pv. Jan