CS FundamentalsVery hardGATE CS

What is the main purpose of the I/O MMU (IOMMU) in modern systems?

  1. A. To speed up CPU caches
  2. B. To translate and restrict device DMA addresses, so a device (or a VM's passthrough device) can only access memory it was granted
  3. C. To schedule disk requests
  4. D. To translate file names to inodes

Correct answer: B. To translate and restrict device DMA addresses, so a device (or a VM's passthrough device) can only access memory it was granted

Without an IOMMU, a DMA-capable device can read or write any physical memory. The IOMMU applies page-table-like mappings to device accesses, enabling safe device assignment to VMs and protection against malicious devices.

More Operating Systems questions

Exams that ask this topic