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

Re: [Xen-devel] Question about evtchn_callback reentry



> But all device interrupts have privilege and  device interrupts are delivered
> through event channel.

Do they? Architecturally defined? I don't think so.

> That means ide interrupt may interrupt time interrup in dom0.
> It maybe not reasonable.

Linux doesn't care. If it did we could apply some form of prioritisation in
Linux's event-channel subsystem.

> If evtchn_callback reentry is allowed.
> There are 1024 event channels.
> In theory, dom0 kernal stack may be overflowed.
> Is there any mechanism to prevent this?

When running natively there are over 200 vectors available for allocation to
interrupt sources. In theory the kernel stack may be overflowed, and there
is no mechanism in Linux to prevent this.

> Since event channels have no concept of privilege.
> Why we allow evtchn_callback reentered ?

Mainly because it follows the model of interrupt delivery on native Linux.
We could deviate this default behaviour when running on Xen -- interrupt
handlers should be quick to run so really I would expect no performance
difference one way or the other. Do you understand why you are getting so
much reentrancy, and hence such a horrible performance degradation, on ia64?

 -- 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®.