aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Rosenfeld <rosenfeld@grumpf.hope-2000.org>2026-02-05 18:52:56 +0000
committerEd Maste <emaste@FreeBSD.org>2026-02-06 14:14:47 +0000
commit94976733d35234c629fdb086036f2319c44eb08c (patch)
treef8cfb318a30145bebd0732a43f378112a68ee90c
parent87b2c0168d9deb79aacf3f13dbd3201054371b2b (diff)
bhyve/virtio-scsi: advertise support for indirect descriptors
Support for indirect registers is actually part of the common virtio code, the virtio-scsi code doesn't actually care or even know anything about it. Advertising the features greatly improves performance with some guest operating systems. Reviewed by: corvink Differential Revision: https://reviews.freebsd.org/D53467
-rw-r--r--usr.sbin/bhyve/pci_virtio_scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_virtio_scsi.c b/usr.sbin/bhyve/pci_virtio_scsi.c
index 409e8c1c21ae..c7d930b0f4ee 100644
--- a/usr.sbin/bhyve/pci_virtio_scsi.c
+++ b/usr.sbin/bhyve/pci_virtio_scsi.c
@@ -252,7 +252,7 @@ static struct virtio_consts vtscsi_vi_consts = {
.vc_cfgread = pci_vtscsi_cfgread,
.vc_cfgwrite = pci_vtscsi_cfgwrite,
.vc_apply_features = pci_vtscsi_neg_features,
- .vc_hv_caps = 0,
+ .vc_hv_caps = VIRTIO_RING_F_INDIRECT_DESC,
};
static void *