x86/ioapic: Add io_apic_ops driver layer to allow interception
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 22 Mar 2012 02:58:08 +0000 (22:58 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 28 Mar 2012 07:49:29 +0000 (09:49 +0200)
commit136d249ef7dbf0fefa292082cc40be1ea864cbd6
tree584684e7d7c79aaa698bfb29a496dc44a02e2528
parenta3c8121b8724c3d496dc00201ab40e8313edcf0d
x86/ioapic: Add io_apic_ops driver layer to allow interception

Xen dom0 needs to paravirtualize IO operations to the IO APIC,
so add a io_apic_ops for it to intercept.  Do this as ops
structure because there's at least some chance that another
paravirtualized environment may want to intercept these.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: jwboyer@redhat.com
Cc: yinghai@kernel.org
Link: http://lkml.kernel.org/r/1332385090-18056-2-git-send-email-konrad.wilk@oracle.com
[ Made all the affected code easier on the eyes ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/io_apic.h
arch/x86/kernel/apic/io_apic.c