diff options
| author | Peter Xu <peterx@redhat.com> | 2023-02-07 15:57:10 -0500 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2023-02-11 16:51:09 +0100 |
| commit | 93e0932b7be2498024cd6ba8446a0fa2cb1769bc (patch) | |
| tree | d31bdb1cea9eca11492d243a2cb6ab8666d9b804 /include/standard-headers/linux/virtio_blk.h | |
| parent | bca762c2b90979e8cf1f725cec3ddf888b7b898b (diff) | |
| download | focaccia-qemu-93e0932b7be2498024cd6ba8446a0fa2cb1769bc.tar.gz focaccia-qemu-93e0932b7be2498024cd6ba8446a0fa2cb1769bc.zip | |
linux-headers: Update to v6.1
Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Acked-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/standard-headers/linux/virtio_blk.h')
| -rw-r--r-- | include/standard-headers/linux/virtio_blk.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/standard-headers/linux/virtio_blk.h b/include/standard-headers/linux/virtio_blk.h index 2dcc90826a..e81715cd70 100644 --- a/include/standard-headers/linux/virtio_blk.h +++ b/include/standard-headers/linux/virtio_blk.h @@ -40,6 +40,7 @@ #define VIRTIO_BLK_F_MQ 12 /* support more than one vq */ #define VIRTIO_BLK_F_DISCARD 13 /* DISCARD is supported */ #define VIRTIO_BLK_F_WRITE_ZEROES 14 /* WRITE ZEROES is supported */ +#define VIRTIO_BLK_F_SECURE_ERASE 16 /* Secure Erase is supported */ /* Legacy feature bits */ #ifndef VIRTIO_BLK_NO_LEGACY @@ -119,6 +120,21 @@ struct virtio_blk_config { uint8_t write_zeroes_may_unmap; uint8_t unused1[3]; + + /* the next 3 entries are guarded by VIRTIO_BLK_F_SECURE_ERASE */ + /* + * The maximum secure erase sectors (in 512-byte sectors) for + * one segment. + */ + __virtio32 max_secure_erase_sectors; + /* + * The maximum number of secure erase segments in a + * secure erase command. + */ + __virtio32 max_secure_erase_seg; + /* Secure erase commands must be aligned to this number of sectors. */ + __virtio32 secure_erase_sector_alignment; + } QEMU_PACKED; /* @@ -153,6 +169,9 @@ struct virtio_blk_config { /* Write zeroes command */ #define VIRTIO_BLK_T_WRITE_ZEROES 13 +/* Secure erase command */ +#define VIRTIO_BLK_T_SECURE_ERASE 14 + #ifndef VIRTIO_BLK_NO_LEGACY /* Barrier before this op. */ #define VIRTIO_BLK_T_BARRIER 0x80000000 |