Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152951307
D24901.id71953.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
595 B
Referenced Files
None
Subscribers
None
D24901.id71953.diff
View Options
Index: usr.sbin/bhyve/pci_nvme.c
===================================================================
--- usr.sbin/bhyve/pci_nvme.c
+++ usr.sbin/bhyve/pci_nvme.c
@@ -1144,8 +1144,9 @@
case 0x02: /* list of 1024 active NSIDs > CDW1.NSID */
dest = vm_map_gpa(sc->nsc_pi->pi_vmctx, command->prp1,
sizeof(uint32_t) * 1024);
+ /* All unused entries shall be zero */
+ bzero(dest, sizeof(uint32_t) * 1024);
((uint32_t *)dest)[0] = 1;
- ((uint32_t *)dest)[1] = 0;
break;
case 0x03: /* list of NSID structures in CDW1.NSID, 4096 bytes */
if (command->nsid != 1) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 7:10 AM (18 h, 47 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31752480
Default Alt Text
D24901.id71953.diff (595 B)
Attached To
Mode
D24901: bhyve: fix NVMe Active Namespace list
Attached
Detach File
Event Timeline
Log In to Comment