freebsd-dev/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
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
xen_pci.h
xen_pv.h
xen-os.h xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00