Xen Automotive Hypervisor Automotive Linux Summit 1-2 July, Tokyo

Similar documents
Smart Antennas and Hypervisor: Enabling Secure Convergence. July 5, 2017

Xen Project Automotive and Embedded Overview

Xen on ARM. Stefano Stabellini

HW isolation for automotive environment BoF

Device Passthrough to Driver Domain in Xen

Xen Project 4.4: Features and Futures. Russell Pavlicek Xen Project Evangelist Citrix Systems

Open Source in Automotive Infotainment

Security and Performance Benefits of Virtualization

SCALE 14X. The Bare-Metal Hypervisor as a Platform for Innovation. By Russell Pavlicek Xen Project Evangelist

Xen on ARM. How fast is it, really? Stefano Stabellini. 18 August 2014

Columbia University in the city of new york

Virtual Machine Security

Designing Security & Trust into Connected Devices

Silver Bullet of Virtualization. Challenges and Concerns. May 27, 2013 v1.0

How to Introduce Virtualization in AGL? Objectives, Plans and Targets for AGL EG-VIRT

Xen on ARM ARMv7 with virtualization extensions

OP-TEE Using TrustZone to Protect Our Own Secrets

Xenbedded: Xen-based client virtualization for phones and tablets

Hypervisor Market Overview. Franz Walkembach. for GENIVI AMM, April 19 th, 2018 (Munich) SYSGO AG Public

Abstract. Testing Parameters. Introduction. Hardware Platform. Native System

PCIe driver development for Exynos SoC

Communication Patterns in Safety Critical Systems for ADAS & Autonomous Vehicles Thorsten Wilmer Tech AD Berlin, 5. March 2018

Scalable and Flexible Software Platforms for High-Performance ECUs. Christoph Dietachmayr Sr. Engineering Manager, Elektrobit November 8, 2018

Re-architecting Virtualization in Heterogeneous Multicore Systems

LINUX KERNEL UPDATES FOR AUTOMOTIVE: LESSONS LEARNED

Designing Security & Trust into Connected Devices

Xen VGA passthrough. 1.1 VGA passthrough. 1 Introduction. 2 Xen architecture. 2.1 Structure

Embedded System Security Mobile Hardware Platform Security

CSE543 - Computer and Network Security Module: Virtualization

A Big Little Hypervisor for IoT Development February 2018

Embedded System Security Mobile Hardware Platform Security

Linux and AUTOSAR Vector Informatik Congress, Stuttgart,

Designing Security & Trust into Connected Devices

Matrix. Get Started Guide

Multicore platform towards automotive safety challenges

Bringing display and 3D to the C.H.I.P computer

Prof. Daniel Rossier, PhD

EDGE COMPUTING & IOT MAKING IT SECURE AND MANAGEABLE FRANCK ROUX MARKETING MANAGER, NXP JUNE PUBLIC

Introduction to Adaptive AUTOSAR. Dheeraj Sharma July 27, 2017

Bringing display and 3D to the C.H.I.P computer

How to protect Automotive systems with ARM Security Architecture

Background. IBM sold expensive mainframes to large organizations. Monitor sits between one or more OSes and HW

Heterogeneous Real-Time SoC Software Architecture

EC H2020 dredbox: Seminar School at INSA Rennes

ACRN: A Big Little Hypervisor for IoT Development

Kick Start your Embedded Development with Qt

Xen Summit North America 2008

Virtualizaton: One Size Does Not Fit All. Nedeljko Miljevic Product Manager, Automotive Solutions MontaVista Software

COMPUTER ARCHITECTURE. Virtualization and Memory Hierarchy

CSE543 - Computer and Network Security Module: Virtualization

Simplify rich applications & hard real-time

CS 550 Operating Systems Spring Introduction to Virtual Machines

Infotainment Solutions. with Open Source and i.mx6. mentor.com/embedded. Andrew Patterson Business Development Director Embedded Automotive

Methods to protect proprietary components in device drivers

NVDIMM Overview. Technology, Linux, and Xen

S CUDA on Xavier

Embedded HW/SW Co-Development

SoC Idling & CPU Cluster PM

CSE543 - Computer and Network Security Module: Virtualization

What s New (and better) in Qt

Linux in ambito industriale, real-time, hypervisors e boot veloce

Kontron s ARM-based COM solutions and software services

Freescale i.mx6 Architecture

Using a Separation Kernel to Protect against the Remote Exploitation of Unaltered Passenger Vehicles

Automotive OTA The potential and the challenge

ARM processors driving automotive innovation

Mentor Automotive Save Energy with Embedded Software! Andrew Patterson Presented to CENEX 14 th September 2016

Safe Multi-Display Cockpit Controller

MultiDroid: A Novel Solution to Consolidate Interactive Physical Android Clients on One Single Computing Platform

Creating outstanding digital cockpits with Qt Automotive Suite

Junhong Jiang, Kevin Tian, Chris Wright, Don Dugger

Virtual Open Systems (VOSyS)

SBC-S32V234 QUICK START GUIDE (QSG)

A tour of the ARM architecture and its Linux support

ARM Trusted Firmware ARM UEFI SCT update

Heterogeneous Software Architecture with OpenAMP

Designing, developing, debugging ARM Cortex-A and Cortex-M heterogeneous multi-processor systems

In the Driver s Seat

Automotive: new frontier for mobile Linux. Alison Chaiken

Wind River Android Solutions

Tailoring TrustZone as SMM Equivalent

Performance Evaluation of Live Migration based on Xen ARM PVH for Energy-efficient ARM Server

An overview of mobile and embedded platforms

Xen is not just paravirtualization

SFO15-100: 96Boards & the course upstream

Linux Virtualization Update

Trusted Execution Environments (TEE) and the Open Trust Protocol (OTrP) Hannes Tschofenig and Mingliang Pei 16 th July IETF 99 th, Prague

GRNET Cloud Services

How Security Mechanisms Can Protect Cars Against Hackers. Christoph Dietachmayr, CIS Solution Manager EB USA Techday, Dec.

Hands-on with the Sitara Linux SDK

Home Gateway: the next battle ground. Majid Bemanian Security & Networking Marketing

Porting bhyve on ARM. Mihai Carabas, Peter Grehan BSDCan 2016 University of Ottawa Ottawa, Canada June 10 11, 2016

CSE Computer Security

Embedded Linux Conference San Diego 2016

Embedded Hardware and Software

10 th AUTOSAR Open Conference

Facing the Reality: Virtualization in a Microkernelbased Operating System. Matthias Lange, MOS, January 26th, 2016

Matrix. Get Started Guide V2.0

In-Vehicle Infotainment (IVI) Control from Mobile Devices

Running Android on the Mainline Graphics Stack. Robert

Transcription:

Xen Automotive Hypervisor Automotive Linux Summit 1-2 July, Tokyo 2014 GlobalLogic Inc.

Vehicles are Changing Vehicle became the ultimate mobile device and we, the people, are becoming connected drivers 2

Connected Driver Requirements Look and Feel customization Connected Car Services 3rd Party Applications Quick development cycle 3

Ultimate mobile device requirements Stability & Reliability Boot Time Security Virtualization 4

Why Xen? 5 Type 1 Hypervisor Flexible Virtualization Mode Driver disaggregation ARM support Open Source, part of LF ~ 90k lines of code Mature since 2003 in general computing

Xen in Embedded With ARM support Xen is perfectly fit for embedded applications Experimental ARM support on Nvidia made by Samsung ARM HW virtualization support from Xen 4.3 Added: Interrupts mapping to DomU (for driver domains) IOMEM mapping to DomU (for driver domains) MMU SPT protection drivers: HID, Audio, Framebuffer, etc. Better DT support TODO: RT scheduler improvments More drivers (QNX) Debug, fix, stabilize 6

Peripherals sharing Sharing of peripherals is implemented using HVM model (Paravirtualized devices on the host, running in HVM mode), zero-copy Filesystem partitions Standard Xen driver Network Standard Xen driver USB Based on old Xen 3.4 USB driver with major fixes HID (touchscreen) NEW: kernelspace frontend and userspace backend, can be used for any type of events Audio NEW: kernelspace frontend and userspace backend, based on ALSA Framebuffer NEW: kernelspace frontend and userspace backend, deliver 60 FPS on J6 GPU in progress based on OpenGL/ES abstraction (HW independent) TODO: GPS, Sensors 7

Ownership unbundling Android/QNX/Ubuntu/Tizen/Autosar User space Kernel space FrontEnd FrontEnd FrontEnd FrontEnd FrontEnd Backend Backend HW AL Apps `` Xen Open Source User space Kernel space BackEnd BackEnd BackEnd BackEnd BackEnd User Space Kernel Space User Space Kernel Space TI J6 R- Car M2 i.mx8 Tegra K1 A15/A50 HW drv Frontend Open Source Private Source SoC s reference design Provided by SoC s vendor OSes DomU Driver Domain DomU Guest OS Xen Hypervisor open source license Core Drivers open source license Backend HW AL private source license 8

GPU Virtualization DomU1 DomU2 Driver Domain OpenGL App #1 OpenGL App #3 OpenGL App #5 GPU Backend GPU pipeline #1 OpenGL App #2 OpenGL App #4 OpenGL App #6 GPU pipeline #2 OpenGL/GL ES library ( GPU Frontend) GPU pipeline #1 OpenGL/GL ES library ( GPU Frontend) GPU pipeline #2 OpenGL/GL ES library GPU driver * using ClusterGL or VirtualGL 9

GL MMU SPT Approach upstreamed GL MMU SPT Approach For the peripherals that do not have full SMMU protection but have own MMU it still possible to implement memory access protection and translation with SPT-like approach. Generic implementation is provided to Xen by GL and ready for some coprocessors like GPU, IPU, BB2D, etc. kernel Xen intercepts MMU PTBR access for PT creation/removal Xen intercepts PT access for pages creation/removal PTBR Kernel- maintained MMU PT Xen- maintained MMU SPT intermediate physical Allocated pages 10

Nautilus on TI J6 xen support upstreamed Dom0 Control Application (Boot Animation, RVC) GLSDK Linux DomU Nautilus Qt Launcher Automotive Grade Android (Fast Boot) DomU Animation Application Backends HW Drivers HW Driv ers MediaF W SoC Android Components grall oc HW Drivers R Miracast Xen Android Components Mirro rlink ALSA Frontends HWC QNX Neutrino Frontends Xen Hypervisor USB HID Disk Network CAN MMUs WiFi P2P/WFD Audio FrameBuffer CAMERA IPU GPU 11

Boot Time Xen boot time on J6 is 300ms u-boot loads Xen device tree configuration and Dom0 kernel cold start to Xen start is less than 100ms domain configuration, memory map, IRQ map passed to Xen trough device tree all printouts are disabled RAM wipeout is disabled Dom0 kernel boots in 800ms 12

Hypervisor vs. Monitor Virtualization and TrustZone TrustZone is also kind of virtualization Coexists with VMM but of higher priviledge Separated into 2 worlds only Secure and non-secure Typical tasks for TrustZone SW: System boot protection Application signature validation Firmware integrity check External peripherals whiltelist Secured peripherals drivers Closed crypto algorithms implementation (DRM) Hypervisor integration notes Boots before non-secure SW, i.e. before Xen Xen shall allow domains to perform SMC calls System control partitioning can be simplified with monitor mode (Power Management, etc.) Non- secure execution environment App App App App Operating System Operating System Hypervisor TrustZone Monitor Secure execution environment App App Operating System 13 CONFIDENTIAL

Power Management cpufreq: policy? cpuidle: policy? Multi-domain governance? ACPI? Not really. Thermal Management? 14 CONFIDENTIAL

Future & Features Xen SubProject Embedded & Automotive Drivers GL maintainers Micro-kernel approach DOM0 Drivers packages SoC s specific reference TI J6, Renesas R-Car M2, Freescale i.mx 8, A15/A50 SoCs ISO 26262 certification Guest OSs Android, QNX, ArcCore (AUTOSAR), Tizen (GENIVI) 15

Alex Agizim Artem Mygaiev CTO of Embedded Systems in GlobalLogic Inc. E-mail: alex.agizim@globallogic.com Skype: alexa1968 Program Director in GlobalLogic-Ukraine E-mail: artem.mygaiev@globallogic.com Skype: rosenkrantzguildenstern

Thank you Alex Agizim VP, CTO Embedded Systems alex.agizim@globallogic.com Alex Mygaiev AVP, Program Director Artem.mygaiev@globallogic.com 2014 GlobalLogic Inc.