CS FundamentalsVery hardGATE CS
Why could a classic x86 CPU (before VT-x/AMD-V) not be virtualised by pure trap-and-emulate?
- A. x86 had no user and kernel modes
- B. x86 could not run more than one process
- C. Some sensitive instructions (e.g. POPF changing the interrupt flag) behaved differently in user mode without trapping, so the hypervisor never got control
- D. Page tables did not exist on x86
Correct answer: C. Some sensitive instructions (e.g. POPF changing the interrupt flag) behaved differently in user mode without trapping, so the hypervisor never got control
Popek–Goldberg require every sensitive instruction to be privileged. Classic x86 had about 17 sensitive but unprivileged instructions; binary translation or paravirtualisation was needed until hardware extensions arrived.
More Operating Systems questions
- Containers (e.g. using Linux namespaces and cgroups) differ from virtual machines mainly because:
- A 1 GB process is swapped to a disk with 100 MB/s transfer rate and 10 ms latency. Approximately how long does a full swap out followed by…
- Interrupt-driven I/O vs polling: a device produces one byte every 1 ms and checking its status register costs 1 µs, while taking an…
- Which statement about DMA is correct?
- A spooler is used for a printer. Which deadlock condition does spooling break for the printer resource, and how?
- Semaphores s = 2, t = 0. Process X runs repeat 2 times { wait(s); print('A'); signal(t); } and Y runs repeat 2 times { wait(t)…