freebsd-nq/sys/xen
Roger Pau Monné a8f2f559f3 xen: unify gnttab initialization for PVHVM and PVH
Switch the initialization of gnttab to use an unused physical memory
range for both PVHVM and PVH.

In the past PVHVM was using the xenpci BAR, but there's no reason to
do that, and in fact FreeBSD was probably doing it because it was the
way it was done in Windows, were drivers cannot probably request for
unused physical memory ranges, but it was never enforced in the
hypervisor.

Sponsored by: Citrix Systems R&D
Approved by: gibbs

xen/gnttab.c:
 - Allocate contiguous physical memory for grant table frames for both
   PVHVM and PVH.
 - Since gnttab is not a device, use the xenpv device in order to
   request for this allocation.

dev/xen/xenpci/xenpcivar.h:
dev/xen/xenpci/xenpci.c:
 - Remove the now unused xenpci_alloc_space and xenpci_alloc_space_int
   functions.

xen/gnttab.h:
 - Change the prototype of gnttab_init and gnttab_resume, that now
   takes a device_t parameter.

dev/xen/control/control.c:
x86/xen/xenpv.c:
 - Changes to accomodate the new prototype of gnttab_init and
   gnttab_resume.
2014-06-16 08:48:42 +00:00
..
evtchn Implement vector callback for PVHVM and unify event channel implementations 2013-08-29 19:52:18 +00:00
interface Implement vector callback for PVHVM and unify event channel implementations 2013-08-29 19:52:18 +00:00
xenbus Implement vector callback for PVHVM and unify event channel implementations 2013-08-29 19:52:18 +00:00
xenstore xen: init gnttab from xenpv 2014-06-16 08:48:06 +00:00
blkif.h
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.c xen: unify gnttab initialization for PVHVM and PVH 2014-06-16 08:48:42 +00:00
gnttab.h xen: unify gnttab initialization for PVHVM and PVH 2014-06-16 08:48:42 +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
xen_intr.h Implement PV IPIs for PVHVM guests and further converge PV and HVM 2013-09-06 22:17:02 +00:00
xen-os.h Make this compile with gcc. 2014-04-05 22:43:18 +00:00