From d8ccba8d3228b8712e386a5fa02e20a2962500ed Mon Sep 17 00:00:00 2001 From: neel Date: Fri, 15 Feb 2013 18:41:36 +0000 Subject: 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 --- usr.sbin/bhyve/pci_hostbridge.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/bhyve/pci_hostbridge.c') 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); } -- cgit v1.1