freebsd-nq/sys/x86/xen
Roger Pau Monné bf7313e3b7 xen: implement the privcmd user-space device
This device is only attached to priviledged domains, and allows the
toolstack to interact with Xen. The two functions of the privcmd
interface is to allow the execution of hypercalls from user-space, and
the mapping of foreign domain memory.

Sponsored by: Citrix Systems R&D

i386/include/xen/hypercall.h:
amd64/include/xen/hypercall.h:
 - Introduce a function to make generic hypercalls into Xen.

xen/interface/xen.h:
xen/interface/memory.h:
 - Import the new hypercall XENMEM_add_to_physmap_range used by
   auto-translated guests to map memory from foreign domains.

dev/xen/privcmd/privcmd.c:
 - This device has the following functions:
   - Allow user-space applications to make hypercalls into Xen.
   - Allow user-space applications to map memory from foreign domains,
     this is accomplished using the newly introduced hypercall
     (XENMEM_add_to_physmap_range).

xen/privcmd.h:
 - Public ioctl interface for the privcmd device.

x86/xen/hvm.c:
 - Remove declaration of hypercall_page, now it's declared in
   hypercall.h.

conf/files:
 - Add the privcmd device to the build process.
2014-10-22 17:07:20 +00:00
..
hvm.c xen: implement the privcmd user-space device 2014-10-22 17:07:20 +00:00
pv.c xen: fix usage of kern_getenv in PVH code 2014-10-22 16:49:00 +00:00
pvcpu_enum.c xen: implement support for mapping IO APIC interrupts on Xen 2014-08-04 09:01:21 +00:00
xen_apic.c Fix build with SMP disabled. 2014-07-15 15:40:33 +00:00
xen_intr.c xen: allow to register event channels without handlers 2014-10-22 16:51:52 +00:00
xen_msi.c msi: add Xen MSI implementation 2014-09-30 16:46:45 +00:00
xen_nexus.c msi: add Xen MSI implementation 2014-09-30 16:46:45 +00:00
xen_pci.c xen: add the Xen implementation of pci_child_added method 2014-09-30 16:49:17 +00:00
xenpv.c xen: add missing files 2014-06-16 08:54:04 +00:00