git: 5fdcc90fb0ff - stable/13 - bhyve: Fix virtio-console legacy configuration parsing

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 26 Jan 2023 19:25:52 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=5fdcc90fb0ff0e18ec55a2d481648f729a759c63

commit 5fdcc90fb0ff0e18ec55a2d481648f729a759c63
Author:     Yan Ka Chiu <nyan@myuji.xyz>
AuthorDate: 2022-05-06 19:31:56 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-01-26 19:23:54 +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
    
    (cherry picked from commit 3cdfaefa4b88c928bfb62e7fb6c7f7742d81f31c)
---
 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 d16668e6a2cb..341f0857bade 100644
--- a/usr.sbin/bhyve/pci_virtio_console.c
+++ b/usr.sbin/bhyve/pci_virtio_console.c
@@ -756,6 +756,7 @@ static const 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);