Hardware assisted Virtualization in Embedded
-
Upload
xen-project -
Category
Technology
-
view
3.100 -
download
0
description
Transcript of Hardware assisted Virtualization in Embedded
Hardware assisted Virtualization in Embedded
Tanveer Alam Platform Architect – Embedded Virtualization
Sponsored by:
&
2 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Embedded Virtualization What is embedded?
Embedded specific requirements
Key Embedded Use Cases
Hardware Virtualization Features Review
Embedded Virtualization and Retail/Digital Signage– OS Soft Failover Proof-of-Concept Example
Embedded Virtualization and Medical – Critical OS Isolation Proof-of-Concept Example
Call to Action
Agenda
3 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Embedded Virtualization
Industrial
Energy
Medical
Retail Automotive
4 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Technical requirements for Embedded Virtualization
Smaller code base – lesser points of failure
Highly robust and reliable
Remote management
Certification
Legacy code
Consolidation + Critical function isolation/partitioning
Real time
Easy and fast to implement – “turnkey”
5 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Embedded Virtualization Usage Models
Legacy OS (Single threaded:
RTOS e.g VxWorks)
Real Time Kernel
User Space
Hypervisor
Embedded OS with GUI, calendar,
voice mail, games etc.
CPU 1
Thin Hypervisor
Media (Phone, Video)
Application
CPU 0
Antenna
Linux* X-windows
MS Windows*
Legacy OS Consolidation
Performance-Critical Application Separation
Trusted/Open Application Integration
RTOS & GPOS Consolidation
Thin Hypervisor
Legacy OS (Single threaded:
RTOS e.g. VxWorks)
Guest OS
Standard NetBSD
Modified NetBSD*
SMP kernel
IP Stack Changes
Hypervisor
CPU 1 CPU 0
NIC Chipset
CPU 1 CPU 0
NIC Chipset
VT-x & VT-d enabled Multi-Core Intel® Architecture
API Real Time Process
VT-x & VT-d enabled Multi-Core Intel Architecture
VT-x & VT-d enabled Multi-Core Intel Architecture VT-x & VT-d enabled Multi-Core Intel Architecture
* Other names and brands may be claimed as the property of others.
VT-x: Intel® Virtualization Technology (Intel® VT) for IA-32, Intel® 64 and Intel® Architecture VT-d: Intel® Virtualization Technology (Intel® VT) for Directed I/O
6 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Intel® Virtualization Technology Review - HW Virtualization
Extended Page Tables (EPT)
Virtual Processor ID (VPID)
Preemption Timer / Pause Loop Exit
VT-d I/O Virtualization DMA remap
PCIe pass-through
Interrupt remap
Guest 0
VPID [0:15]
Guest 1
VPID [0:15]
Guest 0
Guest 1
7 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Virtualization in Embedded : Soft Failover Proof-of-Concept
8 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Virtualization in Embedded : Soft Failover
Automatic System
Recovery
Real-time task pointer tracking
and resume
Requires No Network
Connectivity
Preserve Critical Data and State
9 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Virtualization in Embedded : Soft Failover
Ryarc Player
Samba
Xen DomU (B) Xen DomU (P)
Heartbeat Mon daemon Xen Dom0 Host OS Samba
10 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Virtualization in Embedded : Soft Failover
Specifications:
Software Rev/Version
Linux Kernel 2.6.32.26
Fedora 14 (64 bits)
Xen pvops 4.1
Video Player Ryarc
File Share Samba
11 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Virtualization in Embedded: Medical Proof-of-Concept
12 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Virtualization in Embedded : Critical Path Isolation (Medical) PoC
Bare Metal Hypervisor (e. g. Xen or Commercial VMM)
RHEL*
Windows* XP
RHEL* Ethernet
BT Driver
SQL Database
Waveform Display VNC* terminal
Windows* Ethernet Bluetooth
VGA Display
Windows *HDD
USB Drive (VMM/Hypervisor)
RHEL* HDD
VT-d : DMA & Interrupt Remapping
VT-x : VMX & HW
assist
13 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Virtualization in Embedded : Critical Path Isolation (Medical)
CP
U U
tiliz
ation
Running Processes
0
10
20
30
40
50
60
70
80
90
100
1 2 3 4 5 6 7 8 9 10 11
Windows
Linux/RTOS
14 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
Virtualization in Embedded Call to Action
Few Embedded Challenges: real-time, simpler Dom0, fast path interVM comms
Open to developing similar creative ideas using Xen and open source in the embedded domains.
Explore Xen community collaboration possibilities to enable better embedded practical solutions.
15 Intelligence Where You Need It Other names and brands may be claimed as the property of others.
Copyright © 2010, Intel Corporation
References
Resource Link
Intel® HD Graphics Driver http://support.intel.com
Xen how-to guide http://wiki.xensource.com
Xen VGA pass-though (using Intel® VT-d) http://wiki.xensource.com/xenwiki/XenPCIpassthrough
Xen PCI pass-through (using Intel® VT-d) http://wiki.xensource.com/xenwiki/XenVGAPassthrough
Intel Embedded Developer Site http://edc.intel.com