SlideShare a Scribd company logo
6
Most read
9
Most read
19
Most read
Virtualization in Automotive
     Embedded Systems :
          an Outlook
 Nicolas Navet, RTaW
 Bertrand Delord, PSA Peugeot Citroën
 Markus Baumeister, Freescale




Talk at RTS Embedded Systems 2010
          Paris, 31/03/2010
Outline


          1. Automotive E/E Systems: mastering complexity
          2. Ecosystems of virtualization technologies
          3. Automotive use-cases of virtualization
          4. Limits of virtualization




© 2010 RTaW / PSA / Freescale - 2
Mastering complexity of
                                    automotive Electrical and
                                    Electronics (E/E) Systems




© 2010 RTaW / PSA / Freescale - 3
Electronics is the driving
                                       force of innovation

                                                –    90% of new functions use software
                                                –    Electronics: 40% of total costs
                                                –    Huge complexity: 80 ECUs,
                                                    2500 signals, 6 networks,
                                                    multi-layered run-time environment
                                                    (AUTOSAR), multi-source software,
                                                    multi-core CPUs, etc


                              Strong costs, safety, reliability, time‐to‐market, 
                                       reusability, legal constraints !

© 2010 RTaW / PSA / Freescale - 4
Proliferation of ECUs
                                                                                     raises problems!
                                                                    50




                                    Number of ECUs (CAN/MOST/LIN)
                                                                    45


                                                                    40


                                                                    35


                                                                    30


                                                                    25


                                                                    20


                                                                    15                                                                Mercedes-Benz
                                                                                                                                      BMW
                                                                    10
                                                                                                                                      Audi
                                                                     5                                                                VW
                                                                     0
                                                                     1986   1988     1990   1992   1994   1996   1998   2000   2002    2004   2006   2008

                                                                                                             Year          Graphics on this page from [3]


                                                                                   Lexus LS430 has more than 100 ECUs [9]
© 2010 RTaW / PSA / Freescale - 5
The case of a “generalist”
                                        car manufacturer - PSA
                                      45


                                      40


                                      35


                                      30                                                                             CAN LAS
                                                                                                                     info-div
                                                                                                                     LIN
                                      25
                                                                                                                     CAN CAR
                                                                                                                     CAN CONF
                                      20                                                                             CAN I/S


                                      15


                                      10


                                       5


                                       0
                                           X4-2000   X4-2003   D2 2004   D2 TG   D25   X3   X6-2005   X7-2007   W2
                                                                                 PF3




                                    The number of ECUs has more than doubled in 10 years
© 2010 RTaW / PSA / Freescale - 6
Possible upcoming architectures
                            in two car generations
           Fewer ECUs but more powerful
           –     Multi-core μ-controller
           –     Multi-source software
                   – Autosar OS strong protection mechanisms
                   – Virtualization ?
           –     ISO2626-2 dependability standard

                                                          Backbone :
                                                          – CAN 500Kbit/s with offsets
                                                          – FlexRay™ : 10 Mbit/s
                                                          – Ethernet ?


                                                               How centralized is unsure 
                                                                because of carry‐over .. 

   FlexRay™ as backbone at BWM in a few years [8]

© 2010 RTaW / PSA / Freescale - 7
Ecosystem of virtualization
                                           technologies




© 2010 RTaW / PSA / Freescale - 8
Virtualization basics
    Executing software on virtual machines
      decoupled from the real HW
    –     Virtual Machine: software that executes software like a physical machine
    –     (System) VM contains an OS
    –     HW resources can be shared between VMs : role of hypervisor




                        Strong isolation 
                    between VMs : security 
                   and fault‐confinement are 
                    the primary motivations

                                                                                 Picture from [2]

© 2010 RTaW / PSA / Freescale - 9
Classification of virtualization schemes                             [3]


                                             Virtualization




                                      Emulation          Native



                 Hypoth.                Real          Full         Para-
                 Machine               Machine       Virtua.      virtua.

           eg. JVM                   eg. Bochs     eg. Z/VM eg. Xen, Sysgo,
                                                              Wind River

© 2010 RTaW / PSA / Freescale - 10
Use-cases of virtualization




© 2010 RTaW / PSA / Freescale - 11
Heterogeneous operating system
                             environments (1/2)

              Re-use of a complete legacy ECU : eg. parking
              assistance

                                       Legacy
 Benefits
 –     Time-to-market,
                                     applications
 –
 –
       Cost reduction
       Validation done
                                      Legacy OS
 –     Way to deal with                   +
       discontinued hardware
                                     Comm. stack

                                                    Hypervisor
                                                    hardware
© 2010 RTaW / PSA / Freescale - 12
Heterogeneous operating system
                             environments (2/2)
          Using the best execution platform : eg. Body gateway with
          both an Autosar and an infotainment VM (eg., linux, android)


            Benefits
            –     Performances
            –     Availability of manpower / applications
            –     Time-to-market
            –     Security despite open systems
            –     Segregation in “vehicle domains”                   VMM
            –     Etc
                                                                Picture from [2]




                            The most obvious and likely use‐case in a first step 

© 2010 RTaW / PSA / Freescale - 13
Virtualization for
                              security-critical sub-systems
                 Benefits:
                 – Critical code can run on bare hardware
                 – Sufficiently small for formal methods
                 – “Brick-wall” partitioning for open systems (OTA update)




                                     Critical
                                      code
                                                Hypervisor
                                                hardware
© 2010 RTaW / PSA / Freescale - 14
Virtualization for
                                 safety-critical sub-systems
        Short term benefits:
        – Memory, CPU, IO protection mechanisms
        – Redundant execution with diversity reduces common faults,
          possible to go one step farther with OS and com. stack diversity
        – Monitoring / watchdog on the same multi-core chip
          (ideally with some HW diversity at the core level)
        Medium term goal:
        – Virtual lockstep execution without dedicated HW

                            Not the same scope of protection as Autosar OS
                               Autosar OS : OS application, OS task, ISR 
                                Virtualization : VM (usually with an OS)
© 2010 RTaW / PSA / Freescale - 15
AUTOSAR OS protection mechanism -
                    a recap (see [7])
           Issues : resource confiscation (CPU, memory,
           drivers), non authorized access / calls, fault-
           propagation
           5 types of mechanisms
                  Memory protection
                  Temporal protection
                                                As of Autosar R4, there 
                                                    are multi‐core 
                  OS service protection
                                               extensions enabling CPU 
                  HW resource protection
                                                   core partitioning  
                  trusted / non-trusted code

           4 scalability classes
© 2010 RTaW / PSA / Freescale - 16
Limits of virtualization




© 2010 RTaW / PSA / Freescale - 17
Real-time performances

               Virtualization implies a
         hierarchical two-level scheduling
         that is inherently less predictable
              and more complex to handle




                                                                                        Picture from [2]
                                     Actually, three‐level scheduling since runnables
                                              are scheduled within OS tasks!

          Static core allocation (to VMs) is probably the way to go ..
© 2010 RTaW / PSA / Freescale - 18
Technical issues
           Memory:
                   VMM footprint: < 64KB
                   Possibly several OSs !
           CPU:
                   Limited hardware support in embedded CPU [6]
                   Preemption, L2 cache flush, locked cache
           Resource sharing is tricky: ISR, IOs, com. controllers
                   Real-time performances (eg. LIN)
                   peripheral virtualization is complex (eg. CAN)
           VMM must be kept small to be secure (more than guest
           OSs) and ideally bug free … otherwise responsibility
           sharing is impossible

© 2010 RTaW / PSA / Freescale - 19
Conclusion

               Virtualization is a mature technology, industrial
               risk is limited
               Automotive can benefit from both aerospace /
               military and consumer electronic experiences:
               Products, certification, deployment tools, etc
               The overlap between virtualization and Autosar
               OS seems small
               There are meaningful use-cases but real-time
               behavior of the virtualized systems should be
               (formally) verified.
© 2010 RTaW / PSA / Freescale - 20
References




© 2010 RTaW / PSA / Freescale - 21
References
                                     [1] N. Navet, F. Simonot-Lion, editors, The Automotive Embedded Systems
                                         Handbook, Industrial Information Technology series, CRC Press / Taylor
                                         and Francis, ISBN 978-0849380266, December 2008.
                                     [2] R. Kaiser, D. Zöbel, Quantitative Analysis and Systematic Parametrization
                                         of a Two-Level Real-Time Scheduler, paper and slides at IEEE ETFA’2009.
                                     [3] T. Nolte, Hierarchical Scheduling of Complex Embedded Real-Time
                                         Systems, slides presented at the Summer School on Real-Time Systems
                                         (ETR’09), Paris, 2009.
                                     [4] G. Heiser, The role of virtualization in embedded systems, Proceedings of
                                         the 1st workshop on Isolation and integration in embedded systems,
                                         2008.
                                     [5] D. Baldin, T. Kerstan, Proteus, a Hybrid Virtualization Platform for
                                         Embedded Systems, IFIP Advances in Information and Communication
                                         Technology, 978-3-642-04283-6, 2009.
                                     [6] F. Behmann, Virtualization for embedded Power Architecture CPUs,
                                         Electronic Products, September 2009.
                                     [7] N. Navet, A. Monot, B. Bavoux, F. Simonot-Lion, Multi-source and
                                         multicore automotive ECUs - OS protection mechanisms and scheduling,
                                         to appear in IEEE ISIE, 2010.
                                     [8] A. Schedl, Goals and Architecture of FlexRay at BMW, slides presented at
                                         the Vector FlexRay Symposium, March 2007.
                                     [9] R. Schreffler, Japanese OEMs, Suppliers, Strive to Curb ECU Proliferation,
                                         Wardsauto.com, March 6, 2006.

© 2010 RTaW / PSA / Freescale - 22
Questions / feedback ?




                                           Please get in touch at :
                                     nicolas.navet@realtimeatwork.com
                                         bertrand.delord@mpsa.com
                                           B17517@freescale.com

© 2010 RTaW / PSA / Freescale - 23

More Related Content

PDF
Automotive embedded systems part6 v2
PPTX
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
PDF
Introduction to Docker Containers - Docker Captain
PDF
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
PDF
PPTX
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
PPTX
Automating with Ansible
ODP
SystemV vs systemd
Automotive embedded systems part6 v2
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
Introduction to Docker Containers - Docker Captain
AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Automating with Ansible
SystemV vs systemd

What's hot (20)

PDF
Windows Server 2022 Datacenter Azure Edition Overview
PDF
Automative basics v3
PDF
Introduction to Embedded Systems
PPTX
AUTOSAR Memory Stcak (MemStack).
PPTX
Getting started with Docker
PDF
The Basics of Automotive Ethernet Webinar Slidedeck
PDF
Packer by HashiCorp
PPTX
Jenkins CI
PDF
Docker Introduction
PDF
Mixed-critical adaptive AUTOSAR stack based on VxWorks, Linux, and virtualiza...
PDF
Ceph with CloudStack
PPTX
Docker introduction
PDF
Embedded Linux Kernel - Build your custom kernel
PPTX
Autosar software component
PPT
Android CTS training
PPT
Ibm power ha v7 technical deep dive workshop
PPTX
Bootloaders (U-Boot)
PPTX
How to Apply Functional Safety to Autosar ECU's
PDF
Ansible Introduction
Windows Server 2022 Datacenter Azure Edition Overview
Automative basics v3
Introduction to Embedded Systems
AUTOSAR Memory Stcak (MemStack).
Getting started with Docker
The Basics of Automotive Ethernet Webinar Slidedeck
Packer by HashiCorp
Jenkins CI
Docker Introduction
Mixed-critical adaptive AUTOSAR stack based on VxWorks, Linux, and virtualiza...
Ceph with CloudStack
Docker introduction
Embedded Linux Kernel - Build your custom kernel
Autosar software component
Android CTS training
Ibm power ha v7 technical deep dive workshop
Bootloaders (U-Boot)
How to Apply Functional Safety to Autosar ECU's
Ansible Introduction
Ad

Similar to Virtualization in Automotive Embedded Systems: an Outlook (20)

PDF
In-Vehicle Networking : a Survey and Look Forward
PDF
In‐Vehicle Networking: a Survey and Look Forward
PDF
CAN in Automotive Applications: a Look Forward
PDF
MIPI DevCon 2020 | Keynote: Trends in Future In-Vehicle Communication Networks
PDF
Catalogo mahle filtros_2009_2010[1]
PDF
SPE-in-Automotive_BMW_K.-Matthews.pdf13.pdf
PPT
T062500000 p003050ppte
PDF
Strategies for End-to-End Timing Guarantees in a Centralized Software Defined...
PDF
Aerospace Catalogue
 
PPTX
Automotive Telematics Market Analysis
PDF
SIMULIA Abaqus Products - Quick Overview for SIMULIA Abaqus Product
PDF
Frame latency evaluation: when simulation and analysis alone are not enough
PDF
Towards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture Design
PDF
“Embedded Vision in ADAS and Autonomous Vehicles: Navigating the New Reality,...
PDF
Radar and Wireless for Automotive: Market and Technology Trends 2019 report b...
PDF
Signal-Oriented ECUs in a Centralized Service-Oriented Architecture: Scalabil...
PDF
Working As the Engineer-in-Charge
PDF
Master diagnostic sockets
PDF
AFM Railway Catalogue
 
PPTX
Intland Software | codeBeamer ALM: What’s in the Pipeline for the Automotive ...
In-Vehicle Networking : a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look Forward
CAN in Automotive Applications: a Look Forward
MIPI DevCon 2020 | Keynote: Trends in Future In-Vehicle Communication Networks
Catalogo mahle filtros_2009_2010[1]
SPE-in-Automotive_BMW_K.-Matthews.pdf13.pdf
T062500000 p003050ppte
Strategies for End-to-End Timing Guarantees in a Centralized Software Defined...
Aerospace Catalogue
 
Automotive Telematics Market Analysis
SIMULIA Abaqus Products - Quick Overview for SIMULIA Abaqus Product
Frame latency evaluation: when simulation and analysis alone are not enough
Towards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture Design
“Embedded Vision in ADAS and Autonomous Vehicles: Navigating the New Reality,...
Radar and Wireless for Automotive: Market and Technology Trends 2019 report b...
Signal-Oriented ECUs in a Centralized Service-Oriented Architecture: Scalabil...
Working As the Engineer-in-Charge
Master diagnostic sockets
AFM Railway Catalogue
 
Intland Software | codeBeamer ALM: What’s in the Pipeline for the Automotive ...
Ad

More from RealTime-at-Work (RTaW) (20)

PDF
AUTOMOTIVE SYSTEM REQUIREMENTS ON TRAFFIC SHAPING
PDF
What are the relevant differences between Asynchronous (ATS) and Credit Based...
PDF
TSN Timing QoS Mechanisms: What Did We Learn over the Past 10 Years?
PDF
Time-Predictable Communication in Service-Oriented Architecture - What are th...
PDF
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
PDF
QoS-Predictable SOA on TSN: Insights from a Case-Study
PDF
Simulation-Based Fault Injection as a Verification Oracle for the Engineering...
PDF
Practical Use Cases for Ethernet Redundancy
PDF
Early-stage Bottleneck Identification and Removal in TSN Networks
PDF
Early-stage topological and technological choices for TSN-based communication...
PDF
Insights into the performance and configuration of TCP in Automotive Ethernet...
PDF
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
PDF
Timing verification of real-time automotive Ethernet networks: what can we ex...
PDF
Insights on the Configuration and Performances of SOME/IP Service Discovery
PDF
Timing verification of automotive communication architecture using quantile ...
PDF
PEGASE – a robust and efficient tool for worst-case network traversal time ev...
PDF
Automotive communication systems: from dependability to security
PDF
What fUML can bring to MBSE?
PDF
Multicore scheduling in automotive ECUs
PDF
Prototypage virtuel à partir de SysML
AUTOMOTIVE SYSTEM REQUIREMENTS ON TRAFFIC SHAPING
What are the relevant differences between Asynchronous (ATS) and Credit Based...
TSN Timing QoS Mechanisms: What Did We Learn over the Past 10 Years?
Time-Predictable Communication in Service-Oriented Architecture - What are th...
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
QoS-Predictable SOA on TSN: Insights from a Case-Study
Simulation-Based Fault Injection as a Verification Oracle for the Engineering...
Practical Use Cases for Ethernet Redundancy
Early-stage Bottleneck Identification and Removal in TSN Networks
Early-stage topological and technological choices for TSN-based communication...
Insights into the performance and configuration of TCP in Automotive Ethernet...
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
Timing verification of real-time automotive Ethernet networks: what can we ex...
Insights on the Configuration and Performances of SOME/IP Service Discovery
Timing verification of automotive communication architecture using quantile ...
PEGASE – a robust and efficient tool for worst-case network traversal time ev...
Automotive communication systems: from dependability to security
What fUML can bring to MBSE?
Multicore scheduling in automotive ECUs
Prototypage virtuel à partir de SysML

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation theory and applications.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
sap open course for s4hana steps from ECC to s4
PDF
KodekX | Application Modernization Development
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation theory and applications.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
20250228 LYD VKU AI Blended-Learning.pptx
Approach and Philosophy of On baking technology
sap open course for s4hana steps from ECC to s4
KodekX | Application Modernization Development
MIND Revenue Release Quarter 2 2025 Press Release
Spectral efficient network and resource selection model in 5G networks
MYSQL Presentation for SQL database connectivity
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Reach Out and Touch Someone: Haptics and Empathic Computing
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Virtualization in Automotive Embedded Systems: an Outlook

  • 1. Virtualization in Automotive Embedded Systems : an Outlook Nicolas Navet, RTaW Bertrand Delord, PSA Peugeot Citroën Markus Baumeister, Freescale Talk at RTS Embedded Systems 2010 Paris, 31/03/2010
  • 2. Outline 1. Automotive E/E Systems: mastering complexity 2. Ecosystems of virtualization technologies 3. Automotive use-cases of virtualization 4. Limits of virtualization © 2010 RTaW / PSA / Freescale - 2
  • 3. Mastering complexity of automotive Electrical and Electronics (E/E) Systems © 2010 RTaW / PSA / Freescale - 3
  • 4. Electronics is the driving force of innovation – 90% of new functions use software – Electronics: 40% of total costs – Huge complexity: 80 ECUs, 2500 signals, 6 networks, multi-layered run-time environment (AUTOSAR), multi-source software, multi-core CPUs, etc Strong costs, safety, reliability, time‐to‐market,  reusability, legal constraints ! © 2010 RTaW / PSA / Freescale - 4
  • 5. Proliferation of ECUs raises problems! 50 Number of ECUs (CAN/MOST/LIN) 45 40 35 30 25 20 15 Mercedes-Benz BMW 10 Audi 5 VW 0 1986 1988 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 Year Graphics on this page from [3] Lexus LS430 has more than 100 ECUs [9] © 2010 RTaW / PSA / Freescale - 5
  • 6. The case of a “generalist” car manufacturer - PSA 45 40 35 30 CAN LAS info-div LIN 25 CAN CAR CAN CONF 20 CAN I/S 15 10 5 0 X4-2000 X4-2003 D2 2004 D2 TG D25 X3 X6-2005 X7-2007 W2 PF3 The number of ECUs has more than doubled in 10 years © 2010 RTaW / PSA / Freescale - 6
  • 7. Possible upcoming architectures in two car generations Fewer ECUs but more powerful – Multi-core μ-controller – Multi-source software – Autosar OS strong protection mechanisms – Virtualization ? – ISO2626-2 dependability standard Backbone : – CAN 500Kbit/s with offsets – FlexRay™ : 10 Mbit/s – Ethernet ? How centralized is unsure  because of carry‐over ..  FlexRay™ as backbone at BWM in a few years [8] © 2010 RTaW / PSA / Freescale - 7
  • 8. Ecosystem of virtualization technologies © 2010 RTaW / PSA / Freescale - 8
  • 9. Virtualization basics Executing software on virtual machines decoupled from the real HW – Virtual Machine: software that executes software like a physical machine – (System) VM contains an OS – HW resources can be shared between VMs : role of hypervisor Strong isolation  between VMs : security  and fault‐confinement are  the primary motivations Picture from [2] © 2010 RTaW / PSA / Freescale - 9
  • 10. Classification of virtualization schemes [3] Virtualization Emulation Native Hypoth. Real Full Para- Machine Machine Virtua. virtua. eg. JVM eg. Bochs eg. Z/VM eg. Xen, Sysgo, Wind River © 2010 RTaW / PSA / Freescale - 10
  • 11. Use-cases of virtualization © 2010 RTaW / PSA / Freescale - 11
  • 12. Heterogeneous operating system environments (1/2) Re-use of a complete legacy ECU : eg. parking assistance Legacy Benefits – Time-to-market, applications – – Cost reduction Validation done Legacy OS – Way to deal with + discontinued hardware Comm. stack Hypervisor hardware © 2010 RTaW / PSA / Freescale - 12
  • 13. Heterogeneous operating system environments (2/2) Using the best execution platform : eg. Body gateway with both an Autosar and an infotainment VM (eg., linux, android) Benefits – Performances – Availability of manpower / applications – Time-to-market – Security despite open systems – Segregation in “vehicle domains” VMM – Etc Picture from [2] The most obvious and likely use‐case in a first step  © 2010 RTaW / PSA / Freescale - 13
  • 14. Virtualization for security-critical sub-systems Benefits: – Critical code can run on bare hardware – Sufficiently small for formal methods – “Brick-wall” partitioning for open systems (OTA update) Critical code Hypervisor hardware © 2010 RTaW / PSA / Freescale - 14
  • 15. Virtualization for safety-critical sub-systems Short term benefits: – Memory, CPU, IO protection mechanisms – Redundant execution with diversity reduces common faults, possible to go one step farther with OS and com. stack diversity – Monitoring / watchdog on the same multi-core chip (ideally with some HW diversity at the core level) Medium term goal: – Virtual lockstep execution without dedicated HW Not the same scope of protection as Autosar OS Autosar OS : OS application, OS task, ISR  Virtualization : VM (usually with an OS) © 2010 RTaW / PSA / Freescale - 15
  • 16. AUTOSAR OS protection mechanism - a recap (see [7]) Issues : resource confiscation (CPU, memory, drivers), non authorized access / calls, fault- propagation 5 types of mechanisms Memory protection Temporal protection As of Autosar R4, there  are multi‐core  OS service protection extensions enabling CPU  HW resource protection core partitioning   trusted / non-trusted code 4 scalability classes © 2010 RTaW / PSA / Freescale - 16
  • 17. Limits of virtualization © 2010 RTaW / PSA / Freescale - 17
  • 18. Real-time performances Virtualization implies a hierarchical two-level scheduling that is inherently less predictable and more complex to handle Picture from [2] Actually, three‐level scheduling since runnables are scheduled within OS tasks! Static core allocation (to VMs) is probably the way to go .. © 2010 RTaW / PSA / Freescale - 18
  • 19. Technical issues Memory: VMM footprint: < 64KB Possibly several OSs ! CPU: Limited hardware support in embedded CPU [6] Preemption, L2 cache flush, locked cache Resource sharing is tricky: ISR, IOs, com. controllers Real-time performances (eg. LIN) peripheral virtualization is complex (eg. CAN) VMM must be kept small to be secure (more than guest OSs) and ideally bug free … otherwise responsibility sharing is impossible © 2010 RTaW / PSA / Freescale - 19
  • 20. Conclusion Virtualization is a mature technology, industrial risk is limited Automotive can benefit from both aerospace / military and consumer electronic experiences: Products, certification, deployment tools, etc The overlap between virtualization and Autosar OS seems small There are meaningful use-cases but real-time behavior of the virtualized systems should be (formally) verified. © 2010 RTaW / PSA / Freescale - 20
  • 21. References © 2010 RTaW / PSA / Freescale - 21
  • 22. References [1] N. Navet, F. Simonot-Lion, editors, The Automotive Embedded Systems Handbook, Industrial Information Technology series, CRC Press / Taylor and Francis, ISBN 978-0849380266, December 2008. [2] R. Kaiser, D. Zöbel, Quantitative Analysis and Systematic Parametrization of a Two-Level Real-Time Scheduler, paper and slides at IEEE ETFA’2009. [3] T. Nolte, Hierarchical Scheduling of Complex Embedded Real-Time Systems, slides presented at the Summer School on Real-Time Systems (ETR’09), Paris, 2009. [4] G. Heiser, The role of virtualization in embedded systems, Proceedings of the 1st workshop on Isolation and integration in embedded systems, 2008. [5] D. Baldin, T. Kerstan, Proteus, a Hybrid Virtualization Platform for Embedded Systems, IFIP Advances in Information and Communication Technology, 978-3-642-04283-6, 2009. [6] F. Behmann, Virtualization for embedded Power Architecture CPUs, Electronic Products, September 2009. [7] N. Navet, A. Monot, B. Bavoux, F. Simonot-Lion, Multi-source and multicore automotive ECUs - OS protection mechanisms and scheduling, to appear in IEEE ISIE, 2010. [8] A. Schedl, Goals and Architecture of FlexRay at BMW, slides presented at the Vector FlexRay Symposium, March 2007. [9] R. Schreffler, Japanese OEMs, Suppliers, Strive to Curb ECU Proliferation, Wardsauto.com, March 6, 2006. © 2010 RTaW / PSA / Freescale - 22
  • 23. Questions / feedback ? Please get in touch at : nicolas.navet@realtimeatwork.com bertrand.delord@mpsa.com B17517@freescale.com © 2010 RTaW / PSA / Freescale - 23