Home
last modified time | relevance | path

Searched hist:"07 fd7ef3" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_rdwr.c07fd7ef3 Wed Mar 21 13:46:21 CDT 2018 Alex Williamson <alex.williamson@redhat.com> vfio/pci: Use endian neutral helpers

The iowriteXX/ioreadXX functions assume little endian hardware and
convert to little endian on a write and from little endian on a read.
We currently do our own explicit conversion to negate this. Instead,
add some endian dependent defines to avoid all byte swaps. There
should be no functional change other than big endian systems aren't
penalized with wasted swaps.

Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
07fd7ef3 Wed Mar 21 13:46:21 CDT 2018 Alex Williamson <alex.williamson@redhat.com> vfio/pci: Use endian neutral helpers

The iowriteXX/ioreadXX functions assume little endian hardware and
convert to little endian on a write and from little endian on a read.
We currently do our own explicit conversion to negate this. Instead,
add some endian dependent defines to avoid all byte swaps. There
should be no functional change other than big endian systems aren't
penalized with wasted swaps.

Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>