]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 297932,298295:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Apr 2016 23:04:42 +0000 (23:04 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Apr 2016 23:04:42 +0000 (23:04 +0000)
commita8df0ab6031478bd7725609996db069bf8befdec
treee5dddca776ccf0c6e40f7c7f28b49990d1b7c19f
parent1d524420444b4ff310d44e3c2fe0a9eae8a247b9
MFC 297932,298295:
Improvements for PCI passthru devices.

297932:
Handle PBA that shares a page with MSI-X table for passthrough devices.

If the PBA shares a page with the MSI-X table, map the shared page via
/dev/mem and emulate accesses to the portion of the PBA in the shared
page by accessing the mapped page.

298295:
Always emit an error message on passthru configuration errors.

Previously, many errors (such as the PCI device not being attached
to the ppt(4) driver) resulted in bhyve silently exiting without
starting the virtual machine.  Now any errors encountered when
configuring a virtual slot for a PCI passthru device should be noted
on stderr.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bhyve/pci_emul.h
usr.sbin/bhyve/pci_passthru.c