SlideShare a Scribd company logo
1 of 31
Download to read offline
Extended OS
Virtual Machines
References:
Smith, J.E.; Ravi Nair; , "The architecture of virtual machines,"
  Computer , vol.38, no.5, pp. 32- 38, May 2005
Abstraction & Virtualisation
Interface Levels
Instruction Set Architecture
• Interface between
  software and
  hardware
• Divided between
  privileged and un-
  privileged parts
Application Binary
            Interface
• Interface between
  programs hardware
  + OS
• Consists of system
  call interface + un-
  privileged ISA
Application Programming
          Interface
• Interface between
  programs hardware
  + OS
• Consists of library
  calls + un-privileged
  ISA
   – Syscalls usually
     called through
     library.
Process versus System
   Virtual Machine
OS is an extended virtual
              machine
• Multiplexes the “machine” between
  applications
  – Time sharing, multitasking, batching
• Provided a higher-level machine for
  –   Ease of use
  –   Portability
  –   Efficiency
  –   Security
  –   Etc….
JAVA – Higher-level Virtual
          Machine
• write a program once, and run it anywhere
  – Architecture independent
  – Operating System independent
• Language itself was clean, robust, garbage
  collection
• Program compiled into bytecode
  – Interpreted or just-in-time compiled.
  – Lower than native performance
Conventional versus
Emulation/Translation
Issues
• Legacy applications
• No isolation nor resource management
  between applets
• Security
  – Trust JVM implementation? Trust
    underlying OS?
• Performance compared to native
Is the OS the “right” level of
       extended machine?
• Security
  – Trust the underlying OS?
• Legacy application and OSs
• Resource management of existing
  systems suitable for all applications?
• What about activities requiring “root”
  privileges
Virtual Machine Monitors
• Provide scheduling and resource
  management
• Extended “machine” is the actual
  machine interface.
IBM VM/370
Advantages
• Legacy OSes (and applications)
• Server consolidation
• Concurrent OSes
   – Linux – Windows
   – Primary – Backup
      • High availability
• Test and Development
• Security
   – VMM (hopefully) small and correct
• Performance near bare hardware
   – For some applications
Virtual R3000???
• Interpret
  – System/161
     • slow
  – JIT dynamic compilation


• Run on the real hardware??
R3000 Virtual Memory Addressing


• MMU
 – address translation in
   hardware
 – management of
   translation is software




                                   21
0xFFFFFFFF
       R3000 Address                           kseg2
        Space Layout
                                  0xC0000000
• kuseg:                                       kseg1
  –   2 gigabytes                 0xA0000000
  –   MMU translated
  –   Cacheable                                kseg0
  –   user-mode and kernel mode   0x80000000
      accessible




                                               kuseg


                                                       22
                                  0x00000000
R3000 Address                           0xffffffff
                                                        kseg2
    Space Layout                           0xC0000000

• kseg0:
                                                        kseg1
  – 512 megabytes                          0xA0000000
  – Fixed translation window to
    physical memory
                                                        kseg0
     • 0x80000000 - 0x9fffffff virtual =   0x80000000
       0x00000000 - 0x1fffffff physical
     • MMU not used
  – Cacheable
  – Only kernel-mode accessible
  – Usually where the kernel code is
    placed
                                                        kuseg



                       Physical Memory                          23
                                           0x00000000
R3000 Address                           0xffffffff
                                                        kseg2
    Space Layout                           0xC0000000

• kseg1:
                                                        kseg1
  – 512 megabytes                          0xA0000000
  – Fixed translation window to
    physical memory
                                                        kseg0
     • 0xa0000000 - 0xbfffffff virtual =   0x80000000
       0x00000000 - 0x1fffffff physical
     • MMU not used
  – NOT cacheable
  – Only kernel-mode accessible
  – Where devices are accessed (and
    boot ROM)
                                                        kuseg



                       Physical Memory                          24
                                           0x00000000
R3000 Address        0xffffffff
                                    kseg2
   Space Layout        0xC0000000


• kseg2:                            kseg1
                       0xA0000000
  – 1024 megabytes
  – MMU translated                  kseg0
                       0x80000000
  – Cacheable
  – Only kernel-mode
    accessible
                                    kuseg


                                            25
                       0x00000000
Issues
• Privileged registers (CP0)
• Privileged instructions
• Address Spaces
• Exceptions (including syscalls,
  interrupts)
• Devices
Extlect01
Extlect01
Extlect01
Extlect01
Extlect01

More Related Content

What's hot

Pc De Mis Suenos
Pc De Mis SuenosPc De Mis Suenos
Pc De Mis Suenos
slayn123
 
A beginner’s guide to programming GPUs with CUDA
A beginner’s guide to programming GPUs with CUDAA beginner’s guide to programming GPUs with CUDA
A beginner’s guide to programming GPUs with CUDA
Piyush Mittal
 
NVidia CUDA for Bruteforce Attacks - DefCamp 2012
NVidia CUDA for Bruteforce Attacks - DefCamp 2012NVidia CUDA for Bruteforce Attacks - DefCamp 2012
NVidia CUDA for Bruteforce Attacks - DefCamp 2012
DefCamp
 
My sql key partition and mongodb test
My sql key partition and mongodb testMy sql key partition and mongodb test
My sql key partition and mongodb test
Louis liu
 

What's hot (18)

Pc De Mis Suenos
Pc De Mis SuenosPc De Mis Suenos
Pc De Mis Suenos
 
SiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingSiteGround Tech TeamBuilding
SiteGround Tech TeamBuilding
 
A beginner’s guide to programming GPUs with CUDA
A beginner’s guide to programming GPUs with CUDAA beginner’s guide to programming GPUs with CUDA
A beginner’s guide to programming GPUs with CUDA
 
Multi-GPU MapReduce on GPU Clusters
Multi-GPU MapReduce on GPU ClustersMulti-GPU MapReduce on GPU Clusters
Multi-GPU MapReduce on GPU Clusters
 
HPP Week 1 Summary
HPP Week 1 SummaryHPP Week 1 Summary
HPP Week 1 Summary
 
CUDA
CUDACUDA
CUDA
 
NVidia CUDA for Bruteforce Attacks - DefCamp 2012
NVidia CUDA for Bruteforce Attacks - DefCamp 2012NVidia CUDA for Bruteforce Attacks - DefCamp 2012
NVidia CUDA for Bruteforce Attacks - DefCamp 2012
 
Kato Mivule: An Overview of CUDA for High Performance Computing
Kato Mivule: An Overview of CUDA for High Performance ComputingKato Mivule: An Overview of CUDA for High Performance Computing
Kato Mivule: An Overview of CUDA for High Performance Computing
 
Introduction to CUDA
Introduction to CUDAIntroduction to CUDA
Introduction to CUDA
 
GPU: Understanding CUDA
GPU: Understanding CUDAGPU: Understanding CUDA
GPU: Understanding CUDA
 
CUDA Deep Dive
CUDA Deep DiveCUDA Deep Dive
CUDA Deep Dive
 
Introduction to parallel computing using CUDA
Introduction to parallel computing using CUDAIntroduction to parallel computing using CUDA
Introduction to parallel computing using CUDA
 
C for Cuda - Small Introduction to GPU computing
C for Cuda - Small Introduction to GPU computingC for Cuda - Small Introduction to GPU computing
C for Cuda - Small Introduction to GPU computing
 
GPU
GPUGPU
GPU
 
Cuda
CudaCuda
Cuda
 
Nvidia® cuda™ 5.0 Sample Evaluation Result Part 1
Nvidia® cuda™ 5.0 Sample Evaluation Result Part 1Nvidia® cuda™ 5.0 Sample Evaluation Result Part 1
Nvidia® cuda™ 5.0 Sample Evaluation Result Part 1
 
My sql key partition and mongodb test
My sql key partition and mongodb testMy sql key partition and mongodb test
My sql key partition and mongodb test
 
Multipath
MultipathMultipath
Multipath
 

Viewers also liked

Introducing A Branded Cell Phone To Vietnam
Introducing A Branded Cell Phone To VietnamIntroducing A Branded Cell Phone To Vietnam
Introducing A Branded Cell Phone To Vietnam
sedagokoglu
 
Tele3113 wk1wed
Tele3113 wk1wedTele3113 wk1wed
Tele3113 wk1wed
Vin Voro
 
Tele3113 wk5wed
Tele3113 wk5wedTele3113 wk5wed
Tele3113 wk5wed
Vin Voro
 
Chapter3 marketing
Chapter3 marketingChapter3 marketing
Chapter3 marketing
Vin Voro
 
Diseños de google sketchup
Diseños de google sketchupDiseños de google sketchup
Diseños de google sketchup
belloloco698
 
Chapter14 quality
Chapter14 qualityChapter14 quality
Chapter14 quality
Vin Voro
 
Slide bio4206
Slide bio4206Slide bio4206
Slide bio4206
dparkin
 
Chapter6 electronic-components
Chapter6 electronic-componentsChapter6 electronic-components
Chapter6 electronic-components
Vin Voro
 
Presentation tecniacustica 2013
Presentation tecniacustica 2013Presentation tecniacustica 2013
Presentation tecniacustica 2013
Alvaro Barbosa
 

Viewers also liked (20)

Introducing A Branded Cell Phone To Vietnam
Introducing A Branded Cell Phone To VietnamIntroducing A Branded Cell Phone To Vietnam
Introducing A Branded Cell Phone To Vietnam
 
Tele3113 wk1wed
Tele3113 wk1wedTele3113 wk1wed
Tele3113 wk1wed
 
Squinkies
SquinkiesSquinkies
Squinkies
 
Lect16
Lect16Lect16
Lect16
 
Tele3113 wk5wed
Tele3113 wk5wedTele3113 wk5wed
Tele3113 wk5wed
 
Chapter3 marketing
Chapter3 marketingChapter3 marketing
Chapter3 marketing
 
Plataformes digitals per difondre el patrimoni cultural (Ciro Llueca, Visual ...
Plataformes digitals per difondre el patrimoni cultural (Ciro Llueca, Visual ...Plataformes digitals per difondre el patrimoni cultural (Ciro Llueca, Visual ...
Plataformes digitals per difondre el patrimoni cultural (Ciro Llueca, Visual ...
 
Anna col
Anna colAnna col
Anna col
 
Happy Birthday Mommy!
Happy Birthday Mommy!Happy Birthday Mommy!
Happy Birthday Mommy!
 
Diseños de google sketchup
Diseños de google sketchupDiseños de google sketchup
Diseños de google sketchup
 
Chapter14 quality
Chapter14 qualityChapter14 quality
Chapter14 quality
 
Slide bio4206
Slide bio4206Slide bio4206
Slide bio4206
 
Chapter6 electronic-components
Chapter6 electronic-componentsChapter6 electronic-components
Chapter6 electronic-components
 
Presentation tecniacustica 2013
Presentation tecniacustica 2013Presentation tecniacustica 2013
Presentation tecniacustica 2013
 
Lect07
Lect07Lect07
Lect07
 
OSC2015 Tokyo/Spring セミナー「初めてのLibreOffice L10N UI/ヘルプ翻訳」予告編
OSC2015 Tokyo/Spring セミナー「初めてのLibreOffice L10N UI/ヘルプ翻訳」予告編OSC2015 Tokyo/Spring セミナー「初めてのLibreOffice L10N UI/ヘルプ翻訳」予告編
OSC2015 Tokyo/Spring セミナー「初めてのLibreOffice L10N UI/ヘルプ翻訳」予告編
 
Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015
Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015
Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015
 
Mconf - BigBlueButton Summit
Mconf - BigBlueButton SummitMconf - BigBlueButton Summit
Mconf - BigBlueButton Summit
 
From Networked Music to Behavior Driven Interaction
From Networked Music to Behavior Driven InteractionFrom Networked Music to Behavior Driven Interaction
From Networked Music to Behavior Driven Interaction
 
Digital Marketing & Social Media Opportunities - Japan
Digital Marketing & Social Media Opportunities - JapanDigital Marketing & Social Media Opportunities - Japan
Digital Marketing & Social Media Opportunities - Japan
 

Similar to Extlect01

Why the Address Translation Scheme Matters?
Why the Address Translation Scheme Matters?Why the Address Translation Scheme Matters?
Why the Address Translation Scheme Matters?
Jiaqing Du
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntu
Sim Janghoon
 
osdi20-slides_zhao.pptx
osdi20-slides_zhao.pptxosdi20-slides_zhao.pptx
osdi20-slides_zhao.pptx
Cive1971
 
Nextserver Evo
Nextserver EvoNextserver Evo
Nextserver Evo
dellarocco
 

Similar to Extlect01 (20)

了解Cpu
了解Cpu了解Cpu
了解Cpu
 
Why the Address Translation Scheme Matters?
Why the Address Translation Scheme Matters?Why the Address Translation Scheme Matters?
Why the Address Translation Scheme Matters?
 
LXC on Ganeti
LXC on GanetiLXC on Ganeti
LXC on Ganeti
 
Vigor Ex
Vigor ExVigor Ex
Vigor Ex
 
Linux SMEP bypass techniques
Linux SMEP bypass techniquesLinux SMEP bypass techniques
Linux SMEP bypass techniques
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntu
 
Your 1st Ceph cluster
Your 1st Ceph clusterYour 1st Ceph cluster
Your 1st Ceph cluster
 
The Silence of the Canaries
The Silence of the CanariesThe Silence of the Canaries
The Silence of the Canaries
 
osdi20-slides_zhao.pptx
osdi20-slides_zhao.pptxosdi20-slides_zhao.pptx
osdi20-slides_zhao.pptx
 
Running Applications on the NetBSD Rump Kernel by Justin Cormack
Running Applications on the NetBSD Rump Kernel by Justin Cormack Running Applications on the NetBSD Rump Kernel by Justin Cormack
Running Applications on the NetBSD Rump Kernel by Justin Cormack
 
Servers Technologies and Enterprise Data Center Trends 2014 - Thailand
Servers Technologies and Enterprise Data Center Trends 2014 - ThailandServers Technologies and Enterprise Data Center Trends 2014 - Thailand
Servers Technologies and Enterprise Data Center Trends 2014 - Thailand
 
Workshop actualización SVG CESGA 2012
Workshop actualización SVG CESGA 2012 Workshop actualización SVG CESGA 2012
Workshop actualización SVG CESGA 2012
 
SdE2 - Pilot Tock
SdE2 - Pilot TockSdE2 - Pilot Tock
SdE2 - Pilot Tock
 
Xen arm
Xen armXen arm
Xen arm
 
Xen arm
Xen armXen arm
Xen arm
 
[IDF'15 SF] RPCS001 — Overclocking 6th Generation Intel® Core™ Processors!
[IDF'15 SF] RPCS001 — Overclocking 6th Generation Intel® Core™ Processors![IDF'15 SF] RPCS001 — Overclocking 6th Generation Intel® Core™ Processors!
[IDF'15 SF] RPCS001 — Overclocking 6th Generation Intel® Core™ Processors!
 
lecture11_GPUArchCUDA01.pptx
lecture11_GPUArchCUDA01.pptxlecture11_GPUArchCUDA01.pptx
lecture11_GPUArchCUDA01.pptx
 
Nextserver Evo
Nextserver EvoNextserver Evo
Nextserver Evo
 
Nextserver Evo
Nextserver EvoNextserver Evo
Nextserver Evo
 
Basics of JVM Tuning
Basics of JVM TuningBasics of JVM Tuning
Basics of JVM Tuning
 

More from Vin Voro

Tele3113 tut6
Tele3113 tut6Tele3113 tut6
Tele3113 tut6
Vin Voro
 
Tele3113 tut5
Tele3113 tut5Tele3113 tut5
Tele3113 tut5
Vin Voro
 
Tele3113 tut4
Tele3113 tut4Tele3113 tut4
Tele3113 tut4
Vin Voro
 
Tele3113 tut1
Tele3113 tut1Tele3113 tut1
Tele3113 tut1
Vin Voro
 
Tele3113 tut3
Tele3113 tut3Tele3113 tut3
Tele3113 tut3
Vin Voro
 
Tele3113 tut2
Tele3113 tut2Tele3113 tut2
Tele3113 tut2
Vin Voro
 
Tele3113 wk11tue
Tele3113 wk11tueTele3113 wk11tue
Tele3113 wk11tue
Vin Voro
 
Tele3113 wk10wed
Tele3113 wk10wedTele3113 wk10wed
Tele3113 wk10wed
Vin Voro
 
Tele3113 wk10tue
Tele3113 wk10tueTele3113 wk10tue
Tele3113 wk10tue
Vin Voro
 
Tele3113 wk11wed
Tele3113 wk11wedTele3113 wk11wed
Tele3113 wk11wed
Vin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
Vin Voro
 
Tele3113 wk9tue
Tele3113 wk9tueTele3113 wk9tue
Tele3113 wk9tue
Vin Voro
 
Tele3113 wk8wed
Tele3113 wk8wedTele3113 wk8wed
Tele3113 wk8wed
Vin Voro
 
Tele3113 wk9wed
Tele3113 wk9wedTele3113 wk9wed
Tele3113 wk9wed
Vin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
Vin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
Vin Voro
 
Tele3113 wk7tue
Tele3113 wk7tueTele3113 wk7tue
Tele3113 wk7tue
Vin Voro
 
Tele3113 wk6wed
Tele3113 wk6wedTele3113 wk6wed
Tele3113 wk6wed
Vin Voro
 
Tele3113 wk6tue
Tele3113 wk6tueTele3113 wk6tue
Tele3113 wk6tue
Vin Voro
 
Tele3113 wk5tue
Tele3113 wk5tueTele3113 wk5tue
Tele3113 wk5tue
Vin Voro
 

More from Vin Voro (20)

Tele3113 tut6
Tele3113 tut6Tele3113 tut6
Tele3113 tut6
 
Tele3113 tut5
Tele3113 tut5Tele3113 tut5
Tele3113 tut5
 
Tele3113 tut4
Tele3113 tut4Tele3113 tut4
Tele3113 tut4
 
Tele3113 tut1
Tele3113 tut1Tele3113 tut1
Tele3113 tut1
 
Tele3113 tut3
Tele3113 tut3Tele3113 tut3
Tele3113 tut3
 
Tele3113 tut2
Tele3113 tut2Tele3113 tut2
Tele3113 tut2
 
Tele3113 wk11tue
Tele3113 wk11tueTele3113 wk11tue
Tele3113 wk11tue
 
Tele3113 wk10wed
Tele3113 wk10wedTele3113 wk10wed
Tele3113 wk10wed
 
Tele3113 wk10tue
Tele3113 wk10tueTele3113 wk10tue
Tele3113 wk10tue
 
Tele3113 wk11wed
Tele3113 wk11wedTele3113 wk11wed
Tele3113 wk11wed
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
 
Tele3113 wk9tue
Tele3113 wk9tueTele3113 wk9tue
Tele3113 wk9tue
 
Tele3113 wk8wed
Tele3113 wk8wedTele3113 wk8wed
Tele3113 wk8wed
 
Tele3113 wk9wed
Tele3113 wk9wedTele3113 wk9wed
Tele3113 wk9wed
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
 
Tele3113 wk7tue
Tele3113 wk7tueTele3113 wk7tue
Tele3113 wk7tue
 
Tele3113 wk6wed
Tele3113 wk6wedTele3113 wk6wed
Tele3113 wk6wed
 
Tele3113 wk6tue
Tele3113 wk6tueTele3113 wk6tue
Tele3113 wk6tue
 
Tele3113 wk5tue
Tele3113 wk5tueTele3113 wk5tue
Tele3113 wk5tue
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 

Extlect01

  • 2. Virtual Machines References: Smith, J.E.; Ravi Nair; , "The architecture of virtual machines," Computer , vol.38, no.5, pp. 32- 38, May 2005
  • 5. Instruction Set Architecture • Interface between software and hardware • Divided between privileged and un- privileged parts
  • 6. Application Binary Interface • Interface between programs hardware + OS • Consists of system call interface + un- privileged ISA
  • 7. Application Programming Interface • Interface between programs hardware + OS • Consists of library calls + un-privileged ISA – Syscalls usually called through library.
  • 8. Process versus System Virtual Machine
  • 9. OS is an extended virtual machine • Multiplexes the “machine” between applications – Time sharing, multitasking, batching • Provided a higher-level machine for – Ease of use – Portability – Efficiency – Security – Etc….
  • 10. JAVA – Higher-level Virtual Machine • write a program once, and run it anywhere – Architecture independent – Operating System independent • Language itself was clean, robust, garbage collection • Program compiled into bytecode – Interpreted or just-in-time compiled. – Lower than native performance
  • 11.
  • 13. Issues • Legacy applications • No isolation nor resource management between applets • Security – Trust JVM implementation? Trust underlying OS? • Performance compared to native
  • 14. Is the OS the “right” level of extended machine? • Security – Trust the underlying OS? • Legacy application and OSs • Resource management of existing systems suitable for all applications? • What about activities requiring “root” privileges
  • 15. Virtual Machine Monitors • Provide scheduling and resource management • Extended “machine” is the actual machine interface.
  • 17. Advantages • Legacy OSes (and applications) • Server consolidation • Concurrent OSes – Linux – Windows – Primary – Backup • High availability • Test and Development • Security – VMM (hopefully) small and correct • Performance near bare hardware – For some applications
  • 18.
  • 19.
  • 20. Virtual R3000??? • Interpret – System/161 • slow – JIT dynamic compilation • Run on the real hardware??
  • 21. R3000 Virtual Memory Addressing • MMU – address translation in hardware – management of translation is software 21
  • 22. 0xFFFFFFFF R3000 Address kseg2 Space Layout 0xC0000000 • kuseg: kseg1 – 2 gigabytes 0xA0000000 – MMU translated – Cacheable kseg0 – user-mode and kernel mode 0x80000000 accessible kuseg 22 0x00000000
  • 23. R3000 Address 0xffffffff kseg2 Space Layout 0xC0000000 • kseg0: kseg1 – 512 megabytes 0xA0000000 – Fixed translation window to physical memory kseg0 • 0x80000000 - 0x9fffffff virtual = 0x80000000 0x00000000 - 0x1fffffff physical • MMU not used – Cacheable – Only kernel-mode accessible – Usually where the kernel code is placed kuseg Physical Memory 23 0x00000000
  • 24. R3000 Address 0xffffffff kseg2 Space Layout 0xC0000000 • kseg1: kseg1 – 512 megabytes 0xA0000000 – Fixed translation window to physical memory kseg0 • 0xa0000000 - 0xbfffffff virtual = 0x80000000 0x00000000 - 0x1fffffff physical • MMU not used – NOT cacheable – Only kernel-mode accessible – Where devices are accessed (and boot ROM) kuseg Physical Memory 24 0x00000000
  • 25. R3000 Address 0xffffffff kseg2 Space Layout 0xC0000000 • kseg2: kseg1 0xA0000000 – 1024 megabytes – MMU translated kseg0 0x80000000 – Cacheable – Only kernel-mode accessible kuseg 25 0x00000000
  • 26. Issues • Privileged registers (CP0) • Privileged instructions • Address Spaces • Exceptions (including syscalls, interrupts) • Devices