CS FundamentalsVery hardGATE CS

Why could a classic x86 CPU (before VT-x/AMD-V) not be virtualised by pure trap-and-emulate?

  1. A. x86 had no user and kernel modes
  2. B. x86 could not run more than one process
  3. C. Some sensitive instructions (e.g. POPF changing the interrupt flag) behaved differently in user mode without trapping, so the hypervisor never got control
  4. 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

Exams that ask this topic