Skip to contentSkip to conversation

virtio-fs: add virtio file system device

PATCH Superseded Stefan Hajnoczi 2 participants 7 messages Aug 13, 2019 – Aug 23, 2019

v6 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

v6 cover virtio-fs: add virtio file system device

v6:
* Clarify that num_queues only counts request queues [Cornelia]
* State that only high priority requests go on the hiprio queue [Cornelia]
* Expand on how endianness works [Cornelia]
* Use "driver" and "device" instead of "guest" and "host" [Michael]
* Explain how setuid files and device nodes can be a security issue [Michael]
* Clarify that security issues with shared file systems involve multiple machines [Michael]
* Document timing side-channel attacks [Michael]

v5:
* Explain multiqueue semantics: no ordering, identical functionality on each queue, one FUSE session state shared between all queues
* Explain how the FUSE session is started with a FUSE_INIT request
* Consistently use "submit" vs "made available" and "complete" vs "used" terminology [Michael]
* Explain endianness [Michael]
* Clarify hiprio vs normal queue usage [Michael]
* Move SHOULD, MUST, etc wording into normative sections [Michael]
* Mention that FUSE_INIT negotiated state needs to be transferred during live migration [Michael]
* State that the DAX window is mapped with writeback caching like RAM [Michael]
* Mention DAX window mapping alignment constraints (they are communicated via the FUSE protocol) [Michael]
* Explain that FUSE_SETUPMAPPING fails when device resources are exhausted and that splitting mappings consumes resources too [Michael]
* Clarify access rules to DAX window - only touch memory that has a mapping establised
* Document that DAX data persistence is achieved via FUSE_FSYNC

v4:
* Clarify that there are no request ordering guarantees between requests in a single queue [vgoyal]
* Add explanation of FUSE session endianness detection [dgilbert]

v3:
* Remove notifications virtqueue, it's unimplemented and can be added when needed [Miklos]
* Add Security Considerations and Live Migration Considerations sections [Michael]
v2:
* Clean up core virtio file system device spec
* Add DAX window

These patches add the virtio file system device, which is based on Linux FUSE but includes the DAX window extension. Similar to virtio-scsi, which transports SCSI commands, virtio-fs transports FUSE requests and the protocol documentation is not duplicated here.

The DAX window allows file contents to be accessed directly from shared memory. This eliminates copying of data, reduces the number of vmexits, and reduces the guest's memory footprint. It also allows coherent mmap MAP_SHARED semantics between guests on the same host.

Stefan Hajnoczi (2):
content: add virtio file system device
virtio-fs: add DAX window

 content.tex      |   1 +
 introduction.tex |   3 +
 virtio-fs.tex    | 279 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 283 insertions(+)
 create mode 100644 virtio-fs.tex
Signature · 6 lines
2.21.0


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
#1 lore raw

PATCH v6 1/2 content: add virtio file system device

The virtio file system device transports Linux FUSE requests between a FUSE daemon running on the host and the FUSE driver inside the guest.

The actual FUSE request definitions are not duplicated in the virtio specification, similar to how virtio-scsi does not document SCSI command details. FUSE request definitions are available here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/fuse.h

This patch documents the core virtio file system device, which is functional but lacks the DAX feature introduced in the next patch.

---
v6:
* Clarify that num_queues only counts request queues [Cornelia]
* State that only high priority requests go on the hiprio queue [Cornelia]
* Expand on how endianness works [Cornelia]
* Use "driver" and "device" instead of "guest" and "host" [Michael]
* Explain how setuid files and device nodes can be a security issue [Michael]
* Clarify that security issues with shared file systems involve multiple machines [Michael]

---
 content.tex      |   1 +
 introduction.tex |   3 +
 virtio-fs.tex    | 224 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 228 insertions(+)
 create mode 100644 virtio-fs.tex
content.tex +1 -0
index ee0d7c9..c14e953 100644
@@ -5677,6 +5677,7 @@ \subsubsection{Legacy Interface: Framing Requirements}\label{sec:Device
 \input{virtio-input.tex}
 \input{virtio-crypto.tex}
 \input{virtio-vsock.tex}
+\input{virtio-fs.tex}
 
 \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits}
 
introduction.tex +3 -0
index c96acf9..40f16f8 100644
@@ -60,6 +60,9 @@ \section{Normative References}\label{sec:Normative References}
 	\phantomsection\label{intro:SCSI MMC}\textbf{[SCSI MMC]} &
         SCSI Multimedia Commands,
         \newline\url{http://www.t10.org/cgi-bin/ac.pl?t=f&f=mmc6r00.pdf}\\
+	\phantomsection\label{intro:FUSE}\textbf{[FUSE]} &
+	Linux FUSE interface,
+	\newline\url{https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/fuse.h}\\
 
 \end{longtable}
 
virtio-fs.tex new file +224 -0

224 lines not on this page · raw message

Signature · 6 lines
2.21.0


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
#2 lore raw

Re: [virtio-dev] [PATCH v6 1/2] content: add virtio file system device

Quoted 26 lines · On Tue, 13 Aug 2019 14:13:19 +0100 Stefan Hajnoczi <[email protected]> wrote:

The virtio file system device transports Linux FUSE requests between a FUSE daemon running on the host and the FUSE driver inside the guest.

The actual FUSE request definitions are not duplicated in the virtio specification, similar to how virtio-scsi does not document SCSI command details. FUSE request definitions are available here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/fuse.h

This patch documents the core virtio file system device, which is functional but lacks the DAX feature introduced in the next patch.

---
v6:
* Clarify that num_queues only counts request queues [Cornelia]
* State that only high priority requests go on the hiprio queue [Cornelia]
* Expand on how endianness works [Cornelia]
* Use "driver" and "device" instead of "guest" and "host" [Michael]
* Explain how setuid files and device nodes can be a security issue [Michael]
* Clarify that security issues with shared file systems involve multiple machines [Michael]

---
 content.tex      |   1 +
 introduction.tex |   3 +
 virtio-fs.tex    | 224 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 228 insertions(+)
 create mode 100644 virtio-fs.tex

(...)

Quoted 21 lines

+\subsection{Virtqueues}\label{sec:Device Types / File System Device / Virtqueues}

virtio-fs.tex new file +20 -0
+
+\begin{description}
+\item[0] hiprio
+\item[1\ldots n] request queues
+\end{description}
+
+\subsection{Feature bits}\label{sec:Device Types / File System Device / Feature bits}
+
+There are currently no feature bits defined.
+
+\subsection{Device configuration layout}\label{sec:Device Types / File System Device / Device configuration layout}
+
+All fields of this configuration are always available.
+
+\begin{lstlisting}
+struct virtio_fs_config {
+        char tag[36];
+        le32 num_queues;
+};
+\end{lstlisting}

virtio-fs.tex line 54

Quoted 10 lines
virtio-fs.tex new file +10 -0
+
+\begin{description}
+\item[\field{tag}] is the name associated with this file system.  The tag is
+    encoded in UTF-8 and padded with NUL bytes if shorter than the
+    available space.  This field is not NUL-terminated if the encoded bytes
+    take up the entire field.
+\item[\field{num_queues}] is the total number of request virtqueues exposed by
+    the device.  Each virtqueue offers identical functionality and there are no
+    ordering guarantees between requests made available on different queues.
+    Use of multiple queues is intended to increase performance.

As this came up during review of the qemu implementation of the device:
num_queues is not the number of virtqueues of the device, but rather the number of request queues -- which is clear from the description, but not from the field name. Maybe rename this field to num_request_queues or so?

Quoted 1 line

+\end{description}

(...)

virtio-fs.tex line 100

Quoted 9 lines

+\subsubsection{Device Operation: Request Queues}\label{sec:Device Types / File System Device / Device Operation / Device Operation: Request Queues}

virtio-fs.tex new file +8 -0
+
+The driver enqueues normal requests on an arbitrary request queue. High
+priority requests are not placed on request queues.  The device processes
+requests in any order.  The driver is responsible for ensuring that ordering
+constraints are met by making available a dependent request only after its
+prerequisite request has been used.
+
+Requests have the following format with endianness chosen by the driver as

"chosen by the driver in the FUSE_INIT request used to initiate the session", maybe? You describe this below, but I think it would be easier to understand if you mentioned it here already.

Quoted 44 lines
virtio-fs.tex new file +44 -0
+detailed below:
+
+\begin{lstlisting}
+struct virtio_fs_req {
+        // Device-readable part
+        struct fuse_in_header in;
+        u8 datain[];
+
+        // Device-writable part
+        struct fuse_out_header out;
+        u8 dataout[];
+};
+\end{lstlisting}
+
+Note that the words "in" and "out" follow the FUSE meaning and do not indicate
+the direction of data transfer under VIRTIO.  "In" means input to a request and
+"out" means output from processing a request.
+
+\field{in} is the common header for all types of FUSE requests.
+
+\field{datain} consists of request-specific data, if any.  This is identical to
+the data read from the /dev/fuse device by a FUSE daemon.
+
+\field{out} is the completion header common to all types of FUSE requests.
+
+\field{dataout} consists of request-specific data, if any.  This is identical
+to the data written to the /dev/fuse device by a FUSE daemon.
+
+For example, the full layout of a FUSE\_READ request is as follows:
+
+\begin{lstlisting}
+struct virtio_fs_read_req {
+        // Device-readable part
+        struct fuse_in_header in;
+        union {
+                struct fuse_read_in readin;
+                u8 datain[sizeof(struct fuse_read_in)];
+        };
+
+        // Device-writable part
+        struct fuse_out_header out;
+        u8 dataout[out.len - sizeof(struct fuse_out_header)];
+};
+\end{lstlisting}

virtio-fs.tex line 154

Quoted 10 lines
virtio-fs.tex new file +10 -0
+
+The FUSE protocol documented in \hyperref[intro:FUSE]{FUSE} specifies the set
+of request types and their contents.
+
+The endianness of the FUSE protocol session is detectable by inspecting the
+uint32\_t \field{in.opcode} field of the FUSE\_INIT request sent by the driver
+to the device.  This allows the device to determine whether the session is
+little-endian or big-endian.  The next FUSE\_INIT message terminates the
+current session and starts a new session with the possibility of changing
+endianness.

(...)

Otherwise, looks good to me.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

#3 lore raw

Re: [virtio-dev] [PATCH v6 1/2] content: add virtio file system device

Quoted 7 lines · Cornelia Huck

virtio-fs.tex line 54

Quoted 4 lines · On Tue, 13 Aug 2019 14:13:19 +0100 Stefan Hajnoczi <[email protected]> wrote:

+\item[\field{num_queues}] is the total number of request virtqueues exposed by

virtio-fs.tex new file +3 -0
+    the device.  Each virtqueue offers identical functionality and there are no
+    ordering guarantees between requests made available on different queues.
+    Use of multiple queues is intended to increase performance.
Quoted 5 lines

As this came up during review of the qemu implementation of the device:
num_queues is not the number of virtqueues of the device, but rather the number of request queues -- which is clear from the description, but not from the field name. Maybe rename this field to num_request_queues or so?

Sounds good. Will fix in the next revision.

Quoted 5 lines
Quoted 5 lines

+\subsubsection{Device Operation: Request Queues}\label{sec:Device Types / File System Device / Device Operation / Device Operation: Request Queues}

virtio-fs.tex new file +4 -0
+
+The driver enqueues normal requests on an arbitrary request queue. High
+priority requests are not placed on request queues.  The device processes
+requests in any order.  The driver is responsible for ensuring that ordering
Quoted 8 lines

virtio-fs.tex line 100

Quoted 4 lines
virtio-fs.tex new file +4 -0
+constraints are met by making available a dependent request only after its
+prerequisite request has been used.
+
+Requests have the following format with endianness chosen by the driver as

"chosen by the driver in the FUSE_INIT request used to initiate the session", maybe? You describe this below, but I think it would be easier to understand if you mentioned it here already.

Thanks, will fix in the next revision.

#4 lore raw

PATCH v6 2/2 virtio-fs: add DAX window

In reply to Stefan Hajnoczi

Describe how shared memory region ID 0 is the DAX window and how FUSE_SETUPMAPPING maps file ranges into the window.

---
The FUSE_SETUPMAPPING message is part of the virtio-fs Linux patches:
https://gitlab.com/virtio-fs/linux/blob/virtio-fs/include/uapi/linux/fuse.h

v6:
* Document timing side-channel attacks [Michael]

---
 virtio-fs.tex | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
virtio-fs.tex +55 -0
index 81adf85..154b043 100644
@@ -178,6 +178,51 @@ \subsubsection{Device Operation: High Priority Queue}\label{sec:Device Types / F
 
 The driver MUST anticipate that request queues are processed concurrently with the hiprio queue.
 
+\subsubsection{Device Operation: DAX Window}\label{sec:Device Types / File System Device / Device Operation / Device Operation: DAX Window}
+
+FUSE\_READ and FUSE\_WRITE requests transfer file contents between the
+driver-provided buffer and the device.  In cases where data transfer is
+undesirable, the device can map file contents into the DAX window shared memory
+region.  The driver then accesses file contents directly in device-owned memory
+without a data transfer.
+
+Shared memory region ID 0 is called the DAX window.  Drivers map this shared
+memory region with writeback caching as if it were regular RAM.  The contents
+of the DAX window are undefined unless a mapping exists for that range.
+
+The driver maps a file range into the DAX window using the FUSE\_SETUPMAPPING
+request.  Alignment constraints for FUSE\_SETUPMAPPING and FUSE\_REMOVEMAPPING
+requests are communicated during FUSE\_INIT negotiation.
+
+When a FUSE\_SETUPMAPPING request perfectly overlaps a previous mapping, the
+previous mapping is replaced.  When a mapping partially overlaps a previous
+mapping, the previous mapping is split into one or two smaller mappings.  When
+a mapping is partially unmapped it is also split into one or two smaller
+mappings.
+
+Establishing new mappings or splitting existing mappings consumes resources.
+If the device runs out of resources the FUSE\_SETUPMAPPING request fails until
+resources are available again following FUSE\_REMOVEMAPPING.
+
+After FUSE\_SETUPMAPPING has completed successfully the file range is
+accessible from the DAX window at the offset provided by the driver in the
+request.  A mapping is removed using the FUSE\_REMOVEMAPPING request.
+
+Data is only guaranteed to be persistent when a FUSE\_FSYNC request is used by
+the device after having been made available by the driver following the write.
+
+\devicenormative{\paragraph}{Device Operation: DAX Window}{Device Types / File System Device / Device Operation / Device Operation: DAX Window}
+
+The device MUST allow mappings that completely or partially overlap existing mappings within the DAX window.
+
+The device MUST reject mappings that would go beyond the end of the DAX window.
+
+\drivernormative{\paragraph}{Device Operation: DAX Window}{Device Types / File System Device / Device Operation / Device Operation: DAX Window}
+
+The driver SHOULD be prepared to find shared memory region ID 0 absent and fall back to FUSE\_READ and FUSE\_WRITE requests.
+
+The driver MUST NOT access DAX window areas that have not been mapped.
+
 \subsubsection{Security Considerations}\label{sec:Device Types / File System Device / Security Considerations}
 
 The device provides access to a file system containing files owned by one or
@@ -206,6 +251,16 @@ \subsubsection{Security Considerations}\label{sec:Device Types / File System Dev
 virtio-fs.  They are typically managed at the file system administration level
 by providing shared access only to mutually trusted users.
 
+Multiple machines sharing access to a file system are susceptible to timing
+side-channel attacks.  By measuring the latency of accesses to file contents or
+file system metadata it is possible to infer whether other machines also
+accessed the same information.  Short latencies indicate that the information
+was cached due to a previous access.  This can reveal sensitive information,
+such as whether certain code paths were taken.  The DAX Window provides direct
+access to file contents and is therefore a likely target of such attacks.
+These attacks are also possible with traditional FUSE requests.  The safest
+approach is to avoid sharing file systems between untrusted machines.
+
 \subsubsection{Live migration considerations}\label{sec:Device Types / File System Device / Live Migration Considerations}
 
 When a driver is migrated to a new device it is necessary to consider the FUSE
Signature · 6 lines
2.21.0


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
#5 lore raw

Re: [virtio-dev] [PATCH v6 2/2] virtio-fs: add DAX window

Quoted 23 lines · On Tue, 13 Aug 2019 14:13:20 +0100 Stefan Hajnoczi <[email protected]> wrote:

Describe how shared memory region ID 0 is the DAX window and how FUSE_SETUPMAPPING maps file ranges into the window.

---
The FUSE_SETUPMAPPING message is part of the virtio-fs Linux patches:
https://gitlab.com/virtio-fs/linux/blob/virtio-fs/include/uapi/linux/fuse.h

v6:
* Document timing side-channel attacks [Michael]

---
 virtio-fs.tex | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
virtio-fs.tex +1 -0
index 81adf85..154b043 100644
@@ -178,6 +178,51 @@ \subsubsection{Device Operation: High Priority Queue}\label{sec:Device Types / F
 
 The driver MUST anticipate that request queues are processed concurrently with the hiprio queue.
 
+\subsubsection{Device Operation: DAX Window}\label{sec:Device Types / File System Device / Device Operation / Device Operation: DAX Window}

virtio-fs.tex \subsubsection{Device Operation: High Priority Queue}\label{sec:Device Types / F · line 191

Quoted 10 lines
virtio-fs.tex +10 -0
+
+FUSE\_READ and FUSE\_WRITE requests transfer file contents between the
+driver-provided buffer and the device.  In cases where data transfer is
+undesirable, the device can map file contents into the DAX window shared memory
+region.  The driver then accesses file contents directly in device-owned memory
+without a data transfer.
+
+Shared memory region ID 0 is called the DAX window.  Drivers map this shared
+memory region with writeback caching as if it were regular RAM.  The contents
+of the DAX window are undefined unless a mapping exists for that range.

Are drivers still free to use FUSE_{READ,WRITE}?

Quoted 21 lines
virtio-fs.tex +21 -0
+
+The driver maps a file range into the DAX window using the FUSE\_SETUPMAPPING
+request.  Alignment constraints for FUSE\_SETUPMAPPING and FUSE\_REMOVEMAPPING
+requests are communicated during FUSE\_INIT negotiation.
+
+When a FUSE\_SETUPMAPPING request perfectly overlaps a previous mapping, the
+previous mapping is replaced.  When a mapping partially overlaps a previous
+mapping, the previous mapping is split into one or two smaller mappings.  When
+a mapping is partially unmapped it is also split into one or two smaller
+mappings.
+
+Establishing new mappings or splitting existing mappings consumes resources.
+If the device runs out of resources the FUSE\_SETUPMAPPING request fails until
+resources are available again following FUSE\_REMOVEMAPPING.
+
+After FUSE\_SETUPMAPPING has completed successfully the file range is
+accessible from the DAX window at the offset provided by the driver in the
+request.  A mapping is removed using the FUSE\_REMOVEMAPPING request.
+
+Data is only guaranteed to be persistent when a FUSE\_FSYNC request is used by
+the device after having been made available by the driver following the write.

virtio-fs.tex \subsubsection{Device Operation: High Priority Queue}\label{sec:Device Types / F · line 222

Quoted 10 lines
virtio-fs.tex +10 -0
+
+\devicenormative{\paragraph}{Device Operation: DAX Window}{Device Types / File System Device / Device Operation / Device Operation: DAX Window}
+
+The device MUST allow mappings that completely or partially overlap existing mappings within the DAX window.
+
+The device MUST reject mappings that would go beyond the end of the DAX window.
+
+\drivernormative{\paragraph}{Device Operation: DAX Window}{Device Types / File System Device / Device Operation / Device Operation: DAX Window}
+
+The driver SHOULD be prepared to find shared memory region ID 0 absent and fall back to FUSE\_READ and FUSE\_WRITE requests.

Should the _device_ also be prepared that the driver does not use the dax window? Likely yes (old drivers etc.); do we need to spell it out?

virtio-fs.tex \subsubsection{Device Operation: High Priority Queue}\label{sec:Device Types / F · line 228

Quoted 6 lines
virtio-fs.tex +3 -0
+
+The driver MUST NOT access DAX window areas that have not been mapped.
+
 \subsubsection{Security Considerations}\label{sec:Device Types / File System Device / Security Considerations}
 
 The device provides access to a file system containing files owned by one or

(...)

Otherwise, looks good to me.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

#6 lore raw

Re: [virtio-dev] [PATCH v6 2/2] virtio-fs: add DAX window

Quoted 25 lines · Cornelia Huck
Quoted 22 lines · On Tue, 13 Aug 2019 14:13:20 +0100 Stefan Hajnoczi <[email protected]> wrote:

Describe how shared memory region ID 0 is the DAX window and how FUSE_SETUPMAPPING maps file ranges into the window.

---
The FUSE_SETUPMAPPING message is part of the virtio-fs Linux patches:
https://gitlab.com/virtio-fs/linux/blob/virtio-fs/include/uapi/linux/fuse.h

v6:
* Document timing side-channel attacks [Michael]

---
 virtio-fs.tex | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
virtio-fs.tex +0 -0
index 81adf85..154b043 100644
@@ -178,6 +178,51 @@ \subsubsection{Device Operation: High Priority Queue}\label{sec:Device Types / F
 
 The driver MUST anticipate that request queues are processed concurrently with the hiprio queue.
 
Quoted 13 lines

virtio-fs.tex \subsubsection{Device Operation: High Priority Queue}\label{sec:Device Types / F · line 191

Quoted 11 lines
virtio-fs.tex +11 -0
+\subsubsection{Device Operation: DAX Window}\label{sec:Device Types / File System Device / Device Operation / Device Operation: DAX Window}
+
+FUSE\_READ and FUSE\_WRITE requests transfer file contents between the
+driver-provided buffer and the device.  In cases where data transfer is
+undesirable, the device can map file contents into the DAX window shared memory
+region.  The driver then accesses file contents directly in device-owned memory
+without a data transfer.
+
+Shared memory region ID 0 is called the DAX window.  Drivers map this shared
+memory region with writeback caching as if it were regular RAM.  The contents
+of the DAX window are undefined unless a mapping exists for that range.

Are drivers still free to use FUSE_{READ,WRITE}?

Yes. Will mention it in the next revision.

Quoted 26 lines
Quoted 26 lines
virtio-fs.tex +26 -0
+
+The driver maps a file range into the DAX window using the FUSE\_SETUPMAPPING
+request.  Alignment constraints for FUSE\_SETUPMAPPING and FUSE\_REMOVEMAPPING
+requests are communicated during FUSE\_INIT negotiation.
+
+When a FUSE\_SETUPMAPPING request perfectly overlaps a previous mapping, the
+previous mapping is replaced.  When a mapping partially overlaps a previous
+mapping, the previous mapping is split into one or two smaller mappings.  When
+a mapping is partially unmapped it is also split into one or two smaller
+mappings.
+
+Establishing new mappings or splitting existing mappings consumes resources.
+If the device runs out of resources the FUSE\_SETUPMAPPING request fails until
+resources are available again following FUSE\_REMOVEMAPPING.
+
+After FUSE\_SETUPMAPPING has completed successfully the file range is
+accessible from the DAX window at the offset provided by the driver in the
+request.  A mapping is removed using the FUSE\_REMOVEMAPPING request.
+
+Data is only guaranteed to be persistent when a FUSE\_FSYNC request is used by
+the device after having been made available by the driver following the write.
+
+\devicenormative{\paragraph}{Device Operation: DAX Window}{Device Types / File System Device / Device Operation / Device Operation: DAX Window}
+
+The device MUST allow mappings that completely or partially overlap existing mappings within the DAX window.
+
Quoted 8 lines

virtio-fs.tex \subsubsection{Device Operation: High Priority Queue}\label{sec:Device Types / F · line 222

Quoted 5 lines
virtio-fs.tex +5 -0
+The device MUST reject mappings that would go beyond the end of the DAX window.
+
+\drivernormative{\paragraph}{Device Operation: DAX Window}{Device Types / File System Device / Device Operation / Device Operation: DAX Window}
+
+The driver SHOULD be prepared to find shared memory region ID 0 absent and fall back to FUSE\_READ and FUSE\_WRITE requests.

Should the _device_ also be prepared that the driver does not use the dax window? Likely yes (old drivers etc.); do we need to spell it out?

Yes, will fix in the next revision.