[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] hvm/vpt: Check that an irq is not blocked before waking the vcpu


  • To: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • Date: Mon, 09 Mar 2009 12:01:58 +0000
  • Cc:
  • Delivery-date: Mon, 09 Mar 2009 05:02:34 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcmgrKvSukMyj8y0Q3eA2yINWJoMTAAAi0Nr
  • Thread-topic: [Xen-devel] [PATCH] hvm/vpt: Check that an irq is not blocked before waking the vcpu

On 09/03/2009 11:45, "George Dunlap" <George.Dunlap@xxxxxxxxxxxxx> wrote:

> Currently, when a timer fires for a vpt interrupt, the interrupt
> handler calls vcpu_kick() without checking to see if the IRQ is
> blocked.  This causes the vcpu to wake up out of a halt when it
> shouldn't.
> 
> Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

Only one question: could this race an unmask operation? Before this patch,
pt_irq_masked() is only executed for the local vcpu, so such races may not
have been considered.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.