
In a software-defined vehicle, the hardware abstraction layer carries far more weight than a driver wrapper ever did. It has to let software outlive a chip and survive years of over-the-air updates, while a braking function shares a processor with unrelated workloads and still meets its deadline. A 2025 IEEE conference paper from the University of Stuttgart scored the main candidates against 14 criteria and concluded that no existing approach meets all of them yet.
That scoring shows what has been published. Bench measurements add a harder point: hiding hardware does not stop it from interfering. On one Arm test platform, three open-source partitioning hypervisors cost under 1% when a guest ran alone, yet a deliberately memory-heavy neighbour slowed benchmarks by up to about 105%. This post turns the standards and papers into eight duties for a good HAL, and ends with an acceptance test to use on a supplier's stack.
Key takeaways
- "HAL" names several layers, from microcontroller drivers to vehicle signal catalogues. Ask which layer a supplier means before comparing anything.
- The Stuttgart evaluation favours a hybrid: hypervisor isolation below, standard middleware above. It is a recommendation, and the authors have not yet built and validated it.
- A portable interface says little about timing. Measured interrupt latency and memory interference belong in the contract.
- Capabilities should be negotiated. VIRTIO's CAN device shows how much meaning can sit in one optional feature bit.
- Evidence is part of the product. In the Stuttgart scoring, a missing mark means missing public proof.
One word, several layers
Much confusion comes from comparing things at different heights. Here is how the public documents divide the work. The last column is our reading.
| Layer | Public example | What it hides | What remains your problem |
|---|---|---|---|
| Microcontroller | AUTOSAR Classic Microcontroller Abstraction Layer | Registers and internal peripherals, behind a standardised upper interface | The layer itself must be redone for each chip |
| Board | AUTOSAR Classic ECU Abstraction Layer | Whether a device is inside or outside the chip, and how it is connected | The implementation depends on the ECU hardware |
| Virtual device | OASIS VIRTIO | The specific hypervisor and physical device behind a standard device model | The latency of whatever sits behind the queue |
| Operating platform | AUTOSAR Adaptive | Physical or virtual execution, through its "Machine" concept | Device drivers, whose APIs AUTOSAR has no current plan to standardise |
| Core stack | Eclipse S-CORE | OS differences and middleware, below the application and above the board support package | The board support package |
| Vehicle function | Android Vehicle HAL | A vehicle function, shown as a property to read, write or subscribe to | The vehicle-side implementation behind each property |
| Signal meaning | COVESA Vehicle Signal Specification | Vendor-specific signal names and semantics | Transport, since VSS defines no concrete interface |
| Cloud-native framework | SOAFEE | Differences in how workloads are built, deployed and orchestrated | Partitioning choices, which its document lists as future work |
A vehicle programme will use several of these at once. Our earlier post on ten challenges of designing software-defined vehicles gives the wider view.
What the scorecard says
Narla and colleagues at Stuttgart sorted 14 criteria using the MoSCoW method: seven Must-Haves worth 5 points each, three Should-Haves worth 2 and four Could-Haves worth 1, for a maximum of 45. Safety, over-the-air update, security, low latency, standards compliance, multi-platform support and reduced hardware demand are the Must-Haves. A candidate that misses any one of them is flagged as unsuitable in its current state.
The published text gives AUTOSAR Adaptive 37 points, with one Must-Have unmet, and Android Automotive 29. Apex.OS reaches 43. QNX, EB corbos and RTA-LWHVR are said to meet every Must-Have, while Xen and KVM lose 15 points on safety, latency and compliance. SOAFEE is expected to reach 45 on completion, which is a projection for something still under development. COVESA scores low because its purpose is different: it standardises signals and complements the others.
Two cautions follow. First, the authors state that a failed mark reflects missing public proof, so these scores measure published evidence and not bench behaviour. Second, the gate matters more than the total. An illustrative pair shows why: a stack that misses one Must-Have and earns everything else scores 40, while a stack that meets all seven Must-Haves and nothing else scores 35. The lower score is the only one still eligible.
Eight duties of a good HAL
This list is our synthesis. No standard sets it out in this form, but each item rests on the sources named.
1. Offer a narrow contract, and name the exceptions
AUTOSAR Classic states the task plainly: make higher layers independent of the microcontroller, then of the ECU hardware layout. It also limits shortcuts, since bypassing two or more layers is not allowed and neither is bypassing the microcontroller abstraction layer. What makes the design honest is the Complex Drivers layer, which spans from hardware to the runtime environment for devices AUTOSAR does not specify, very tight timing and migration. Its interfaces may depend on the hardware. Our guide to automotive microcontrollers covers the chips these layers usually run on.
Every exception of this kind is portability debt, so count them. AUTOSAR Adaptive takes a different route at the top end, favouring services that expose system functions over standard driver APIs.
2. Negotiate capabilities and do not assume them
VIRTIO has the cleanest model. A device offers the features it understands, the driver accepts a subset, and the only way to renegotiate is to reset the device. Android separates the same ideas: a manifest describes what is provided and a compatibility matrix describes what is required. SOAFEE's security guidance goes further, suggesting that an application might deploy only if the hardware provides a crypto service from an HSM.
The VIRTIO 1.4 draft shows why precision matters. Its CAN device has a feature bit for late transmit acknowledgement. If that bit is not negotiated, the device may report a request as complete once the message is scheduled, possibly before it reaches the bus. Software that takes "complete" to mean "on the wire" would then be wrong on some platforms and right on others, with no compile error to warn anyone.
3. Let the layers above and below update separately
Over-the-air update is a Must-Have in the Stuttgart criteria, and the paper points to Android's Project Treble as a reference, because it separated the OS framework from vendor hardware code. Android reconciles its manifests and matrices at update time, so a device gets only framework updates compatible with its capabilities.
The contract itself will also change. Android defined its Vehicle HAL in HIDL up to version 12 and in AIDL from version 13, and new property definitions now go only to the AIDL interface. So a HAL plan needs a versioning and migration story from the first release.
4. Isolate in space, in time and in communication
SOAFEE's strategy is realistic about cost. Developing a whole platform to a safety standard is not practical, so only safety-critical elements are developed or qualified to ISO 26262, then isolated to give spatial, temporal and communication freedom from interference. The Stuttgart hybrid follows the same logic, keeping a failure in infotainment away from core functions.
Static partitioning hypervisors are one concrete form, with exclusive CPUs, memory allocated at build or initialisation time and devices assigned directly to a virtual machine. With a guest running alone, the cost is small: Martins and Pinto measured under 1% for Jailhouse, Xen and Bao, and up to 7% for the seL4 CAmkES VMM. Support for large pages proved important, as a second stage of address translation raises the penalty of each TLB miss.
5. State timing under contention, and not just on a quiet system
This is where abstraction and physics part company. The same study, run on a Xilinx ZCU104 board with Cortex-A53 cores, measured a base interrupt latency of about 200 ns. Under the hypervisors this rose to about 840 ns for Bao, 1,090 ns for Jailhouse, 2,800 ns for Xen and 9,400 ns for the CAmkES VMM. A heavy neighbour raised latency about tenfold. Direct interrupt injection brought it close to native, and only Xen and Bao respected interrupt priority order. Software versions and patches date from 2023, and the authors left virtual device performance out of scope, so treat these as a snapshot on one board.
Cache partitioning helps but does not finish the job. Colouring alone cost up to about 20% in performance, and even with it, interference still added up to 38 percentage points of overhead, because contention continues deeper in the memory system. Bechtel and Yun went further with a synthetic attacker on consumer boards: up to 346 times the execution time on a Raspberry Pi 3, with the cache partitioned or not. Their write bandwidth regulation cut the same case from 345 times to about 1.2 times. That board is not a vehicle chip and the attack is engineered to be severe, but it shows what a timing contract has to rule out.
An illustrative budget. Suppose a task takes 4 ms alone with a 6 ms deadline. These two numbers are our assumptions. The percentages come from the study's susanc-small benchmark and will not carry over directly to your chip.
| Configuration | Overhead used | Run time | Against 6 ms |
|---|---|---|---|
| Alone | None | 4.00 ms | Meets, 2.00 ms spare |
| Heavy neighbour, no colouring | 105% | 8.20 ms | Misses by 2.20 ms |
| Heavy neighbour, with colouring | 58% | 6.32 ms | Misses by 0.32 ms |
A portable API would look the same in all three rows. Only a stated worst case tells you which one you are in.
6. Keep meaning separate from transport
VSS defines a syntax and a catalogue of signals, so that companies can exchange vehicle data without depending on one another's internals. It deliberately leaves out a concrete interface. Eclipse KUKSA shows how the two halves meet: its Databroker is a gRPC service built around the VSS tree, and its providers link the broker to ECUs over CAN or Ethernet protocols such as SOME/IP. If the wiring moves from one bus to another, the provider changes and the application should not. That is also why signal standards complement a HAL and do not replace one.
7. Run the same software on a virtual target, and prove the match
SOAFEE calls this environmental parity: more validation can move to the cloud if the virtual execution environment is similar or equivalent to the embedded one. VIRTIO helps here, as its CAN device may front a physical bus, a virtual bus between machines or both. SOAFEE's own document is candid, however. It says parity needs to be proven by observation and analysis, and that current cloud tooling lacks the ability to test real-time workloads. Functional tests can move early. Timing claims need silicon, or a model correlated against it.
8. Ship evidence along with the code
A HAL enters a safety case, so its artefacts count. Martins and Pinto found the smallest code bases in hypervisors built for static partitioning, which helps certification, but none of those studied supplied artefacts such as a requirements specification at that time. They saw Xen taking first steps, and seL4's formal proofs giving the strongest guarantees. S-CORE plans for this, with libraries developed at ISO 26262 integrity levels from QM up to ASIL-B depending on their use. That is a development target, and a certificate is a separate matter.
An acceptance test for a HAL
Use this when a supplier says its stack abstracts the hardware. It is our suggestion, not a formal checklist.
| Duty | Ask for | Warning sign |
|---|---|---|
| Contract | The interface list, plus every hardware-dependent exception | "Portable" with no count of complex or custom drivers |
| Capabilities | The negotiation model and the meaning of each optional feature | Behaviour that differs across platforms and is not recorded |
| Update | Version rules and a compatibility check at update time | OS updates that need a new vendor layer each time |
| Isolation | Mechanisms for space, time and communication, separately | Isolation claimed from containers or memory protection alone |
| Timing | Worst-case latency with a stated interference workload on your SoC | Average overhead measured with one guest |
| Meaning | A signal catalogue with vendor extensions kept apart | Signal names tied to one bus or supplier |
| Parity | Correlation data between virtual and physical runs | "Same image" offered as proof of same behaviour |
| Evidence | Safety and security work products, and certificate scope | A claim of compliance with no named assessor or version |
The Hub's automotive lifecycle shows where these reviews fall in a programme. Ideally the timing row is settled while the SoC can still change, since the shared resources that cause contention are fixed in silicon.
What to watch next
The Stuttgart authors list prototype validation of the hybrid as future work. Their funding includes HAL4SDV, a Chips Joint Undertaking project due to run until 31 March 2027, with objectives covering a hardware abstraction framework and virtualisation. The VIRTIO 1.4 document that adds the CAN device was still a public review draft in December 2025. S-CORE's site reports release gate v0.8, with v1.0 still ahead. Check current versions before relying on any of these.
Sources
- Narla, Stümpfle, Saha, Jazdi and Weyrich, "Evaluating Hardware Abstraction Layer Concepts for Software Defined Vehicles: Insights into Applicability and Effectiveness", 2025 IEEE International Automated Vehicle Validation Conference; arXiv:2607.00039, 29 June 2026.
- Martins and Pinto, "Shedding Light on Static Partitioning Hypervisors for Arm-based Mixed-Criticality Systems", arXiv:2303.11186, March 2023.
- Bechtel and Yun, "Denial-of-Service Attacks on Shared Cache in Multicore: Analysis and Prevention", arXiv:1903.01314, March 2019, noted there as accepted for RTAS 2019.
- AUTOSAR, "Layered Software Architecture", Document ID 53, Classic Platform R22-11, 24 November 2022.
- AUTOSAR, "Explanation of Adaptive Platform Design", Document ID 706, Adaptive Platform R22-11.
- OASIS, "Virtual I/O Device (VIRTIO) Version 1.4", Committee Specification Draft 01, 9 December 2025.
- SOAFEE, Architecture Specification v1.0, overview, architecture and challenges chapters, project source repository, read November 2026.
- COVESA, Vehicle Signal Specification documentation, release 6.1, read November 2026.
- Eclipse KUKSA, project site and kuksa-databroker repository documentation, read November 2026.
- Eclipse S-CORE, project site and Base Libraries documentation, read November 2026.
- Android Open Source Project, documentation on Vehicle HAL, HALs and the Vendor Interface Object, read November 2026.
- European Commission, CORDIS record for HAL4SDV, grant 101139789, read November 2026.
Scores and measurements come from the papers named, on the platforms and versions they used, and supplier products may have changed since. The two-stack score pair and the 4 ms and 6 ms budget are illustrative. This post is not a safety assessment.


Your comments will be moderated before it appears here.