[PATCH 2/3] virtio-blk: add a placeholder for secure erase config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux