What is a problem with trap-and-emulate virtualization?
Some privileged operations silently fail -> do not cause a trap.
Guest VM or OS thinks all worked fine though Hypervisor never received any trap, thus did not emulate jack shit.
Name the classic definition of a VM
A virtual machine is an efficient, isolated, duplicate of the real machine
Name goals of the VMM
Characteristics of a VMM
Advantage of VMS
Describe the two models for Virtualisation
Name a downside of the Hypervisor type 1
Hardware providers need to create device drivers not only for a certain OS but also for different hypervisors.
Solution
How do you separate privilege levels in a host with a hypervisor of type 1?
4 Rings = protection levels
Some also additional distinction between root & non-root
non-root: Guest VMS
- ring 3: apps
- ring 0: OSroot: Hypervisor
What is trap-and-emulate
The technique used in mainframes for efficient virtualization. All non-privileged instructions from guest VMS run WITHOUT interference of the hypervisor (native speed).
Only priv. instructions trap to the hypervisor and need to be evaluated.
What is full virtualization and how is it achieved?
Guest OS does not need to be modified. Achieved using binary translation! At VM runtime, Translate 17 silently failing priv. operations to other non-failing statements.
What is paravirtualization and how does it differ from full virtualisation?
paravirtualization gives up on goal of full virtualisation to increase performance.
Memory virtualization - what is the difference between the virtual vs physical vs machine addresses?
Application on VM -> virtual addresses -> pysical addresses (PoV VM)
VMs address space is then mapped to the machines real address space.
What is a shadow page table and why is it required?
Why is the Shadow page table required?
What is special about paravirtualisation for memory?
Another nice feature: Guest OS Hypercall to VMM to batch update new page table entries
What is a Hypercall / VM Exit
Only exist in paravirtualization!
A direct message from a Guest OS to the VMM to take advantage of Hypervisor special functionality.
Can be expensive.
What are the three modes of Virtualisation of Hardware?
What is the advantage & disadvantage of the Passthrough Hardware virtualisation mode?
A:
D:
What is the advantage & disadvantage of the Hypervisor Direct - Hardware virtualisation mode?
A:
- VM decoupled from hardware (easy migration!, no hardware device specifics)
D:
What is the advantage & disadvantage of the Split Device Driver Model - Hardware virtualisation mode?
A:
- Eliminate Emulation overhead
Detailed:
Vs Direct access: Centrals decision for device requests (policy, device sharing amongst VMS) within the service VM => better decision compared to having to rely on physical device capabilities to manage sharing it amongst VMs