summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/pci_emul.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-04-27 23:04:42 +0000
committerjhb <jhb@FreeBSD.org>2016-04-27 23:04:42 +0000
commitfb3b480b1bea300fab368c76f690946865eb8020 (patch)
treee5dddca776ccf0c6e40f7c7f28b49990d1b7c19f /usr.sbin/bhyve/pci_emul.h
parent4d5dc85700689fd49bec98dd41b5bda8925a4687 (diff)
downloadFreeBSD-src-fb3b480b1bea300fab368c76f690946865eb8020.zip
FreeBSD-src-fb3b480b1bea300fab368c76f690946865eb8020.tar.gz
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.
Diffstat (limited to 'usr.sbin/bhyve/pci_emul.h')
-rw-r--r--usr.sbin/bhyve/pci_emul.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_emul.h b/usr.sbin/bhyve/pci_emul.h
index 6b8c4e0..d6e5490 100644
--- a/usr.sbin/bhyve/pci_emul.h
+++ b/usr.sbin/bhyve/pci_emul.h
@@ -142,6 +142,8 @@ struct pci_devinst {
int pba_size;
int function_mask;
struct msix_table_entry *table; /* allocated at runtime */
+ void *pba_page;
+ int pba_page_offset;
} pi_msix;
void *pi_arg; /* devemu-private data */
OpenPOWER on IntegriCloud