Signed-off-by: Alberto Faria <[email protected]>
---
 include/standard-headers/linux/virtio_blk.h | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/include/standard-headers/linux/virtio_blk.h 
b/include/standard-headers/linux/virtio_blk.h
index d7be3cf5e4..c6c8ce1eec 100644
--- a/include/standard-headers/linux/virtio_blk.h
+++ b/include/standard-headers/linux/virtio_blk.h
@@ -42,6 +42,8 @@
 #define VIRTIO_BLK_F_WRITE_ZEROES      14      /* WRITE ZEROES is supported */
 #define VIRTIO_BLK_F_SECURE_ERASE      16 /* Secure Erase is supported */
 #define VIRTIO_BLK_F_ZONED             17      /* Zoned block device */
+#define VIRTIO_BLK_F_REQ_FLAGS         18      /* Request flags supported */
+#define VIRTIO_BLK_F_REQ_FLAGS_OUT_FUA 19      /* FUA flag supported */
 
 /* Legacy feature bits */
 #ifndef VIRTIO_BLK_NO_LEGACY
@@ -209,6 +211,9 @@ struct virtio_blk_config {
 #define VIRTIO_BLK_T_BARRIER   0x80000000
 #endif /* !VIRTIO_BLK_NO_LEGACY */
 
+/* Request flag bits */
+#define VIRTIO_BLK_REQ_FLAG_OUT_FUA    0
+
 /*
  * This comes first in the read scatter-gather list.
  * For legacy virtio, if VIRTIO_F_ANY_LAYOUT is not negotiated,
@@ -217,8 +222,12 @@ struct virtio_blk_config {
 struct virtio_blk_outhdr {
        /* VIRTIO_BLK_T* */
        __virtio32 type;
-       /* io priority. */
-       __virtio32 ioprio;
+       union {
+               /* io priority. */
+               __virtio32 ioprio;
+               /* Request flags. */
+               __virtio32 flags;
+       };
        /* Sector (ie. 512 byte offset) */
        __virtio64 sector;
 };
-- 
2.56.0


Reply via email to