Difference between revisions of "Virtual I/O Internals"

From Open-IOV
Jump to navigation Jump to search
Line 11: Line 11:
==RPC Mode==
==RPC Mode==
[[File:Mediated Device Access MMU.png|thumb|A slide describing Extended Page Table & MMU used in mediated device management.]]
[[File:Mediated Device Access MMU.png|thumb|A slide describing Extended Page Table & MMU used in mediated device management.]]
RPC Mode moves instruction information across a virtual function interface (VF) using [https://infogalactic.com/info/Remote_procedure_call Remote Procedure Calls] generally by way of [https://infogalactic.com/info/Interrupt soft interrupt] (IOCTLs).
RPC Mode moves instruction information across a virtual function interface (VF) using [https://infogalactic.com/info/Remote_procedure_call Remote Procedure Calls] generally by way of [https://infogalactic.com/info/Interrupt soft interrupt] (IOCTLs). These instructions are presented to the host in the context of emulated memory regions (indirect emulated communication, requires a VM-exit) or passthrough memory directions (direct communication, no VM-exit).
[[File:Mediated Device Access.png|thumb|A slide from Neo Gia's presentation at KVM forum.]]
[[File:Mediated Device Access.png|thumb|A slide from Neo Gia's presentation at KVM forum.]]
==SR-IOV Mode==
==SR-IOV Mode==
SR-IOV Mode involves the communication of instructions from a virtual function (VF) though direct communication to the [https://infogalactic.com/info/PCI_configuration_space PCI BAR].
SR-IOV Mode involves the communication of instructions from a virtual function (VF) though direct communication to the [https://infogalactic.com/info/PCI_configuration_space PCI BAR].

Revision as of 20:27, 21 April 2022

The following document will attempt to detail the internals of a Virtual Function IO (VFIO) driven Mediated Device (Mdev).


Requirements:

Sensitive Instruction List.

Instruction Shim/Binary Translator.

HPA<->GPA Boundary Enforcement.

RPC Mode

File:Mediated Device Access MMU.png
A slide describing Extended Page Table & MMU used in mediated device management.

RPC Mode moves instruction information across a virtual function interface (VF) using Remote Procedure Calls generally by way of soft interrupt (IOCTLs). These instructions are presented to the host in the context of emulated memory regions (indirect emulated communication, requires a VM-exit) or passthrough memory directions (direct communication, no VM-exit).

File:Mediated Device Access.png
A slide from Neo Gia's presentation at KVM forum.

SR-IOV Mode

SR-IOV Mode involves the communication of instructions from a virtual function (VF) though direct communication to the PCI BAR.