VMM
Virtual Machine Manager (VMM) = hypervisor =
a type of software that allows multiple virtual machines (VMs) to run on a single physical machine. It creates a layer of abstraction between the physical hardware and the virtual machines, allowing multiple operating systems to run on the same physical hardware. Hypervisors are also referred to as virtual machine managers (VMM) or simply virtualizers.
What is virtualization?
Computer architecture technology by which multiple VMs are multiplexed in the same hardware.
3 objectives of virtualization
Two modes of operating systems
kernel mode and user mode
What is the kernel mode?
What is the user mode?
Two distinct areas of memory
What is the user space?
What is the kernel space?
How many rings are there and which one is the most privileged ring?
There are rings 0,1,2,3 and ring 0 is the most privileged ring
What are the 4 rings?
Ring 0: kernel mode
Ring 1: Hypervisor
Ring 2: drivers
Ring 3: applications
What is Ring 2 in detail? (internet)
Drivers in ring 2 are typically used for managing peripheral devices such as disk drives, network interfaces, and other hardware. These drivers are responsible for communicating with the hardware, managing the data transfer between the hardware and the operating system, and providing a standard interface for applications to access the hardware.
What are the 4 processes that the OS does?
What is a system call?
In user mode, the user applications initiate a system call to get OS-related services. The system call is a user space request of a kernel service.
Is a system call more expensive than a normal instruction?
Yes. It takes around 242 cycles.
What is a machine cycle?
Consists of the steps that a computer’s processor executes whenever it receives a machine language instruction.
3 types of virtualization
Software Assisted Full Virtualization
Software-assisted full virtualization uses binary translation when trapping and virtualizing the execution of instruction sets. The binary translation also emulates the hardware by utilizing software instruction sets.
Hardware-Assisted Full Virtualization
Hardware-assisted virtualization eliminates the need for binary translation. Privileged instructions can be executed directly on the processor.
Type 1 Hypervisor – also known as the bare-metal hypervisor type
Type 2 Hypervisor – also known as the hosted hypervisor type
What is a bare-metal hypervisor?
Type 1 Hypervisor
When a hypervisor is installed directly on the hardware of a physical machine, between the hardware and the operating system (OS).
Examples of bare-metal hypervisors
Hyper-v, VMware ESX/ESXi, Xen
Advantages of bare-metal hypervisors
Since there is no software of the operating system between the two, Type 1 can provide excellent stability and performance.
https://goabacus.com/three-types-of-server-virtualization-explained/#:~:text=This%20type%20of%20full%20virtualization,physical%20server%20and%20its%20hardware.
Challenges of bare-metal hypervisors?
What is hosted virtualization?
Type 2 Hypervisor
On top of host OS. Guest OS runs on VMM.