freebsd-dev/sys/x86
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
..
acpica Add initial memory locality cost awareness to the VM, and include 2015-05-08 00:56:56 +00:00
bios Add missing header needed by free(9). 2012-09-30 15:42:20 +00:00
cpufreq Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
include Add macros for AMD-specific bits in MSR_EFER: LMSLE, FFXSR and TCE. 2015-05-06 05:12:29 +00:00
iommu Account for the offset of the page run when allocating the 2015-04-08 01:55:22 +00:00
isa Include mca_machdep.h. 2015-01-18 03:43:47 +00:00
pci Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
x86 Remove support for Xen PV domU kernels. Support for HVM domU kernels 2015-04-30 15:48:48 +00:00
xen xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00