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 xen: import a proper event channel user-space device 2014-10-22 16:57:11 +00:00
interface xen: implement the privcmd user-space device 2014-10-22 17:07:20 +00:00
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 xen: convert the xenstore user-space char device to a newbus device 2014-09-30 17:31:04 +00:00
blkif.h
error.h xen: add a Xen to BSD error translation 2014-10-22 16:58:52 +00:00
evtchn.h Implement vector callback for PVHVM and unify event channel implementations 2013-08-29 19:52:18 +00:00
features.c Implement vector callback for PVHVM and unify event channel implementations 2013-08-29 19:52:18 +00:00
features.h
gnttab.h xen: convert the Grant-table code to a NewBus device 2014-12-10 11:35:41 +00:00
hvm.h Merge Xen PVHVM support into the GENERIC kernel config for both 2013-09-20 22:59:22 +00:00
hypervisor.h
privcmd.h xen: implement the privcmd user-space device 2014-10-22 17:07:20 +00:00
xen_intr.h xen: allow to register event channels without handlers 2014-10-22 16:51:52 +00:00
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: create a new PCI bus override 2014-12-09 18:03:25 +00:00
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