git: 3cdfaefa4b88 - main - bhyve: Fix virtio-console legacy configuration parsing

From: Ka Ho Ng <khng_at_FreeBSD.org>
Date: Fri, 06 May 2022 19:57:50 UTC
The branch main has been updated by khng:

URL: https://cgit.FreeBSD.org/src/commit/?id=3cdfaefa4b88c928bfb62e7fb6c7f7742d81f31c

commit 3cdfaefa4b88c928bfb62e7fb6c7f7742d81f31c
Author:     Yan Ka Chiu <nyan@myuji.xyz>
AuthorDate: 2022-05-06 19:31:56 +0000
Commit:     Ka Ho Ng <khng@FreeBSD.org>
CommitDate: 2022-05-06 19:34:17 +0000

    bhyve: Fix virtio-console legacy configuration parsing
    
    virtio-console is currently missing .pe_legacy_config, which prevents any
    portN configuration from being parsed, and therefore no sockets will be
    created.
    
    Reviewed by:    khng
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D35142
---
 usr.sbin/bhyve/pci_virtio_console.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/usr.sbin/bhyve/pci_virtio_console.c b/usr.sbin/bhyve/pci_virtio_console.c
index a716aa592eb4..8bac2a24bba0 100644
--- a/usr.sbin/bhyve/pci_virtio_console.c
+++ b/usr.sbin/bhyve/pci_virtio_console.c
@@ -756,6 +756,7 @@ struct pci_devemu pci_de_vcon = {
 	.pe_emu =	"virtio-console",
 	.pe_init =	pci_vtcon_init,
 	.pe_barwrite =	vi_pci_write,
-	.pe_barread =	vi_pci_read
+	.pe_barread =	vi_pci_read,
+	.pe_legacy_config = pci_vtcon_legacy_config,
 };
 PCI_EMUL_SET(pci_de_vcon);