summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/pci_hostbridge.c
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2013-02-15 18:41:36 +0000
committerneel <neel@FreeBSD.org>2013-02-15 18:41:36 +0000
commitd8ccba8d3228b8712e386a5fa02e20a2962500ed (patch)
tree707a288e8514fbcf307d90e2a4830e4640292ff3 /usr.sbin/bhyve/pci_hostbridge.c
parent683ffef109f29f69c994debd2602613353173dda (diff)
downloadFreeBSD-src-d8ccba8d3228b8712e386a5fa02e20a2962500ed.zip
FreeBSD-src-d8ccba8d3228b8712e386a5fa02e20a2962500ed.tar.gz
Advertise PCI-E capability in the hostbridge device presented to the guest.
FreeBSD wants to see this capability in at least one device in the PCI hierarchy before it allows use of MSI or MSI-X. Obtained from: NetApp
Diffstat (limited to 'usr.sbin/bhyve/pci_hostbridge.c')
-rw-r--r--usr.sbin/bhyve/pci_hostbridge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_hostbridge.c b/usr.sbin/bhyve/pci_hostbridge.c
index c77762d..dee0a47 100644
--- a/usr.sbin/bhyve/pci_hostbridge.c
+++ b/usr.sbin/bhyve/pci_hostbridge.c
@@ -42,6 +42,8 @@ pci_hostbridge_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
pci_set_cfgdata8(pi, PCIR_CLASS, PCIC_BRIDGE);
pci_set_cfgdata8(pi, PCIR_SUBCLASS, PCIS_BRIDGE_HOST);
+ pci_emul_add_pciecap(pi, PCIEM_TYPE_ROOT_PORT);
+
return (0);
}
OpenPOWER on IntegriCloud