CS FundamentalsVery hardGATE CS
What is the main purpose of the I/O MMU (IOMMU) in modern systems?
- A. To speed up CPU caches
- B. To translate and restrict device DMA addresses, so a device (or a VM's passthrough device) can only access memory it was granted
- C. To schedule disk requests
- 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
- A process holds a spinlock and is preempted on a single-CPU system; the next scheduled thread tries to take the same spinlock. What…
- Read-copy-update (RCU) is used for read-mostly kernel data. What is its key idea?
- A reader-writer lock is used where reads are 99% of operations and each read is very short. Why might it perform WORSE than a plain mutex…
- A seqlock lets readers proceed without blocking writers. A reader reads the sequence number, reads the data, then rereads the sequence…
- A condition-variable based bounded buffer uses a single condition variable cv for both 'not full' and 'not empty', and signals with…
- Which statement about deadlock in a system with only ONE resource type that has 10 instances is correct?