History

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.

Stefan Hajnoczi committed 6 years ago

Commit 22f37871 parent f4fd4ae2 files · +141 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/virtio_fs.h+3−0
@@ -16,4 +16,7 @@ struct virtio_fs_config { · 15 unmodified lines
1616 __le32 num_request_queues;
1717 } __attribute__((packed));
1818
19+/* For the id field in virtio_pci_shm_cap */
20+#define VIRTIO_FS_SHMCAP_ID_CACHE 0
21+
1922 #endif /* _UAPI_LINUX_VIRTIO_FS_H */