Re: Interrupt flow in the NetBSD kernel

2015-06-24 Thread Matt Thomas
On Jun 23, 2015, at 12:17 PM, Reinoud Zandijk rein...@netbsd.org wrote: Hi Matt, On Sun, Jun 21, 2015 at 01:42:38PM -0700, Matt Thomas wrote: On Jun 21, 2015, at 12:02 PM, Reinoud Zandijk rein...@netbsd.org wrote: On Sun, Jun 21, 2015 at 08:01:47AM -0700, Matt Thomas wrote: IMO,

Re: Interrupt flow in the NetBSD kernel

2015-06-23 Thread Reinoud Zandijk
Hi Matt, On Sun, Jun 21, 2015 at 01:42:38PM -0700, Matt Thomas wrote: On Jun 21, 2015, at 12:02 PM, Reinoud Zandijk rein...@netbsd.org wrote: On Sun, Jun 21, 2015 at 08:01:47AM -0700, Matt Thomas wrote: IMO, softints are an abberation and should really be thread priorities and dealt by

Re: Interrupt flow in the NetBSD kernel

2015-06-22 Thread David Young
On Sun, Jun 21, 2015 at 08:01:47AM -0700, Matt Thomas wrote: On Jun 21, 2015, at 7:30 AM, Kamil Rytarowski n...@gmx.com wrote: I have got few questions regarding the interrupt flow in the kernel. Please tell whether my understanding is correct. You are confusing interrupts with

Re: Interrupt flow in the NetBSD kernel

2015-06-22 Thread Kamil Rytarowski
On 22.06.2015 19:07, David Young wrote: On Sun, Jun 21, 2015 at 08:01:47AM -0700, Matt Thomas wrote: On Jun 21, 2015, at 7:30 AM, Kamil Rytarowski n...@gmx.com wrote: I have got few questions regarding the interrupt flow in the kernel. Please tell whether my understanding is correct. You

Re: Interrupt flow in the NetBSD kernel

2015-06-22 Thread Matt Thomas
On Jun 21, 2015, at 12:02 PM, Reinoud Zandijk rein...@netbsd.org wrote: Hi Matt, On Sun, Jun 21, 2015 at 08:01:47AM -0700, Matt Thomas wrote: IMO, softints are an abberation and should really be thread priorities and dealt by the thread scheduler. Each level of softint as a kernel

Interrupt flow in the NetBSD kernel

2015-06-21 Thread Kamil Rytarowski
I have got few questions regarding the interrupt flow in the kernel. Please tell whether my understanding is correct. There are software and hardware interrupts. Part of the hardware interrupts are maskable with the spl(9) levels. Some are unmaskable and must be handled unconditionally, like the

Re: Interrupt flow in the NetBSD kernel

2015-06-21 Thread Matt Thomas
On Jun 21, 2015, at 7:30 AM, Kamil Rytarowski n...@gmx.com wrote: I have got few questions regarding the interrupt flow in the kernel. Please tell whether my understanding is correct. You are confusing interrupts with exceptions. Interrupts are asynchronous events. Exceptions are

Re: Interrupt flow in the NetBSD kernel

2015-06-21 Thread Kamil Rytarowski
On 21.06.2015 17:01, Matt Thomas wrote: On Jun 21, 2015, at 7:30 AM, Kamil Rytarowski n...@gmx.com wrote: I have got few questions regarding the interrupt flow in the kernel. Please tell whether my understanding is correct. You are confusing interrupts with exceptions. Interrupts are

Re: Interrupt flow in the NetBSD kernel

2015-06-21 Thread Reinoud Zandijk
Hi Matt, On Sun, Jun 21, 2015 at 08:01:47AM -0700, Matt Thomas wrote: IMO, softints are an abberation and should really be thread priorities and dealt by the thread scheduler. Each level of softint as a kernel thread that gets woken up by condition variables? Could in a virtualisation context