SlideShare a Scribd company logo
2
Most read
4
Most read
6
Most read
Hardware-assisted Virtual Machine
노용환 (a.k.a. somma)
fixbrain@gmail.com
Virtualization…
system utilization
management cost
consolidation
isolation
trusted environment
resource aggregation
GRID system
MPP (Massively Parallel Processing)resource access control
mobility
emulation
History…
1960 1970 1999 2006 현재
CP-40, IBM,
Cambridge Scientific Center
full virtualization
System/370, IBM
x86 virtualization, VMWare
application virtualization
(application streaming)
x86,x64, ARM, …
Storage,
Network
…
VMWare, Virtual Box, Xen…
…
OpenStack, CloudStack,…
…
Amazon, Google…
Virtualization techniques
Shared Device
Memory and I/O
Virtualization
VMM
CPU CPU MEMORY
Physical H/W
Control
Guest OS Guest OS
physical h/w
virtualized h/w
VMM must …
- support same hardware interface
- can control guest OS when accessing H/W resources.
Virtualization techniques
Full Virtualization
- No OS modification
- Binary translation, Trace cache,…
- VMware ESX server
Para Virtualization
- Need OS modification
- Hypercall
- Xen
Direct execution
eflags, control registers, MSR registers, port I/O, privileged instructions, …
HVM (Hardware-assisted Virtual Machine)
Virtualize…
CPU
- AMD-V , VT-x
IOMMU
- AMD-Vi, VT-d
Network
- VT-c
VMX operation
VMX root operation
VMX non-root operation
HVM (Hardware-assisted Virtual Machine)
HVM – new instructions
HVM – instruction execution order
VMXON
VMCLEAR
VMPTRLD
VMWRITE
VMLAUNCH
GUEST Exit
VMREAD
VMRESUME
VMXOFF
HVM – data…
VMXON Region
- created per logical processor
- used by VMX instructions
VMCS Region
- created per virtual CPU for guest OS
- used by CPU and VMM
- 4Kb aligned
- PHYSICAL_ADDRESS == typedef LARGE_INTEGER
- …
HVM – VMM programming summary
check VMX support allocate VMXON region execute VMXON
allocate VMCS regionexecute VMCLEARexecute VMPTRLD
initialize VMCS data
host-state area fields
VM-exit control fields
VM-entry control fields
VM-execution control fields
guest-state area fields
execute VMLAUNCH handling various VM-exits
HVM – VMCS data organization
#1 Guest state fields
- saved on VM exits, loaded on VM entries
#2 Host state fields
- loaded on VM exits
#3 Execution control fields
- control VMX-non root operations
#4 Exit control fields
- control VM exits
#5 Entry control fields
- control VM entries
#6 VM Exit info
- saved VM exits information on VM exits
pin-based controls
processor-based controls
exception-bitmap address
I/O bitmap address
Timestamp counter offset
CR0/CR4 guest/host masks
CR3 targets
MSR bitmaps
HVM – VMCS data organization
HVM – accessing VMCS data
VMWRITE
VMREAD
virtual address / physical address
READ
virtual address / physical address
WRITE
HVM – accessing VMCS data
HVM – accessing VMCS data
HVM – initialize and run VMM
HVM – handling VM exits
#6 VM Exit info
HVM – handling VM exits
Q & A
HVM – Blue Pill
HVM – related works
Hypersight
- Northsecuritylabs( http://northsecuritylabs.com/ )
- 2011 년 이후 업데이트 없음…
McAfee DeepSAFE
Microsoft
- Countering Kernel Rootkits with Lightweight Hook Protection
HVM – related works
HyperDbg
- SoftIce 와 유사
- HVM 을 이용한 커널디버거
DEMO
&
Q & A

More Related Content

PDF
Virtualization with KVM (Kernel-based Virtual Machine)
Novell
 
PPT
VMware Esx Short Presentation
Barcamp Cork
 
PDF
MySQL Advanced Administrator 2021 - 네오클로바
NeoClova
 
ODP
Kvm
Bert Desmet
 
PDF
Reconnaissance of Virtio: What’s new and how it’s all connected?
Samsung Open Source Group
 
PDF
KVM tools and enterprise usage
vincentvdk
 
PPTX
Maria db 이중화구성_고민하기
NeoClova
 
PDF
Automated master failover
Yoshinori Matsunobu
 
Virtualization with KVM (Kernel-based Virtual Machine)
Novell
 
VMware Esx Short Presentation
Barcamp Cork
 
MySQL Advanced Administrator 2021 - 네오클로바
NeoClova
 
Reconnaissance of Virtio: What’s new and how it’s all connected?
Samsung Open Source Group
 
KVM tools and enterprise usage
vincentvdk
 
Maria db 이중화구성_고민하기
NeoClova
 
Automated master failover
Yoshinori Matsunobu
 

What's hot (20)

PPTX
Virtualization
Kingston Smiler
 
PPTX
Red Bend Software: Separation Using Type-1 Virtualization in Vehicles and Aut...
Red Bend Software
 
PPTX
Introduction to virtualization
none
 
PPTX
3. CPU virtualization and scheduling
Hwanju Kim
 
PDF
Maxscale_메뉴얼
NeoClova
 
PDF
LCA13: Xen on ARM
Linaro
 
PPTX
Mysql replication
ThreeSnakes
 
PDF
Monitoring kubernetes with prometheus
Brice Fernandes
 
PPT
Virtualization VMWare technology
sanjoysanyal
 
PDF
malloc & vmalloc in Linux
Adrian Huang
 
PDF
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
Jo Hoon
 
PDF
Virtualization Technology Overview
OpenCity Community
 
ODP
Kvm virtualization platform
Ahmad Hafeezi
 
PPTX
Docker Ecosystem on Azure
Patrick Chanezon
 
PDF
Docker로 서버 개발 편하게 하기
Dronix
 
PPTX
vRealize Operation 7.5 What's new
Kiss Tibor
 
PPTX
Linux Memory Management
Ni Zo-Ma
 
PDF
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
Linaro
 
PDF
oVirt installation guide_v4.3
CheolHee Han
 
PPT
VMWARE ESX
Yogeshwaran R
 
Virtualization
Kingston Smiler
 
Red Bend Software: Separation Using Type-1 Virtualization in Vehicles and Aut...
Red Bend Software
 
Introduction to virtualization
none
 
3. CPU virtualization and scheduling
Hwanju Kim
 
Maxscale_메뉴얼
NeoClova
 
LCA13: Xen on ARM
Linaro
 
Mysql replication
ThreeSnakes
 
Monitoring kubernetes with prometheus
Brice Fernandes
 
Virtualization VMWare technology
sanjoysanyal
 
malloc & vmalloc in Linux
Adrian Huang
 
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
Jo Hoon
 
Virtualization Technology Overview
OpenCity Community
 
Kvm virtualization platform
Ahmad Hafeezi
 
Docker Ecosystem on Azure
Patrick Chanezon
 
Docker로 서버 개발 편하게 하기
Dronix
 
vRealize Operation 7.5 What's new
Kiss Tibor
 
Linux Memory Management
Ni Zo-Ma
 
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
Linaro
 
oVirt installation guide_v4.3
CheolHee Han
 
VMWARE ESX
Yogeshwaran R
 
Ad

Viewers also liked (10)

PPTX
Virtualization technology for security
hanbeom Park
 
PPTX
2014.08.30 Virtual Machine Threat 세미나
용환 노
 
PPTX
Quick & Dirty Tips for x64 hooks
용환 노
 
PPTX
virtualization and hypervisors
Gaurav Suri
 
PDF
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
vwchu
 
PPT
Gi fi Technology
Roshan Patra
 
PPSX
Virtualization basics
Chandrani Ray Chowdhury
 
DOCX
Gi fi seminar Report
Shivam Joshi
 
PPTX
Gi fi technology finl ppt
Tapesh Chalisgaonkar
 
PPT
Gi-Fi ppt presentation
Ankit Satnalika
 
Virtualization technology for security
hanbeom Park
 
2014.08.30 Virtual Machine Threat 세미나
용환 노
 
Quick & Dirty Tips for x64 hooks
용환 노
 
virtualization and hypervisors
Gaurav Suri
 
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
vwchu
 
Gi fi Technology
Roshan Patra
 
Virtualization basics
Chandrani Ray Chowdhury
 
Gi fi seminar Report
Shivam Joshi
 
Gi fi technology finl ppt
Tapesh Chalisgaonkar
 
Gi-Fi ppt presentation
Ankit Satnalika
 
Ad

Similar to Hypervisor seminar (20)

PPT
CC_virtualization is in the cloud UNIT 3.1.ppt
RahulBhole12
 
PPTX
Security Best Practices For Hyper V And Server Virtualization
rsnarayanan
 
PDF
Cloud Computing Virtualization and containers
Selvaraj Kesavan
 
PPTX
Virtualization
vishnurk
 
PDF
Virtualization in Cloud Computing
Pyingkodi Maran
 
PPTX
Server virtualization
Kingston Smiler
 
PPTX
Hardware support for efficient virtualization
Lennox Wu
 
PPTX
Virtualization-Presentation-with-History
Sachin Darekar
 
PPT
Virtualization in cloud
Ashok Kumar
 
PDF
Sierraware ARM hypervisor
Sierraware
 
PPTX
Virtualization of computing and servers
pooranionline
 
PPTX
Operating system Virtualization_NEW.pptx
Senthil Vit
 
PDF
virtual-machine-150316004018-conversion-gate01.pdf
KowsalyaJayakumar2
 
PPTX
Virtual machine
IGZ Software house
 
PDF
2virtualizationtechnologyoverview 13540659831745-phpapp02-121127193019-phpapp01
Vietnam Open Infrastructure User Group
 
PPTX
Hypervisors
Inzemamul Haque
 
PPTX
KIIT_Cloud_scaling and Virtualization.pptx
bhaskarkumar0125
 
PPTX
1.Introduction to virtualization
Hwanju Kim
 
PPTX
Vcp6.7 episode 1
sajjad mirsane
 
PDF
[OpenStack Day in Korea 2015] Track 1-4 - VDI OpenStack? It Works!!!
OpenStack Korea Community
 
CC_virtualization is in the cloud UNIT 3.1.ppt
RahulBhole12
 
Security Best Practices For Hyper V And Server Virtualization
rsnarayanan
 
Cloud Computing Virtualization and containers
Selvaraj Kesavan
 
Virtualization
vishnurk
 
Virtualization in Cloud Computing
Pyingkodi Maran
 
Server virtualization
Kingston Smiler
 
Hardware support for efficient virtualization
Lennox Wu
 
Virtualization-Presentation-with-History
Sachin Darekar
 
Virtualization in cloud
Ashok Kumar
 
Sierraware ARM hypervisor
Sierraware
 
Virtualization of computing and servers
pooranionline
 
Operating system Virtualization_NEW.pptx
Senthil Vit
 
virtual-machine-150316004018-conversion-gate01.pdf
KowsalyaJayakumar2
 
Virtual machine
IGZ Software house
 
2virtualizationtechnologyoverview 13540659831745-phpapp02-121127193019-phpapp01
Vietnam Open Infrastructure User Group
 
Hypervisors
Inzemamul Haque
 
KIIT_Cloud_scaling and Virtualization.pptx
bhaskarkumar0125
 
1.Introduction to virtualization
Hwanju Kim
 
Vcp6.7 episode 1
sajjad mirsane
 
[OpenStack Day in Korea 2015] Track 1-4 - VDI OpenStack? It Works!!!
OpenStack Korea Community
 

Recently uploaded (20)

PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
The Future of Artificial Intelligence (AI)
Mukul
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Software Development Methodologies in 2025
KodekX
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 

Hypervisor seminar

  • 2. Virtualization… system utilization management cost consolidation isolation trusted environment resource aggregation GRID system MPP (Massively Parallel Processing)resource access control mobility emulation
  • 3. History… 1960 1970 1999 2006 현재 CP-40, IBM, Cambridge Scientific Center full virtualization System/370, IBM x86 virtualization, VMWare application virtualization (application streaming) x86,x64, ARM, … Storage, Network … VMWare, Virtual Box, Xen… … OpenStack, CloudStack,… … Amazon, Google…
  • 4. Virtualization techniques Shared Device Memory and I/O Virtualization VMM CPU CPU MEMORY Physical H/W Control Guest OS Guest OS physical h/w virtualized h/w VMM must … - support same hardware interface - can control guest OS when accessing H/W resources.
  • 5. Virtualization techniques Full Virtualization - No OS modification - Binary translation, Trace cache,… - VMware ESX server Para Virtualization - Need OS modification - Hypercall - Xen Direct execution eflags, control registers, MSR registers, port I/O, privileged instructions, …
  • 6. HVM (Hardware-assisted Virtual Machine) Virtualize… CPU - AMD-V , VT-x IOMMU - AMD-Vi, VT-d Network - VT-c VMX operation VMX root operation VMX non-root operation
  • 8. HVM – new instructions
  • 9. HVM – instruction execution order VMXON VMCLEAR VMPTRLD VMWRITE VMLAUNCH GUEST Exit VMREAD VMRESUME VMXOFF
  • 10. HVM – data… VMXON Region - created per logical processor - used by VMX instructions VMCS Region - created per virtual CPU for guest OS - used by CPU and VMM - 4Kb aligned - PHYSICAL_ADDRESS == typedef LARGE_INTEGER - …
  • 11. HVM – VMM programming summary check VMX support allocate VMXON region execute VMXON allocate VMCS regionexecute VMCLEARexecute VMPTRLD initialize VMCS data host-state area fields VM-exit control fields VM-entry control fields VM-execution control fields guest-state area fields execute VMLAUNCH handling various VM-exits
  • 12. HVM – VMCS data organization #1 Guest state fields - saved on VM exits, loaded on VM entries #2 Host state fields - loaded on VM exits #3 Execution control fields - control VMX-non root operations #4 Exit control fields - control VM exits #5 Entry control fields - control VM entries #6 VM Exit info - saved VM exits information on VM exits pin-based controls processor-based controls exception-bitmap address I/O bitmap address Timestamp counter offset CR0/CR4 guest/host masks CR3 targets MSR bitmaps
  • 13. HVM – VMCS data organization
  • 14. HVM – accessing VMCS data VMWRITE VMREAD virtual address / physical address READ virtual address / physical address WRITE
  • 15. HVM – accessing VMCS data
  • 16. HVM – accessing VMCS data
  • 17. HVM – initialize and run VMM
  • 18. HVM – handling VM exits #6 VM Exit info
  • 19. HVM – handling VM exits
  • 20. Q & A
  • 21. HVM – Blue Pill
  • 22. HVM – related works Hypersight - Northsecuritylabs( http://northsecuritylabs.com/ ) - 2011 년 이후 업데이트 없음… McAfee DeepSAFE Microsoft - Countering Kernel Rootkits with Lightweight Hook Protection
  • 23. HVM – related works HyperDbg - SoftIce 와 유사 - HVM 을 이용한 커널디버거

Editor's Notes

  • #3: system utilization 시스템의 사용률을 높임 하나의 시스템에서 통합(consolidation) 할 수 있고, 관리부하를 줄일 수 있음 isolation 물리자원을 직접 사용하지 않고, 에뮬레이션 된 자원을 이용하므로 결함 제거/전파 저지/보안향상 안전하고, 깨끗한 컴퓨팅 환경 제공 resource aggregation 디스크, CPU 같은 분산된 여러 물리자원을 단일 자원으로 집합시킬 수 있음 동일한 인터페이스로 통합 mobility system 의 이동/마이그레이션을 쉽게 가능하게 해줌 fast suspend/resume 등 emulation - 존재하지 않는 환경, 하드웨어등을 모의 시험할 수 있게 함