virtio-scsi in libguestfs

Today I posted patches for virtio-scsi support in libguestfs.

Virtio-scsi is a replacement for the virtio block device (virtio-blk) and it benefits from lessons learned using virtio-blk.

The main problem with virtio-blk is that a whole PCI device is required for each virtual hard disk. PCI devices are limited in practice to 32, with several being used for other purposes like network cards. There are ways to get around this, but they’re all pretty ugly, such as requiring multiple PCI buses or using the PCI multifunction feature. SCSI on the other hand has long provided support for multiple host adapters and LUNs.

With libguestfs support for virtio-scsi, we get a couple of highly desirable features for free: being able to add a much larger number of disks (instead of being limited to ~29), and being able to easily use “TRIM” support for discarding blocks.

In future it’ll make it easier to add support for hotplugging.



Filed under Uncategorized

6 responses to “virtio-scsi in libguestfs

  1. So when will virtio-scsi *really* be integrated into libvirt and virt-manager? I love the advancements, but if I can’t practically use them, out of the box, I tend not to have the time to hack them into my schedule.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.