SlideShare a Scribd company logo
1 of 12
Ch 8.1~8.3
Liao Lingling
2006.10.23
System Virtual Machines
2
Contents
• Introduction
• Key Concepts
• Resource Virtualization
– Processors
– Memory
3
Introduction (1/2)
• Underutilized hardware -> time sharing
– Allow multiple users to access a single computer system
simultaneously
– Each user is given the illusion of having access to a full set
of system resources
• To create this illusion:
– Multiprogramming operating system + process virtual
machine
• Implement a process virtual machine for each application-level
program and switch resources among the programs on a time-
shared basis
– System virtual machine:
• Provide a similar illusion for complete systems
4
Virtualizing
Software
Hardware
Applications
OS
Virtualizing
Software
Hardware
Applications
OS
Process Virtual Machine System Virtual Machine
5
Introduction (2/2)
• Advantages of system virtual machines:
– Implementing multiprogramming
– Multiple single-application virtual machines
– Multiple secure environment
– Managed application environment
– Mixed-OS environment
– Legacy application
– Multiplatform application development
– New system transition
– System software development
– Operating system training
– Help desk support
– Operating system instrumentation
– Even monitoring
– System encapsulation
6
Contents
• Introduction
• Key Concepts
– Outward appearance
– State management
– Resource control
– Native and hosted virtual machine
– IBM VM/370
• Resource Virtualization
– Processors
– Memory
7
Outward Appearance
• Outward appearance:
– the illusion of multiple machines
• Two ways to do so:
– Replication:
• replicate a subset of the hardware resources and share the rest
of hardware
– Switch:
• use a hardware switch or enter a special key sequence on the
key board to switch a subset of the hardware and share the
rest of the hardware
8
State Management
• The architected state of a computer is contained in and
maintained by the hardware resources of the machine
• As operation on the guest’s state are performed, the state
maintained on the host machine should be modified
• Two basic ways to do so:
– Using indirection
• Hold the state for each guest in fixed locations in the host’s memory
hierarchy with a VMM-managed pointer -> inefficiency
– By copying
• Copy a guest’s state information to its natural level in memory hierarchy
• Choice:
– The frequency of use
– Whether the guest state being managed by the VMM is held in a
different type of hardware resource than on a native platform
9
Processor
Register Block
Pointer
Processor
Processor
Register
VMM Memory
Register values
for VM3
Register values
for VM2
Register values
for VM1
VMM Memory
Register values
for VM3
Register values
for VM2
Register values
for VM1
VM changes pointer
when VM is activated
VMM copies register
values when VM is
activated
10
Resource Control
• Conventional time-sharing systems:
– E.g.: the interval timer
• System VM:
– Provide the VMM with overall control
– The VMM intercepts all accesses to so-called privileged resources
and emulates the operation of these resources at all times
• A fair scheme
– Time allocation
• Large – not optimally utilized
• Small – overhead
– The guest operating system on a virtual machine must be denied
direct access to the interval timer facility
– The VMM must examine every guest setting of the timer interrupt
and override the request value
11
Native and Hosted Virtual Machines
• Role of the VMM:
– Schedule and manage the allocation of hardware resources to the
various guest virtual machines
• Shared physical resources include:
– The registers in the CPU
– The real memory in the system
– The various I/O devices attached to the system
• The catalog of system VM:
– Native VM system
• The VMM is the only software that executes in the highest privilege
level defined by the system architecture
– User-mode hosted VM system
• The VMM utilizes the functions already available on the host OS to
control and manage resources desired by each of the virtual machines
– Dual-mode hosted VM system
• Parts of the VMM are operated in a privileged mode and other parts in
nonprivileged mode
12
Application
OS
Hardware
Guest Apps
Guest OS
VMM
Hardware
Guest Apps
Guest OS
VMM
Host OS
Hardware
Guest Apps
Guest OS
VMM
Host OS
Hardware
Nonprivileged
modes
Privileged
modes
Traditional
uniprocessor
system
Native
VM system
User-mode
hosted
VM system
Dual-mode
hosted
VM system

More Related Content

Similar to lecture4(VM).ppt

assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptxassignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
23mu36
 
Module 1 Introduction.ppt
Module 1 Introduction.pptModule 1 Introduction.ppt
Module 1 Introduction.ppt
shreesha16
 

Similar to lecture4(VM).ppt (20)

chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
Server virtualization
Server virtualizationServer virtualization
Server virtualization
 
Cloud
CloudCloud
Cloud
 
operating systemPPT sfgSun< Shg<SKJ <JSg
operating systemPPT sfgSun< Shg<SKJ <JSgoperating systemPPT sfgSun< Shg<SKJ <JSg
operating systemPPT sfgSun< Shg<SKJ <JSg
 
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptxassignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
 
Module 1 Introduction.ppt
Module 1 Introduction.pptModule 1 Introduction.ppt
Module 1 Introduction.ppt
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
virtualization(1).pptx
virtualization(1).pptxvirtualization(1).pptx
virtualization(1).pptx
 
virtualization.pptx
virtualization.pptxvirtualization.pptx
virtualization.pptx
 
Virtualization
VirtualizationVirtualization
Virtualization
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
 
cs-intro-os.ppt
cs-intro-os.pptcs-intro-os.ppt
cs-intro-os.ppt
 
Virtualization in cloud computing
Virtualization in cloud computingVirtualization in cloud computing
Virtualization in cloud computing
 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
 
More on Virtualization 3.pptx
More on Virtualization 3.pptxMore on Virtualization 3.pptx
More on Virtualization 3.pptx
 
opearating system notes mumbai university.pptx
opearating system notes mumbai university.pptxopearating system notes mumbai university.pptx
opearating system notes mumbai university.pptx
 
Unit+three+ +computer+basics+and+virtual+machines
Unit+three+ +computer+basics+and+virtual+machinesUnit+three+ +computer+basics+and+virtual+machines
Unit+three+ +computer+basics+and+virtual+machines
 
10. compute-part-2
10. compute-part-210. compute-part-2
10. compute-part-2
 
Live Migration of Direct-Access Devices
Live Migration of Direct-Access DevicesLive Migration of Direct-Access Devices
Live Migration of Direct-Access Devices
 
Virtualization Uses - Server Consolidation
Virtualization Uses - Server Consolidation Virtualization Uses - Server Consolidation
Virtualization Uses - Server Consolidation
 

More from RiyaBatool (18)

Hashing.pptx
Hashing.pptxHashing.pptx
Hashing.pptx
 
Legal Liabilities of a software product.pptx
Legal Liabilities of a software product.pptxLegal Liabilities of a software product.pptx
Legal Liabilities of a software product.pptx
 
Shaikh Ahmad Sarhindi.pptx
Shaikh Ahmad Sarhindi.pptxShaikh Ahmad Sarhindi.pptx
Shaikh Ahmad Sarhindi.pptx
 
Lecture5(VM).pptx
Lecture5(VM).pptxLecture5(VM).pptx
Lecture5(VM).pptx
 
lecture3(VM).pptx
lecture3(VM).pptxlecture3(VM).pptx
lecture3(VM).pptx
 
Lecture1(VM).pptx
Lecture1(VM).pptxLecture1(VM).pptx
Lecture1(VM).pptx
 
Xen Hypervisor.pptx
Xen Hypervisor.pptxXen Hypervisor.pptx
Xen Hypervisor.pptx
 
TeleCom Lecture 04.pptx
TeleCom Lecture 04.pptxTeleCom Lecture 04.pptx
TeleCom Lecture 04.pptx
 
TeleCom Lecture 02.pptx
TeleCom Lecture 02.pptxTeleCom Lecture 02.pptx
TeleCom Lecture 02.pptx
 
part 3.pptx
part 3.pptxpart 3.pptx
part 3.pptx
 
VSS LEC5.pdf
VSS LEC5.pdfVSS LEC5.pdf
VSS LEC5.pdf
 
VSS-2.pdf
VSS-2.pdfVSS-2.pdf
VSS-2.pdf
 
chapter 5.pptx
chapter 5.pptxchapter 5.pptx
chapter 5.pptx
 
chapter 10,11,13.pptx
chapter 10,11,13.pptxchapter 10,11,13.pptx
chapter 10,11,13.pptx
 
VSS-1.pdf
VSS-1.pdfVSS-1.pdf
VSS-1.pdf
 
TeleCom Lecture 07.ppt
TeleCom Lecture 07.pptTeleCom Lecture 07.ppt
TeleCom Lecture 07.ppt
 
TeleCom Lecture 06.pptx
TeleCom Lecture 06.pptxTeleCom Lecture 06.pptx
TeleCom Lecture 06.pptx
 
TeleCom Lecture 05.pptx
TeleCom Lecture 05.pptxTeleCom Lecture 05.pptx
TeleCom Lecture 05.pptx
 

Recently uploaded

Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
amitlee9823
 
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
ZurliaSoop
 
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdfreStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
Ken Fuller
 
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night StandCall Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Nagavara Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Nagavara Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...Nagavara Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Nagavara Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
amitlee9823
 
Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........
deejay178
 
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
amitlee9823
 

Recently uploaded (20)

Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
 
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls DubaiDark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
 
Personal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando NegronPersonal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando Negron
 
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
 
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdfreStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
 
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night StandCall Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
 
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
 
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
 
Hot Call Girls |Delhi |Janakpuri ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Janakpuri ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Janakpuri ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Janakpuri ☎ 9711199171 Book Your One night Stand
 
Dubai Call Girls Kiki O525547819 Call Girls Dubai Koko
Dubai Call Girls Kiki O525547819 Call Girls Dubai KokoDubai Call Girls Kiki O525547819 Call Girls Dubai Koko
Dubai Call Girls Kiki O525547819 Call Girls Dubai Koko
 
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Personal Brand Exploration ppt.- Ronnie Jones
Personal Brand  Exploration ppt.- Ronnie JonesPersonal Brand  Exploration ppt.- Ronnie Jones
Personal Brand Exploration ppt.- Ronnie Jones
 
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Nagavara Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Nagavara Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...Nagavara Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Nagavara Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
 
Presentation for the country presentation
Presentation for the country presentationPresentation for the country presentation
Presentation for the country presentation
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying Online
 
Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........
 
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
 

lecture4(VM).ppt

  • 2. 2 Contents • Introduction • Key Concepts • Resource Virtualization – Processors – Memory
  • 3. 3 Introduction (1/2) • Underutilized hardware -> time sharing – Allow multiple users to access a single computer system simultaneously – Each user is given the illusion of having access to a full set of system resources • To create this illusion: – Multiprogramming operating system + process virtual machine • Implement a process virtual machine for each application-level program and switch resources among the programs on a time- shared basis – System virtual machine: • Provide a similar illusion for complete systems
  • 5. 5 Introduction (2/2) • Advantages of system virtual machines: – Implementing multiprogramming – Multiple single-application virtual machines – Multiple secure environment – Managed application environment – Mixed-OS environment – Legacy application – Multiplatform application development – New system transition – System software development – Operating system training – Help desk support – Operating system instrumentation – Even monitoring – System encapsulation
  • 6. 6 Contents • Introduction • Key Concepts – Outward appearance – State management – Resource control – Native and hosted virtual machine – IBM VM/370 • Resource Virtualization – Processors – Memory
  • 7. 7 Outward Appearance • Outward appearance: – the illusion of multiple machines • Two ways to do so: – Replication: • replicate a subset of the hardware resources and share the rest of hardware – Switch: • use a hardware switch or enter a special key sequence on the key board to switch a subset of the hardware and share the rest of the hardware
  • 8. 8 State Management • The architected state of a computer is contained in and maintained by the hardware resources of the machine • As operation on the guest’s state are performed, the state maintained on the host machine should be modified • Two basic ways to do so: – Using indirection • Hold the state for each guest in fixed locations in the host’s memory hierarchy with a VMM-managed pointer -> inefficiency – By copying • Copy a guest’s state information to its natural level in memory hierarchy • Choice: – The frequency of use – Whether the guest state being managed by the VMM is held in a different type of hardware resource than on a native platform
  • 9. 9 Processor Register Block Pointer Processor Processor Register VMM Memory Register values for VM3 Register values for VM2 Register values for VM1 VMM Memory Register values for VM3 Register values for VM2 Register values for VM1 VM changes pointer when VM is activated VMM copies register values when VM is activated
  • 10. 10 Resource Control • Conventional time-sharing systems: – E.g.: the interval timer • System VM: – Provide the VMM with overall control – The VMM intercepts all accesses to so-called privileged resources and emulates the operation of these resources at all times • A fair scheme – Time allocation • Large – not optimally utilized • Small – overhead – The guest operating system on a virtual machine must be denied direct access to the interval timer facility – The VMM must examine every guest setting of the timer interrupt and override the request value
  • 11. 11 Native and Hosted Virtual Machines • Role of the VMM: – Schedule and manage the allocation of hardware resources to the various guest virtual machines • Shared physical resources include: – The registers in the CPU – The real memory in the system – The various I/O devices attached to the system • The catalog of system VM: – Native VM system • The VMM is the only software that executes in the highest privilege level defined by the system architecture – User-mode hosted VM system • The VMM utilizes the functions already available on the host OS to control and manage resources desired by each of the virtual machines – Dual-mode hosted VM system • Parts of the VMM are operated in a privileged mode and other parts in nonprivileged mode
  • 12. 12 Application OS Hardware Guest Apps Guest OS VMM Hardware Guest Apps Guest OS VMM Host OS Hardware Guest Apps Guest OS VMM Host OS Hardware Nonprivileged modes Privileged modes Traditional uniprocessor system Native VM system User-mode hosted VM system Dual-mode hosted VM system