Operating Systems and Embedded Software · Virtualisation
Hypervisor
Also known as virtual machine monitor, VMM, type-1 hypervisor, bare-metal hypervisor
Software that creates and runs virtual machines, sharing one physical computer's CPUs, memory and devices among several isolated guest operating systems.
Explanation
A hypervisor sits below the guest operating systems and gives each guest a virtual machine with its own virtual CPUs, memory and devices. Type-1 (bare-metal) hypervisors such as Xen run directly on the hardware, and most Xen installations use Linux as the privileged control stack, known as domain 0. KVM (Kernel-based Virtual Machine) instead turns the Linux kernel into a hypervisor, and user-space programs create and control VMs through an ioctl interface.
In vehicles, hypervisors allow consolidation: an instrument-cluster OS, an Android Automotive infotainment guest and other domains can share one system-on-chip while remaining isolated. Standard paravirtual device interfaces such as VirtIO let a guest run on different hypervisors and hardware without new drivers, an approach Google documents for AAOS guests.
Isolation is only as strong as the hypervisor and the hardware configuration. Shared caches, memory bandwidth and GPUs can still cause timing interference, and safety-related use needs a hypervisor developed and qualified for that purpose.
How it works
The hypervisor runs at a higher privilege level than the guest kernels and uses hardware virtualization support to trap sensitive operations. It schedules virtual CPUs onto physical cores and controls each guest's view of physical memory. Devices are either assigned directly to a guest, emulated, or offered as paravirtual devices such as VirtIO, where the guest driver exchanges requests with a back-end through shared-memory queues.
Automotive applications
- Cockpit consolidation of cluster and infotainment
- Running AAOS alongside a real-time or safety OS
- Hosting services in separate VMs on central computers
- Development and testing with virtual ECUs
Example
A cockpit SoC runs a type-1 hypervisor with two guests: a safety-qualified RTOS that renders telltales on the cluster display, and Android Automotive for infotainment. If the Android guest crashes and reboots, the cluster guest keeps running on its dedicated cores.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- Hypervisor (opens in a new tab)
“The Xen Project hypervisor is an open-source type-1 or baremetal hypervisor”
- The Definitive KVM (Kernel-based Virtual Machine) API Documentation (opens in a new tab)
- Virtualization overview (Android Automotive) (opens in a new tab)
“Virtualization allows single or multiple instances of the Android Automotive OS (AAOS) to run as a guest virtual machine (VM)”
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.