freebsd-nq/sys
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
..
amd64 amd64/i386: introduce APIC hooks for different APIC implementations. 2014-06-16 08:43:03 +00:00
arm Add very basic driver for 12-bit Analog to Digital Converter (ADC). 2014-06-15 12:08:33 +00:00
boot mdoc: fix AUTHORS section. 2014-06-09 19:36:08 +00:00
bsm IFp4 @1192291: 2014-04-07 20:44:00 +00:00
cam Make backends track completion by processed number of sectors instead of 2014-06-15 20:14:11 +00:00
cddl Removed stale comment about multi-vdev root pool config not working 2014-06-09 13:04:58 +00:00
compat - Add support for SG_GET_SG_TABLESIZE IOCTL to report that we don't support 2014-06-04 12:05:47 +00:00
conf xen: create a Xen nexus to use in PV/PVH 2014-06-16 08:45:51 +00:00
contrib Fix decoding of near CALL when address-size prefix (67h) is present. 2014-06-11 20:38:14 +00:00
crypto NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
ddb handle longer commands so that lines don't overflow... people who added 2014-06-02 23:50:19 +00:00
dev xen: unify gnttab initialization for PVHVM and PVH 2014-06-16 08:48:42 +00:00
fs The new NFS server would not allow a hard link to be 2014-06-06 21:38:49 +00:00
gdb
geom Add disklabel64 support to GEOM_PART class. 2014-06-11 10:42:34 +00:00
gnu Symbolic bindings for the dts files... 2014-02-28 16:51:33 +00:00
i386 amd64/i386: introduce APIC hooks for different APIC implementations. 2014-06-16 08:43:03 +00:00
ia64 Restore comments accidentally removed. 2014-06-06 04:08:55 +00:00
isa Remove vestiges of knowing the ISA bus, which we gave up on around 20 2014-03-19 21:03:04 +00:00
kern Use vn_io_fault for the writes from core dumping code. Recursing into 2014-06-15 04:51:53 +00:00
kgssapi
libkern Use strcasecmp() instead of strcmp() when checking user-supplied encoding 2014-06-09 19:27:47 +00:00
mips Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
modules Stop telling people to use send-pr; instead point them towards Bugzilla. 2014-06-14 18:43:48 +00:00
net Improve logic besides net.bpf.optimize_writers. 2014-06-11 11:27:44 +00:00
net80211 Use logical rather than bitwise OR in if() expression. 2014-04-26 23:22:49 +00:00
netgraph PF_BLUETOOTH protocols: skip initialization of non-virtualized globals 2014-06-10 18:21:37 +00:00
netinet Use ENOBUFS instead of ENOMEM in error situations related to m_uiotombuf(). 2014-06-05 12:51:12 +00:00
netinet6 Remove unused variable. 2014-06-08 09:08:51 +00:00
netipsec Use IPv4 statistics in ipsec4_process_packet() rather than the IPv6 2014-05-28 23:01:20 +00:00
netnatm
netpfil DNOLD_IS_ECN introduced by r266941 is not required. 2014-06-01 20:19:17 +00:00
netsmb Remove redundant unlock. 2014-04-17 12:22:08 +00:00
nfs Fix/improve fhe_stats sysctl output. 2014-06-14 12:26:12 +00:00
nfsclient
nfsserver The PR reported that the old NFS server did not set uio_td == NULL 2014-04-24 20:47:58 +00:00
nlm Correct a typo in nlm_find_host_by_addr(): the intention of the 2014-03-11 00:25:55 +00:00
ofed - Fix out of range shifting bug in bitops.h. 2014-06-12 13:33:01 +00:00
opencrypto allow the kern.cryptodevallowsoft sysctl to enable symetric/hashes too... 2014-03-11 01:45:46 +00:00
pc98 lindev(4): finish the partial commit in r265212 2014-05-02 07:14:22 +00:00
pci Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
powerpc Commit the rest of the changes that were intended to be part of r266826. 2014-05-29 01:42:22 +00:00
rpc Fix race in r267221. 2014-06-09 15:00:43 +00:00
security audit: plug FILEDESC_LOCK leak in audit_canon_path. 2014-03-21 01:30:33 +00:00
sparc64 Restore comments accidentally removed. 2014-06-06 04:08:55 +00:00
sys Attach the CUSE library and kernel module to the default FreeBSD 2014-06-13 08:53:49 +00:00
teken Fix typo. 2014-02-06 13:28:06 +00:00
tools Call cpp with -P to avoid printing line markings. 2014-06-10 06:24:01 +00:00
ufs Initialize the pbuf counter for directio using SYSINIT, instead of 2014-06-08 10:55:06 +00:00
vm One of the intentions behind r267254 was that the global variable "sgrowsiz" 2014-06-15 07:52:59 +00:00
x86 xen: add hooks for Xen PV APIC 2014-06-16 08:43:45 +00:00
xdr
xen xen: unify gnttab initialization for PVHVM and PVH 2014-06-16 08:48:42 +00:00
Makefile Reorganize this Makefile so that all the bsd.*.mk bits are in one 2014-05-29 16:03:08 +00:00