Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110675965
D30717.id90702.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1002 B
Referenced Files
None
Subscribers
None
D30717.id90702.diff
View Options
Index: usr.sbin/bhyve/pci_nvme.c
===================================================================
--- usr.sbin/bhyve/pci_nvme.c
+++ usr.sbin/bhyve/pci_nvme.c
@@ -2800,11 +2800,39 @@
return (error);
}
+static int
+pci_nvme_legacy_config(nvlist_t *nvl, const char *opts)
+{
+ char *cp, *path;
+
+ if (opts == NULL)
+ return (0);
+
+ if ((cp = strchr(opts, ',')) != NULL) {
+ int error;
+
+ if ((error = pci_parse_legacy_config(nvl, cp + 1)) != 0)
+ return (error);
+
+ path = strndup(opts, cp - opts);
+ } else {
+ path = strdup(opts);
+ }
+ if (path == NULL)
+ return (-1);
+ if (strncmp(path, "ram=", 4) == 0)
+ set_config_value_node(nvl, "ram", path + 4);
+ else
+ set_config_value_node(nvl, "path", path);
+ free(path);
+
+ return (0);
+}
struct pci_devemu pci_de_nvme = {
.pe_emu = "nvme",
.pe_init = pci_nvme_init,
- .pe_legacy_config = blockif_legacy_config,
+ .pe_legacy_config = pci_nvme_legacy_config,
.pe_barwrite = pci_nvme_write,
.pe_barread = pci_nvme_read
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 7:09 PM (2 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16777649
Default Alt Text
D30717.id90702.diff (1002 B)
Attached To
Mode
D30717: bhyve nvme ramdisk backend cli option is broken after configuration management refactor.
Attached
Detach File
Event Timeline
Log In to Comment