Prof. Daniel Rossier, PhD
|
|
- Steven Chapman
- 6 years ago
- Views:
Transcription
1 Dealing with Hardware Heterogeneity Using a Virtualization Framework Tailored to ARM Based Embedded Systems Prof. Daniel Rossier, PhD HEIG-VD Institut REDS, Reconfigurable & Embedded Digital Systems rte Cheseaux 1, 1400 Yverdon-les-Bains
2 Outline Background Overview of EmbeddedXEN Protection & Memory Isolation Domain Interactions Device Heterogeneity Conclusions & Future Work 2
3 Background HEIG-VD University of Applied Sciences in Yverdon-les-Bains, Switzerland (CH) Reconfigurable Embedded Digital System Institute Hardware Design, FPGA Embedded Execution Environment, Drivers, BSP, OS/RTOS, etc. Applied Research & Development ARM based Microcontrolers (v4, v5, v6, v7) Low-level interactions between computing cores (CPU, DSP, FPGA, etc.) Towards Cortex-A15 HVM 3
4 Background Embedded Virtualization on ARM XEN: free & easy access to a stable & evolving hypervisor source code Early port of XEN on ARM in 2007 in the context of a Diploma Project Necessity to get a simple, thin, fast, robust, easy-to-deployed virtualization framework Re-use of Linux file organization & build system (Makefiles, scripts, ) Focus on realtime aspects (Linux/Xenomai as RTOS) Different sources of inspiration "Fast Secure Virtualization for the ARM Platform", Daniel Ferstay, Master Thesis, The University of British Columbia, 2006 XEN ARM port, George G. Davis, MontaVista, 2007 Secure Xen on ARM Project, Sang-bum SUH, Samsung,
5 Background Focus on heterogeneity of embedded devices Idea to re-use OS & applications from old devices to recent devices Time-to-market migration to new hardware generation Dealing with various cross-compiled binaries (ARM v5-v7) Dealing with different peripherals Less emphasis on security aspects Publicly available 5
6 Background Hardware constraints Low latency, reactivity (response time) ARM cores do not support virtualization mechanisms not easy to deal with various levels of execution modes Para-virtualization remains attractive About 30 files to be (slightly) adapted Low execution overhead Efficient processing of downcalls/upcalls with support of domain interactions Physical interrupts are quickly processed in dom0. 6
7 Overview of EmbeddedXEN Primary (host) OS known as Dom0 Secondary (guest) OS known as DomU Xen-guest (pv) - Full privilege - Dom0 original drivers - Backend drivers - Native drivers Limited use of hypercalls - Full privilege - DomU original drivers - Frontend drivers Xen-guest (pv) ARM execution modes (USR/SVC) pseudo-user mode with double stack handling / downcalls & upcalls are simple jumps to specific (callback) addresses No subtle use of domain access control (ARM DACR) to protect memory Memory sharing facilitated between primary and secondary OS VCPU sched_flip Scheduler Domain Creation and Setup EmbeddedXEN Hypervisor Hypercalls Handling Prioritized Upcalls Handling Migration Manager Hardware 7
8 Overview of EmbeddedXEN Linux-like source tree and build system (Makefiles) Config & build system tools environnement.conf Common part embeddedxen linux domu xenbus core include console include arch linux dom0 hypervisor include arm arch/arm mach-msm mach-mx35 xen include arch Secondary OS mach-mx35 mx35_fab4.c Hypervisor arch/arm arm kernel mm Primary OS mach-msm 8
9 Overview of EmbeddedXEN Single binary (multi-kernel) image EmbeddedXEN Automatic parsing & image relocation during hypervisor bootstrap Boot Head EOD 0 (Dom-0) EOD 1 (Dom-U) Hypervisor DOM-0 DOM-U vmlinux vmlinux.dom0 vmlinux.domu uimage Dom-0 Filesystem /home/root/squeezeos.rootfs.img: Stored separately in sdcard, for example Dom-U Filesystem 9
10 Protection & Memory Isolation Memory isolation between domains relies on different address space isolation. No further advanced mechanisms to protect hypervisor and guest memory The guest OS kernel runs at the same privilege as the hypervisor. Each domain receives its own (contiguous) physical memory region during domain set up. No pagination of the kernel linear address space is performed. Paravirt of memory management is kept minimal. Guest OS kernel has access to the whole memory. No protection mechanism for strong isolation of VM (but is it really necessary?) 10
11 Protection & Memory Isolation Virtual & Physical Memory Layouts Initial Virtual Address Space Physical RAM dom0 Virtual Address Space 0xffff0000 Interrupt Vectors frame table Interrupt Vectors frame table XEN heap (2 MiB) XEN heap (2 MiB) 0xFF boot allocator Hypervisor code 1st-level page table Linear mapping domu boot allocator Hypervisor code 1st-level page table VMALLOC_END I/O dom0 I/O PAGE_OFFSET 0xC domu dom0 Linear mapping Hypervisor dom0 3GiB 3GiB 0x
12 Domain Interactions Virtualization of peripherals in EmbeddedXEN is quite similar to the existing mechanisms in XEN. Driver split with frontend & backend drivers Communication with xenbus Use of grant tables for sharing/copying pages between domains However, a revisited (simplified) implementation of these mechanisms have been achieved in EmbeddedXEN. XEN store is dynamically allocated at boot time of guest OSes. No user space tools are required to manage XEN store entries or peripherals configs. Hotplugs & dynamic configs of peripherals are less relevant to embedded systems. 12
13 Domain Interactions domu is passed information during bootstrap under control of dom0. xenbus thread xenstore thread subsys OS Subsys subsys OS Subsys event_channel A/B Page Dom0 prod cons Page DomU prod cons xenstore xenbus thread backend drivers frontend drivers event_channel C/D via unpause_domu(store_mfn, store_evtchn) domu Hypervisor start_info->store_mfn start_info->store_evtchn 13
14 Domain Interactions Grant tables are used in a different way Shared pages are possible only in the vmalloc'd area. Kernel linear addresses are not shareable; contents needs to be copied using temporary mappings. Dom0 RAM DomU 0xFF Hypervisor Hypervisor 0xFF VMALLOC_END gnttab_foreign[1] gnttab VMALLOC_START gnttab(domu) gnttab(dom0) has references to has references to gnttab(domu) domu shared pages gnttab(dom0) has references to has references to gnttab(domu) gnttab(dom0) VMALLOC_END gnttab gnttab_foreign[0] VMALLOC_START mem_map_foreign mem_map_foreign(domu) dom0 mem_map_foreign(dom0) mem_map_foreign 14 0xC x GiB shared pages Hypervisor 3GiB 0xC x
15 Device Heterogeneity Different levels of heterogeneity At CPU level: various instructions sets (locks, cache, etc.), various PTEs (MMU) flags, various co-processors, etc. Compatibility ensured via hypercalls At peripherals level: not the same hardware Compatibility ensured via backend driver processing hypervisor include arch/arm built-in.o cache-v6.s cache-v7.s Kconfig Makefile mm.h proc-macros.s tlb-v6.s tlb-v7.s mach-msm mm mach-mx35 xen arch/arm kernel mm 15
16 Device Heterogeneity Example of ARMv6 running on ARMv7 CPU (imx35 -> HTC Desire HD) Original version linux domu/arch/arm/mm/cache-v6.s: ENTRY(v6_flush_kern_cache_all) mov r0, #0 #ifdef HARVARD_CACHE mcr p15, 0, r0, c7, c14, D cache clean+invalidate #ifdef CONFIG_SMP mcr p15, 0, r0, c7, c5, I+BTB cache invalidate #else b v6_icache_inval_all #endif #else mcr p15, 0, r0, c7, c15, Cache clean+invalidate #endif Paravirt (PV) version linux domu/arch/arm/mm/cache-v6.s:.extern xen_flush_kern_cache_all ENTRY(v6_flush_kern_cache_all) b xen_flush_kern_cache_all #if 0 /* paravirt */ mov r0, #0 mov pc, lr #endif /* 0 */ mov pc, lr linux domu//hypervisor.c: void xen_flush_kern_cache_all(void) { struct mmuext_op op; op.cmd = MMUEXT_FLUSH_CACHE; HYPERVISOR_mmuext_op(&op, 1, NULL, DOMID_SELF); } hypervisor-4.0.2/arch/arm/mm/cache_v7.s: ENTRY(xen_flush_kern_cache_all) stmfd sp!, {r4-r5, r7, r9-r11, lr} bl much more complex!! mov r0, #0 mcr p15, 0, r0, c7, c5, I+BTB cache invalidate ldmfd sp!, {r4-r5, r7, r9-r11, lr} mov pc, lr ENDPROC(xen_flush_kern_cache_all) 16
17 Device Heterogeneity Example of framebuffer device heterogeneity Configuration of framebuffer is retrieved from Dom0 via xenbus xenstore xenbus thread User space applications (/dev/fb0) framebuffer core Dom0 xenbus thread User space applications (/dev/fb0) DomU device-specific framebuffer msmfb_pan_update() framebuffer core dom0 fb memory (allocated by dom0) xenfb backend fb_event_dom_register fb_event_dom_switch Query framebuffer params FB config is retrieved from dom0 xenfb frontend domu fb memory (allocated by domu) 17
18 Device Heterogeneity Example of audio device heterogeneity DomU audio buffers are accessed from Dom0 via shared pages. Dom0 DomU xenstore xenbus thread User space applications /dev/msm_pcm_out - or - /dev/pcm/snd/pcm0c0d0p xenstore xenbus thread User space applications /dev/pcm/snd/pcm0c0d0p pcm subsystem pcm subsystem arch-specific audio driver xen-audio backend xenvaud_pcm_start xenvaud_pcm_stop xen-audio frontend Audio buffers allocated in domu Sound device (headset, speakers, etc.) 18
19 Conclusions & Future Work EmbeddedXEN is an embedded virtualization framework which puts emphasis on efficient and heterogeneous hardware. Application environments can be re-used "as such" on modern platforms (Android-based for example) taking advantage of last generation hardware. EmbeddedXEN relies on the main principles of XEN, with a revisited lightweight, but less secure architecture. A single multikernel binary image, easy to deploy on the target platform without additional tools, makes EmbeddedXEN well tailored to embedded systems. 19
20 Conclusions & Future Work Further investigation projects: Elaboration of a domu using a graphical desktop for user applications Support of multicore ARM CPUs (cortex-a9, cortex-a15) Live migration of domu using remote NFS-filesystem (migration within a cloud) Support of hard realtime OS (RTEMS-paravirt) 20
21 Thanks for your attention! Further information: 21
Xen on ARM. Stefano Stabellini
Xen on ARM Stefano Stabellini What is Xen? a type-1 hypervisor small footprint (less than 90K LOC) Xen: Open Source GPLv2 with DCO (like Linux) Diverse contributor community Xen: Open Source source: Mike
More informationLinux and Xen. Andrea Sarro. andrea.sarro(at)quadrics.it. Linux Kernel Hacking Free Course IV Edition
Linux and Xen Andrea Sarro andrea.sarro(at)quadrics.it Linux Kernel Hacking Free Course IV Edition Andrea Sarro (andrea.sarro(at)quadrics.it) Linux and Xen 07/05/2008 1 / 37 Introduction Xen and Virtualization
More informationAbstract. Testing Parameters. Introduction. Hardware Platform. Native System
Abstract In this paper, we address the latency issue in RT- XEN virtual machines that are available in Xen 4.5. Despite the advantages of applying virtualization to systems, the default credit scheduler
More informationXen is not just paravirtualization
Xen is not just paravirtualization Dongli Zhang Oracle Asia Research and Development Centers (Beijing) dongli.zhang@oracle.com December 16, 2016 Dongli Zhang (Oracle) Xen is not just paravirtualization
More informationCloud Computing Virtualization
Cloud Computing Virtualization Anil Madhavapeddy anil@recoil.org Contents Virtualization. Layering and virtualization. Virtual machine monitor. Virtual machine. x86 support for virtualization. Full and
More informationIndex. 3D support, 257. Boot firmware, 47 Boot trampoline, 40 Booting, 27 Borrowed virtual time scheduler, 219 Breakpoints, , 27
Index 3D support, 257 8086, 27 ACPI, see Advanced Configuration and Power Interface Adding new devices, 187 Address Space ID, 238 Administration tools, 200 Advanced Configuration and Power Interface, 259
More informationVirtual Machines Disco and Xen (Lecture 10, cs262a) Ion Stoica & Ali Ghodsi UC Berkeley February 26, 2018
Virtual Machines Disco and Xen (Lecture 10, cs262a) Ion Stoica & Ali Ghodsi UC Berkeley February 26, 2018 Today s Papers Disco: Running Commodity Operating Systems on Scalable Multiprocessors, Edouard
More informationHeterogeneous Real-Time SoC Software Architecture
Heterogeneous Real-Time SoC Software Architecture Presented By Stefano Stabellini Principal System Software Engineer Introduction Stefano Stabellini Xen Project: Founder of the Xen on Arm effort in late
More informationLecture 21: Virtual Memory. Spring 2018 Jason Tang
Lecture 21: Virtual Memory Spring 2018 Jason Tang 1 Topics Virtual addressing Page tables Translation lookaside buffer 2 Computer Organization Computer Processor Memory Devices Control Datapath Input Output
More informationVirtualization with XEN. Trusted Computing CS599 Spring 2007 Arun Viswanathan University of Southern California
Virtualization with XEN Trusted Computing CS599 Spring 2007 Arun Viswanathan University of Southern California A g e n d a Introduction Virtualization approaches Basic XEN Architecture Setting up XEN Bootstrapping
More informationChapter 5 C. Virtual machines
Chapter 5 C Virtual machines Virtual Machines Host computer emulates guest operating system and machine resources Improved isolation of multiple guests Avoids security and reliability problems Aids sharing
More informationXen on ARM. How fast is it, really? Stefano Stabellini. 18 August 2014
Xen on ARM How fast is it, really? Stefano Stabellini 18 August 2014 Status Xen Project 4.4 release: status Features: 64-bit guest support in ARMv8 stable hypercall ABI basic lifecycle operations memory
More informationXen/paravirt_ops upstreaming Jeremy Fitzhardinge XenSource 04/18/07
Xen/paravirt_ops upstreaming Jeremy Fitzhardinge XenSource jeremy@xensource.com Where Did We Come From? Initially arch/xen Moved to a i386 subarch Upstreaming stalled VMI posted Deadlock paravirt_ops KS
More informationThe Price of Safety: Evaluating IOMMU Performance
The Price of Safety: Evaluating IOMMU Performance Muli Ben-Yehuda 1 Jimi Xenidis 2 Michal Ostrowski 2 Karl Rister 3 Alexis Bruemmer 3 Leendert Van Doorn 4 1 muli@il.ibm.com 2 {jimix,mostrows}@watson.ibm.com
More informationPorting bhyve on ARM. Mihai Carabas, Peter Grehan BSDCan 2016 University of Ottawa Ottawa, Canada June 10 11, 2016
Porting bhyve on ARM Mihai Carabas, Peter Grehan {mihai,grehan}@freebsd.org BSDCan 2016 University of Ottawa Ottawa, Canada June 10 11, 2016 About me University POLITEHNICA of Bucharest PhD Student: virtualization
More informationShadow2. Xen Technical Summit, Summer Tim Deegan (XenSource) & Michael Fetterman (U of Cambridge, Intel) Guilty parties:
Shadow2 Xen Technical Summit, Summer 2006 Guilty parties: Tim Deegan (XenSource) & Michael Fetterman (U of Cambridge, Intel) R Shadow2 Full replacement for the old (shadow1) code. As of about two weeks
More informationEC H2020 dredbox: Seminar School at INSA Rennes
EC H2020 dredbox: Seminar School at INSA Rennes contact@virtualopensystems.com www.virtualopensystems.com Pierre LUCAS 2017-11-22 Open Part 1: Open Company Overview 2 OpenOpen Confidential & Proprietary
More informationARMv8 port of the Jailhouse hypervisor
Security Level: ARMv8 port of the Jailhouse hypervisor Antonios Motakis antonios.motakis@huawei.com Version: V1.0(20160321) Huawei Technologies Duesseldorf GmbH Acknowledgements Jan Kiszka, SIEMENS (Upstream
More informationBackground. IBM sold expensive mainframes to large organizations. Monitor sits between one or more OSes and HW
Virtual Machines Background IBM sold expensive mainframes to large organizations Some wanted to run different OSes at the same time (because applications were developed on old OSes) Solution: IBM developed
More informationKVM/ARM. Linux Symposium Christoffer Dall and Jason Nieh
KVM/ARM Linux Symposium 2010 Christoffer Dall and Jason Nieh {cdall,nieh}@cs.columbia.edu Slides: http://www.cs.columbia.edu/~cdall/ols2010-presentation.pdf We like KVM It s Fast, Free, Open, and Simple!
More informationXen on ARM ARMv7 with virtualization extensions
Xen on ARM ARMv7 with virtualization extensions Stefano Stabellini Why? Why? smartphones: getting smarter Quad-core 1.4 GHz Cortex-A9 ARM Servers coming to market 4GB RAM, 4 cores per node 3 x 6 x 4 x
More informationUsing kgdb and the kgdb Internals
Using kgdb and the kgdb Internals Jason Wessel jason.wessel@windriver.com Tom Rini trini@kernel.crashing.org Amit S. Kale amitkale@linsyssoft.com Using kgdb and the kgdb Internals by Jason Wessel by Tom
More informationTo EL2, and Beyond! connect.linaro.org. Optimizing the Design and Implementation of KVM/ARM
To EL2, and Beyond! Optimizing the Design and Implementation of KVM/ARM LEADING COLLABORATION IN THE ARM ECOSYSTEM Christoffer Dall Shih-Wei Li connect.linaro.org
More informationLinux Virtualization Update
Linux Virtualization Update Chris Wright Japan Linux Symposium, November 2007 Intro Virtualization mini summit Paravirtualization Full virtualization Hardware changes Libvirt Xen Virtualization
More informationXen and the Art of Virtualization. CSE-291 (Cloud Computing) Fall 2016
Xen and the Art of Virtualization CSE-291 (Cloud Computing) Fall 2016 Why Virtualization? Share resources among many uses Allow heterogeneity in environments Allow differences in host and guest Provide
More informationCS24: INTRODUCTION TO COMPUTING SYSTEMS. Spring 2018 Lecture 23
CS24: INTRODUCTION TO COMPUTING SYSTEMS Spring 208 Lecture 23 LAST TIME: VIRTUAL MEMORY Began to focus on how to virtualize memory Instead of directly addressing physical memory, introduce a level of indirection
More informationSpring 2017 :: CSE 506. Introduction to. Virtual Machines. Nima Honarmand
Introduction to Virtual Machines Nima Honarmand Virtual Machines & Hypervisors Virtual Machine: an abstraction of a complete compute environment through the combined virtualization of the processor, memory,
More informationOptimizing and Enhancing VM for the Cloud Computing Era. 20 November 2009 Jun Nakajima, Sheng Yang, and Eddie Dong
Optimizing and Enhancing VM for the Cloud Computing Era 20 November 2009 Jun Nakajima, Sheng Yang, and Eddie Dong Implications of Cloud Computing to Virtualization More computation and data processing
More informationHostless Xen Deployment
Hostless Xen Deployment Xen Summit Fall 2007 David Lively dlively@virtualiron.com dave.lively@gmail.com Hostless Xen Deployment What Hostless Means Motivation System Architecture Challenges and Solutions
More informationUnit 5: Distributed, Real-Time, and Multimedia Systems
Unit 5: Distributed, Real-Time, and Multimedia Systems Unit Overview Unit 5 provides an extension to the core topics of operating systems. It introduces distributed systems and special-purpose operating
More informationSupport for Smart NICs. Ian Pratt
Support for Smart NICs Ian Pratt Outline Xen I/O Overview Why network I/O is harder than block Smart NIC taxonomy How Xen can exploit them Enhancing Network device channel NetChannel2 proposal I/O Architecture
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2017 Lecture 27 Virtualization Slides based on Various sources 1 1 Virtualization Why we need virtualization? The concepts and
More informationVirtualization. ...or how adding another layer of abstraction is changing the world. CIS 399: Unix Skills University of Pennsylvania.
Virtualization...or how adding another layer of abstraction is changing the world. CIS 399: Unix Skills University of Pennsylvania April 6, 2009 (CIS 399 Unix) Virtualization April 6, 2009 1 / 22 What
More informationOperating Systems. Memory Management. Lecture 9 Michael O Boyle
Operating Systems Memory Management Lecture 9 Michael O Boyle 1 Memory Management Background Logical/Virtual Address Space vs Physical Address Space Swapping Contiguous Memory Allocation Segmentation Goals
More informationI/O and virtualization
I/O and virtualization CSE-C3200 Operating systems Autumn 2015 (I), Lecture 8 Vesa Hirvisalo Today I/O management Control of I/O Data transfers, DMA (Direct Memory Access) Buffering Single buffering Double
More informationAdvanced Operating Systems (CS 202) Virtualization
Advanced Operating Systems (CS 202) Virtualization Virtualization One of the natural consequences of the extensibility research we discussed What is virtualization and what are the benefits? 2 Virtualization
More informationVirtualization. Operating Systems, 2016, Meni Adler, Danny Hendler & Amnon Meisels
Virtualization Operating Systems, 2016, Meni Adler, Danny Hendler & Amnon Meisels 1 What is virtualization? Creating a virtual version of something o Hardware, operating system, application, network, memory,
More informationRe-architecting Virtualization in Heterogeneous Multicore Systems
Re-architecting Virtualization in Heterogeneous Multicore Systems Himanshu Raj, Sanjay Kumar, Vishakha Gupta, Gregory Diamos, Nawaf Alamoosa, Ada Gavrilovska, Karsten Schwan, Sudhakar Yalamanchili College
More informationCHAPTER 16 - VIRTUAL MACHINES
CHAPTER 16 - VIRTUAL MACHINES 1 OBJECTIVES Explore history and benefits of virtual machines. Discuss the various virtual machine technologies. Describe the methods used to implement virtualization. Show
More informationXen. past, present and future. Stefano Stabellini
Xen past, present and future Stefano Stabellini Xen architecture: PV domains Xen arch: driver domains Xen: advantages - small surface of attack - isolation - resilience - specialized algorithms (scheduler)
More informationVirtualization. Michael Tsai 2018/4/16
Virtualization Michael Tsai 2018/4/16 What is virtualization? Let s first look at a video from VMware http://www.vmware.com/tw/products/vsphere.html Problems? Low utilization Different needs DNS DHCP Web
More informationSFO17-403: Optimizing the Design and Implementation of KVM/ARM
SFO17-403: Optimizing the Design and Implementation of KVM/ARM Christoffer Dall connect.linaro.org Efficient, isolated duplicate of the real machine Popek and Golberg [Formal requirements for virtualizable
More informationMy VM is Lighter (and Safer) than your Container
My VM is Lighter (and Safer) than your Container Filipe Manco, Florian Schmidt, Simon Kuenzer, Kenichi Yasukata, Sumit Sati, Costin Lupu*, Costin Raiciu*, Felipe Huici NEC Europe Ltd, *University Politehnica
More informationXen and the Art of Virtualization
Xen and the Art of Virtualization Paul Barham,, Boris Dragovic, Keir Fraser, Steven Hand, Tim Harris, Alex Ho, Rolf Neugebauer,, Ian Pratt, Andrew Warfield University of Cambridge Computer Laboratory Presented
More informationXen Automotive Hypervisor Automotive Linux Summit 1-2 July, Tokyo
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
More informationARM CORTEX-R52. Target Audience: Engineers and technicians who develop SoCs and systems based on the ARM Cortex-R52 architecture.
ARM CORTEX-R52 Course Family: ARMv8-R Cortex-R CPU Target Audience: Engineers and technicians who develop SoCs and systems based on the ARM Cortex-R52 architecture. Duration: 4 days Prerequisites and related
More informationIntroduction to Oracle VM (Xen) Networking
Introduction to Oracle VM (Xen) Networking Dongli Zhang Oracle Asia Research and Development Centers (Beijing) dongli.zhang@oracle.com May 30, 2017 Dongli Zhang (Oracle) Introduction to Oracle VM (Xen)
More informationEmbedded Linux Architecture
Embedded Linux Architecture Types of Operating Systems Real-Time Executive Monolithic Kernel Microkernel Real-Time Executive For MMU-less processors The entire address space is flat or linear with no memory
More informationWhat is KVM? KVM patch. Modern hypervisors must do many things that are already done by OSs Scheduler, Memory management, I/O stacks
LINUX-KVM The need for KVM x86 originally virtualization unfriendly No hardware provisions Instructions behave differently depending on privilege context(popf) Performance suffered on trap-and-emulate
More informationCross-architecture Virtualisation
Cross-architecture Virtualisation Tom Spink Harry Wagstaff, Björn Franke School of Informatics University of Edinburgh Virtualisation Many of you will be familiar with same-architecture virtualisation
More informationImplementation and. Oracle VM. Administration Guide. Oracle Press ORACLG. Mc Grauv Hill. Edward Whalen
ORACLG Oracle Press Oracle VM Implementation and Administration Guide Edward Whalen Mc Grauv Hill New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore
More informationOperating Systems. read the warning about the size of the project make sure you get the 6 th edition (or later) of the book
Review Syllabus Operating Systems read the warning about the size of the project make sure you get the 6 th edition (or later) of the book Class Grades Server Grades.cs.umd.edu Program #0 Handout its due
More informationXenrelay: An Efficient Data Transmitting Approach for Tracing Guest Domain
Xenrelay: An Efficient Data Transmitting Approach for Tracing Guest Domain Hai Jin, Wenzhi Cao, Pingpeng Yuan, Xia Xie Cluster and Grid Computing Lab Services Computing Technique and System Lab Huazhong
More informationInterrupt Coalescing in Xen
Interrupt Coalescing in Xen with Scheduler Awareness Michael Peirce & Kevin Boos Outline Background Hypothesis vic-style Interrupt Coalescing Adding Scheduler Awareness Evaluation 2 Background Xen split
More informationPerformance Evaluation of Live Migration based on Xen ARM PVH for Energy-efficient ARM Server
Performance Evaluation of Live Migration based on Xen ARM PVH for Energy-efficient ARM Server 2013-10-24 Jaeyong Yoo, Sangdok Mo, Sung-Min Lee, ChanJu Park, Ivan Bludov, Nikolay Martyanov Software R&D
More informationDan Noé University of New Hampshire / VeloBit
Dan Noé University of New Hampshire / VeloBit A review of how the CPU works The operating system kernel and when it runs User and kernel mode Device drivers Virtualization of memory Virtual memory Paging
More informationDEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year and Semester : II / IV Subject Code : CS6401 Subject Name : Operating System Degree and Branch : B.E CSE UNIT I 1. Define system process 2. What is an
More informationA Case for High Performance Computing with Virtual Machines
A Case for High Performance Computing with Virtual Machines Wei Huang*, Jiuxing Liu +, Bulent Abali +, and Dhabaleswar K. Panda* *The Ohio State University +IBM T. J. Waston Research Center Presentation
More informationVirtualization. ! Physical Hardware Processors, memory, chipset, I/O devices, etc. Resources often grossly underutilized
Starting Point: A Physical Machine Virtualization Based on materials from: Introduction to Virtual Machines by Carl Waldspurger Understanding Intel Virtualization Technology (VT) by N. B. Sahgal and D.
More informationVirtualization. Starting Point: A Physical Machine. What is a Virtual Machine? Virtualization Properties. Types of Virtualization
Starting Point: A Physical Machine Virtualization Based on materials from: Introduction to Virtual Machines by Carl Waldspurger Understanding Intel Virtualization Technology (VT) by N. B. Sahgal and D.
More informationAdvanced Exploitation: Xen Hypervisor VM Escape
Advanced Exploitation: Xen Hypervisor VM Escape Shangcong Luan May 27, 2016 Alibaba Cloud Platform Security Team 1 Who am I? 2014-2015 at Vulnhunt Security Team for APT Defense 2015 - now at Alibaba Cloud
More informationFIFO-based Event Channel ABI
FIFO-based Event Channel ABI David Vrabel Draft F Contents 1 Introduction 3 1.1 Revision History........................... 3 1.2 Purpose................................ 4 1.3
More informationXen and the Art of Virtualization
Xen and the Art of Virtualization Paul Barham, Boris Dragovic, Keir Fraser, Steven Hand, Tim Harris, Alex Ho, Rolf Neugebauer, Ian Pratt, Andrew Warfield Presented by Thomas DuBuisson Outline Motivation
More informationSNS COLLEGE OF ENGINEERING
SNS COLLEGE OF ENGINEERING Coimbatore. Department of Computer Science and Engineering Question Bank- Even Semester 2015-2016 CS6401 OPERATING SYSTEMS Unit-I OPERATING SYSTEMS OVERVIEW 1. Differentiate
More informationCS24: INTRODUCTION TO COMPUTING SYSTEMS. Spring 2015 Lecture 23
CS24: INTRODUCTION TO COMPUTING SYSTEMS Spring 205 Lecture 23 LAST TIME: VIRTUAL MEMORY! Began to focus on how to virtualize memory! Instead of directly addressing physical memory, introduce a level of
More informationOS Virtualization. Why Virtualize? Introduction. Virtualization Basics 12/10/2012. Motivation. Types of Virtualization.
Virtualization Basics Motivation OS Virtualization CSC 456 Final Presentation Brandon D. Shroyer Types of Virtualization Process virtualization (Java) System virtualization (classic, hosted) Emulation
More informationAUTOBEST: A United AUTOSAR-OS And ARINC 653 Kernel. Alexander Züpke, Marc Bommert, Daniel Lohmann
AUTOBEST: A United AUTOSAR-OS And ARINC 653 Kernel Alexander Züpke, Marc Bommert, Daniel Lohmann alexander.zuepke@hs-rm.de, marc.bommert@hs-rm.de, lohmann@cs.fau.de Motivation Automotive and Avionic industry
More informationSimple idea 1: load-time linking. Our main questions. Some terminology. Simple idea 2: base + bound register. Protection mechanics.
Our main questions! How is protection enforced?! How are processes relocated?! How is ory partitioned? Simple idea 1: load-time linking! Link as usual, but keep the list of references! At load time, determine
More informationCS5460: Operating Systems
CS5460: Operating Systems Lecture 2: OS Hardware Interface (Chapter 2) Course web page: http://www.eng.utah.edu/~cs5460/ CADE lab: WEB L224 and L226 http://www.cade.utah.edu/ Projects will be on Linux
More informationCS533 Concepts of Operating Systems. Jonathan Walpole
CS533 Concepts of Operating Systems Jonathan Walpole Improving IPC by Kernel Design & The Performance of Micro- Kernel Based Systems The IPC Dilemma IPC is very import in µ-kernel design - Increases modularity,
More informationOS COMPONENTS OVERVIEW OF UNIX FILE I/O. CS124 Operating Systems Fall , Lecture 2
OS COMPONENTS OVERVIEW OF UNIX FILE I/O CS124 Operating Systems Fall 2017-2018, Lecture 2 2 Operating System Components (1) Common components of operating systems: Users: Want to solve problems by using
More informationPre-virtualization internals
Pre-virtualization internals Joshua LeVasseur 3 March 2006 L4Ka.org Universität Karlsruhe (TH) Compile time overview Compiler C code Assembler code OS source code Hand-written assembler Afterburner Assembler
More informationXenwatch Multithreading
Xenwatch Multithreading Dongli Zhang Principal Member of Technical Staf Oracle Linux http://donglizhang.org domu creation failure: problem # xl create hvm.cfg Parsing config from hvm.cfg libxl: error:
More informationXen Summit North America 2008
Secure Xen on ARM: Source Code Release and Update Sang-bum Suh sbuk.suh@samsung.com Software Lab. SAIT, Samsung Electronics June 24, 2008 Xen Summit North America 2008 Agenda Secure Xen on ARM: source
More informationVirtualization and memory hierarchy
Virtualization and memory hierarchy Computer Architecture J. Daniel García Sánchez (coordinator) David Expósito Singh Francisco Javier García Blas ARCOS Group Computer Science and Engineering Department
More informationCSC 5930/9010 Cloud S & P: Virtualization
CSC 5930/9010 Cloud S & P: Virtualization Professor Henry Carter Fall 2016 Recap Network traffic can be encrypted at different layers depending on application needs TLS: transport layer IPsec: network
More informationRecall: Address Space Map. 13: Memory Management. Let s be reasonable. Processes Address Space. Send it to disk. Freeing up System Memory
Recall: Address Space Map 13: Memory Management Biggest Virtual Address Stack (Space for local variables etc. For each nested procedure call) Sometimes Reserved for OS Stack Pointer Last Modified: 6/21/2004
More information1 Virtualization Recap
1 Virtualization Recap 2 Recap 1 What is the user part of an ISA? What is the system part of an ISA? What functionality do they provide? 3 Recap 2 Application Programs Libraries Operating System Arrows?
More information24-vm.txt Mon Nov 21 22:13: Notes on Virtual Machines , Fall 2011 Carnegie Mellon University Randal E. Bryant.
24-vm.txt Mon Nov 21 22:13:36 2011 1 Notes on Virtual Machines 15-440, Fall 2011 Carnegie Mellon University Randal E. Bryant References: Tannenbaum, 3.2 Barham, et al., "Xen and the art of virtualization,"
More informationOperating System Security
Operating System Security Operating Systems Defined Hardware: I/o...Memory.CPU Operating Systems: Windows or Android, etc Applications run on operating system Operating Systems Makes it easier to use resources.
More informationRecap: Memory Management
, 4/13/2018 EE445M/EE360L.12 Embedded and Real-Time Systems/ Real-Time Operating Systems : Memory Protection, Virtual Memory, Paging References: T. Anderson, M. Dahlin, Operating Systems: Principles and
More informationCOMPUTER ARCHITECTURE. Virtualization and Memory Hierarchy
COMPUTER ARCHITECTURE Virtualization and Memory Hierarchy 2 Contents Virtual memory. Policies and strategies. Page tables. Virtual machines. Requirements of virtual machines and ISA support. Virtual machines:
More informationBack To The Future: A Radical Insecure Design of KVM on ARM
Back To The Future: A Radical Insecure Design of KVM on ARM Abstract In ARM, there are certain instructions that generate exceptions. Such instructions are typically executed to request a service from
More informationSCALABILITY AND HETEROGENEITY MICHAEL ROITZSCH
Faculty of Computer Science Institute of Systems Architecture, Operating Systems Group SCALABILITY AND HETEROGENEITY MICHAEL ROITZSCH LAYER CAKE Application Runtime OS Kernel ISA Physical RAM 2 COMMODITY
More informationLinux Boot Process. Nassim Eddequiouaq LSE Summer Week 2015
Linux Boot Process Nassim Eddequiouaq LSE Summer Week 2015 Why does boot matter? No boot No boot! OS uses evolving hardware features Faster and more secure please What does Linux need? Hardware initialization
More informationXen and the Art of Virtualization. Nikola Gvozdiev Georgian Mihaila
Xen and the Art of Virtualization Nikola Gvozdiev Georgian Mihaila Outline Xen and the Art of Virtualization Ian Pratt et al. I. The Art of Virtualization II. Xen, goals and design III. Xen evaluation
More informationLecture 1. CMSC 412 S17 (lect 1)
Lecture 1 1 Review Syllabus Operating Systems read the warning about the size of the project make sure you get the 6 th edition (or later) of the book Class Grades Server Grades.cs.umd.edu Program #0 Handout
More informationVirtual Memory 2: demand paging
Virtual Memory : demand paging also: anatomy of a process Guillaume Salagnac Insa-Lyon IST Semester Fall 8 Reminder: OS duties CPU CPU cache (SRAM) main memory (DRAM) fast storage (SSD) large storage (disk)
More informationMulti-Hypervisor Virtual Machines: Enabling An Ecosystem of Hypervisor-level Services
Multi-Hypervisor Virtual Machines: Enabling An Ecosystem of Hypervisor-level s Kartik Gopalan, Rohith Kugve, Hardik Bagdi, Yaohui Hu Binghamton University Dan Williams, Nilton Bila IBM T.J. Watson Research
More informationNested Virtualization and Server Consolidation
Nested Virtualization and Server Consolidation Vara Varavithya Department of Electrical Engineering, KMUTNB varavithya@gmail.com 1 Outline Virtualization & Background Nested Virtualization Hybrid-Nested
More informationThe Challenges of X86 Hardware Virtualization. GCC- Virtualization: Rajeev Wankar 36
The Challenges of X86 Hardware Virtualization GCC- Virtualization: Rajeev Wankar 36 The Challenges of X86 Hardware Virtualization X86 operating systems are designed to run directly on the bare-metal hardware,
More informationCOS 318: Operating Systems. Virtual Machine Monitors
COS 318: Operating Systems Virtual Machine Monitors Prof. Margaret Martonosi Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall11/cos318/ Announcements Project
More informationDynamic Translator-Based Virtualization
Dynamic Translator-Based Virtualization Yuki Kinebuchi 1,HidenariKoshimae 1,ShuichiOikawa 2, and Tatsuo Nakajima 1 1 Department of Computer Science, Waseda University {yukikine, hide, tatsuo}@dcl.info.waseda.ac.jp
More informationVirtualization, Xen and Denali
Virtualization, Xen and Denali Susmit Shannigrahi November 9, 2011 Susmit Shannigrahi () Virtualization, Xen and Denali November 9, 2011 1 / 70 Introduction Virtualization is the technology to allow two
More informationIntroduction to Cloud Computing and Virtualization. Mayank Mishra Sujesha Sudevalayam PhD Students CSE, IIT Bombay
Introduction to Cloud Computing and Virtualization By Mayank Mishra Sujesha Sudevalayam PhD Students CSE, IIT Bombay Talk Layout Cloud Computing Need Features Feasibility Virtualization of Machines What
More informationXen VT status and TODO lists for Xen-summit. Arun Sharma, Asit Mallick, Jun Nakajima, Sunil Saxena
Xen VT status and TODO lists for Xen-summit Arun Sharma, Asit Mallick, Jun Nakajima, Sunil Saxena R Outline VMX Guests Status Summary Status Domain0 restructuring PCI/IOAPIC X86-64 VMX guests enhancements
More informationUFCETW-20-2 Examination Answer all questions in Section A (60 marks) and 2 questions from Section B (40 marks)
Embedded Systems Programming Exam 20010-11 Answer all questions in Section A (60 marks) and 2 questions from Section B (40 marks) Section A answer all questions (60%) A1 Embedded Systems: ARM Appendix
More informationThe only open-source type-1 hypervisor
Monika Danikáková What is Xen? The only open-source type-1 hypervisor For Unix and Unix-like OS Linux, NetBSD and OpenSolaris From ancient greek term Xenos (ξένος), guest-friends Developed by the University
More informationVirtualization. Pradipta De
Virtualization Pradipta De pradipta.de@sunykorea.ac.kr Today s Topic Virtualization Basics System Virtualization Techniques CSE506: Ext Filesystem 2 Virtualization? A virtual machine (VM) is an emulation
More informationCHAPTER 16 - VIRTUAL MACHINES
CHAPTER 16 - VIRTUAL MACHINES 1 OBJECTIVES Explore history and bene ts of virtual machines. Discuss the various virtual machine technologies. Describe the methods used to implement virtualization. Show
More information