-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"guest" in IOMMU and vIOMMU #15
Comments
and same in vIOMMU, "guest" means a VM here I believe? Virtual IOMMU vIOMMU has the following characteristics: In order to get a virtual device working with a virtual IOMMU we have to: Following mechanisms can be used to create vIOMMU memory mappings: |
Guest is the VM. Host is the Hypervisor compute node (real physical node). IOMMU help to protect DMA transfer (IOMMU = intel vt-d). IOMMU is used for device assignment to a VM (Guest instance). When a host physical NIC card is assigned to a VM (= moved to be used exclusively by this VM), IOMMU is used to define a host memory area in which the device and the VM will operate (memory area used for DMA transfer between VM and physical NIC). |
vIOMMU is a step further .... used in nested virtualization. To do so, you need both IOMMU and vIOMMU:
|
thanks @ldurandadomia . it's much clearer now. basically if I got it correct 2 things achieved:
and, sounds like vIOMMU is nothing but the exactly same thing done for nested VM(l2 VM), inside of VM (l1 vm). correct me if I'm wrong. |
reading vIOMMU in ch3, again the term "guest" bring a little confusions:
IOMMU provides a short path for the guest to get access to the physical device memory. IOMMU helps to prevent DMA attacks that could be originated by malicious devices. IOMMU provides DMA and interrupt remapping facilities to ensure I/O devices behave within the boundaries they've been allotted
what is the "guest" here? I believe it is an user application trying to access NIC? (so with IOMMU instead of access low-level NIC physical address, user just need to access a host memory address which was mapped from the NIC physical address)
The text was updated successfully, but these errors were encountered: