Question: With virtual machines, the host kernel runs in privileged mode to create a virtual machine that runs in user mode. The virtual machine provides the

With virtual machines, the host kernel runs in privileged mode to create

a virtual machine that runs in user mode. The virtual machine provides

the illusion that the guest kernel runs on its own machine in privileged

mode, even though it is actually running in user mode.

Early versions of the x86 architecture (pre-2006) were not completely

virtualizablethese systems could not guarantee to run unmodified

guest operating systems properly. One problem was the popf pop flags

instruction that restores the processor status word. When popf was run

in privileged mode, it changed both the ALU flags (e.g., the condition

codes) and the systems flags (e.g., the interrupt mask). When popf was

run in unprivileged mode, it changed just the ALU flags.

a) Why do instructions like popf prevent transparent virtualization of

the (old) x86 architecture?

b) How would you change the (old) x86 hardware to fix this problem?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!