freebsd-dev/sys/dev/virtio
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
..
balloon Introduce vm_page_astate. 2019-12-10 18:14:50 +00:00
block virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
console virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
mmio virtio: Fix running on machines with memory above 0xffffffff 2019-07-26 19:16:02 +00:00
network Pacify gcc. 2020-01-11 20:07:30 +00:00
pci [virtio] Fix r/w to PCI configuration area on big endian platforms 2020-02-05 20:39:18 +00:00
random virtio_random(4): Drop no longer needed unload kludge 2019-12-30 01:40:59 +00:00
scsi virtio_scsi: use max target ID plus one as the initiator ID 2020-01-23 10:13:56 +00:00
virtio_bus_if.m
virtio_config.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtio_ids.h
virtio_if.m
virtio_ring.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtio.c virtio(4): Expose PNP metadata through newbus 2019-06-04 02:34:59 +00:00
virtio.h virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
virtqueue.c Add more virtqueue getter methods 2018-02-19 19:31:18 +00:00
virtqueue.h Add more virtqueue getter methods 2018-02-19 19:31:18 +00:00