Device Virtualization in a Partitioned System: the OVERSEE Approach

Total Page:16

File Type:pdf, Size:1020Kb

Device Virtualization in a Partitioned System: the OVERSEE Approach Device Virtualization in a Partitioned System: the OVERSEE Approach M. Masmano, S. Peir´o,J. S´anchez , J. Sim´o,A. Crespo Instituto de Automatica e Informatica Industrial Universidad Politecnica de Valencia, Spain fmmasmano,speiro,jsanchez,jsimo,[email protected] Abstract This paper presents a solution for device virtual- ization on a hypervisor driven partitioned system. The approach is in the scope of the OVERSEE project, which is the Open Secure Vehicular Plat- form. This software platform is intended to act as a single access point to vehicle networks. Such system will support different types of partitions, from real time constrained to non-trusted user par- titions running general purpose operating systems. On this scenario, the partitions compete for access to hardware resources, specially for the system pe- ripherals. Mostly oriented to non real-time parti- tions, this paper focuses on the design of a mech- anism for device virtualization based on the Linux standard Virtio. As on real time approaches, the architecture is based on the use of an I/O server, a partition which has direct access to devices and Figure 1: Oversee architecture overview. handles the requests from other partitions to access peripherals. OVERSEE, for short) is intended to serve as a sin- gle access point to vehicle networks. It will pro- 1 Introduction vide a protected, standarized in-vehicle runtime environment and on-board access and communi- Partitioned software architectures can represent cation point. Applications for this platform in- the future of secure systems. They have evolved clude, between others, positioning systems, stolen to fulfil security and avionics requirements where vehicle tracking, traffic information, web browsing, predictability is extremely important. The sepa- etc. Ultimately, OVERSEE aims to create an open ration kernel proposed in [1] established a combi- software platform for which everyone can develop nation of hardware and software to allow multiple applications and download them. Of course, this functions to be performed on a common set of phys- platform must ensure that the applications cannot ical resources without interference. It is precisely harm each other and, especially, internal in-vehicle XtratuM the selected kernel to serve as the base ex- software applications. The heterogeneous nature of ecution environment for the OVERSEE partitioned the applications being executed under OVERSEE system. makes XtratuM system partitioning the best way The Open Vehicular Secure Platform [2] (or to isolate and protect applications from each other. 1 Finally, for this system, the chosen target hardware The design of XtratuM has tried to apply the phi- is the Intel Atom architecture, which is the Intel ar- losophy of the ARINC-653 standard [3] (despite chitecture for embedded systems. not being ARINC-653 compliant). This standard XtratuM ensures temporal and spatial isolation is used to achieve strong isolation between running of the applications that run over it. This applica- guests, so it has rigid policies about resource man- tions may vary from bare-C applications to entire agement. operating systems as, for example, Linux. Each On the time domain, XtratuM allocates CPU to of this applications is refered to as a partition or partitions following a plan which is defined at con- guest. On this paper, we will pay special atten- figuration time, i.e., it uses a cyclic scheduler. Dy- tion to Linux guests. The use of Linux as a guest namic schedulers are avoided when systems under to run general purpose applications is very interest- control are critical real-time. This ensures a pre- ing; thanks to the developement efforts made by the dictable behaviour as well as scheduler robustness open source community, Linux offers a vast variety against system temporary overloads. On the other of device drivers, as well as many other software hand, this scheme narrows maximum bandwidth of mechanisms (i.e. a TCP/IP stack), which reduce non real-time guests, which may need more relaxed implementation burden of software projects. scheduling policies. As explanied on section4, im- With the expansion of hypervisor technology, plementation of virtual devices have to take into Linux has begun to host extensions for system vir- account this fact in order to optimize throughput. tualization. Linux kernel supports at least 8 dis- Besides CPU management, XtratuM isolates tinct virtualization systems, being Xen [4], KVM spatially the partitions by defining a set of accessi- [6] or Lguest [5] among them, without taking into ble physical memory areas for each one. Also, phys- account the relatively new XtratuM hypervisor. ical memory areas can be defined as shared, thus With such large variety of virtualization systems, being accessible by several guests. This is precisely a new standard has appeared to fulfil the needs the chosen mechanism for driver virtualization. of device virtualization, which until now had to XtratuM uses para-virtualization, so hardware be implemented by each hypervisor. This stan- access is wrapped by means of hypercalls. There- dard is known as Virtio [8]: \a series of efficient fore, guests have to be modified so that they do well-mantained Linux drivers which can be adapted not directly access hardware but they call the hy- for various hypervisor implementations". As will percalls. Along with the virtualization technolo- be explained on section , the special features of gies, Linux kernel has evolved to offer built-in para- XtratuM needs Virtio to be modified in a differ- virtualization mechanisms. This has greatly simpli- ent way than other virtualization solutions. fied the task of porting Linux to XtratuM architec- The remaining of this document is structured as ture while enhancing forward compatibility. follows. Section2 introduces the XtratuM hypervi- sor and the Linux virtualization over it. Section3 2.1 Virtual devices presents the approach of the Virtio specification to provide device virtualization. Section4 describes Intel x86 architecture offers a separate address the requirements imposed by Virtio and how to space for accessing peripherals. This address space fulfill them under the XtratuM hypervisor. Sec- is composed by ports and can be mapped so that tion 4.1 presents describes the implementation of they appear in the physical memory address space. the Virtio support on the Linux guests running on Partitions can be given permissions to use some of the XtratuM hypervisor. these ports in order to have direct access to some peripheral. When talking about system input and output 2 XtratuM and Linux Virtu- (I/O), there are two paradigms for device driver access. The first approach is to leave device man- alization agement to the hypervisor. However, this is not a good approach as, for each device, a driver would XtratuM is a bare-metal hypervisor with extended have to be implemented at hypervisor level and, capabilities for highly critical real-time systems. also, XtratuM complexity would grow too much. 2 Thus, only a few simple drivers (console, UART) I/O partition, is in charge of offering a suitable have been implemented inside XtratuM. The sec- device abstraction closely resembling a typical ond approach is to leave device driver implemen- hardware device. tation to partitions themselves. This approach is more flexible as we can use device drivers already 2. The Virtio device drivers 3.2 used by the Linux implemented, like those included in the Linux ker- guest partitions are in charge of managing and nel. For this method to work, guests are given per- accessing the Virtio devices offered by the I/O missions to access some I/O ports on the configu- partition. ration step. 3. The Virtio transport mechanism 4.2, is in By leaving devices to partition control, new prob- charge of providing an efficient mechanism for lems arise, related to device management. If a de- connecting both the Virtio devices and drivers. vice on the system is dedicated so that it is mapped to at most one partition, there is no problem. Nev- ertheless, when there is the need for sharing devices 3.1 Virtio Devices between several guests, special management has to The Virtio device model is designed with PCI de- be applied. Operating system device drivers con- vices virtualization in mind, that is Virtio devices trol mutual exclusion of the threads accessing the are very similar in several aspects to PCI devices. same device, so that input/output transactions are This similarity can be further explained by exam- atomic, thus ensuring a correct operation. How- ining the typical operations performed on devices: ever, there are no mutual exclusion mechanisms on XtratuM, as this would break partition isolation 1. Device configuration: is performed on a (partitions may control the way other partitions are ”configuration memory space" associated to a executed). Virtio device that contains: IRQ, Status, De- A proper solution to the device virtualization vice features and Data descriptors information, problem is to create a separate secure I/O partition as it would be found on a PCI device. with exclusive access to devices. This partition vir- tualizes these devices for each of the user partitions. 2. Device activity notification: is performed With these model, the virtual devices on the user using the extended IRQ (Interrupts ReQuests) partition side will send requests to the I/O partition mechanism provided by the hypervisor, used for accessing real devices. Underneath the virtual by the Virtio device to requests attention to devices, a software layer will provide the necessary the guest. mechanisms for transporting the requests, as the 3. Device operations: common device opera- partitions are spatially isolated. Figures1 and3 tions as device data transfers are performed depict the model with different detail level. on buffers allocated by the guest and provided to the device (I/O Partition) which resembles 3 Virtio programming of DMA data transfers. The Virtio standard for Virtual device I/O [7] pro- 3.2 Virtio Drivers vides an stable and efficient mechanism for device virtualization.
Recommended publications
  • Xtratum User Manual
    XtratuM Hypervisor for LEON4 Volume 2: XtratuM User Manual Miguel Masmano, Alfons Crespo, Javier Coronel November, 2012 Reference: xm-4-usermanual-047d This page is intentionally left blank. iii/134 DOCUMENT CONTROL PAGE TITLE: XtratuM Hypervisor for LEON4: Volume 2: XtratuM User Manual AUTHOR/S: Miguel Masmano, Alfons Crespo, Javier Coronel LAST PAGE NUMBER: 134 VERSION OF SOURCE CODE: XtratuM 4 for LEON3 () REFERENCE ID: xm-4-usermanual-047d SUMMARY: This guide describes the fundamental concepts and the features provided by the API of the XtratuM hypervisor. DISCLAIMER: This documentation is currently under active development. Therefore, there are no explicit or implied warranties regarding any properties, including, but not limited to, correctness and fitness for purpose. Contributions to this documentation (new material, suggestions or corrections) are welcome. REFERENCING THIS DOCUMENT: @techreport fxm-4-usermanual-047d, title = fXtratuM Hypervisor for LEON4: Volume 2: XtratuM User Manualg, author = f Miguel Masmano and Alfons Crespo and Javier Coronelg, institution = fUniversidad Polit´ecnicade Valenciag, number = fxm-4-usermanual-047dg, year=fNovember, 2012g, g Copyright c November, 2012 Miguel Masmano, Alfons Crespo, Javier Coronel Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ”GNU Free Documentation License”. Changes: Version Date Comments 0.1 November, 2011 [xm-4-usermanual-047] Initial document 0.2 March, 2012 [xm-4-usermanual-047b] IOMMU included.
    [Show full text]
  • TECOM Project Results Leaflet
    Project Results TECOM (ITEA2 ~ 06038) Delivering trust in embedded ••••••••••••••• systems n Partners Offering secure and dependable solutions Atego EADS DS for a wide range of applications Fagor ••••••••••••••••••••••••••••••••••••• Ikerlan Technicolor Technikon The TECOM (Trusted Embedded ABSTRACT ARCHITECTURES Trialog Computing) project has developed TECOM focused on the growing demand Universidad Politécnica de Madrid architectures and solutions combining for execution platforms in embedded Universidad Politécnica de Valencia embedded trust services and trusted systems that address both integrity and Visual Tools operating system technologies to security concerns. It developed abstract ensure security and dependability in architectures based on generic modules a wide range of complex and dynamic involving on one side an embedded trust n Countries involved embedded systems. The project focused services layer offering hardware security, on enabling multiple applications to and on the other trusted operating Austria be run safely on the same systems system technology involving system and France and processors while acting totally middleware space. The result can be Spain independently of each other. customised to a specific application. Applications range from protecting film rights in video-on-demand applications The state-of-the art approach to trust at n Project start to ensuring bug-free software upgrades systems level, close to the processor, is September 2007 in domestic appliances. some form of hypervisor or virtualisation application for securely partitioning the n Project end Industry and society are increasingly applications. While this has already been August 2010 dependent on embedded systems that are developed for use on PCs where it was becoming ever more complex, dynamic and possible to run two windows independently open, while interacting with progressively at the same time, it has not been available more demanding and heterogeneous for embedded systems.
    [Show full text]
  • Spatial Isolation Refers to the System Ability to Detect and Avoid the Possibility That a Partition Can Access to Another Partition for Reading Or Writing
    Virtualización Apolinar González Alfons Crespo OUTLINE Introduction Virtualisation techniques Hypervisors and real-time TSP Roles and functions Scheduling issues Case study: XtratuM 2 Conceptos previos Máquina virtual (VM): software que implementa una máquina (computadora) como el comportamiento real. Hipervisor (también virtual machine monitor VMM) es una capa de software (o combinación de software/hardware) que permite ejecutar varios entornos de ejecución independientes o particiones en un computador. Partición: Entorno de ejecución de programas. Ejemplos: Linux + aplicaciones; un sistema operativo de tiempo real + tareas; … 3 Conceptos previos Partition Hypervisor 4 INTRODUCTION: Isolation Temporal isolation refers to the system ability to execute several executable partitions guaranteeing: • the timing constraints of the partition tasks • the execution of each partition does not depend on the temporal behaviour of other partitions. The temporal isolation enforcement is achieved by means of a scheduling policy: • Cyclic scheduling, the ARINC 653 • Periodic Priority Server • EDF Server • Priority 5 PARTITIONED SYSTEMS Temporal Isolation: duration Origin relative to MAF Slot (temporal window) P1P1 P2P2 P1P1 P3P3 P2P2 P2P2 P2P2 MAF (Major Frame) SlotP1P1 id = 3 start = 400ms duration = 100 partition: P1 Execution MAF 1 MAF 2 MAF 3 MAF 4 6 INTRODUCTION: Isolation Spatial isolation refers to the system ability to detect and avoid the possibility that a partition can access to another partition for reading or writing. The hardware
    [Show full text]
  • Virtualization Technologies Overview Course: CS 490 by Mendel
    Virtualization technologies overview Course: CS 490 by Mendel Rosenblum Name Can boot USB GUI Live 3D Snaps Live an OS on mem acceleration hot of migration another ory runnin disk alloc g partition ation system as guest Bochs partially partially Yes No Container s Cooperati Yes[1] Yes No No ve Linux (supporte d through X11 over networkin g) Denali DOSBox Partial (the Yes No No host OS can provide DOSBox services with USB devices) DOSEMU No No No FreeVPS GXemul No No Hercules Hyper-V iCore Yes Yes No Yes No Virtual Accounts Imperas Yes Yes Yes Yes OVP (Eclipse) Tools Integrity Yes No Yes Yes No Yes (HP-UX Virtual (Integrity guests only, Machines Virtual Linux and Machine Windows 2K3 Manager in near future) (add-on) Jail No Yes partially Yes No No No KVM Yes [3] Yes Yes [4] Yes Supported Yes [5] with VMGL [6] Linux- VServer LynxSec ure Mac-on- Yes Yes No No Linux Mac-on- No No Mac OpenVZ Yes Yes Yes Yes No Yes (using Xvnc and/or XDMCP) Oracle Yes Yes Yes Yes Yes VM (manage d by Oracle VM Manager) OVPsim Yes Yes Yes Yes (Eclipse) Padded Yes Yes Yes Cell for x86 (Green Hills Software) Padded Yes Yes Yes No Cell for PowerPC (Green Hills Software) Parallels Yes, if Boot Yes Yes Yes DirectX 9 Desktop Camp is and for Mac installed OpenGL 2.0 Parallels No Yes Yes No partially Workstati on PearPC POWER Yes Yes No Yes No Yes (on Hypervis POWER 6- or (PHYP) based systems, requires PowerVM Enterprise Licensing) QEMU Yes Yes Yes [4] Some code Yes done [7]; Also supported with VMGL [6] QEMU w/ Yes Yes Yes Some code Yes kqemu done [7]; Also module supported
    [Show full text]
  • Comparison of Platform Virtual Machines - Wikipedia
    Comparison of platform virtual machines - Wikipedia... http://en.wikipedia.org/wiki/Comparison_of_platform... Comparison of platform virtual machines From Wikipedia, the free encyclopedia The table below compares basic information about platform virtual machine (VM) packages. Contents 1 General Information 2 More details 3 Features 4 Other emulators 5 See also 6 References 7 External links General Information Name Creator Host CPU Guest CPU Bochs Kevin Lawton any x86, AMD64 CHARON-AXP Stromasys x86 (64 bit) DEC Alphaserver CHARON-VAX Stromasys x86, IA-64 VAX x86, x86-64, SPARC (portable: Contai ners (al so 'Zones') Sun Microsystems (Same as host) not tied to hardware) Dan Aloni helped by other Cooperati ve Li nux x86[1] (Same as parent) developers (1) Denal i University of Washington x86 x86 Peter Veenstra and Sjoerd with DOSBox any x86 community help DOSEMU Community Project x86, AMD64 x86 1 of 15 10/26/2009 12:50 PM Comparison of platform virtual machines - Wikipedia... http://en.wikipedia.org/wiki/Comparison_of_platform... FreeVPS PSoft (http://www.FreeVPS.com) x86, AMD64 compatible ARM, MIPS, M88K GXemul Anders Gavare any PowerPC, SuperH Written by Roger Bowler, Hercul es currently maintained by Jay any z/Architecture Maynard x64 + hardware-assisted Hyper-V Microsoft virtualization (Intel VT or x64,x86 AMD-V) OR1K, MIPS32, ARC600/ARC700, A (can use all OVP OVP Imperas [1] [2] Imperas OVP Tool s x86 (http://www.imperas.com) (http://www.ovpworld compliant models, u can write own to pu OVP APIs) i Core Vi rtual Accounts iCore Software
    [Show full text]
  • Hypervisors and Realtime Linux
    Hands-on course , 5 Hypervisors and realtime Linux day(s) Ref : HYP OBJECTIVES Participants At the end of this training you will be able to choose between the different realtime solutions for Linux and to Architects or developers in develop realtime applications based on Linux-RT, Xenomai or a realtime hypervisor architecture. charge of realtime application deployment merging realtime applications and opensource 1) Virtualisation using Linux 3) Overview of realtime architectures with Linux general purpose operating 2) The XEN Hypervisor 4) Realtime Hypervisors system. Pre-requisites Case study Basic knowledge of C The exercises are proposed using skeletons to be completed to allow the student to write a realtime programs development, application and to interface it with Linux. realtime executives and Linux or UNIX. 1) Virtualisation using Linux Next sessions - Overview of virtualization. History. Theory of virtualization. Virtualization types and modes. - The new virtualization helpers in modern CPU, Intel VTX and ARM Trust-zone. - Virtualization gains. Securing a system by diminution of the trusted software base. - Virtualization using Linux. Namespaces and application virtualization. - Overview of QEMU and KVM. Focus on XEN. 2) The XEN Hypervisor - Presentation of the XEN Hypervisor. Installation, commands overview. - Storage management, console, networking with XEN. - CPU virtualization, scheduling, checkpoints and migration. - Limits of the XEN scheduling. Tries to makes XEN realtime. - The XEN Development interface. Workshop Installation and management of the XEN Hypervisor. Implementation of a bare XEN application. Port of an Operating System to XEN. Xen scheduler. 3) Overview of realtime architectures with Linux - Linux realtime evolution. Origin of the problem. - Schedulers, bottom halves and latency.
    [Show full text]
  • EMC2 Prototyping and Benchmarking of Pikeos-Based and XTRATUM
    EMC2 Prototyping and Benchmarking of PikeOS-based and XTRATUM-based systems on LEON4x4 Introduction . Multi-core architectures will be adopted in the next generations of avionics and aerospace systems. Integrated Modular Avionics (IMA): mixed-criticality . Key requirement: spatial and temporal isolation . Virtualization appears to be a promising technique to implement robust software architectures in multi-core avionics platforms. Goal: exploiting virtualization in the prototyping of a multi-core test platform for the aerospace domain. This is a first attempt to exploit paravirtualization on Cobham-Gaisler LEON4, the European Space Agency Next Generation Microprocessor (NGMP). © 2015, Thales Alenia Space Reference Application Test Software (Test input, Application Stack: . Scenario: various analysis and (Telemetry, benchmarking) file transfers) levels of criticality and REFERENCE SOFTWARE dependability both at DEMO PLATFORM software and hardware level JTAG SPACEWIRE PERIPHERAL TARGET DEVICE 1 TEST SERIAL MULTICORE . Requirements: CONSOLE PROCESSING ETHERNET PLATFORM SPACEWIRE PERIPHERAL reliability, robustness. DEVICE 2 Overall objectives: . Implementation and analysis of a typical mixed-critical aerospace application over a next-gen multicore platform . Assessment and analysis of virtualization technologies (isolation) . Comparison of different hypervisors (robustness, self-healing) © 2015, Thales Alenia Space Platform & Tools The target hardware identified is a quad-core architecture based on the Gaisler SPARC-V8 LEON4 processor (ESA’s Next Generation MicroProcessor). Two different hypervisors, SYSGO PikeOS and FentISS XtratuM, have been considered for the implementation of the reference application on selected multicore platform. PikeOS is a platform providing RTOS, type I hypervisor and paravirtualization functionalities. XtratuM is an open-source, bare metal hypervisor targeting real- time systems and implementing the paravirtualization principle.
    [Show full text]
  • Use of Xtratum in an Automotive Application (*)
    Use of XtratuM in an Automotive Application (*) J. S´anchez , S. Peir´o, A. Crespo, J. Sim´o, M. Masmano, P. Balbastre Instituto de Automatica e Informatica Industrial Universidad Politecnica de Valencia, Spain jsanchez,mmasmano,speiro @ai2.upv.es, jsimo,acrespo,patricia disca.upv.es { } { } Abstract the paravirtualization technique, which means that Virtualization is playing a key role in many of software running on top of it must be modified in today software systems. At first used mainly to order to interact with the hypervisor and not with improve resource utilization, this technology is ex- the underlying hardware. Therefore, virtualization panding and has reached the market of embedded support cannot be limited to creating virtual ma- systems. In this scope, XtratuM o↵ers a virtual- chines but it has to be extended to provide support ization solution capable of running mixed-purpose for any run-time environment wanted to be run over applications. This paper presents the key contribu- XtratuM. tions to the OVERSEE project, whose architecture depends on the availability of this technology. This project has the goal of o↵ering an appropriate in- frastructure for the information technology systems of the upcoming smart vehicles. 1 Introduction The OVERSEE project [2] aims to provide a de- pendable and secure infrastructure for the execu- tion of mixed criticality applications on automotive systems. To meet this challenge, an architecture Figure 1: OVERSEE architecture overview. based on virtualization has been selected. XtratuM [1] o↵ers an ideal foundation for enforcing a strong Ultimately, this project has pushed forward the level of isolation, both temporal and spatial, thus cloud of available facilities in order to face the de- ensuring that vehicle functionality and safety can- sign of a XtratuM-based system.
    [Show full text]
  • Partitioned System with Xtratum on Powerpc
    Tesina de M´asteren Autom´aticae Inform´aticaIndustrial Partitioned System with XtratuM on PowerPC Author: Rui Zhou Advisor: Prof. Alfons Crespo i Lorente December 2009 Contents 1. Introduction1 1.1. MILS......................................2 1.2. ARINC 653..................................3 1.3. PikeOS.....................................6 1.4. ADEOS....................................7 2. Overview of XtratuM 11 2.1. Virtualization and Hypervisor........................ 11 2.2. XtratuM.................................... 12 3. Overview of PowerPC 16 3.1. POWER.................................... 16 3.2. PowerPC.................................... 17 3.3. PowerPC in Safety-critical.......................... 19 4. Main PowerPC Drivers to Virtualize 20 4.1. Processors................................... 20 4.2. Timer..................................... 21 4.3. Interrupt.................................... 23 4.4. Memory.................................... 24 5. Porting Implementation 25 5.1. Hypercall................................... 26 5.2. Timer..................................... 27 5.3. Interrupt.................................... 28 5.4. Memory.................................... 31 5.5. Partition.................................... 32 6. Benchmark 34 7. Conclusions and Future Work 38 Abstract Nowadays, the diversity of embedded applications has been developed into a new stage with the availability of various new high-performance processors and low cost on-chip memory. As the result of these new advances in hardware, there is a
    [Show full text]
  • Real-Time Operating Systems
    Informatik Systemarchitektur, Operating Systems Real-Time Operating Systems Dresden, 05.02.2009 Outline • Real-Time OS Introduction ● Basic Variants of RTOSes ● Real-Time Paradigms ● Non-Real-Time on RTOS ● Requirements for RTOSes • Scheduling • Modern Hardware • Memory Management • Real-Time OS Examples ● POSIX and Real-Time ● DROPS: Dresden Real – Time OS ● ARINC 653-1 Standard for Avionics Basic Variants of RTOSes (Simplest) Cyclic Executive – Only one task as infinite loop – Time driven, polling for external events Set of Interrupt Handlers – Event driven – Handlers usually have priorities TU Dresden, 06.02.09 Realtime Operating Systems Folie 3 von 36 Basic Variants of RTOSes (II) Thread Packages (iRMX, FreeRTOS, eCos, ... ) – Use a form of scheduling • Preemptive or cooperative • Priorities – Provide synchronization primitives (e.g., semaphores) • Some with priority inheritance/ceiling – No address-space protection, no virtual memory TU Dresden, 06.02.09 Realtime Operating Systems Folie 4 von 36 Basic Variants of RTOSes (III) Microkernels (QNX, VxWorks, Fiasco ...) – Memory protection (address spaces) • With or Without virtual memory ➢ More robustness (fault isolation) – Extensive Functionality provided by services atop TU Dresden, 06.02.09 Realtime Operating Systems Folie 5 von 36 Basic Variants of RTOSes (IV) Monolithic RTOS (LynxOS, MontaVista Linux ...) • Monolithic kernel with RT API (POSIX RT ...) • Often non-real-time APIs as well (e.g., Linux compatibility) • Device drivers etc. usually run in privileged mode • Real-time applications usually run in user mode Monolithic with RT Executive underneath (RTLinux, RTAI, XtratuM ...) • Combination of a legacy OS with some form of an RT thread package (Usually no memory protection) • Real-time applications run in kernel mode TU Dresden, 06.02.09 Realtime Operating Systems Folie 6 von 36 Real-Time Paradigms (I) Time Driven • Static partitioning in time slots • Scheduler dispatches time slots in a fixed fashion (e.g., fixed cyclic scheduler) Event Driven • Events: Messages, Signals, Interrupts..
    [Show full text]
  • A State-Of-The-Art Survey on Real-Time Issues in Embedded Systems Virtualization
    Journal of Software Engineering and Applications, 2012, 5, 277-290 277 http://dx.doi.org/10.4236/jsea.2012.54033 Published Online April 2012 (http://www.SciRP.org/journal/jsea) A State-of-the-Art Survey on Real-Time Issues in Embedded Systems Virtualization Zonghua Gu, Qingling Zhao College of Computer Science, Zhejiang University, Hangzhou, China. Email: {zgu, ada_zhao}@zju.edu.cn Received January 1st, 2012; revised February 5th, 2012; accepted March 10th, 2012 ABSTRACT Virtualization has gained great acceptance in the server and cloud computing arena. In recent years, it has also been widely applied to real-time embedded systems with stringent timing constraints. We present a comprehensive survey on real-time issues in virtualization for embedded systems, covering popular virtualization systems including KVM, Xen, L4 and others. Keywords: Virtualization; Embedded Systems; Real-Time Scheduling 1. Introduction on L4Ka::Pistachio microkernel; in turn, unmodified guest OS can run on top of QEMU; Schild et al. [2] used Platform virtualization refers to the creation of Virtual Intel VT-d HW extensions to run unmodified guest OS Machines (VMs), also called domains, guest OSes, or on L4. There are also Type-2, para-virtualization solu- partitions, running on the physical machine managed by tions, e.g., VMWare MVP (Mobile Virtualization Plat- a Virtual Machine Monitor (VMM), also called a hyper- form) [3], as well as some attempts at adding para-virtu- visor. Virtualization technology enables concurrent exe- alization features to Type-2 virtualization systems to im- cution of multiple VMs on the same hardware (single or prove performance, e.g., task-grain scheduling in KVM multicore) processor.
    [Show full text]
  • IO Virtualisation in a Partitioned System M Masmano, S Peiró, J Sánchez, J
    IO Virtualisation in a Partitioned System M Masmano, S Peiró, J Sánchez, J. Simo, A. Crespo To cite this version: M Masmano, S Peiró, J Sánchez, J. Simo, A. Crespo. IO Virtualisation in a Partitioned System. Embedded Real Time Software and Systems (ERTS2012), Feb 2012, Toulouse, France. hal-02192402 HAL Id: hal-02192402 https://hal.archives-ouvertes.fr/hal-02192402 Submitted on 23 Jul 2019 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. IO Virtualisation in a Partitioned System M. Masmano, S. Peiro,´ J. Sanchez´ , J. Simo,´ A. Crespo Instituto de Automatica e Informatica Industrial Universidad Politecnica de Valencia, Spain fmmasmano,speiro,jsanchez,jsimo,[email protected] Abstract OVERSEE makes XtratuM system partitioning the best way to isolate and protect applications from each other. Partitioned systems permit to isolate in partitions sev- Finally, for this system, the chosen target hardware is the eral applications with different security levels and/or crit- Intel Atom architecture, which is the Intel architecture for icality. Hypervisor technology provides virtual machines embedded systems. to execute partitions under two basic principles: space and time isolation. This view is complemented with the XtratuM ensures temporal and spatial isolation of the ”dedicated devices” technique that assigns devices exclu- applications that run over it.
    [Show full text]