freebsd-skq/sys/dev/xen
Roger Pau Monné 0df8b29da3 xen: introduce a newbus function to allocate unused memory
In order to map memory from other domains when running on Xen FreeBSD uses
unused physical memory regions. Until now this memory has been allocated
using bus_alloc_resource, but this is not completely safe as we can end up
using unreclaimed MMIO or ACPI regions.

Fix this by introducing a new newbus method that can be used by Xen drivers
to request for unused memory regions. On amd64 we make sure this memory
comes from regions above 4GB in order to prevent clashes with MMIO/ACPI
regions. On i386 there's nothing we can do, so just fall back to the
previous mechanism.

Sponsored by: Citrix Systems R&D
Tested by: Gustau Pérez <gperez@entel.upc.edu>
2015-05-08 14:48:40 +00:00
..
balloon Remove support for Xen PV domU kernels. Support for HVM domU kernels 2015-04-30 15:48:48 +00:00
blkback xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00
blkfront Revert r269814: blkfront: add support for unmapped IO 2014-09-04 14:56:24 +00:00
console xen: Dom0 console fixes 2014-08-04 09:02:49 +00:00
control Remove support for Xen PV domU kernels. Support for HVM domU kernels 2015-04-30 15:48:48 +00:00
debug xen: add a handler for the debug interrupt 2015-03-30 07:09:07 +00:00
evtchn xen: import a proper event channel user-space device 2014-10-22 16:57:11 +00:00
grant_table xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00
netback xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00
netfront Remove support for Xen PV domU kernels. Support for HVM domU kernels 2015-04-30 15:48:48 +00:00
pci Remove duplicate pci_driver class declaration. 2015-01-02 08:57:36 +00:00
pcifront More BUS_PROBE_NOWILDCARD sweeping. Some devices here (if_ath_ahb and siba) 2013-10-29 14:19:42 +00:00
privcmd xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00
pvcpu xen: add missing files 2014-06-16 08:54:04 +00:00
timer Generalized parts of the XEN timer code into a generic pvclock 2015-02-04 08:26:43 +00:00
xenpci xen: unify gnttab initialization for PVHVM and PVH 2014-06-16 08:48:42 +00:00
xenstore xen: fix xenstore dev 2015-02-16 09:53:43 +00:00