14
Sponsored by: & Mobile Virtualiza/on using the Xen Technologies Jun Nakajima Intel Corpora9on &

Mobile Virtualization using the Xen Technologies

Embed Size (px)

DESCRIPTION

Xen has been very successful on servers, and yet there are substantial areas where Xen can evolve further. In this talk Jun will discuss a compelling area where the Xen technologies can be applied to -- Mobile virtualization. Using Android as an example, the talk will explore two types of usage models, 1) Android as a guest, 2) Android as the host, showing the benefits of using the Xen technologies.

Citation preview

  • 1. Mobile Virtualiza/on using the Xen Technologies Jun Nakajima Intel Corpora9on Sponsored by: & &

2. Legal Disclaimer INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL PRODUCTS. NOLICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTYRIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTELS TERMS AND CONDITIONSOF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMSANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTSINCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE,MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUALPROPERTY RIGHT. INTEL PRODUCTS ARE NOT INTENDED FOR USE IN MEDICAL, LIFE SAVING, OR LIFESUSTAINING APPLICATIONS. Intel may make changes to specifications and product descriptions at any time, without notice. All products, dates, and figures specified are preliminary based on current expectations, and are subject tochange without notice. Intel, processors, chipsets, and desktop boards may contain design defects or errors known as errata, whichmay cause the product to deviate from published specifications. Current characterized errata are available onrequest. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in theUnited States and other countries. *Other names and brands may be claimed as the property of others. Copyright 2011 Intel Corporation.Xen Summit Asia 2011 2 3. AgendaMobile VirtualizationPC/Server vs. Mobile device virtualizationExample: Android VirtualizationAdvantages of Xen Technologies and OpportunitiesXen-Based Android* ArchitectureInnovation/Research Required for Xen Mobile Virtualization XenSummit Asia 2011 *: Simply Android for Android hereafter3 4. Whats Mobile Virtualization?Virtualization of mobile platforms E.g. Android as a guest on laptop, desktop, cloud BlueStacks*, Android EmulatorVirtualization on mobile platforms E.g. Android as the host such as smartphone, tablet Red Bend*, Mobile Virtual Platform* (VMware*),Motorola Atrix 4G*Combination E.g. Android guest on Android host XenSummit Asia 2011 4 5. Why Mobile Virtualization?Many devices and many reasons Dual personality (business, personal) Multiple OS (e.g. Android + Windows*) Security enhancements Secure Xen on ARM (Samsung*) Reusing existing software stacksPotential drawbacks Virtualization overhead affecting performance and power,higher latency Extra efforts to rebase, certify More complex XenSummit Asia 2011 5 6. PC/Server vs. Mobile Device VirtualizationTypical VMMs virtualize PC/servers No mobile devices support, such as GPS, accelerometer,gyroscope, touch screen, telephony, etc. No skin support. Qemu has some mobile devices support XenSummit Asia 2011 6 7. Example: Android VirtualizationAndroid Emulator in Android SDK Android-specific modifications to qemu Framebuffer, sound, tty, serial, MMC, NAND, etc. Software emulation for ARM and x86 Emulator with hardware-assist (e.g. Intel VT) for x86 KVM on Linux* today (about 10x faster). Availablesince SDK Tools Revision 12**. Porting to Xen should be easy GLES H/W acceleration(via qemu_pipe)Android Guest Linux (Goldfish kernel) + PV devices**: http://developer.android.com/sdk/tools-notes.html XenSummit Asia 20117 8. Opportunities for XenGoldfish kernel 32-bit UP HVM Linux kernel (2.6.29 as of today) Works well for SDK environment, Save/Restore feature. Can be very expensive on mobile devicesXen PV PVOPS kernel: lower virtualization overhead and/oreliminate need for hardware-assisted virtualization No qemu: frontends for mobile devices to avoiddependency on qemuLive migration Example: Between laptop and cloudXenSummit Asia 2011 8 9. Hypervisor Architecture ConsiderationsType 1: Bare metal HypervisorType 2: OS HostedA pure Hypervisor that runs directly onA Hypervisor that runs within a Host OSthe hardware and hosts Guest OSs. and hosts Guest OSs inside of it, using the host OS services to provide the virtual environment.VMn User-level VMMVMnVM1VM0VM0DeviceUser ModelsApps Guest OS Guest OSand Apps and AppsHost OS HypervisorDeviceRing-0 VM MonitorDevice Drivers / ModelsDriversKernel SchedulerMMUHost HW Host HWMemoryCPUs I/O MemoryCPUs I/O XenSummit Asia 2011 isola,on + Provides par,,on Low cost, no addi,onal drivers reliability, higher security Other names and brands may be claimed as the property of others. 10. More Opportunities ArchitecturalAdvantage of Xen Thin hypervisorVMn Open sourceDomain 0 VM1 Proprietary code in guestsHigh-level MonitorVM0 Device ModelsGuest OS Use Linux in upstream and AppsLinux Take full advantage of PV PV on HVM Device ModelsXen Hypervisor (Timer, Interrupt) No additional device drivers (Linux 3.x dom0) Memory CPUs Host HW Use hardware assistance I/Ofor unmodified guestsHybrid ArchitectureXenSummit Asia 2011 10 11. Xen-Based Android w/o HVMDomain 0 Domain 1Domain NGuest Control App Host Guest*OS Libxenlingh/Bionic (libc) Linux PVOPS Kernel Linux PVOPS KernelNative DeviceBackend VirtualFrontend Virtual Drivers driver Drivers Callback / HypercallXen Hypervisor Event channel Physical Host HardwareXenSummit Asia 201111 12. Xen-Based Android w/ HVM Domain 0 Domain 1Domain N Device models(qemu-dm)Device models (stubdomain) Guest Control AppHost Guest*OSLibxenlingh/Bionic (libc)Linux PVOPS KernelBackend VirtualFrontend Virtual Native DevicedriversDriversDriversVirtual Platform Callback / HypercallVMExit Xen Hypervisor Event channel Physical Host HardwareXenSummit Asia 2011 12 13. Innovation/Research Required forXen Mobile VirtualizationPower management Optimized for mobile devicesRealtime RTOS guests supportSecurityMobile device virtualization XenSummit Asia 201113 14. ConclusionMobile virtualization will be more importantXen has unique advantages there Thin hypervisor, driving innovations for virtualization Keeping PVOPS for dom0 in Linux upstream is keyProposed Xen-based Android systemLets get started! XenSummit Asia 201114