aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorStefan Hajnoczi <[email protected]>2020-08-19 18:19:46 -0400
committerMiklos Szeredi <[email protected]>2020-09-10 11:39:22 +0200
commit22f3787e9d95e72d1f09795f294fb010e2998f43 (patch)
tree3480623aa1da15cb0839b126d8fab736643b9d2b /include/uapi/linux
parentf4fd4ae354ba23c948afb0ee3386182acb96d481 (diff)
virtiofs: set up virtio_fs dax_device
Setup a dax device. Use the shm capability to find the cache entry and map it. The DAX window is accessed by the fs/dax.c infrastructure and must have struct pages (at least on x86). Use devm_memremap_pages() to map the DAX window PCI BAR and allocate struct page. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: Vivek Goyal <[email protected]> Signed-off-by: Sebastien Boeuf <[email protected]> Signed-off-by: Liu Bo <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/virtio_fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/virtio_fs.h b/include/uapi/linux/virtio_fs.h
index 3056b6e9f8ce..bea38291421b 100644
--- a/include/uapi/linux/virtio_fs.h
+++ b/include/uapi/linux/virtio_fs.h
@@ -16,4 +16,7 @@ struct virtio_fs_config {
__le32 num_request_queues;
} __attribute__((packed));
+/* For the id field in virtio_pci_shm_cap */
+#define VIRTIO_FS_SHMCAP_ID_CACHE 0
+
#endif /* _UAPI_LINUX_VIRTIO_FS_H */