Hardware assisted Virtualization in Embedded

15
Hardware assisted Virtualization in Embedded Tanveer Alam Platform Architect – Embedded Virtualization Sponsored by: &

description

 

Transcript of Hardware assisted Virtualization in Embedded

Page 1: Hardware assisted Virtualization in Embedded

Hardware assisted Virtualization in Embedded

Tanveer Alam Platform Architect – Embedded Virtualization

Sponsored by:

&

Page 2: Hardware assisted Virtualization in Embedded

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

Page 3: Hardware assisted Virtualization in Embedded

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

Page 4: Hardware assisted Virtualization in Embedded

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”

Page 5: Hardware assisted Virtualization in Embedded

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

Page 6: Hardware assisted Virtualization in Embedded

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

Page 7: Hardware assisted Virtualization in Embedded

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

Page 8: Hardware assisted Virtualization in Embedded

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

Page 9: Hardware assisted Virtualization in Embedded

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

Page 10: Hardware assisted Virtualization in Embedded

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

Page 11: Hardware assisted Virtualization in Embedded

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

Page 12: Hardware assisted Virtualization in Embedded

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

Page 13: Hardware assisted Virtualization in Embedded

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

Page 14: Hardware assisted Virtualization in Embedded

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.

Page 15: Hardware assisted Virtualization in Embedded

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