freebsd-skq/sys
Alfredo Dal'Ava Junior f272c8de6e [virtio] Fix r/w to PCI configuration area on big endian platforms
In legacy VirtIO drivers, the header must be PCI endianness (little) and the
device-specific region is encoded in the native endian of the guest.

This patch makes the access (read/write) to VirtIO header using the little
endian order. Other read and write access are native endianness. This also
sets the device's IO region as big endian if on big endian machine.

PR:		205178
Submitted by:	Andre Silva <afscoelho@gmail.com>
Reported by:	Kenneth Salerno <kennethsalerno@yahoo.com>
Reviewed by:	bryanv, bdragon, luporl, alfredo
Approved by:	jhibbits (mentor)
Differential Revision:	https://reviews.freebsd.org/D23401
2020-02-05 20:39:18 +00:00
..
amd64 Define MAXCPU consistently between the kernel and KLDs. 2020-02-05 19:08:21 +00:00
arm Define MAXCPU consistently between the kernel and KLDs. 2020-02-05 19:08:21 +00:00
arm64 Define MAXCPU consistently between the kernel and KLDs. 2020-02-05 19:08:21 +00:00
bsm
cam Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
cddl Add sys/systm.h to several places that use vm headers. 2020-02-04 18:56:26 +00:00
compat linuxulator: implement sendfile 2020-02-05 16:53:02 +00:00
conf Set the LMA of the riscv kernel to the OpenSBI jump target by default 2020-02-04 00:06:16 +00:00
contrib Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
crypto
ddb Add KERNEL_PANICKED macro for use in place of direct panicstr tests 2020-01-12 06:07:54 +00:00
dev [virtio] Fix r/w to PCI configuration area on big endian platforms 2020-02-05 20:39:18 +00:00
dts Add an overlay for RK3328 USB3 node. 2020-01-29 12:10:42 +00:00
fs tmpfs: add nomtime mount option, 2020-02-04 19:05:58 +00:00
gdb Add KERNEL_PANICKED macro for use in place of direct panicstr tests 2020-01-12 06:07:54 +00:00
geom The error variable is not really needed. Remove it. 2020-02-01 10:15:23 +00:00
gnu
i386 Define MAXCPU consistently between the kernel and KLDs. 2020-02-05 19:08:21 +00:00
isa sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
kern Avoid releasing object PIP in vn_sendfile() if no pages were grabbed. 2020-02-05 16:09:21 +00:00
kgssapi
libkern random(9): Deprecate random(9), remove meaningless srandom(9) 2019-12-26 19:41:09 +00:00
mips beri: correct kernel printf typo 2020-02-05 19:15:36 +00:00
modules Stop compiling dtrace modules with -DSMP. 2020-02-05 19:08:45 +00:00
net ethernet: Add a couple more Ethertypes. 2020-02-05 19:11:07 +00:00
net80211 net80211: Move rate printing in amrr_node_stats() to a separate method 2020-01-17 22:04:11 +00:00
netgraph I doubt anybody in the world uses ng_device, but its write method should 2020-02-05 03:07:20 +00:00
netinet Remove unused timer. 2020-02-04 14:01:07 +00:00
netinet6 Fix NOINET builds. 2020-01-31 02:23:48 +00:00
netipsec
netpfil pf: Apply kif flags to new group members 2020-01-23 22:13:41 +00:00
netsmb
nfs vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
nfsclient
nfsserver
nlm vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
ofed Make sure the VNET is properly set when reaping mbufs in ipoib. 2020-01-11 12:02:16 +00:00
opencrypto Add stricter checking on mac key lengths. 2020-01-09 18:29:59 +00:00
powerpc Define MAXCPU consistently between the kernel and KLDs. 2020-02-05 19:08:21 +00:00
riscv Fix EXCP_MASK to include all relevant bits from scause. 2020-02-05 20:34:22 +00:00
rpc
security vfs: eliminate v_tag from struct vnode 2020-01-07 04:29:34 +00:00
sys Bump __FreeBSD_version to 1300077 for r357455 2020-02-04 09:12:12 +00:00
teken
tests
tools vfs: stop null checking routines in vop wrappers 2020-01-26 00:41:38 +00:00
ufs With INVARIANTS, track all softdep dependency structures centrally 2020-02-03 17:47:14 +00:00
vm uma: multipage chicken switch 2020-02-04 22:40:45 +00:00
x86 In dmar_gas_lowermatch, skip searching a subtree if all its addresses are greater than lowaddr. 2020-02-01 21:47:34 +00:00
xdr
xen
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00