freebsd-skq/sys/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
..
evtchn
interface
xenbus Use SYSCTL_OUT_STR() to return strings. 2015-03-14 21:40:24 +00:00
xenmem xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00
xenstore
blkif.h
error.h
evtchn.h
features.c
features.h
gnttab.h
hvm.h
hypervisor.h
privcmd.h
xen_intr.h
xen_msi.h Pacify clang 3.3 by ending the file with a newline. This is common 2015-01-06 21:26:35 +00:00
xen_pci.h
xen_pv.h xen: add missing files 2014-06-16 08:54:04 +00:00
xen-os.h xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00