Linux 6.1 Brings VirtIO Block "Secure Erase", vDPA Feature Provisioning

Written by Michael Larabel in Virtualization on 15 October 2022 at 08:23 AM EDT. 5 Comments
VIRTUALIZATION
The VirtIO changes were merged this week for the Linux 6.1 merge window that is ending this weekend.

Notable with Linux 6.1 on the VirtIO front is that the block driver "virtio_blk" has introduced "SECURE ERASE" support. Secure Erase functionality was added to the VirtIO specification this year. VIRTIO_BLK_F_SECURE_ERASE mandates that beyond regular SSD "discard" functionality, all discarded blocks that were possibly created via garbage collection also must be erased. The underlying block/storage driver must in turn support this secure erase functionality for it to be exposed. With the VirtIO implementation, secure erase requests are passed on from the guest and to the actual back-end for carrying out the request.

The other main feature of the VirtIO updates for Linux 6.1 is supporting vDPA feature provisioning:
Virtio features are negotiated between the device and the drivers. This allows the mediation layer like vDPA to hide some features from the driver to faciliate the cross vendor live migration:

vDPA on the source supports feature set X
vDPA on the destination supports feature set Y

Management can simply provision the vDPA instance with features X&Y on both source and destination to let the vDPA can be migrate-able between the two vDPA devies with different features support.

This series tries to allow the device features to be provisioned via netlink to achieve this.

On the VirtIO networking side is also going along with the 9p changes in Linux 6.1 to allow for faster file sharing between hosts and guests.

See this pull request now in mainline Linux 6.1 for the complete set of VirtIO feature changes targeting this end-of-year 2022 kernel.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week