]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow a 4-byte write to PCI config space to overlap
authorPeter Grehan <grehan@FreeBSD.org>
Wed, 9 Oct 2013 23:53:21 +0000 (23:53 +0000)
committerPeter Grehan <grehan@FreeBSD.org>
Wed, 9 Oct 2013 23:53:21 +0000 (23:53 +0000)
commit2a8d400a2e9918ef77d30bdc099f5c06bae4302d
treef477d30d76163cb288da0ea06ed4847257f4024b
parentd5cc57e6abed1cff098cb8993c5c568a67c6ff60
Allow a 4-byte write to PCI config space to overlap
the 2 read-only bytes at the start of a PCI capability.
This is the sequence that OpenBSD uses when enabling
MSI interrupts, and works fine on real h/w.

In bhyve, convert the 4 byte write to a 2-byte write to
the r/w area past the first 2 r/o bytes of a capability.

Reviewed by: neel
Approved by: re@ (blanket)
usr.sbin/bhyve/pci_emul.c