]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for level triggered interrupt pins on the vioapic. Prior to this
authorNeel Natu <neel@FreeBSD.org>
Wed, 27 Nov 2013 22:18:08 +0000 (22:18 +0000)
committerNeel Natu <neel@FreeBSD.org>
Wed, 27 Nov 2013 22:18:08 +0000 (22:18 +0000)
commitb5b28fc9dc96b195ab34ab2fac2713c3672bbc5f
treecea36f9c268215563a7354df4f19354d583fa6da
parent10c273397eb02d39f70c9d9d3d79740f2395d126
Add support for level triggered interrupt pins on the vioapic. Prior to this
commit level triggered interrupts would work as long as the pin was not shared
among multiple interrupt sources.

The vlapic now keeps track of level triggered interrupts in the trigger mode
register and will forward the EOI for a level triggered interrupt to the
vioapic. The vioapic in turn uses the EOI to sample the level on the pin and
re-inject the vector if the pin is still asserted.

The vhpet is the first consumer of level triggered interrupts and advertises
that it can generate interrupts on pins 20 through 23 of the vioapic.

Discussed with: grehan@
12 files changed:
sys/amd64/vmm/io/ppt.c
sys/amd64/vmm/io/vhpet.c
sys/amd64/vmm/io/vioapic.c
sys/amd64/vmm/io/vioapic.h
sys/amd64/vmm/io/vlapic.c
sys/amd64/vmm/io/vlapic.h
sys/amd64/vmm/vmm_dev.c
sys/amd64/vmm/vmm_ktr.h
sys/amd64/vmm/vmm_lapic.c
sys/amd64/vmm/vmm_lapic.h
usr.sbin/bhyve/acpi.c
usr.sbin/bhyve/mptbl.c