diff options
author | Jorge Schrauwen <registration@blackdot.be> | 2020-04-29 08:28:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 01:28:06 -0500 |
commit | a6f7c4f2a8d87ac0d0b9c042f7b574988c4093de (patch) | |
tree | 543f3fbc76e1c868568af021dbdf54dfa75bda87 /usr/src | |
parent | a4d94d49c2f94fc7ff759e19d250b128f4fc156b (diff) | |
download | illumos-joyent-a6f7c4f2a8d87ac0d0b9c042f7b574988c4093de.tar.gz |
OS-8158 Support NVMe as device model for bhyve (#287)
Reviewed by: Mike Zeller <mike.zeller@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Jason King <jason.king@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/lib/brand/bhyve/zone/boot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/lib/brand/bhyve/zone/boot.c b/usr/src/lib/brand/bhyve/zone/boot.c index 645958d14a..3d26e350d4 100644 --- a/usr/src/lib/brand/bhyve/zone/boot.c +++ b/usr/src/lib/brand/bhyve/zone/boot.c @@ -286,6 +286,8 @@ add_disk(char *disk, char *path, char *slotconf, size_t slotconf_len) strcmp(guest_block_size, "0") == 0) { guest_block_size = NULL; } + } else if (is_env_string("device", disk, "model", "nvme")) { + model = "nvme"; } else if (is_env_string("device", disk, "model", "ahci")) { if (is_env_string("device", disk, "media", "cdrom")) { model = "ahci-cd"; |