[Bug 245392] bhyve: PCI passthru built-in rtl8168 to OpenBSD no packets (AMD Ryzen 3 1200)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 25 06:26:35 UTC 2020


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

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

Author: grehan
Date: Mon May 25 06:25:32 UTC 2020
New revision: 361442
URL: https://svnweb.freebsd.org/changeset/base/361442

Log:
  Fix pci-passthru MSI issues with OpenBSD guests

  - Return 2 x 16-bit registers in the correct byte order
   for a 4-byte read that spans the CMD/STATUS register.
    This reversal was hiding the capabilities-list, which prevented
   the MSI capability from being found for XHCI passthru.

  - Reorganize MSI/MSI-x config writes so that a 4-byte write at the
   capability offset would have the read-only portion skipped.
    This prevented MSI interrupts from being enabled.

   Reported and extensively tested by Anatoli (me at anatoli dot ws)

  PR:   245392
  Reported by:  Anatoli (me at anatoli dot ws)
  Reviewed by:  jhb (bhyve)
  Approved by:  jhb, bz (mentor)
  MFC after:    1 week
  Differential Revision:        https://reviews.freebsd.org/D24951

Changes:
  head/usr.sbin/bhyve/pci_emul.c
  head/usr.sbin/bhyve/pci_emul.h
  head/usr.sbin/bhyve/pci_passthru.c

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


More information about the freebsd-virtualization mailing list