aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-03-29 17:25:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-03-29 17:25:45 +0000
commit4d5460a720c59a4404eb1df1b768d2f16b2f341a (patch)
treef1d4bc41719b3f6794c79e28a21b45790dad9b83
parentf8113f0a65ada9367bcbfa6e0d5d8a8451dd8ac2 (diff)
downloadsrc-4d5460a720c59a4404eb1df1b768d2f16b2f341a.tar.gz
src-4d5460a720c59a4404eb1df1b768d2f16b2f341a.zip
bhyve: Enable virtio-scsi legacy config parsing.
The previous commit added the handler to parse the command line options for virtio-scsi devices but forgot to set the correct function pointer to point to the handler. Reported by: vangyzen Reviewed by: vangyzen Fixes: 621b5090487de9fed1b503769702a9a2a27cc7bb Differential Revision: https://reviews.freebsd.org/D29438
-rw-r--r--usr.sbin/bhyve/pci_virtio_scsi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_virtio_scsi.c b/usr.sbin/bhyve/pci_virtio_scsi.c
index 8edf64a11361..eee9847494dc 100644
--- a/usr.sbin/bhyve/pci_virtio_scsi.c
+++ b/usr.sbin/bhyve/pci_virtio_scsi.c
@@ -739,6 +739,7 @@ pci_vtscsi_init(struct vmctx *ctx, struct pci_devinst *pi, nvlist_t *nvl)
struct pci_devemu pci_de_vscsi = {
.pe_emu = "virtio-scsi",
.pe_init = pci_vtscsi_init,
+ .pe_legacy_config = pci_vtscsi_legacy_config,
.pe_barwrite = vi_pci_write,
.pe_barread = vi_pci_read
};