git: 2b2d263d0b7a - stable/13 - bhyve: Enable virtio-scsi legacy config parsing.

John Baldwin jhb at FreeBSD.org
Wed Aug 11 22:14:15 UTC 2021


The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=2b2d263d0b7aa338af7171d308228ad9cb3acc70

commit 2b2d263d0b7aa338af7171d308228ad9cb3acc70
Author:     John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-03-29 17:25:45 +0000
Commit:     John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-08-11 22:12:32 +0000

    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
    
    (cherry picked from commit 4d5460a720c59a4404eb1df1b768d2f16b2f341a)
---
 usr.sbin/bhyve/pci_virtio_scsi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr.sbin/bhyve/pci_virtio_scsi.c b/usr.sbin/bhyve/pci_virtio_scsi.c
index bd688d0325ef..8314b4afce38 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
 };


More information about the dev-commits-src-all mailing list