mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Stefan Hajnoczi](/assets/img/avatar_default.png)
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 <stefanha@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
22 lines
588 B
C
22 lines
588 B
C
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
|
|
|
|
#ifndef _UAPI_LINUX_VIRTIO_FS_H
|
|
#define _UAPI_LINUX_VIRTIO_FS_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/virtio_ids.h>
|
|
#include <linux/virtio_config.h>
|
|
#include <linux/virtio_types.h>
|
|
|
|
struct virtio_fs_config {
|
|
/* Filesystem name (UTF-8, not NUL-terminated, padded with NULs) */
|
|
__u8 tag[36];
|
|
|
|
/* Number of request queues */
|
|
__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 */
|