summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Include/IndustryStandard
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2020-12-16 22:10:51 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-12-21 17:16:23 +0000
commitd0474399521789646ebc66b3450a4983d6fd07d9 (patch)
tree23f8530dcb7c5fd4d1174cb4aff0db7d7c6b89bb /OvmfPkg/Include/IndustryStandard
parent2e151d26ca83d8f2d2cdd22e14bdf95c212937c1 (diff)
downloadedk2-d0474399521789646ebc66b3450a4983d6fd07d9.tar.gz
edk2-d0474399521789646ebc66b3450a4983d6fd07d9.tar.bz2
edk2-d0474399521789646ebc66b3450a4983d6fd07d9.zip
OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_FLUSH
Add the VirtioFsFuseFlush() function, for sending the FUSE_FLUSH command to the Virtio Filesystem device. Cc: Ard Biesheuvel <ard.biesheuvel@arm.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3097 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20201216211125.19496-15-lersek@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'OvmfPkg/Include/IndustryStandard')
-rw-r--r--OvmfPkg/Include/IndustryStandard/VirtioFs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/OvmfPkg/Include/IndustryStandard/VirtioFs.h b/OvmfPkg/Include/IndustryStandard/VirtioFs.h
index 797d94a39a..fec2f4be53 100644
--- a/OvmfPkg/Include/IndustryStandard/VirtioFs.h
+++ b/OvmfPkg/Include/IndustryStandard/VirtioFs.h
@@ -88,6 +88,7 @@ typedef enum {
VirtioFsFuseOpForget = 2,
VirtioFsFuseOpRelease = 18,
VirtioFsFuseOpFsync = 20,
+ VirtioFsFuseOpFlush = 25,
VirtioFsFuseOpInit = 26,
VirtioFsFuseOpOpenDir = 27,
VirtioFsFuseOpReleaseDir = 29,
@@ -142,6 +143,16 @@ typedef struct {
} VIRTIO_FS_FUSE_FSYNC_REQUEST;
//
+// Header for VirtioFsFuseOpFlush.
+//
+typedef struct {
+ UINT64 FileHandle;
+ UINT32 Unused;
+ UINT32 Padding;
+ UINT64 LockOwner;
+} VIRTIO_FS_FUSE_FLUSH_REQUEST;
+
+//
// Headers for VirtioFsFuseOpInit.
//
typedef struct {