The configuration space layout in virtio specification defines more members than are currently present in the kernel virtio_blk_config structure. Specifically, there are some fields defined in the spec that are related to secure erase operation support. The newly added zoned device extension adds even more fields after the secure erase section. In order to keep the zoned configuration space data field alignment consistent with the virtio specification, append a field of the size that is equal to the total byte size of secure erase-related fields to virtio_blk_config. --- include/uapi/linux/virtio_blk.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/virtio_blk.h b/include/uapi/linux/virtio_blk.h index d888f013d9ff..d9122674a539 100644 --- a/include/uapi/linux/virtio_blk.h +++ b/include/uapi/linux/virtio_blk.h @@ -121,6 +121,9 @@ struct virtio_blk_config { __u8 write_zeroes_may_unmap; __u8 unused1[3]; + + /* Secure erase fields that are defined in the virtio spec */ + __u8 sec_erase[12]; } __attribute__((packed)); /* -- 2.34.1