|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/events/fifo: Consume unprocessed events when a CPU dies
On 06/30/2015 05:51 AM, Ross Lagerwall wrote: On 06/29/2015 02:32 PM, Boris Ostrovsky wrote:On 06/29/2015 06:19 AM, Ross Lagerwall wrote:On 06/19/2015 05:06 PM, David Vrabel wrote:On 19/06/15 17:02, Boris Ostrovsky wrote:On 06/19/2015 11:15 AM, Ross Lagerwall wrote:When a CPU is offlined, there may be unprocessed events on a port forthat CPU. If the port is subsequently reused on a different CPU, it could be in an unexpected state with the link bit set, resulting ininterrupts being missed. Fix this by consuming any unprocessed events In xen_evtchn_close(). We should be getting there (roughly) as cpu_die() -> xen_cpu_die() -> xen_smp_intr_free() -> unbind_from_irqhandler(). In fact, this path is taken right before cpu_down() sends CPU_DEAD notifications. I think cleaning up in xen_evtchn_close() is better because it is possible to close event channel for reasons other than CPU going away, in which case we also may need to deal with unprocessed events. (BTW, I noticed that you are cleaning up fifo events only. Do we need to do the same for 2-level?) -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |