diff options
author | tychon <tychon@FreeBSD.org> | 2015-05-21 20:11:52 +0000 |
---|---|---|
committer | tychon <tychon@FreeBSD.org> | 2015-05-21 20:11:52 +0000 |
commit | ab4eab33be088c74ec511e42660e0a55e6334a5f (patch) | |
tree | aaeb42ac586a0e6694ee19bb567c5a161c0d9475 /usr.sbin/bhyve | |
parent | dd5257f7d01d3ae28899417a214d9bfa5a94f0bf (diff) | |
download | FreeBSD-src-ab4eab33be088c74ec511e42660e0a55e6334a5f.zip FreeBSD-src-ab4eab33be088c74ec511e42660e0a55e6334a5f.tar.gz |
The 'hostbridge' device exists to allow guests to infer msi/msix
capablity by advertising pcie capability.
Since the 'hostbridge' device isn't a true pci-to-pci bridge, and
doesn't actaully use the bridge configuration space layout, change
the header-type from type 1 to type 0 to avoid confusion.
Reviewed by: neel
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r-- | usr.sbin/bhyve/pci_hostbridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_hostbridge.c b/usr.sbin/bhyve/pci_hostbridge.c index 54a25ae..5c9ea28 100644 --- a/usr.sbin/bhyve/pci_hostbridge.c +++ b/usr.sbin/bhyve/pci_hostbridge.c @@ -38,7 +38,7 @@ pci_hostbridge_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts) /* config space */ pci_set_cfgdata16(pi, PCIR_VENDOR, 0x1275); /* NetApp */ pci_set_cfgdata16(pi, PCIR_DEVICE, 0x1275); /* NetApp */ - pci_set_cfgdata8(pi, PCIR_HDRTYPE, PCIM_HDRTYPE_BRIDGE); + pci_set_cfgdata8(pi, PCIR_HDRTYPE, PCIM_HDRTYPE_NORMAL); pci_set_cfgdata8(pi, PCIR_CLASS, PCIC_BRIDGE); pci_set_cfgdata8(pi, PCIR_SUBCLASS, PCIS_BRIDGE_HOST); |