The Wayback Machine - https://web.archive.org/web/20240808094020/https://www.geeksforgeeks.org/virtualization-a-machine-reference-model/
Open In App

Virtualization | A Machine Reference Model

Last Updated : 29 Sep, 2022
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

Prerequisite: Introduction to Virtualization

When an execution environment is virtualized at unlike levels of the stack of computation then it requires a reference model which defines the interfaces within the level of abstractions, and this level of abstraction hides the details of implementations.
This projects an idea that, virtualization techniques can substitute any one layer and can intercept the calls which are directed to it. That’s why a clear separation within the layers can simplify their implementations, which only need an emulation of the interfaces and a proper response with the underlying layer.

At the base layer, the model for the hardware is declared or manifested on terms of an architecture i.e. Instruction Set Architecture (ISA).

Figure- A machine reference model

Instruction Set Architecture (ISA) defines the instruction set for the processor, registers, memory, and interrupt management. It is an interface between software and hardware and It is mandatory for the operating system (OS) developer (system ISA) developers of applications who directly manages core hardware (user ISA). The operating system layer is separated by the application binary interface (ABI) from the application and libraries, which are managed by operating system.

Application Binary Interface (ABI) covers facts such as low-level data types and call conventions and it also defines a format for many programs. Mainly, system calls are defined at this level. Moreover, this type of interface enables portability of various applications and libraries across OS which employ the same ABI. Application programming interface (API) is represented by the highest level of abstraction. This API interfaces applications to libraries and/or the core OS. For an action is to be performed in the application level API, ABI and the two which are responsible to make it done. Mainly, CPU runs on two privilege levels:

  1. User Mode: In this mode, memory access is restricted up to some limit whereas access to peripherals is denied.
  2. Kernel Mode: In this mode, CPU has instructions which manage memory and how to be accessed and it also has instructions which enable access of the peripherals like disks and network cards. From one running program to another running program, CPU switches automatically. The expansions and applications of computing system are simplified by this layered approach. Application of multitasking and co-existence of multiple executing is simplified by this layered approach.

The first can be made within privileged and non-privileged instructions. Those instructions which can be used with interrupting with another task are known as Non- privileged instruction. They are also called so because shared resources are not accessed. Ex- contains all the fixed points, floating and arithmetic instructions. The instructions which are executed under particular restrictions and which are frequently used for sensitive operations (which expose behavior-sensitive or modify control sensitive) are known as privileged instructions.

Figure- Security Rings and Privileged Mode

It is expected that in a hyper visor-managed environment, code of guest OS runs in user to prevent it from the direct access of OS’s status. It is no longer possible to completely isolate the guest OS when non-privileged instructions are implemented.
 
Reference: Book- Mastering Cloud Computing



Similar Reads

Virtualization | VMware: Full Virtualization
Prerequisites - Introduction to Virtualization, Machine Reference Model of Virtualization In full virtualization primary hardware is replicated and made available to the guest operating system, which executes unaware of such abstraction and no requirements to modify. Technology of VMware is based on the key concept of Full Virtualization. Either in
3 min read
Need of Virtualization and its Reference Model
There are five major needs of virtualization which are described below: 1. ENHANCED PERFORMANCE- Currently, the end user system i.e. PC is sufficiently powerful to fulfill all the basic computation requirements of the user, with various additional capabilities which are rarely used by the user. Most of their systems have sufficient resources which
3 min read
Linux Virtualization : Resource throttling using cgroups
In Linux Virtualization – Chroot Jail article, we discussed about kernel namespaces and process jailing. To understand this article, you may not need to read the earlier one, but I strongly suggest that you go through it once before diving into resource throttling. It should help tremendously in understanding what's going on. What are cgroups? cgro
9 min read
Linux Virtualization : Linux Containers (lxc)
Operating-system-level virtualization is a server virtualization method in which an operating system's kernel allows multiple isolated user-space instances, instead of just one. Such instances, which are sometimes called containers, software containers, virtualization engines (VEs), or jails (FreeBSD jail or chroot jail), may look and feel like a r
6 min read
Characteristics of Virtualization
Prerequisite - Virtualization In Cloud Computing and Types 1. Increased Security - The ability to control the execution of a guest program in a completely transparent manner opens new possibilities for delivering a secure, controlled execution environment. All the operations of the guest programs are generally performed against the virtual machine,
5 min read
On-Premises Cost Estimates of Virtualization
Prerequisite - Virtualization and types of virtualization, Characteristics of Virtualization On-Premises cost is calculated on the basis of various factors such as hardware type, operating system used, storage, database, virtualization tools, and various others. The default cost rate can be estimated with the help of Cost Estimator. In the cloud co
5 min read
Hardware Based Virtualization
Prerequisite - Virtualization In Cloud Computing and Types, Types of Server Virtualization, Hypervisor A platform virtualization approach that allows efficient full virtualization with the help of hardware capabilities, primarily from the host processor is referred to as Hardware based virtualization in computing. To simulate a complete hardware en
5 min read
Operating system based Virtualization
Prerequisites - Types of Server Virtualization, Hardware based Virtualization Operating system-based Virtualization refers to an operating system feature in which the kernel enables the existence of various isolated user-space instances. The installation of virtualization software also refers to Operating system-based virtualization. It is installe
5 min read
Virtualization | Xen: Paravirtualization
Prerequisites - Introduction to Virtualization, Machine Reference Model of Virtualization Xen is an open source hypervisor based on paravirtualization. It is the most popular application of paravirtualization. Xen has been extended to compatible with full virtualization using hardware-assisted virtualization. It enables high performance to execute
5 min read
Network Virtualization in Cloud Computing
Prerequisite - Virtualization and its Types in Cloud Computing Network Virtualization is a process of logically grouping physical networks and making them operate as single or multiple independent networks called Virtual Networks. Tools for Network Virtualization : Physical switch OS - It is where the OS must have the functionality of network virtu
4 min read
Article Tags :
Practice Tags :
three90RightbarBannerImg