04 Virtualisation
04 Virtualisation
Barry Denby
Griffith College Dublin
I Definition of a VMM
I “A VMM (or hypervisor) is a piece of software
that securely partitions the resources of a
computer system into one or more virtual
machines”
I Definition of a Guest Operating System
I “A guest operating system is an operating
system that runs under the control of a VMM
rather than directly on hardware
Virtualisation: VMMs
I In normal applications there are two modes of
execution
I User mode: execution of non-privileged instructions
(Ring 3 in x86)
I Kernel mode: execution of privileged instructions
(Ring 0 in x86)
I During execution an application will at times
context switch between the two to run a
privileged instruction
I Application must context switch to kernel mode to
execute instruction and then context switch back
to usermode
I Costly operation
I Kernel enforces if applications are permitted to run
privileged operations
Virtualisation: VMMs