Source-Changes archive

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

CVS commit: [netbsd-3] src/sys/arch/xen



Module Name:    src
Committed By:   tron
Date:           Thu Apr 28 10:18:56 UTC 2005

Modified Files:
        src/sys/arch/xen/include [netbsd-3]: intr.h pci_machdep.h
        src/sys/arch/xen/xen [netbsd-3]: pciide_machdep.c

Log Message:
Pull up revision 1.3 (requested by bouyer in ticket #193):
Get rid of the event to pseudo-irq mapping. We are limited to 32 pseudo-irq,
including soft interrupt, and this is way too low in some use (lots of domains,
or domains with lots of xennet, or even hardware with lots of devices at
different interrupts).
Based on idea from YAMAMOTO Takashi, keep one list of handler per-event and
one per-IPL (so the same handler is now in 2 lists). In the common case were
an event is received at low IPL, we can call the handlers quickly (there
is usually only one handler per event, unless the event is mapped to a
physical interrupt and this interrupt is shared by different devices).
Deffered events and software interrupts are handled by a bitmask (as before)
with one bit per IPL. When one IPL has an event pending all handlers for
this IPL will be called.
With this change, it is now possible to have all the 1024 events active.
While here, handle debug event in a special way: the handler is always called,
regardless of the current IPL. Make the handler print usefull informations
about events and IPL states.
Also remove code not used on Xen in files inherited from the x86 port.


To generate a diff of this commit:
cvs rdiff -r1.1.18.1 -r1.1.18.2 src/sys/arch/xen/include/intr.h
cvs rdiff -r1.2 -r1.2.2.1 src/sys/arch/xen/include/pci_machdep.h
cvs rdiff -r1.2 -r1.2.2.1 src/sys/arch/xen/xen/pciide_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index