summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/pci_passthru.c
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-11-22 04:07:18 +0000
committerneel <neel@FreeBSD.org>2012-11-22 04:07:18 +0000
commitd8bfa0f5754e3a60b0d0e1d425a6038be554e73d (patch)
tree9dd8b2d3934d675e3244bfd4ddf9061735bf4ac0 /usr.sbin/bhyve/pci_passthru.c
parent575baa2d8a6961e9a82ca9272a78d3c01cfcbdf1 (diff)
downloadFreeBSD-src-d8bfa0f5754e3a60b0d0e1d425a6038be554e73d.zip
FreeBSD-src-d8bfa0f5754e3a60b0d0e1d425a6038be554e73d.tar.gz
Fix a bug in the MSI-X resource allocation for PCI passthrough devices.
In the case where the underlying host had disabled MSI-X via the "hw.pci.enable_msix" tunable, the ppt_setup_msix() function would fail and return an error without properly cleaning up. This in turn would cause a page fault on the next boot of the guest. Fix this by calling ppt_teardown_msix() in all the error return paths. Obtained from: NetApp
Diffstat (limited to 'usr.sbin/bhyve/pci_passthru.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud