[Bug 205178] virtio-blk not working correctly in powerpc

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Feb 5 20:40:06 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205178

--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:

Author: alfredo
Date: Wed Feb  5 20:39:18 UTC 2020
New revision: 357596
URL: https://svnweb.freebsd.org/changeset/base/357596

Log:
  [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 at gmail.com>
  Reported by:  Kenneth Salerno <kennethsalerno at yahoo.com>
  Reviewed by:  bryanv, bdragon, luporl, alfredo
  Approved by:  jhibbits (mentor)
  Differential Revision:        https://reviews.freebsd.org/D23401

Changes:
  head/sys/dev/virtio/pci/virtio_pci.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list