]> rtime.felk.cvut.cz Git - jailhouse.git/commit
x86: Add support for IOAPIC access control
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 2 Jun 2014 10:17:48 +0000 (12:17 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Tue, 17 Jun 2014 15:38:48 +0000 (17:38 +0200)
commit63f7d11b812f837f8d1d1faccfbbfeabab7288c0
tree79f755d3b0e91a478cc50991dc85cf7c14ad3a8d
parent7482bdc1a9265209819d40842634bb11848fdf58
x86: Add support for IOAPIC access control

This adds basic access control to the IOAPIC. Based on the IRQ chip
configuration, we permit or deny writing to redirection table entries.
This may require integration with interrupt remapping later on.

We furthermore allow reads from other valid IOAPIC registers but deny
any other write accesses.

EOI writing is currently passed through. This will have to be revisited
as well when interrupt remapping is added.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/Makefile
hypervisor/arch/x86/control.c
hypervisor/arch/x86/include/asm/cell.h
hypervisor/arch/x86/include/asm/ioapic.h [new file with mode: 0644]
hypervisor/arch/x86/ioapic.c [new file with mode: 0644]
hypervisor/arch/x86/setup.c
hypervisor/arch/x86/vmx.c