Re: Question about virtio_alloc_virtqueues

2023-09-09 Thread Vincenzo Maffione
Hi, Looking at the code, it looks like that comment was written at a time where per-virtqueue MSIX interrupts were not available, and virtio_alloc_virtqueues() API was already designed to receive a flag to indicate that per-virtqueue MSIX interrupts were requested. The code you quoted would likel

Re: bhyve: slow network throughput between guest VM and host (and vice versa)?

2022-07-10 Thread Vincenzo Maffione
Hi, The trick to achieve larger TCP throughput between the VM and the host (or other co-located VM) is to have TCP Segmentation Offload (TSO) and TCP Checksum Offload enabled along the whole packet data path (virtio-net, bhyve, if_tap, if_bridge, ...). When these offloads are in place, your TCP e

Re: Assertion failed: (n >= 2 && n <= BLOCKIF_IOV_MAX + 2), function pci_vtblk_proc, file /usr/src/usr.s bin/bhyve/pci_virtio_block.c, line 324.

2022-03-13 Thread Vincenzo Maffione
I'd say that's a bug by definition, since bhyve should not crash even in case of invalid input from the guest virtio driver. I don't know if it can apply in your case, but have you tried to use virtio-scsi in place of virtio-blk? The former is supposed to be the recommended one. Cheers, Vincenzo