Add virtio-iommu device specification
PATCH v2 1/1 Add virtio-iommu device specification
The IOMMU device allows a guest to manage DMA mappings for physical, emulated and paravirtualized endpoints. Add device description for the virtio-iommu device and driver. Introduce PROBE, ATTACH, DETACH, MAP and UNMAP requests, as well as translation error reporting.
---
There wasn't any comment on the previous spec patch, this version addresses comments from Thiago on the Linux thread.
v1->v2:
* Add conformance sections (I'll add \conformance once it's upstream).
* Use "negotiated" instead of "offered" even for feature bits that "SHOULD" be accepted by the driver. It's more consistent with other devices.
* Explicitly state that ranges [virt_start;virt_end] are inclusive.
Please find the latest versions of device and driver at:
* https://lists.linuxfoundation.org/pipermail/iommu/2019-January/032677.html
* http://lists.gnu.org/archive/html/qemu-arm/2018-11/msg00680.html
A PDF version is available at:
* http://jpbrucker.net/virtio-iommu/spec/virtio-v1.1-wd01-iommu-0.11-draft.pdf
--- conformance.tex | 40 ++- content.tex | 1 + virtio-iommu.tex | 850 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 889 insertions(+), 2 deletions(-) create mode 100644 virtio-iommu.tex
conformance.tex +38 -2
@@ -15,13 +15,13 @@ Conformance targets: \begin{itemize} \item Clause \ref{sec:Conformance / Driver Conformance}, \item One of clauses \ref{sec:Conformance / Driver Conformance / PCI Driver Conformance}, \ref{sec:Conformance / Driver Conformance / MMIO Driver Conformance} or \ref{sec:Conformance / Driver Conformance / Channel I/O Driver Conformance}. - \item One of clauses \ref{sec:Conformance / Driver Conformance / Network Driver Conformance}, \ref{sec:Conformance / Driver Conformance / Block Driver Conformance}, \ref{sec:Conformance / Driver Conformance / Console Driver Conformance}, \ref{sec:Conformance / Driver Conformance / Entropy Driver Conformance}, \ref{sec:Conformance / Driver Conformance / Traditional Memory Balloon Driver Conformance}, \ref{sec:Conformance / Driver Conformance / SCSI Host Driver Conformance}, or \ref{sec:Conformance / Driver Conformance / Socket Driver Conformance}. + \item One of clauses \ref{sec:Conformance / Driver Conformance / Network Driver Conformance}, \ref{sec:Conformance / Driver Conformance / Block Driver Conformance}, \ref{sec:Conformance / Driver Conformance / Console Driver Conformance}, \ref{sec:Conformance / Driver Conformance / Entropy Driver Conformance}, \ref{sec:Conformance / Driver Conformance / Traditional Memory Balloon Driver Conformance}, \ref{sec:Conformance / Driver Conformance / SCSI Host Driver Conformance}, \ref{sec:Conformance / Driver Conformance / Socket Driver Conformance}, or \ref{sec:Conformance / Driver Conformance / IOMMU Driver Conformance}. \end{itemize} \item[Device] A device MUST conform to three conformance clauses: \begin{itemize} \item Clause \ref{sec:Conformance / Device Conformance}, \item One of clauses \ref{sec:Conformance / Device Conformance / PCI Device Conformance}, \ref{sec:Conformance / Device Conformance / MMIO Device Conformance} or \ref{sec:Conformance / Device Conformance / Channel I/O Device Conformance}. - \item One of clauses \ref{sec:Conformance / Device Conformance / Network Device Conformance}, \ref{sec:Conformance / Device Conformance / Block Device Conformance}, \ref{sec:Conformance / Device Conformance / Console Device Conformance}, \ref{sec:Conformance / Device Conformance / Entropy Device Conformance}, \ref{sec:Conformance / Device Conformance / Traditional Memory Balloon Device Conformance}, \ref{sec:Conformance / Device Conformance / SCSI Host Device Conformance}, or \ref{sec:Conformance / Device Conformance / Socket Device Conformance}. + \item One of clauses \ref{sec:Conformance / Device Conformance / Network Device Conformance}, \ref{sec:Conformance / Device Conformance / Block Device Conformance}, \ref{sec:Conformance / Device Conformance / Console Device Conformance}, \ref{sec:Conformance / Device Conformance / Entropy Device Conformance}, \ref{sec:Conformance / Device Conformance / Traditional Memory Balloon Device Conformance}, \ref{sec:Conformance / Device Conformance / SCSI Host Device Conformance}, \ref{sec:Conformance / Device Conformance / Socket Device Conformance}, or \ref{sec:Conformance / Device Conformance / IOMMU Device Conformance}. \end{itemize} \end{description}
@@ -181,6 +181,24 @@ A socket driver MUST conform to the following normative statements: \item \ref{drivernormative:Device Types / Socket Device / Device Operation / Device Events} \end{itemize} +\subsection{IOMMU Driver Conformance}\label{sec:Conformance / Driver Conformance / IOMMU Driver Conformance} + +An IOMMU driver MUST conform to the following normative statements: + +\begin{itemize} +\item \ref{drivernormative:Device Types / IOMMU Device / Feature bits} +\item \ref{drivernormative:Device Types / IOMMU Device / Device configuration layout} +\item \ref{drivernormative:Device Types / IOMMU Device / Device Initialization} +\item \ref{drivernormative:Device Types / IOMMU Device / Device operations} +\item \ref{drivernormative:Device Types / IOMMU Device / Device operations / ATTACH request} +\item \ref{drivernormative:Device Types / IOMMU Device / Device operations / DETACH request} +\item \ref{drivernormative:Device Types / IOMMU Device / Device operations / MAP request} +\item \ref{drivernormative:Device Types / IOMMU Device / Device operations / UNMAP request} +\item \ref{drivernormative:Device Types / IOMMU Device / Device operations / PROBE request} +\item \ref{drivernormative:Device Types / IOMMU Device / Device operations / PROBE properties / RESVMEM} +\item \ref{drivernormative:Device Types / IOMMU Device / Device operations / Fault reporting} +\end{itemize} + \section{Device Conformance}\label{sec:Conformance / Device Conformance} A device MUST conform to the following normative statements:
@@ -334,6 +352,24 @@ A socket device MUST conform to the following normative statements: \item \ref{devicenormative:Device Types / Socket Device / Device Operation / Receive and Transmit} \end{itemize} +\subsection{IOMMU Device Conformance}\label{sec:Conformance / Device Conformance / IOMMU Device Conformance} + +An IOMMU device MUST conform to the following normative statements: + +\begin{itemize} +\item \ref{devicenormative:Device Types / IOMMU Device / Feature bits} +\item \ref{devicenormative:Device Types / IOMMU Device / Device configuration layout} +\item \ref{devicenormative:Device Types / IOMMU Device / Device Initialization} +\item \ref{devicenormative:Device Types / IOMMU Device / Device operations} +\item \ref{devicenormative:Device Types / IOMMU Device / Device operations / ATTACH request} +\item \ref{devicenormative:Device Types / IOMMU Device / Device operations / DETACH request} +\item \ref{devicenormative:Device Types / IOMMU Device / Device operations / MAP request} +\item \ref{devicenormative:Device Types / IOMMU Device / Device operations / UNMAP request} +\item \ref{devicenormative:Device Types / IOMMU Device / Device operations / PROBE request} +\item \ref{devicenormative:Device Types / IOMMU Device / Device operations / PROBE properties / RESVMEM} +\item \ref{devicenormative:Device Types / IOMMU Device / Device operations / Fault reporting} +\end{itemize} + \section{Legacy Interface: Transitional Device and Transitional Driver Conformance}\label{sec:Conformance / Legacy Interface: Transitional Device and
content.tex +1 -0
@@ -5595,6 +5595,7 @@ descriptor for the \field{sense_len}, \field{residual}, \input{virtio-input.tex} \input{virtio-crypto.tex} \input{virtio-vsock.tex} +\input{virtio-iommu.tex} \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits}
virtio-iommu.tex new file +850 -0
850 lines not on this page · raw message
Signature · 19 lines
2.21.0 This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC. In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting. Subscribe: [email protected] Unsubscribe: [email protected] List help: [email protected] List archive: https://lists.oasis-open.org/archives/virtio-comment/ Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists Committee: https://www.oasis-open.org/committees/virtio/ Join OASIS: https://www.oasis-open.org/join/
Hi,
Quoted 7 lines · Jean-Philippe Brucker
The IOMMU device allows a guest to manage DMA mappings for physical, emulated and paravirtualized endpoints. Add device description for the virtio-iommu device and driver. Introduce PROBE, ATTACH, DETACH, MAP and UNMAP requests, as well as translation error reporting.
If there aren't any more comments on this version, could I request a vote? The virtio-iommu spec has been reviewed on the virtio-dev list by several of the people on Cc. The Linux driver has been in good shape for a while, but Joerg would like to see progress on this specification before merging it upstream. It's too late in the release cycle for Linux v5.2, but I'm hoping to get something in v5.3. I think the QEMU device will follow the Linux driver since it depends on API headers.
Thanks,
Jean
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
Hi,
Quoted 11 lines · Jean-Philippe Brucker
Hi,
Quoted 7 lines · Jean-Philippe Brucker
The IOMMU device allows a guest to manage DMA mappings for physical, emulated and paravirtualized endpoints. Add device description for the virtio-iommu device and driver. Introduce PROBE, ATTACH, DETACH, MAP and UNMAP requests, as well as translation error reporting.
Quoted 6 lines
If there aren't any more comments on this version, could I request a vote? The virtio-iommu spec has been reviewed on the virtio-dev list by several of the people on Cc. The Linux driver has been in good shape for a while, but Joerg would like to see progress on this specification before merging it upstream. It's too late in the release cycle for Linux v5.2, but I'm hoping to get something in v5.3.
Is there any calendar for the "OASIS Virtual I/O Device (VIRTIO) TC" votes?
I think the QEMU device
Quoted 1 line
will follow the Linux driver since it depends on API headers.
Yes sure I will respin the QEMU VIRTIO-IOMMU device accordingly.
Thanks
Eric
Quoted 4 lines
Thanks,
Jean
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Quoted 13 lines · Auger Eric
Hi,
Quoted 11 lines · Jean-Philippe Brucker
Hi,
Quoted 7 lines · Jean-Philippe Brucker
The IOMMU device allows a guest to manage DMA mappings for physical, emulated and paravirtualized endpoints. Add device description for the virtio-iommu device and driver. Introduce PROBE, ATTACH, DETACH, MAP and UNMAP requests, as well as translation error reporting.
Quoted 7 lines
Quoted 6 lines
If there aren't any more comments on this version, could I request a vote? The virtio-iommu spec has been reviewed on the virtio-dev list by several of the people on Cc. The Linux driver has been in good shape for a while, but Joerg would like to see progress on this specification before merging it upstream. It's too late in the release cycle for Linux v5.2, but I'm hoping to get something in v5.3.
Is there any calendar for the "OASIS Virtual I/O Device (VIRTIO) TC" votes?
All active and past ballots are here:
https://www.oasis-open.org/committees/ballots.php?wg_abbrev=virtio
Quoted 8 lines
I think the QEMU device
Quoted 1 line
will follow the Linux driver since it depends on API headers.
Yes sure I will respin the QEMU VIRTIO-IOMMU device accordingly.
Thanks
Eric
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
Thanks,
Jean---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
Quoted 13 lines · Auger Eric
Hi,
Quoted 11 lines · Jean-Philippe Brucker
Hi,
Quoted 7 lines · Jean-Philippe Brucker
The IOMMU device allows a guest to manage DMA mappings for physical, emulated and paravirtualized endpoints. Add device description for the virtio-iommu device and driver. Introduce PROBE, ATTACH, DETACH, MAP and UNMAP requests, as well as translation error reporting.
Quoted 7 lines
Quoted 6 lines
If there aren't any more comments on this version, could I request a vote? The virtio-iommu spec has been reviewed on the virtio-dev list by several of the people on Cc. The Linux driver has been in good shape for a while, but Joerg would like to see progress on this specification before merging it upstream. It's too late in the release cycle for Linux v5.2, but I'm hoping to get something in v5.3.
Is there any calendar for the "OASIS Virtual I/O Device (VIRTIO) TC" votes?
I started the vote but had to withdraw the ballot as the issue does not link to the latest proposal (is v2 the correct one?). Please edit the issue to link to latest proposal and request the vote again.
Thanks!
Quoted 8 lines
I think the QEMU device
Quoted 1 line
will follow the Linux driver since it depends on API headers.
Yes sure I will respin the QEMU VIRTIO-IOMMU device accordingly.
Thanks
Eric
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
Thanks,
Jean---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
Quoted 20 lines · Michael S. Tsirkin
Quoted 19 lines · Auger Eric
Hi,
Quoted 17 lines · Jean-Philippe Brucker
Hi,
Quoted 7 lines · Jean-Philippe Brucker
The IOMMU device allows a guest to manage DMA mappings for physical, emulated and paravirtualized endpoints. Add device description for the virtio-iommu device and driver. Introduce PROBE, ATTACH, DETACH, MAP and UNMAP requests, as well as translation error reporting.
If there aren't any more comments on this version, could I request a vote? The virtio-iommu spec has been reviewed on the virtio-dev list by several of the people on Cc. The Linux driver has been in good shape for a while, but Joerg would like to see progress on this specification before merging it upstream. It's too late in the release cycle for Linux v5.2, but I'm hoping to get something in v5.3.
Quoted 5 lines
Quoted 1 line
Is there any calendar for the "OASIS Virtual I/O Device (VIRTIO) TC" votes?
I started the vote but had to withdraw the ballot as the issue does not link to the latest proposal (is v2 the correct one?). Please edit the issue to link to latest proposal and request the vote again.
Ok, although I noticed that this v2 has a conflict with the upstream conformance.tex. So I'll send a v3 and update the github link once it appears in the mailinglist archive, then I'll request the vote again
Thanks,
Jean
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
Quoted 8 lines · Jean-Philippe Brucker
Hi,
Quoted 5 lines · Jean-Philippe Brucker
The IOMMU device allows a guest to manage DMA mappings for physical, emulated and paravirtualized endpoints. Add device description for the virtio-iommu device and driver. Introduce PROBE, ATTACH, DETACH, MAP and UNMAP requests, as well as translation error reporting.
Quoted 5 lines
Quoted 2 lines
If there aren't any more comments on this version, could I request a vote?
Ballot created: https://www.oasis-open.org/committees/ballot.php?id=3386
Quoted 17 lines
The virtio-iommu spec has been reviewed on the virtio-dev list by several of the people on Cc. The Linux driver has been in good shape for a while, but Joerg would like to see progress on this specification before merging it upstream. It's too late in the release cycle for Linux v5.2, but I'm hoping to get something in v5.3. I think the QEMU device will follow the Linux driver since it depends on API headers.
Thanks,
JeanThis publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Quoted 8 lines
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/