Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177555817
D19580.1794710171.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
622 B
Referenced Files
None
Subscribers
None
D19580.1794710171.diff
View Options
Index: usr.sbin/bhyve/pci_emul.c
===================================================================
--- usr.sbin/bhyve/pci_emul.c
+++ usr.sbin/bhyve/pci_emul.c
@@ -953,7 +953,10 @@
bzero(&pciecap, sizeof(pciecap));
pciecap.capid = PCIY_EXPRESS;
- pciecap.pcie_capabilities = PCIECAP_VERSION | PCIEM_TYPE_ROOT_PORT;
+ pciecap.pcie_capabilities = PCIECAP_VERSION | type;
+ /* Devices starting with version 1.1 must set the RBER bit */
+ if (PCIECAP_VERSION >= 1)
+ pciecap.dev_capabilities = PCIEM_CAP_ROLE_ERR_RPT;
pciecap.link_capabilities = 0x411; /* gen1, x1 */
pciecap.link_status = 0x11; /* gen1, x1 */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 2:36 AM (31 m, 12 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41736251
Default Alt Text
D19580.1794710171.diff (622 B)
Attached To
Mode
D19580: Fix bhyve PCIe capability emulation
Attached
Detach File
Event Timeline