From a85bbbea91bddbd27d080fb2ad55a9f5c316adad Mon Sep 17 00:00:00 2001 From: Vitaliy Gusev Date: Thu, 23 Jun 2022 11:46:06 -0700 Subject: [PATCH] bhyve: Enable suspend/resume support for virtio-blk. Reviewed by: jhb Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D26267 --- usr.sbin/bhyve/pci_virtio_block.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/bhyve/pci_virtio_block.c b/usr.sbin/bhyve/pci_virtio_block.c index 385b812be84..29520309af8 100644 --- a/usr.sbin/bhyve/pci_virtio_block.c +++ b/usr.sbin/bhyve/pci_virtio_block.c @@ -592,6 +592,8 @@ struct pci_devemu pci_de_vblk = { .pe_barread = vi_pci_read, #ifdef BHYVE_SNAPSHOT .pe_snapshot = vi_pci_snapshot, + .pe_pause = vi_pci_pause, + .pe_resume = vi_pci_resume, #endif }; PCI_EMUL_SET(pci_de_vblk);