freebsd-dev/sys/x86
Roger Pau Monné 842471b331 xen: add hooks for Xen PV APIC
Create the necessary hooks in order to provide a Xen PV APIC
implementation that can be used on PVH. Most of the lapic ops
shouldn't be called on Xen, since we trap those operations at a higher
layer.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

x86/xen/hvm.c:
x86/xen/xen_apic.c:
 - Move IPI related code to xen_apic.c

x86/xen/xen_apic.c:
 - Introduce Xen PV APIC implementation, most of the functions of the
   lapic interface should never be called when running as PV(H) guest,
   so make sure FreeBSD panics when trying to use one of those.
 - Define the Xen APIC implementation in xen_apic_ops.

xen/xen_pv.h:
 - Extern declaration of the xen_apic struct.

x86/xen/pv.c:
 - Use xen_apic_ops as apic_ops when running as PVH guest.

conf/files.amd64:
conf/files.i386:
 - Include the xen_apic.c file in the build of i386/amd64 kernels
   using XENHVM.
2014-06-16 08:43:45 +00:00
..
acpica Change default logic to CONFORM because this routine is shared 2014-03-28 02:38:14 +00:00
bios Add missing header needed by free(9). 2012-09-30 15:42:20 +00:00
cpufreq Do not DELAY() for P-state transition unless we want to see the result. 2013-12-10 20:25:43 +00:00
include amd64/i386: introduce APIC hooks for different APIC implementations. 2014-06-16 08:43:03 +00:00
iommu Re-implement the DMAR I/O MMU code in terms of PCI RIDs 2014-04-01 15:48:46 +00:00
isa Remove vestiges of knowing the ISA bus, which we gave up on around 20 2014-03-19 21:03:04 +00:00
pci Add support for managing PCI bus numbers. As with BARs and PCI-PCI bridge 2014-02-12 04:30:37 +00:00
x86 amd64/i386: introduce APIC hooks for different APIC implementations. 2014-06-16 08:43:03 +00:00
xen xen: add hooks for Xen PV APIC 2014-06-16 08:43:45 +00:00