]> rtime.felk.cvut.cz Git - jailhouse.git/commit
apic: extract irq validation logic from iommu_map_interrupt
authorHenning Schild <henning.schild@siemens.com>
Mon, 24 Nov 2014 17:54:05 +0000 (18:54 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Tue, 25 Nov 2014 12:26:01 +0000 (13:26 +0100)
commit1ff4937416fd61616b4f2e6b76f50b9ba2096ddd
treeff8f8b3a9e294e77f53e5ff9f7fba95204e7b4fe
parentdefb4692013f937d3dc6addefdf6e597d117a842
apic: extract irq validation logic from iommu_map_interrupt

Introducing a new function apic_irq_dest_in_cell that makes sure the
destination cpu of the interrupt belongs to the given cell.
So far this code was part of iommu_map_interrupt but these checks are
required in other places as well.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
[Jan: trivial formatting adjustments]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/apic.c
hypervisor/arch/x86/include/asm/apic.h
hypervisor/arch/x86/vtd.c