A code-level survey of CPU scheduling mechanisms in open-source embedded hypervisors
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
A code-level survey of CPU scheduling mechanisms in open-source embedded hypervisors Lisa Mignerey1,2,∗ ,
Anthony Ferrari1 , 1
2
Damien Sauveron2 ,
Karim Tamine2
Thales Cybersecurity & Digital Identity, La Ciotat, France
XLIM, UMR CNRS 7252, University of Limoges, Limoges, France
arXiv:2611.27827v1 [cs.OS] 20 Nov 2026
{lisa.mignerey, anthony.ferrari}@thalesgroup.com, {damien.sauveron, karim.tamine}@unilim.fr
Abstract Virtualization is increasingly used in embedded systems to consolidate mixed-criticality applications onto a single platform, relying on the hypervisor’s CPU scheduler to share physical CPU (pCPU) time among virtual CPUs (vCPUs). This paper surveys ten CPU scheduling algorithms implemented in four open-source hypervisors for resource-constrained systems (Bao, Xen, ACRN, and Xvisor): static partitioning, ARINC653, Credit, Credit2, RTDS, Priority-based, BVT, IORR, PRR, and PRM. Analyzed at the source-code level without runtime measurements, each algorithm is characterized by its decision rule, parameters, selection criterion, triggers, and admission control. They are evaluated against nine criteria (temporal isolation, real-time guarantees, I/O responsiveness, resource utilization, fairness, mixed-criticality support, efficiency/scalability, configurability, and multicore support) and illustrated on a common single-pCPU workload. Source-code inspection reveals key deviations from documented designs: ACRN’s default BVT scheduler lacks the warp mechanism, its priority-based scheduler exposes only two priority levels, and apart from ARINC653’s static frame check, only Xen’s development-branch RTDS performs utilization-based admission control. Furthermore, no policy natively supports criticality attributes or mode changes, requiring integrators to encode criticality via partitions, budgets, caps, or priorities. Finally, a qualitative matrix and a decision tree guide system integrators.
Keywords: Virtualization ⋅ Embedded systems ⋅ Real-time scheduling ⋅ Mixed criticality ⋅ Hypervisor
1
Introduction
Modern embedded systems are undergoing a major transformation, moving from simple, single-purpose devices to complex multi-functional platforms. This evolution is driven by the need to run several applications with different levels of importance, known as mixed-criticality workloads, on a single hardware platform. To manage this transition, virtualization has emerged as a widely adopted technology, using a hypervisor to create several isolated virtual machines (VMs). In these resource-constrained environments, the CPU scheduler is considered one of the most critical software components because it manages how the CPU time is divided among all active vCPUs. Consequently, designing a reliable scheduler for mixed-criticality support is a complex multi-objective problem: a difficult balance must be achieved between guaranteeing strict temporal isolation and real-time predictability for critical workloads, while simultaneously providing fair CPU sharing, good I/O responsiveness, and work-conserving resource utilization for non-critical applications; all while maintaining low scheduling overhead and high scalability and configurability for the overall system. If the scheduler is not reliable, the vCPUs of a non-essential VM, such as a user interface for instance, could accidentally consume too many resources and delay the vCPUs of a critical VM, like a control loop in a car. Therefore, understanding the logic behind different scheduling strategies is essential for building safe, secure, and efficient embedded systems that can handle unpredictable real-world demands. While many open-source hypervisors are now available for embedded development, they implement widely different scheduling methods, ranging from extremely simple static designs to complex dynamic algorithms. A fundamental assumption throughout this paper is that the embedded system is designed and integrated by a single entity (the system architect). Unlike cloud computing environments where VMs belong to independent, agnostic users, this holistic design implies that the architect possesses complete knowledge of the behavior, criticality, and resource requirements of every VM. Consequently, it is assumed that this central authority is fully capable of determining and assigning the appropriate scheduling parameters required by each algorithm. ∗ Corresponding author: lisa.mignerey@thalesgroup.com
1
To clarify the scope of the analysis and address potential concerns regarding hardware contention, explicit boundaries for this evaluation are established. This study conducts a conceptual and algorithmic analysis of the scheduling mechanisms, focusing entirely on the mathematical logic behind the CPU allocation decision-making process. Consequently, hardware-induced limitations, such as micro-architectural contention (including cache, bus, and DRAM interference), are excluded from the scope. Nevertheless, this exclusion does not prevent such a baseline survey from providing meaningful insights to the reader: understanding the core mathematical logic and behavioral properties of these algorithms remains an essential prerequisite and serves as a practical preliminary guide for system architects before conducting hardware-specific tuning.
1.1
Research questions
This survey addresses three research questions: RQ1. Which families of scheduling rules do the selected open-source embedded hypervisors implement, and how can these rules be classified? RQ2. Which temporal-isolation, wake-up handling, and admission-control mechanisms are present in the source code, and how do they differ from their description in the literature and in the hypervisors’ documentation? RQ3. Which structural properties of these mechanisms condition their use for mixed-criticality workloads, and which configuration assumptions do they impose on the system integrator?
1.2
Contributions
In answering these research questions, this paper makes the following three contributions: 1. (RQ1) A classification of the ten CPU allocation policies by decision rule (Figure 1), which places policies of different hypervisors into directly comparable algorithmic families. 2. (RQ2) A uniform, code-level description of each policy at a frozen repository state (parameters, selection criterion, triggers, admission control, and a pseudo-code faithful to the implementation) illustrated by schedules derived by hand on a common reference workload, with the deviations between kernel implementation and published descriptions made explicit (Table 5). 3. (RQ3) A qualitative assessment of every policy against nine explicitly defined criteria (Table 6), in which each favorable property is stated together with the assumption it places on the system integrator, and a decision tree (Figure 12) that guides the selection of a policy from system requirements.
1.3
Structure of the paper
The remainder of this paper is organized as follows. Section 2 presents and analyzes the scheduling algorithms. It first explains how the four hypervisors were selected (Section 2.1), defines the nine evaluation criteria (Section 2.2), and introduces the common reference workload (Section 2.3). It then analyzes the ten algorithms one by one (Sections 2.4 to 2.13): for each of them, it describes the parameters, selection criterion, triggers, and admission control, gives the pseudo-code, discusses advantages and limitations, and presents a schedule timeline on the common reference workload. Section 2.14 synthesizes and compares the reference schedules derived across all algorithms. Section 3 generalizes these findings by comparing all algorithms against the qualitative criteria and presents a decision tree that helps the system architect choose a scheduler according to application requirements. Section 4 reviews related work on embedded virtualization surveys, mixed-criticality scheduling models, and evaluation and customization of hypervisor schedulers. Finally, Section 5 concludes the paper.
2
Scheduling algorithms analysis
This section explores ten scheduling algorithms implemented in at least one open-source hypervisor suitable for resource-constrained systems. For each algorithm, the scheduling policy is described, then the main advantages and disadvantages are analyzed. Identifiers in typewriter font refer to the source code at the analyzed commit (Table 2). In the pseudo-code, bold names denote generic handlers shared by all algorithms (pick_next, on_wake, on_sleep, ...), and the trailing comment gives the function that implements each of them.
2
2.1
Hypervisor selection
To provide a representative analysis of the current virtualization landscape for resource-constrained systems, this study focuses on four hypervisors selected through a purposive, criteria-based process: Bao, Xen, ACRN [1], and Xvisor. To ensure a rigorous selection, a filtering process was defined based on inclusion criteria. Specifically, the selected hypervisors must feature a public scheduler source code under an open-source license. Their official documentation must explicitly target embedded or real-time systems, excluding generic server-oriented solutions. Furthermore, they must support at least one typical embedded hardware architecture (e.g., ARMv8-A, RISC-V, or embedded x86). Active maintenance is also required, defined as having at least one commit modifying the hypervisor source code on the main branch within the 24 months preceding the cut-off date (documentation-only commits are not counted). Finally, the public repository must be the project’s development tree and support at least one physical embedded platform, so that the analyzed code is the code an integrator can deploy. When several candidates implement the same scheduling decision rule, one representative per rule is retained: Bao for static partitioning, Xen’s ARINC653 scheduler for offline cyclic tables, and Xvisor’s PRR for time-sliced round-robin. The initial candidate list was compiled using exact queries on major academic databases (Google Scholar, IEEE Xplore, ACM Digital Library), combined with a methodical exploration of GitHub and GitLab repositories. References from major existing surveys (notably Gu and Zhao [2]) are also included. Out of 24 initial candidates identified, the filtering process isolated the 4 hypervisors evaluated in this paper. During the selection process, 20 hypervisors were excluded for failing to meet one or more of the established criteria. These exclusions are grouped into the following categories: Inactive projects and redundant decision rules: Minos has had no source-code commit since September 2022 (only a roadmap update in June 2026), and Jailhouse [3] has had no commit since January 2023. Jailhouse also relies on static partitioning, already represented by Bao. PRTOS and the Muen separation kernel [4] rely on offline cyclic scheduling tables, already represented by Xen’s ARINC653 scheduler. Rust-Shyper pins vCPUs to pCPUs and multiplexes vCPUs sharing a pCPU with a plain round-robin scheduler driven by a 10 ms tick (src/kernel/sched/sched_ rr.rs, without priority or weight, where waking vCPUs wait for the next tick), while its real-time scheduler (sched_ rt.rs) is an unimplemented stub (todo!()); plain round-robin is the single-priority case of Xvisor’s PRR. Proprietary or closed-source: PikeOS, QNX Hypervisor, Wind River Helix Virtualization Platform, Green Hills INTEGRITY Multivisor, Microsoft Hyper-V, OKL4 (proprietary since 2012), Quest-V (hypervisor distributed only as an SDK), and XtratuM NG were excluded. Their closed-source nature prevents public algorithmic analysis of their scheduling logic. Generic and server-oriented: KVM/QEMU and bhyve target general-purpose or server hosting and delegate vCPU scheduling to the host kernel thread scheduler. Microkernels and delegated scheduling: seL4, Fiasco.OC, NOVA and Hafnium were excluded. These solutions operate as microkernels where virtualization is a user-space layer, or they deliberately delegate scheduling decisions to a primary guest OS rather than providing a native vCPU scheduler at the hypervisor level. Simulator-only open-source tree: Gunyah implements a native fixed-priority round-robin vCPU scheduler (hyp/core/scheduler_fprr: 64 priority levels, per-vCPU time slice from 0.1 ms to 100 ms, default 5 ms), but its public repository receives periodic code drops from Qualcomm’s internal development and supports only the QEMU and Arm FVP simulators. It is left for a future extension of this survey. Notably, both excluded native schedulers (Gunyah’s FPRR and Rust-Shyper’s plain round-robin) belong to the fixed-priority round-robin family already analyzed, so no decision rule is missing from the taxonomy of RQ1. To provide a clear overview of the resulting landscape after this filtering process, Table 1 maps the ten evaluated scheduling algorithms to the four retained open-source hypervisors that implement them. The survey targets dedicated embedded hypervisors whose vCPU scheduler is implemented in the hypervisor itself. Two families of systems are therefore outside its scope although they host real-time virtual machines. In KVM, a vCPU is a thread of the host Linux kernel, scheduled by the Linux scheduling classes: the mechanisms are those of the Linux scheduler, which the real-time literature analyzes separately [5, 6]. In microkernel-based systems (seL4, NOVA, Fiasco.OC), vCPUs are kernel threads scheduled by the ordinary thread scheduler, and the virtual machine monitor runs in user space. In Hafnium, the primary VM schedules the vCPUs of the secondary VMs itself. Two of these systems are nevertheless useful reference points, because they offer what most surveyed policies lack: Linux SCHED_DEADLINE implements Constant Bandwidth Servers with a utilization-based admission test, and the MCS configuration of seL4 implements scheduling contexts (budget, period) with sporadic-server budget enforcement [7]. Neither performs a sufficient schedulability test on multiprocessors: the admission test of SCHED_DEADLINE checks total utilization, as RTDS does. While Table 1 maps the ten policies to their respective hypervisors, answering RQ1 requires classifying them by their underlying scheduling decision rule so that policies from different codebases can be compared directly. As shown in the taxonomy of Figure 1, the policies first divide into spatial partitioning (which dedicates a physical core to each vCPU and eliminates runtime scheduling (Static partitioning in Bao, Xen null, and ACRN NOOP)) and 3
Table 1. Summary of the evaluated scheduling algorithms
Hypervisor Algorithm
Bao
Xen
ACRN
Static partitioning ARINC653 Credit Credit2 RTDS Priority-based BVT IORR PRR PRM
✓
✓ ✓ ✓ ✓ ✓
✓
Xvisor
✓ ✓ ✓ ✓ ✓
time-sharing scheduling rules, which multiplex multiple vCPUs onto shared pCPUs. The nine time-sharing policies further fall into five algorithmic families according to how they allocate CPU time and order the run-queue: (1) static time-table lookup over a cyclic major frame (Xen ARINC653); (2) fixed-priority hierarchies, which differ by their intra-level tie-breaking policy (FIFO without time-slicing in ACRN Priority-based, Round-Robin in Xvisor PRR, and Rate Monotonic periodicity ordering in Xvisor PRM); (3) Earliest Deadline First (EDF) over budget–period deferrable servers (Xen RTDS); (4) proportional service accounting, tracked either via decaying credits (Xen Credit and Credit2) or virtual time (ACRN BVT); and (5) egalitarian quantum rotation with wake-up promotion to the head of the queue (ACRN IORR). Allocation Policies
Spatial Partitioning
Time-Sharing Scheduling Rules
(1 dedicated pCPU per vCPU)
(multiple vCPUs multiplexed on a pCPU)
Static partitioning ∙ Bao ∙ Xen (null) ∙ ACRN (NOOP)
Static Time Table
Fixed Priorities
EDF Server
Service Accounting
Quantum Rotation
(offline cyclic slots)
(static tier hierarchy)
(budget / period)
(credits / virtual time)
(with wake-up promotion)
RTDS (Xen)
Credit (Xen): 30 ms acct. Credit2 (Xen): credit decay BVT (ACRN): virtual time
10 ms Round-Robin; wake-up at head
ARINC653 (Xen) Major/minor frames; time-triggered switches
Priority (ACRN): FIFO
PRR (Xvisor): RR PRM (Xvisor):
Deferrable servers + optional extratime
IORR (ACRN)
periodicity order
Figure 1. Taxonomy of the ten CPU allocation policies across the four selected open-source embedded hypervisors, classified by their primary allocation paradigm and dispatch decision rule (addressing RQ1).
The analysis is based on the state of each repository at the cut-off date (20 October 2026): Xen 7e020a4 (15/10/2026), ACRN 37b1c13 (01/12/2025), Xvisor ddbfcd6 (01/10/2026) and Bao release v2.0.0 (latest release before cut-off) (0af4a1a, 04/03/2026). Table 2 additionally lists, for each policy, the last commit that modified its algorithm file; the generic scheduling code on which each policy relies is analyzed at the repository state given above. All dates are written as DD/MM/YYYY. The analyzed repository states differ from the latest official release of each hypervisor at the cut-off date as follows. Xen release 4.22.0 (29/07/2026) does not include the RTDS admission control added to the staging development branch in September 2026 (commits 5772eaa and 04584da), nor the budget-refill fix applied when extratime is toggled on a depleted vCPU (commit 37b49cb). All other scheduler commits since release 4.22.0 are code refactorings or concern multicore tickling in Credit2. The analyzed scheduler files of ACRN are identical to release v3.3 (02/08/2024), and those of Xvisor are identical to release v0.3.2 (01/01/2023). Bao is analyzed directly at its release v2.0.0. Notably, the algorithm files of PRR and PRM in Xvisor have not changed since 2020 and 2015, respectively: while the Xvisor repository is actively maintained, these two scheduling policies are dormant, which is in itself a relevant consideration for system integrators. 4
Table 2. Analyzed source code state (last commit modifying each scheduler implementation prior to the 20/10/2026 cut-off date).
Hypervisor
Algorithm
Last commit modifying the scheduler file
Xen Xen Xen Xen ACRN ACRN ACRN Xvisor Xvisor Bao
ARINC653 Credit Credit2 RTDS Priority BVT IORR PRR PRM Static
58db743 (12/08/2026) 58db743 (12/08/2026) e4da182 (01/10/2026) 04584da (21/09/2026) 946a927 (08/05/2024) 3d6ca84 (27/06/2024) 3d6ca84 (27/06/2024) 3379e5c (26/01/2020) 123df7b (22/09/2015) 0af4a1a (04/03/2026)
2.2
Criteria definitions
To effectively evaluate and compare the scheduling algorithms, a specific set of qualitative criteria is established. To clarify the evaluation framework, the optimization objective for each criterion is explicitly stated (i.e., whether the property should be maximized, minimized, or if the optimal configuration is context-dependent). The multi-objective problem of CPU scheduling is analyzed based on the following dimensions: Temporal isolation (Objective: To be maximized): This is defined as the scheduler’s ability to guarantee that each vCPU receives its allocated pCPU capacity, specified by a temporal service model such as a budget allocated within a period [8, 9], regardless of the execution time, overload, or misbehavior of other entities [9, 10]. By enforcing pCPU usage bounds [8, 9], an execution overrun in one vCPU is prevented from compromising the guaranteed pCPU bandwidth or scheduling deadlines of others [10]. Note that temporal isolation at the scheduler level strictly applies to pCPU time allocation and scheduling guarantees, explicitly excluding microarchitectural hardware contention (e.g., shared cache, DRAM, or memory bus contention). Real-time guarantees (Objective: To be maximized): This refers to the scheduler’s capacity to ensure that critical vCPUs meet their specified temporal constraints and deadlines (e.g., completing execution budget C within period T, or before deadline D) [11, 12] through bounded response times [13]. I/O responsiveness (Objective: Responsiveness to be maximized / Latency to be minimized): This criterion evaluates the scheduler’s ability to minimize dispatch latency and quickly assign pCPU time when interactive or event-driven I/O vCPUs wake up [14, 15]. General I/O workloads can also include non-interactive data streams that mainly require sustained bandwidth [15]. However, this evaluation focuses on how well the scheduler handles aperiodic events. This criterion is evaluated strictly at the scheduler level: it measures the dispatch latency of a vCPU that has already been notified of an event. The end-to-end I/O latency experienced by a guest also depends on the interrupt virtualization path (e.g., virtual interrupt controller or posted interrupts versus direct injection in static partitioning) and the hypervisor’s I/O architecture (e.g., device drivers running in dom0 or driver domains in Xen, or in the Service VM in ACRN), which are outside the scope of this scheduler-focused survey. A low dispatch latency is therefore a necessary, but not sufficient, condition for low end-to-end I/O latency. Resource utilization (work-conserving vs. non-work-conserving) (Objective: Context-dependent): Work-conserving support refers to the scheduler’s ability to use the pCPU efficiently by ensuring that a pCPU does not remain idle when a runnable vCPU is waiting to run [16]. Under this policy, unused pCPU time or time left by an early task completion can be given to other active workloads. In contrast, a non-work-conserving scheduler may leave a pCPU idle even when runnable vCPUs are waiting. Fair CPU sharing (Objective: To be maximized): This refers to the scheduler’s capacity to allocate pCPU time among active vCPUs in proportion to their assigned weights or shares [17, 18]. Each runnable vCPU 𝑖 receives an ∑ allocation fraction 𝑓𝑖 = 𝑤𝑖 ∕ 𝑗 𝑤𝑗 of the total pCPU capacity over active execution intervals [19], ensuring equitable resource distribution without long-term disparity or starvation. Mixed-criticality support (Objective: To be maximized): This refers to the scheduler’s ability to co-locate workloads assigned different safety assurance levels on shared pCPU while guaranteeing freedom from temporal interference [20, 21]. To favor safety-critical entities during resource contention or overruns, the scheduler maps these criticality levels onto preferential execution parameters, ensuring that lower-assurance workloads cannot compromise the timing guarantees of critical vCPUs [21, 22]. Because none of the surveyed hypervisor policies carries an explicit criticality attribute or performs a Vestal-style mode change, this criterion specifically evaluates criticality-agnostic co-location, i.e., whether the scheduler bounds the temporal interference of lower-assurance vCPUs on the pCPU time allocated to critical vCPUs.
5
Scheduler efficiency and scalability (Objective: Efficiency to be maximized / Algorithmic complexity to be minimized): This criterion evaluates the structural and algorithmic complexity of the scheduling algorithm as determined directly from its design and source code. Specifically, it assesses: (i) the algorithmic time complexity of core scheduling operations (e.g., (1), (log 𝑁), or (𝑁) run-queue insertion and selection as the number of vCPUs N grows) [23, 24], (ii) the invocation trigger mechanism (i.e., event-driven preemption versus tick-driven periodic timer interrupts) [25], and (iii) the resulting scalability under expanding vCPU counts and pCPU topologies without introducing severe queue lock contention or structural traversal bottlenecks [24]. Configurability (Objective: Context-dependent): This criterion characterizes: (a) the controllable scheduling parameters; (b) their binding time (build, boot, or runtime); (c) the reconfiguration interface and online admission checks; and (d) dynamic VM/vCPU lifecycle support. Following [26], runtime changes are temporally safe only if mode transitions guarantee deadline preservation without hypervisor restarts. No assumption that dynamic reconfigurability is superior is made: static configuration remains a core safety requirement (ARINC 653 [27], AUTOSAR Classic [28]), whereas dynamic adaptation addresses Software-Defined Vehicle (SDV) and Over-The-Air (OTA) demands (UN R156 [29], AUTOSAR Adaptive [28]). Multicore support (Objective: Context-dependent): This criterion evaluates how the scheduler manages and scales across multiprocessor and multicore hardware topologies. It categorizes schedulers into three primary structural paradigms: (i) Uniprocessor-only scheduling, designed strictly for single-core execution without multicore awareness; (ii) Partitioned multiprocessor scheduling, which instantiates a scheduler per pCPU [24, 30], eliminating cross-core migration overheads and run-queue lock contention at the expense of bin-packing utilization loss; and (iii) global multiprocessor scheduling, which employs shared run-queues across all pCPUs [15, 24] or utilizes active inter-core load balancing [14, 24] to maximize hardware capacity utilization and operational flexibility. These criteria are applied to each algorithm in Sections 2.4 to 2.13. They are then used to build the global qualitative comparison and the decision tree in Section 3, which help the system architect select a scheduler according to the requirements of the application.
2.3
Reference workload
To illustrate and compare the behavior of the schedulers, a common reference workload on a single pCPU was scheduled manually over 20 ms. The workload consists of four distinct vCPUs: vCPU_RT, a periodic real-time vCPU; vCPU_ IO, an interrupt-driven I/O vCPU; and two background compute-intensive vCPUs, vCPU_CPU1 and vCPU_CPU2. Each vCPU is the single vCPU of its own VM, so VM-level parameters apply directly to it. Five key events occur during execution. vCPU_RT is released periodically at 𝑡 = 0 and 𝑡 = 10, each release requiring 3 ms of execution time. Asynchronous I/O wake-up interrupts for vCPU_IO occur at 𝑡 = 2, 𝑡 = 12 and 𝑡 = 16, each requiring 1 ms of execution time. vCPU_CPU1 and vCPU_CPU2 remain continuously ready for execution. For BVT, however, the same workload is observed over the 𝑡 = 20 to 𝑡 = 40 window, because its virtual times only reach a representative state after the first cycles (see Section 2.10). Time is expressed in ms. At 𝑡 = 0, vCPU_RT, vCPU_CPU1 and vCPU_CPU2 are queued in this order and vCPU_ IO is blocked. Implicit deadlines are equal to periods. An interrupt delivered to a vCPU that is already runnable does not wake it and only adds to its pending work. When several events occur at the same instant, they are all processed before the next scheduling decision, as in Xen, where the timer softirq is handled before the schedule softirq.
2.4
Static partitioning
2.4.1
Definition
Static partitioning is a resource management method where hardware resources are split into predetermined, nonoverlapping sections, with each section attributed to a VM, as Figure 2 describes. For most systems, this mapping is established during the system’s configuration phase and remains unchanged at runtime. Typically, each vCPU is associated with a pCPU, meaning there is no sharing of pCPUs between VMs and eliminating the need for CPU scheduling. This unchangeable type of configuration is used by hypervisors such as Bao [31, 32] and ACRN (using the NOOP scheduler [33]). However, Xen (using the null scheduler [34]) provides a notable exception to this rule: while it operates on the same static partitioning principle to minimize overhead, it retains the hypervisor’s dynamic capabilities, allowing administrators to insert, remove, or migrate VMs at runtime without requiring a system reboot. 2.4.2
Pros
By using Static partitioning, strict temporal isolation is achieved at the scheduler level, since no vCPU competes for a shared pCPU. Micro-architectural interference through shared caches and memory buses remains and must be bounded separately [35]. Furthermore, real-time guarantees are maintained due to the absence of dynamic scheduling. Because 6
VM1 vCPU 1
VM2 vCPU 2
Running VMs
vCPU 1
Hypervisor Section 1 UART pCPU 1
Section 2 NFC pCPU 2
USB Hardware
MEMORY REGION 1
pCPU 3 MEMORY REGION 2
Figure 2. Example of static hardware resource split
no scheduling decision is taken at runtime ((1)), this approach results in a minimal hypervisor codebase and reduced memory footprint. Because vCPUs access their assigned resources directly without the indirection of a scheduler, immediate I/O responsiveness and minimal latency are ensured. Finally, regarding mixed-criticality support, safety certification is greatly simplified and the system attack surface is minimized by this architectural simplicity, while its partitioned multiprocessor design eliminates cross-core lock contention. 2.4.3
Cons
On the other hand, the system’s configurability is bound to build or boot time, making runtime adjustments impossible without full hypervisor reboots (except in Xen’s null scheduler). Additionally, fair CPU sharing and dynamic redistribution of resources are prevented, rendering the platform incapable of adapting to fluctuating workloads. Because the system is inherently non-work-conserving, the inability to reclaim unused time from idle VMs leads to significant resource underutilization.
2.5
ARINC653 scheduler
The ARINC653 scheduler represents a deterministic, cyclic scheduling model designed for real-time and safety-critical virtualized environments. This scheduling paradigm is implemented in Xen through its ARINC653 scheduler [27, 36, 37], which enforces temporal partitioning according to the ARINC 653 standard [38]. 2.5.1
Parameters
Major frame (major_frame): The fixed time interval over which the scheduling cycle repeats. Minor frame (runtime): A fixed interval of the major frame assigned to a specific vCPU. Schedule allocation table (schedule): A static array specifying the ordered sequence of minor frames, their durations, time offsets, and assigned vCPUs. 2.5.2
Selection criterion
The ARINC653 scheduler applies a time-based static lookup selection criterion (a653sched_do_schedule). At any point during system execution, the scheduler selects the vCPU that is statically mapped to the active minor frame based on current elapsed time within the major frame. If the assigned vCPU is in a non-runnable state (e.g., halted, sleeping, or yielded), or if an execution slot is intentionally left unassigned, the scheduler selects the system IDLE vCPU for the remainder of that time slot. 2.5.3
Triggers
Scheduling decisions and context switches in an ARINC653 scheduler are invoked by three triggers: • Slot or major frame expiration: A hardware timer interrupt fires when the current minor frame (next_switch_ time) or the overall major frame (next_major_frame) expires, forcing a switch to the next slot. • Voluntary yield / block / sleep (a653sched_unit_sleep): When a running vCPU completes its task early or blocks waiting for an I/O operation, it cedes the pCPU. The scheduler switches execution to the IDLE vCPU until the current slot duration elapses. 7
• Host maintenance operations (Xen-specific): Urgent hypervisor-level tasklets preempt the current minor frame to execute essential host management routines. 2.5.4
Admission control
The ARINC653 scheduler enforces admission control whenever a candidate schedule is submitted to the hypervisor. Prior to committing a configuration, the scheduler validates that the major frame duration is positive and that the entry count does not exceed the maximum storage capacity (ARINC653_MAX_DOMAINS_PER_SCHEDULE). Additionally, it verifies that each time slot receives a non-zero runtime allocation and that the cumulative runtime across all windows does not exceed the major frame boundary. If any condition is violated or if the combined window durations overcommit the major frame budget, the hypervisor rejects the schedule and returns an error (-EINVAL). 2.5.5
Pseudo-code
""" Parameters: schedule_table: Schedule allocation table of minor frames (vcpu, start_offset, duration). major_frame: Fixed time interval over which the scheduling cycle repeats. """ pick_next(current_time): # a653sched_do_schedule() time_in_cycle = current_time % major_frame for slot in schedule_table: if slot.start_offset <= time_in_cycle < (slot.start_offset + slot.duration): return slot.vcpu if (slot.vcpu and slot.vcpu.is_runnable()) else IDLE_VCPU return IDLE_VCPU on_timer_interrupt(current_time): # a653sched_do_schedule() """Trigger: Minor or major frame expiration.""" return pick_next(current_time) on_sleep(vcpu, current_time): # a653sched_unit_sleep() """Trigger: Voluntary yield / block / sleep.""" vcpu.state = SLEEP return pick_next(current_time) on_wake(vcpu): # a653sched_unit_wake() """Trigger: Asynchronous wake-up event.""" vcpu.state = RUNNABLE
2.5.6
Pros
The ARINC653 scheduler provides complete temporal isolation by confining each vCPU to its pre-allocated minor frame, which prevents timing interference between vCPUs. This structure delivers deterministic real-time guarantees, making the supply of pCPU time to each vCPU known offline and enabling compositional schedulability analysis of the guest workload [39]. Consequently, mixed-criticality support is robustly enforced, as safety-critical vCPUs are shielded from less-critical workloads. Furthermore, the algorithm achieves high scheduler efficiency with (1) time complexity, relying on simple static lookup operations and hardware timer comparisons. Finally, system configurability is enhanced in Xen’s implementation through online reconfiguration hypercalls, enabling administrators to dynamically update the global schedule allocation table at runtime without requiring system reboots. 2.5.7
Cons
Conversely, its primary drawback lies in its resource utilization, as its non-work-conserving design forces pCPUs to remain idle when a vCPU yields or completes early, preventing the dynamic redistribution of unused time. The algorithm also exhibits poor I/O responsiveness, as asynchronous events cannot trigger preemption and must await the next assigned slot. Furthermore, it lacks fair CPU sharing mechanisms, requiring manual offline slot sizing. Finally, the implementation is restricted to uniprocessor execution (a single pCPU per scheduling pool), lacking native multicore scaling.
8
2.5.8
Timeline
The schedule under the ARINC653 scheduler was derived from the rules presented in Section 2.5. The global schedule table (Major Frame) spans a total duration of 10 ms and is partitioned into 4 time windows (Minor Frames): Minor Frame 1 allocates 4 ms to vCPU_RT, Minor Frame 2 allocates 2 ms to vCPU_IO, Minor Frame 3 allocates 2 ms to vCPU_CPU1, and Minor Frame 4 allocates 2 ms to vCPU_CPU2. The scheduling plan is shown in the top track of Figure 3. Table pCPU
RT
RT
RT
RT
RT
RT
Release
RT
RT
IO
IO
IO
CPU1
CPU1
CPU2
CPU2
CPU1
CPU1
CPU2
CPU2
RT
RT
RT
RT
RT
RT
Release
Wake
RT
IO
IO
IO
Wake
CPU1
CPU1
CPU2
CPU2
CPU1
CPU1
CPU2
CPU2
Wake
IO CPU1 CPU2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Figure 3. Example timeline for ARINC653 scheduler
At 𝑡 = 0, the first major frame begins, and Minor Frame 1 activates vCPU_RT, which starts executing on the pCPU. At 𝑡 = 2, an I/O interrupt wakes vCPU_IO. However, because the time-triggered paradigm prohibits asynchronous preemption, vCPU_IO cannot interrupt vCPU_RT and must wait for its designated minor frame. At 𝑡 = 3, vCPU_RT completes its 3 ms required execution time and transitions to a sleeping state. Even though vCPU_IO is ready and waiting, the non-work-conserving policy prevents the hypervisor from reallocating the remaining time slice to any other runnable vCPU, forcing the pCPU into an idle state for 1 ms and demonstrating the inherent resource underutilization of this model. At 𝑡 = 4, the hypervisor transitions to Minor Frame 2, allowing vCPU_IO to take control of the pCPU and execute from 𝑡 = 4 to 𝑡 = 5. Having finished its workload at 𝑡 = 5, vCPU_IO goes back to sleep, causing the remaining time to remain unallocated in an idle state. Subsequently, Minor Frames 3 and 4 execute sequentially from 𝑡 = 6 to 𝑡 = 10, where vCPU_CPU1 consumes its full 2 ms allocation, followed by vCPU_CPU2, which also consumes its full 2 ms allocation. Finally, at 𝑡 = 10, the first Major Frame completes and the schedule rolls over to the next cycle. The second Major Frame, however, does not simply replay the first one, because the interrupt arrivals are not aligned with the corresponding windows. The I/O wake-up at 𝑡 = 12 must wait for its window and only executes from 𝑡 = 14 to 𝑡 = 15. The third interrupt, which arrives at 𝑡 = 16, falls just after the I/O window has closed and must wait for the next one, starting at 𝑡 = 24, which results in a latency of 8 ms.
2.6
Credit scheduler
The Credit scheduler [40, 41] is a proportional fair-share CPU scheduling algorithm designed for symmetric multiprocessing (SMP) virtualized environments. This scheduling model is implemented in Xen. 2.6.1
Parameters
Weight (sdom->weight): A VM-level parameter (ranging from 1 to 65,535, with a default value of CSCHED_DEFAULT_ WEIGHT = 256) that defines the relative proportion of pCPU time allocated to a VM relative to competing VMs. Cap (sdom->cap): An optional VM-level ceiling (expressed as a percentage of a single pCPU core, where 0 denotes uncapped execution) that limits the maximum pCPU time a VM can consume even when host cycles are idle. Time slice (tslice): The global continuous execution quantum (configured by default to 30 ms) allowed for a vCPU before preemption is evaluated. Accounting period: The global periodic system interval (30 ms), managed by master_ticker, during which the hypervisor recalculates credit balances (csched_acct) and updates priority for all active VMs. Context switch rate limit (prv->ratelimit): A minimum execution threshold (configured by default to 1 ms) designed to prevent excessive context switching caused by rapid interrupt wake-ups. Priority states (svc->pri): Discrete scheduling priority levels assigned to vCPUs based on credit balance and state, defined as BOOST (0, assigned upon I/O wake-up only if the vCPU is currently in the UNDER state), UNDER (-1, positive credit balance), OVER (-2, exhausted credit balance), and IDLE (-64). Weight and cap are set per VM (sdom); at each accounting period, the credit share of a VM is divided among its active vCPUs. 9
2.6.2
Selection criterion
The Credit scheduler applies a priority-based run-queue lookup with work-conserving task stealing. On each pCPU, the scheduler inspects its local run-queue and selects the runnable vCPU with the highest priority state, adhering to a strict hierarchy: BOOST > UNDER > OVER > IDLE. vCPUs belonging to the same priority are serviced in a First-In-First-Out (FIFO) sequence. If a pCPU’s local run-queue contains no UNDER or BOOST vCPUs, or becomes entirely idle, the scheduler executes a work-conserving load balancing routine. It scans the run-queues of other pCPUs to steal runnable vCPUs, thereby redistributing execution workloads across cores before falling back to the system IDLE vCPU. 2.6.3
Triggers
Scheduling decisions and context switches in the Credit scheduler are driven by five triggers: • Wake-up event (csched_unit_wake): An asynchronous hardware interrupt or event wakes a sleeping vCPU, prompting the scheduler to temporarily elevate its priority to BOOST and insert it into the local run-queue. • Voluntary yield / sleep / block (csched_unit_sleep / csched_unit_yield): When a running vCPU completes its task, blocks on I/O, or explicitly yields execution, it cedes the pCPU and triggers a rescheduling event. • Evaluation tick (csched_tick, 10 ms): A local per-pCPU periodic hardware timer interrupt burns credits consumed by the currently running vCPU, resets BOOST vCPUs back to UNDER if they continue running and resorts the local run-queue. • Global accounting timer (csched_acct, 30 ms): A system timer recalculates credit allocations globally for all active VMs based on their assigned weights and caps, updating priority states between UNDER and OVER. • Load balancing / task stealing (csched_load_balance): When a pCPU becomes idle or its top candidate is in the OVER state, the scheduler triggers an active scan across peer pCPUs to steal runnable vCPUs. 2.6.4
Admission control
The Credit scheduler does not enforce workload admission control or CPU capacity bounds. As a proportional-share scheduler, it permits an arbitrary number of VMs and vCPUs to be instantiated without verifying whether total execution demand exceeds physical capacity. Rather than rejecting configurations or raising errors under overcommitted scenarios, the hypervisor relies on parameter sanitization during initialization and system management operations. Out-of-bounds configuration parameters, such as time-slice duration or rate-limiting thresholds, are automatically clamped to valid operational boundaries alongside a kernel warning, maintaining system stability without restricting workload entry. 2.6.5
Pseudo-code
""" Parameters: weight: Proportional share weight assigned to each VM (1 to 65535, default 256). cap: Maximum pCPU time ceiling percentage for a VM (0 for uncapped). time_slice: Continuous execution quantum before preemption evaluation (30 ms). accounting_period: Global interval to recalculate credits and priorities (30 ms). ratelimit: Minimum execution threshold enforced before context switching (1 ms). """ pick_next(cpu, now): # csched_schedule() # Priority lookup: BOOST > UNDER > OVER > IDLE with work-conserving task stealing cur = cpu.current if cur.is_runnable and (now - cur.start_time) < rate_limit: return cur vcpu = runq_get_highest_priority(cpu) if not vcpu or vcpu.priority <= PRI_OVER: stolen_vcpu = load_balance_steal(cpu) # csched_load_balance() if stolen_vcpu: return stolen_vcpu # csched_runq_steal() return vcpu if (vcpu and vcpu.is_runnable()) else IDLE_VCPU
10
on_tick(vcpu, delta_time): # csched_tick() """Trigger: Per-pCPU accounting tick (10 ms).""" vcpu.credit -= delta_time * CREDITS_PER_MSEC # burn_credits() if vcpu.priority == PRI_BOOST: vcpu.priority = PRI_UNDER on_accounting_timer(): # csched_acct() """Trigger: Global credit accounting timer (30 ms).""" for vcpu in active_vcpus: vcpu.credit += compute_fair_share(vcpu.vm.weight, vcpu.vm.cap)/vcpu.vm.nr_active_vcpus vcpu.priority = PRI_UNDER if vcpu.credit >= 0 else PRI_OVER runq_resort_all() on_wake(vcpu): # csched_unit_wake() """Trigger: Asynchronous wake-up event.""" vcpu.state = RUNNABLE if vcpu.priority == PRI_UNDER: vcpu.priority = PRI_BOOST runq_insert_by_priority(vcpu) return pick_next(cpu, now) on_sleep(vcpu): # csched_unit_sleep() """Trigger: Voluntary yield / block / sleep.""" vcpu.state = SLEEP runq_remove(vcpu) return pick_next(cpu, now)
2.6.6
Pros
The Credit scheduler achieves effective fair CPU sharing by distributing pCPU time among active vCPUs in direct proportion to their assigned weights. Its configurability and runtime reconfiguration are flexible, allowing administrators to dynamically adjust weights and caps at runtime without requiring system reboots. As a work-conserving policy, it maximizes resource utilization by immediately reallocating idle cycles. Furthermore, I/O responsiveness is enhanced by its dedicated wake-up mechanism, which grants waking vCPUs a BOOST priority that minimizes wake-up latency. Finally, it provides multicore support with active work-stealing load balancing across per-pCPU run-queues. 2.6.7
Cons
Conversely, the Credit scheduler exhibits limitations regarding temporal isolation, as its BOOST mechanism grants BOOST to any waking vCPU in the UNDER state, regardless of its criticality, allowing interactive background vCPUs to preempt safety-critical vCPUs. This lack of timing control compromises real-time guarantees, as the algorithm lacks execution deadline tracking, exposing critical workloads to execution jitter. Consequently, its support for mixedcriticality workloads offers limited protection against cross-VM interference. Finally, scheduler efficiency is bounded by the (𝑁) complexity of periodic credit accounting (every 30 ms over all active vCPUs), the 10 ms evaluation tick, and the cross-core run-queue scan during task stealing. 2.6.8
Timeline
The schedule under the Credit scheduler was derived from the rules presented in Section 2.6. The Credit scheduler manages vCPU priorities across three classes: BOOST, UNDER, and OVER. Since global credit accounting is updated only every 30 ms, all non-boosted vCPUs remain in the UNDER state throughout the 20 ms observation window. As no vCPU transitions to the OVER state, the weights assigned to each vCPU do not affect scheduling decisions in this trace and are therefore not specified. At 𝑡 = 0, vCPU_RT wakes up and is granted a BOOST priority allocation, taking control of the pCPU. At 𝑡 = 2, an I/O interrupt wakes vCPU_IO, which also receives a BOOST priority boost. However, because vCPU_ RT is already executing at the same BOOST priority level, no preemption occurs, and vCPU_IO is placed at the tail of the BOOST tier in FIFO order. At 𝑡 = 3, vCPU_RT completes its 3 ms execution requirement and goes back to sleep. vCPU_IO immediately takes the pCPU and executes from 𝑡 = 3 to 𝑡 = 4 before returning to sleep. At 𝑡 = 4, with no BOOST vCPUs remaining runnable, the scheduler selects from the UNDER priority runqueue. vCPU_CPU1 is scheduled and executes from 𝑡 = 4 to 𝑡 = 10. 11
RT
pCPU
RT
BOOST
RT
RT
IO
CPU1
CPU1
CPU1
CPU1
CPU1
CPU1
RT
RT
BOOST
RT
BOOST
IO
CPU2
CPU2
IO
BOOST
CPU1
CPU1
CPU1
BOOST
IO CPU1 CPU2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Figure 4. Example timeline for Credit scheduler
At 𝑡 = 10, vCPU_RT is selected in the BOOST state and preempts vCPU_CPU1. csched_schedule() reinserts the preempted vCPU_CPU1 behind all UNDER vCPUs (behind vCPU_CPU2). At 𝑡 = 12, an I/O interrupt wakes vCPU_IO, elevating its priority to BOOST. Since vCPU_RT is already running in the BOOST state, no preemption occurs: vCPU_RT finishes its execution until 𝑡 = 13, after which vCPU_IO runs from 𝑡 = 13 to 𝑡 = 14 and blocks. At 𝑡 = 14, the scheduler falls back to the UNDER tier and selects vCPU_CPU2 (now at the head of the UNDER queue following the 𝑡 = 10 rotation), which runs from 𝑡 = 14 to 𝑡 = 16. At 𝑡 = 16, the third I/O interrupt wakes vCPU_IO in the BOOST state. Because vCPU_CPU2 is running at UNDER priority, vCPU_IO immediately preempts it and executes from 𝑡 = 16 to 𝑡 = 17. Upon being preempted at 𝑡 = 16, vCPU_CPU2 is reinserted at the tail of the UNDER tier, placing it behind vCPU_ CPU1. Consequently, when vCPU_IO goes back to sleep at 𝑡 = 17, the scheduler selects vCPU_CPU1, which executes for the remaining 3ms until 𝑡 = 20.
2.7
Credit2 scheduler
The Credit2 scheduler [42, 43] is a proportional fair-share scheduling algorithm designed to improve upon the original Credit scheduler by focusing on fairness, responsiveness, and multicore scalability. This scheduling model is implemented in Xen. 2.7.1
Parameters
Weight (sdom->weight): A VM-level parameter (default value of 256) defining the relative proportion of pCPU time allocated to a VM. Each vCPU inherits this weight, which dictates the rate at which its individual credit balance decays during execution (credits are expressed in time units: a vCPU holding the maximum weight burns one unit of credit per unit of execution time, with an initial allocation CSCHED2_CREDIT_INIT of 10 ms. In the timeline of Section 2.7.8, credits are expressed in milliseconds of execution at the maximum weight). Cap (sdom->cap): An optional VM-level execution ceiling expressed as a percentage of a single pCPU. The hypervisor converts this percentage into a periodic time budget. VM vCPUs consume execution time from this budget and are “parked” (blocked from running) once it is exhausted until the next replenishment cycle. Context switch rate limit (prv->ratelimit_us): A minimum execution threshold (default 1 ms) enforced to prevent excessive context switching caused by rapid interrupt wake-ups. EWMA load tracking parameters (opt_load_window_shift, opt_load_precision_shift): Parameters controlling the Exponentially Weighted Moving Average (EWMA) algorithm used to track the changing load of run-queues and vCPUs. Migration resistance threshold (opt_migrate_resist): A credit bonus threshold (default 500µs) required for a vCPU to be migrated to a different pCPU, minimizing cache invalidation overheads. 2.7.2
Selection criterion
The Credit2 scheduler orders vCPUs by their credit values and balances the workload across pCPUs while considering the hardware topology. On each shared run-queue, vCPUs are inserted in descending order of their remaining credits. When a pCPU needs to select a new vCPU, it picks the runnable vCPU with the highest remaining credits at the head of the queue. For capped VMs, a vCPU must also have an available time budget in its VM pool. If no budget is available, the vCPU is “parked” and excluded from selection. Additionally, the scheduler dynamically balances the load across run-queues by migrating vCPUs when significant load imbalances occur.
12
When the vCPU at the head of the run-queue exhausts its credits (reaching 0 or less), the scheduler triggers a credit reset (reset_credit()): every vCPU associated with the run-queue, including sleeping and parked ones, receives a fresh allocation of credits added to a carry-over fraction of its remaining balance, capped at a maximum ceiling to prevent credit hoarding. 2.7.3
Triggers
Scheduling decisions and context switches in the Credit2 scheduler are driven by five triggers: • Wake-up event (csched2_unit_wake): An asynchronous hardware interrupt or event wakes a sleeping vCPU. Because sleeping vCPUs preserve their credits, they are re-inserted near the head of the run-queue according to their credit values. • Voluntary yield / sleep / block (csched2_unit_sleep / csched2_unit_yield): When a running vCPU completes its execution, yields, or blocks on I/O, it returns any unconsumed budget (if capped), updates run-queue load statistics and invokes a rescheduling decision. • Dynamic time slice timer expiration (csched2_runtime): The hypervisor calculates and sets a dynamic hardware timer based on when the current vCPU will exhaust its credits relative to competing vCPUs, hit its cap budget, or reach timer bounds. • Budget exhaustion & replenishment timer (replenish_domain_budget): If a capped VM depletes its budget pool, its running vCPUs are parked. A periodic replenishment timer (default 10 ms) restores the VM budget and unparks waiting vCPUs. • Load balancing evaluation (balance_load): Periodic and event-driven EWMA load calculations monitor load disparities across run-queues, triggering dynamic vCPU migrations when imbalances are detected. 2.7.4
Admission control
The Credit2 scheduler does not restrict vCPU instantiation based on total processor capacity. However, it enforces targeted parameter validation for VM-level execution caps. Specifically, if an administrator configures a utilization cap exceeding the maximum physical limits of the domain’s allocated vCPUs, the request is explicitly rejected with an error code (-EINVAL). System-wide initialization settings are verified against operational limits, issuing warnings and falling back to safe default configurations whenever invalid inputs are detected. 2.7.5
Pseudo-code
""" Parameters: weight: Proportional share weight assigned to each VM (default 256). cap: Maximum pCPU percentage ceiling converted into a periodic time budget (0 for uncapped). ratelimit: Minimum execution quantum enforced before context switching (default 1 ms). load_window: Window length for Exponentially Weighted Moving Average (EWMA) load tracking. migrate_resist: Credit resistance threshold required before cross-pCPU migration (default 500us). """ pick_next(runq): # csched2_schedule() # Select highest credit runnable vCPU from credit-ordered head of runqueue for vcpu in runq: if vcpu.is_runnable(): if has_cap(vcpu) and not grab_budget(vcpu): # unit_grab_budget() park_unit(vcpu) # park_unit() continue return vcpu return IDLE_VCPU on_schedule(vcpu, current_time): # csched2_schedule() """Trigger: Dynamic time slice expiration.""" burn_credits(vcpu, current_time) if top_runq_credit(vcpu.runq) <= 0: reset_credits(vcpu.runq)
13
balance_load_ewma() return pick_next(vcpu.runq) on_wake(vcpu): # csched2_unit_wake() """Trigger: Asynchronous wake-up event.""" vcpu.state = RUNNABLE update_load_ewma(vcpu, +1) runq_insert_by_credit(vcpu) return pick_next(vcpu.runq) on_sleep(vcpu): # csched2_unit_sleep() """Trigger: Voluntary yield / block / sleep.""" vcpu.state = SLEEP if has_cap(vcpu): return_budget(vcpu) # unit_return_budget() update_load_ewma(vcpu, -1) # update_load() runq_remove(vcpu) return pick_next(vcpu.runq) on_replenish_timer(vm): # replenish_domain_budget() """Trigger: Periodic cap budget replenishment timer (default 10 ms).""" vm.budget = vm.tot_budget unpark_units(vm.parked_units) # unpark_parked_units()
2.7.6
Pros
The Credit2 scheduler delivers strong fair CPU sharing through a credit decay model based on vCPU weights. Its configurability is well supported, enabling dynamic runtime adjustments of weights, caps, and rate limits while grouping pCPUs into topology-aware run-queues. By preserving credits during sleep, it maintains high I/O responsiveness, enabling waking vCPUs to naturally preempt lower-credit workloads. As a work-conserving algorithm, it maintains high resource utilization by dynamically redistributing idle pCPU cycles through active EWMA load balancing. Finally, it provides global multicore support, leveraging migration resistance thresholds to reduce lock contention and cache invalidation overhead across multiple pCPUs. 2.7.7
Cons
The Credit2 scheduler incurs some limitations in scheduler efficiency, due to the (𝑁) insertion operations required to maintain run queues ordered by credit, as well as the computational overhead of frequent EWMA load calculations. Because priority relies on credit decay rather than explicit deadlines, it cannot provide hard real-time guarantees. Consequently, its temporal isolation and mixed-criticality support remain limited under uncapped configurations, as non-critical vCPUs can introduce timing jitter into critical workloads. 2.7.8
Timeline
The schedule under the Credit2 scheduler was derived from the rules presented in Section 2.7. Credit2 manages vCPUs using credit balances (initially 10 credits), where vCPUs burn credits proportionally to their weights and are ordered within run-queues by remaining credits. To reflect a realistic proportional-share allocation, higher weights are assigned to vCPU_RT and vCPU_IO (weight = 256, burning 1 credit/ms), while the background vCPUs receive lower weights (weight = 64, burning 4 credits/ms). In addition, to highlight budget enforcement, a 20% cap is configured for vCPU_ CPU1, limiting its execution time to a maximum of 2 ms within each 10 ms replenishment period. vCPU_CPU1 and vCPU_CPU2 remain continuously ready, subject to their respective credit and budget constraints. At 𝑡 = 0, vCPU_RT, vCPU_CPU1, and vCPU_CPU2 are all ready with an equal initial balance of 10 credits. Because runq_insert() enforces FIFO ordering among vCPUs with identical credit balances, vCPU_RT occupies the head of the run-queue and is selected to execute. However, since the next candidate in the run-queue (vCPU_CPU1) holds the exact same credit balance, csched2_runtime() bounds vCPU_RT’s allocated runtime to the minimum timer slice, set to 1ms. vCPU_RT therefore executes from 𝑡 = 0 to 𝑡 = 1, burning 1 credit. At 𝑡 = 1, vCPU_CPU1 (10 credits) moves to the head of the run-queue ahead of vCPU_CPU2 (10 credits) and vCPU_RT (9 credits). Due to the credit tie with vCPU_CPU2, vCPU_CPU1 is also granted a 1ms minimum slice and executes from 𝑡 = 1 to 𝑡 = 2, consuming 4 credits (down to 6 credits) and 1ms of its 2ms cap budget.
14
RT
pCPU
CPU1
Release
CPU2
RT
IO
RT
RT
CPU1
CPU2
CPU2
CPU2
RT
Reset credit
Wake
CPU1
Release
IO
Reset credit
IO
Parked
RT
CPU1
IO
Wake
Reset credit
CPU1
RT
Unparked
CPU2
CPU2
CPU2
Reset credit
Wake
Reset credit
Parked
Reset credit
Reset credit
Reset credit
CPU2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Figure 5. Example timeline for Credit2 scheduler
At 𝑡 = 2, an interrupt wakes vCPU_IO with its untouched initial balance of 10 credits. Because runq_insert() requires a strictly greater credit balance to overtake existing entries, vCPU_IO (10 credits) is inserted behind vCPU_ CPU2 (10 credits) in FIFO order. Consequently, vCPU_CPU2 executes from 𝑡 = 2 to 𝑡 = 3 (burning 4 credits down to 6 credits), after which vCPU_IO becomes the sole leader and executes from 𝑡 = 3 to 𝑡 = 4 (burning 1 credit down to 9 credits) before returning to sleep. At 𝑡 = 4, vCPU_RT holds the highest remaining balance among runnable vCPUs (9 credits vs. 6 credits for vCPU_ CPU1 and vCPU_CPU2). csched2_runtime() allocates a 3ms slice (the time required for vCPU_RT to burn down to 6 credits) allowing it to complete its remaining 2ms execution requirement uninterrupted from 𝑡 = 4 to 𝑡 = 6 and go to sleep (at 7 credits). At 𝑡 = 6, vCPU_CPU1 (6 credits) precedes vCPU_CPU2 in FIFO order and executes for 1ms. At 𝑡 = 7, vCPU_CPU1 exhausts its 2 ms budget and is parked. Alone in the run-queue, vCPU_CPU2 receives the time needed to exhaust its own 6 credits at weight 64 (6 × 64∕256 = 1.5 ms). At 𝑡 = 8.5 its credit reaches zero, which triggers reset_credit(): every vCPU of the run-queue, including blocked and parked ones, receives 10 credits, clipped to 10.5. vCPU_CPU2 (now 10) keeps running. At 𝑡 = 10, vCPU_RT is woken and vCPU_CPU1 is unparked within the same timer softirq; both hold 10.5 credits whereas vCPU_CPU2 has burned down to 4. Assuming the timer of vCPU_RT is processed first, vCPU_RT runs from 𝑡 = 10 to 𝑡 = 11, followed by vCPU_CPU1 from 𝑡 = 11 to 𝑡 = 12. At 𝑡 = 12, the second I/O interrupt wakes vCPU_IO with 10.5 credits, more than vCPU_RT (9.5), vCPU_CPU1 (6.5) and vCPU_CPU2 (4), and runs until 𝑡 = 13. Then, vCPU_RT completes its job from 𝑡 = 13 to 𝑡 = 15, and vCPU_CPU1 runs from 𝑡 = 15 to 𝑡 = 16, when its budget is exhausted and it is parked. At 𝑡 = 16, vCPU_IO wakes with 9.5 credits and runs until 𝑡 = 17. vCPU_CPU2 then runs until 𝑡 = 20; its credit reaches zero at 𝑡 = 18, which triggers another reset without changing the running vCPU.
2.8
Real-time Deferrable Server (RTDS) scheduler
The RTDS scheduler [44–46] is a real-time scheduling algorithm designed to provide deterministic timing guarantees for latency-sensitive workloads. This scheduling model is implemented in Xen through its RTDS module, which evolved from a scheduler based on fixed time slices in Xen 4.5 to a more precise event-based model in Xen 4.7. 2.8.1
Parameters
Period (svc->period): A per-vCPU temporal window (configured by default to 10 ms) over which execution time reservations are periodically renewed. Budget (svc->budget): The maximum execution time (configured by default to 4 ms) allocated to a vCPU within each period. Extratime flag (RTDS_extratime): An optional per-vCPU boolean parameter that allows a vCPU whose nominal budget is exhausted to continue executing during idle pCPU cycles at a lower priority tier. Absolute deadline (svc->cur_deadline): A dynamic timestamp computed at the beginning of each period that represents the execution deadline used for EDF ordering. Priority level (svc->priority_level): An integer tracking tier (0 for real-time reserved status, incremented upon budget exhaustion if extratime is enabled) used to separate real-time reserved execution from deprioritized background execution.
15
2.8.2
Selection criterion
The RTDS scheduler applies a Preemptive Global EDF policy with priority demotion. The hypervisor maintains a global run-queue containing all runnable vCPUs with available budget, sorted primarily by priority level (tier 0 first) and secondarily by absolute deadline in ascending order. The scheduler inspects the global run-queue and selects the vCPU with the earliest deadline to execute on an available pCPU. If a vCPU exhausts its budget and lacks the extratime flag, it is moved to an unsorted global depleted queue and excluded from execution until its next period replenishment. If the extratime flag is enabled, the vCPU’s priority level is demoted by 1, its budget is refilled, and it remains in the run-queue to harvest leftover pCPU cycles without interfering with real-time vCPUs. 2.8.3
Triggers
Scheduling decisions and context switches in the RTDS scheduler are driven by four triggers: • Wake-up event (rt_unit_wake): An asynchronous event or interrupt wakes a sleeping vCPU. If the vCPU slept past its deadline, its deadline is updated and its budget replenished; otherwise, its unconsumed budget is preserved, and it is inserted into the global run-queue. • Voluntary sleep / block / yield (rt_unit_sleep): When a running vCPU completes its task or blocks waiting for I/O, it yields the pCPU, triggering a rescheduling event to pick the next earliest deadline candidate. • Budget exhaustion (burn_budget): A dynamic hardware timer fires when the running vCPU consumes its remaining budget, forcing preemption. The vCPU is either transferred to the depleted queue or demoted in priority if extratime is active. • Replenishment timer expiration (repl_timer_handler): A global event-driven replenishment timer, programmed to fire at the most imminent deadline among active vCPUs, restores depleted budgets, recalculates deadlines, and moves depleted vCPUs back to the global run-queue. 2.8.4
Admission control
The RTDS scheduler incorporates a strict admission control mechanism based on total pCPU capacity. During vCPU instantiation or online reservation adjustments, the hypervisor first validates candidate period and budget parameters via rt_validate_params(), rejecting malformed requests with an error code (-EINVAL). Next, RTDS computes the ∑ aggregate fixed-point utilization demand ( 𝑏𝑢𝑑𝑔𝑒𝑡∕𝑝𝑒𝑟𝑖𝑜𝑑) across all admitted workloads. If a proposed allocation or reservation increase causes total demand to exceed the processing capacity limit, the hypervisor explicitly denies the change, issuing a warning log and returning an error (-ENOSPC). System administrators can also dynamically query or toggle this enforcement mechanism via hypervisor system management operations. 2.8.5
Pseudo-code
""" Parameters: period: Per-vCPU temporal window over which execution time is renewed (default 10 ms). budget: Maximum execution time allocated to a vCPU within each period (default 4 ms). extratime: Boolean flag allowing execution during idle cycles at a demoted priority tier. cur_deadline: Dynamic absolute deadline used for Earliest Deadline First (EDF) ordering. priority_level: Priority tier (0 for real-time reserved; incremented when budget is exhausted with ↪ extratime). """ pick_next(runq): # rt_schedule() # Preemptive Global EDF: pick runnable vCPU with lowest priority_level, then earliest cur_deadline return min(runq, key=lambda v: (v.priority_level, v.cur_deadline), default=IDLE_VCPU) on_tick(vcpu, delta_time): """Trigger: Per-pCPU timer / budget burn.""" vcpu.cur_budget -= delta_time # burn_budget() if vcpu.cur_budget <= 0: if vcpu.extratime: vcpu.priority_level += 1
16
vcpu.cur_budget = vcpu.budget else: vcpu.state = DEPLETED runq_move_to_depletedq(vcpu) on_replenish_timer(): # repl_timer_handler() """Trigger: Global replenishment timer firing at the most imminent deadline.""" for vcpu in replq_get_expired(): vcpu.cur_deadline += vcpu.period vcpu.cur_budget = vcpu.budget vcpu.priority_level = 0 vcpu.state = RUNNABLE depletedq_move_to_runq(vcpu) on_wake(vcpu, current_time): # rt_unit_wake() """Trigger: Asynchronous wake-up event.""" vcpu.state = RUNNABLE if current_time >= vcpu.cur_deadline: vcpu.cur_deadline = current_time + vcpu.period vcpu.cur_budget = vcpu.budget vcpu.priority_level = 0 runq_insert_by_edf(vcpu) # runq_insert() return pick_next(runq)
# rt_update_deadline()
on_sleep(vcpu): # rt_unit_sleep() """Trigger: Voluntary yield / block / sleep.""" vcpu.state = SLEEP runq_remove(vcpu) return pick_next(runq)
2.8.6
Pros
The RTDS scheduler delivers real-time guarantees through its preemptive global EDF policy, provided the system integrator verifies offline that the reservation set is schedulable. Its per-vCPU budget and period reservations enforce temporal isolation by preventing misbehaving or computationally heavy vCPUs from exceeding their assigned allocations. Furthermore, mixed-criticality co-location is supported thanks to the extratime mechanism, which allows less-critical vCPUs to harvest idle cycles at a demoted priority tier without violating tier-0 reservations. This feature also enhances resource utilization. For interactive workloads, I/O responsiveness is high because sleeping vCPUs preserve their unconsumed budget upon blocking. It also exhibits rich runtime reconfigurability, allowing administrators to dynamically adjust per-vCPU budgets, periods, and extratime flags at runtime without hypervisor reboots. Finally, it provides global multicore support, as it is specifically designed for SMP architectures using a global EDF run-queue and inter-processor tickle interrupts across pCPUs. 2.8.7
Cons
Scheduler efficiency represents a key constraint for RTDS. The scheduler must track remaining execution budgets at nanosecond granularity, reprogram hardware timers at every budget event, and perform (𝑁) insertions into the deadlineordered run-queue and replenishment queue. Furthermore, the algorithm lacks fair CPU sharing for background vCPUs. While the extratime flag reclaims unreserved pCPU cycles, it lacks proportional ratios, forcing deprioritized vCPUs to compete for remaining cycles without guaranteed fairness. 2.8.8
Timeline
The schedule under the RTDS scheduler was derived from the rules presented in Section 2.8. Each vCPU is defined by a period and an execution budget: vCPU_RT (period = 10, budget = 3, extratime = False), vCPU_IO (period = 6, budget = 1, extratime = False), vCPU_CPU1 (period = 10, budget = 3, extratime = True), and vCPU_CPU2 (period = 15, budget = 3, extratime = True). At 𝑡 = 0, vCPU_RT releases its first period (cur_deadline = 10, cur_budget = 3, priority_level = 0) and takes the pCPU.
17
RT
pCPU
RT
Release
IO
RT
CPU1
Wake
CPU1
CPU1
RT
CPU2
CPU2
CPU2
Budget exhausted
RT
Replenish
RT
IO
Budget exhausted
CPU1
Wake
IO
Budget exhausted, extratime=True
CPU1
CPU1
RT
Budget exhausted
IO
Wake
Replenish
CPU1
CPU2
CPU2
Budget exhausted Replenish
Budget exhausted, extratime=True
Budget exhausted, extratime=True
Replenish
CPU2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Figure 6. Example timeline for RTDS scheduler
At 𝑡 = 2, an I/O interrupt wakes vCPU_IO, with its parameters set to cur_deadline = 6, cur_budget = 1, and priority_level = 0. The scheduler invokes runq_tickle() to compare deadlines. Because vCPU_IO has an earlier
deadline than the running vCPU_RT, vCPU_IO preempts vCPU_RT at 𝑡 = 2 and executes from 𝑡 = 2 to 𝑡 = 3. At 𝑡 = 3, vCPU_IO finishes its 1 ms job and goes back to sleep while exhausting its budget at the same instant. vCPU_CPU1 is selected because it is queued ahead of vCPU_RT, consuming its full 3 ms budget. At 𝑡 = 6, vCPU_CPU1 exhausts its budget. Because extratime = True, its priority level is demoted from 0 to 1 and its budget is refilled. The scheduler then selects vCPU_RT, which executes from 𝑡 = 6 to 𝑡 = 7 before it returns to sleep. From 𝑡 = 7 to 𝑡 = 10, vCPU_CPU2 executes its 3 ms allocation, exhausting its budget at 𝑡 = 10 and demoting to priority_level = 1. At the same instant, vCPU_RT is woken by the release of its second job, and the replenishment of vCPU_CPU1 falls due. Since vCPU_RT was blocked, it is not on the replenishment queue: its deadline and budget are updated on wake-up (rt_unit_wake() calls rt_update_deadline()), giving cur_deadline = 20 and cur_budget = 3. Because vCPU_RT is woken while vCPU_CPU1 still holds its demoted extra-time status (priority_level = 1), vCPU_RT is inserted ahead of vCPU_CPU1 in the run queue. When vCPU_CPU1’s period is subsequently replenished, deadline_queue_insert() places it behind vCPU_RT under FIFO tie-breaking for equal deadlines. Consequently, vCPU_RT takes the pCPU and executes from 𝑡 = 10 to 𝑡 = 12. Both events occur in the same timer softirq. It is assumed that the wake-up of vCPU_RT is processed first. In the opposite order, vCPU_CPU1 would run first (𝑡 = 10 to 12) and vCPU_RT would complete at 𝑡 = 16, still meeting its deadline. At 𝑡 = 12, an I/O interrupt wakes vCPU_IO. The scheduler compares vCPU_IO (deadline 18) against the running vCPU_RT (deadline 20). Because its deadline is earlier than vCPU_RT, vCPU_IO preempts vCPU_RT and executes from 𝑡 = 12 to 𝑡 = 13. At 𝑡 = 13, vCPU_CPU1 is selected and executes its full 3 ms budget from 𝑡 = 13 to 𝑡 = 16. At 𝑡 = 15, vCPU_CPU2 undergoes period replenishment. At 𝑡 = 16, vCPU_CPU1 exhausts its budget and is demoted to priority_level = 1 (extratime = True); simultaneously, an I/O wake event occurs for vCPU_IO, but because its period replenishment is scheduled for 𝑡 = 18, it remains depleted. The scheduler selects vCPU_RT, which executes its remaining 1 ms budget from 𝑡 = 16 to 𝑡 = 17, finishes its work, and goes back to sleep. At 𝑡 = 17, as vCPU_RT finishes its work and vCPU_CPU1 is demoted to extra-time status, vCPU_CPU2 takes the pCPU and executes from 𝑡 = 17 to 𝑡 = 18. At 𝑡 = 18, vCPU_IO’s period is replenished. Since its deadline (24) is earlier than vCPU_CPU2’s (30), vCPU_IO preempts vCPU_CPU2 at 𝑡 = 18 and executes from 𝑡 = 18 to 𝑡 = 19. Finally, at 𝑡 = 19, vCPU_IO completes its work and blocks, allowing vCPU_CPU2 to resume and execute.
2.9
Priority-based scheduler
The Priority-based scheduler is a scheduling algorithm designed to enforce vCPU execution hierarchy based on static priority levels. This scheduling model is natively implemented in the ACRN hypervisor [47]. 2.9.1
Parameters
Priority (params->prio): A static integer assigned to each vCPU at creation time, defining its execution precedence relative to competing vCPUs on the same pCPU. Although the C structure stores an integer, ACRN’s build-time configuration schema (types.xsd) exposes only two discrete levels: PRIO_LOW and PRIO_HIGH. Per-pCPU priority queue (INIT_LIST_HEAD(&prio_ctl->prio_queue)): A doubly linked list maintained per pCPU that stores runnable vCPUs sorted in descending order of priority (with FIFO ordering among vCPUs of equal priority).
18
2.9.2
Selection criterion
The Priority-based scheduler applies a priority-driven policy. On each pCPU, the scheduler inspects its local priority run-queue and selects the vCPU situated at the head of the list, which corresponds to the runnable vCPU with the highest priority. If the run-queue is empty, the scheduler falls back to selecting the system IDLE vCPU. When a vCPU wakes up, it is inserted into the run-queue, via a linear traversal, ahead of the first vCPU encountered with a strictly lower priority. 2.9.3
Triggers
Scheduling decisions and context switches are driven exclusively by two triggers: • Wake-up event (sched_prio_wake): An asynchronous hardware interrupt or event wakes a sleeping vCPU, triggering its insertion into the local priority queue based on its priority level and prompting a preemption check against the currently running vCPU. • Voluntary sleep / block / yield (sched_prio_sleep): When the currently running vCPU completes its execution, yields, or blocks waiting for I/O, it is removed from the local run-queue, prompting the scheduler to pick the next highest-priority candidate at the head of the list. 2.9.4
Admission control
The Priority-based scheduler does not perform admission control or workload feasibility checks. While the buildtime configuration schema (types.xsd) restricts configured priorities to two levels (PRIO_LOW and PRIO_HIGH), the C initialization routine in sched_prio.c directly assigns the priority integer without checking for priority collisions or evaluating total pCPU capacity. It imposes no restrictions on the number of vCPUs assigned to a given priority tier or on aggregate CPU utilization. Consequently, the hypervisor accepts any valid vCPU configuration without rejecting overcommitted workloads, relying entirely on the system architect to manually bound execution demands offline to prevent the starvation of lower-priority vCPUs. 2.9.5
Pseudo-code
""" Parameters: priority: Static integer assigned to each vCPU at creation time. prio_queue: Per-pCPU doubly linked list storing runnable vCPUs sorted in descending order of priority. """ pick_next(prio_queue): # sched_prio_pick_next() # Front-of-queue selection (runnable vCPU with highest priority) if not prio_queue_is_empty(prio_queue): return prio_queue_get_head(prio_queue) return IDLE_VCPU on_wake(vcpu, current_vcpu): # sched_prio_wake() """Trigger: Asynchronous wake-up event / higher-priority preemption.""" vcpu.state = RUNNABLE prio_queue_insert_sorted(prio_queue, vcpu) # prio_queue_add() if vcpu.priority > current_vcpu.priority: trigger_preempt() on_sleep(vcpu): # sched_prio_sleep() """Trigger: Voluntary yield / block / sleep.""" vcpu.state = SLEEP prio_queue_remove(prio_queue, vcpu) # prio_queue_remove() return pick_next(prio_queue)
2.9.6
Pros
The Priority-based scheduler ensures that critical vCPUs assigned to higher priority levels execute immediately without preemption from lower-priority workloads. However, any real-time guarantee assumes that the system integrator bounds 19
the execution demand of every vCPU at the same or higher priority levels. For interactive workloads, I/O responsiveness is particularly good when assigned high priorities, enabling asynchronous wake-ups to preempt lower-priority entities instantly. As a work-conserving algorithm, it promotes efficient resource utilization. A pCPU is never left idle as long as at least one runnable vCPU exists in the local queue. Regarding scheduler efficiency, the algorithm exhibits minimal execution overhead during context switches, relying on straightforward head-of-queue extractions and integer comparisons. Finally, it provides partitioned multicore support by maintaining independent run-queues per pCPU. 2.9.7
Cons
Conversely, the primary drawback of this scheduler is its total lack of fair CPU sharing, as an unconstrained high-priority vCPU can cause execution starvation for lower-priority vCPUs. This preemption model severely degrades temporal isolation because a high-priority vCPU that misbehaves or runs indefinitely is never preempted or limited. Consequently, mixed-criticality workloads remain susceptible to timing interference. System configurability is limited: priority levels are static and assigned at vCPU creation, preventing dynamic priority adjustments during runtime without hypervisor reboots. Furthermore, priority assignment creates a trade-off between real-time guarantees and I/O responsiveness: elevating an interactive vCPU to improve I/O latency directly degrades the deadline guarantees of any lower-priority vCPU it preempts. 2.9.8
Timeline
The schedule under the Priority-based scheduler was derived from the rules presented in Section 2.9. In accordance with ACRN’s configuration schema (types.xsd), which exposes only two priority levels, vCPU_RT and vCPU_IO are both configured with PRIO_HIGH, while vCPU_CPU1 and vCPU_CPU2 share PRIO_LOW. RT
pCPU
RT
Release
RT
RT
IO
CPU1
CPU1
CPU1
CPU1
CPU1
CPU1
RT
RT
Release
RT
Wake
IO
CPU1
CPU1
IO
CPU1
CPU1
CPU1
Wake
IO CPU1 CPU2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Figure 7. Example timeline for Priority-based scheduler
At 𝑡 = 0, vCPU_RT releases its first period and is selected as the highest-priority runnable vCPU. At 𝑡 = 2, an I/O interrupt wakes vCPU_IO. vCPU_IO is inserted behind vCPU_RT, since prio_queue_add() places a vCPU before the first one of strictly lower priority. The rescheduling requested by wake_thread() selects the head of the queue, which is still vCPU_RT. At 𝑡 = 3, vCPU_RT completes its 3 ms execution requirement and transitions to sleep. The scheduler then selects vCPU_IO from the head of the run-queue. vCPU_IO executes from 𝑡 = 3 to 𝑡 = 4 and returns to sleep. At 𝑡 = 4, with both higher-priority vCPUs asleep, the scheduler evaluates the remaining ready vCPUs. Because vCPU_CPU1 was inserted prior to vCPU_CPU2 among the equal-priority background vCPUs, vCPU_CPU1 is selected at the head of the queue and executes continuously from 𝑡 = 4 to 𝑡 = 10. Because the algorithm lacks round-robin quantum expiration or time-slicing among equal-priority vCPUs, vCPU_CPU1 never yields the pCPU, causing vCPU_ CPU2 to suffer total starvation during this interval. At 𝑡 = 10, vCPU_RT releases its second period and wakes up. Because vCPU_RT has a higher priority than vCPU_ CPU1, it preempts vCPU_CPU1. vCPU_RT executes from 𝑡 = 10 to 𝑡 = 13. At 𝑡 = 12, an I/O interrupt wakes vCPU_IO. Since vCPU_RT is already running at PRIO_HIGH, no preemption occurs, and vCPU_IO is queued behind vCPU_RT. At 𝑡 = 13, vCPU_RT finishes its execution and sleeps. The scheduler selects vCPU_IO, which executes from 𝑡 = 13 to 𝑡 = 14 before sleeping. At 𝑡 = 14, control returns to vCPU_CPU1, which executes from 𝑡 = 14 to 𝑡 = 16. At 𝑡 = 16, a third I/O interrupt wakes vCPU_IO. Because vCPU_IO holds a higher priority than vCPU_CPU1, vCPU_IO preempts vCPU_CPU1 and executes from 𝑡 = 16 to 𝑡 = 17 before returning to sleep. Finally, at 𝑡 = 17, control returns once again to vCPU_CPU1, which executes from 𝑡 = 17 to 𝑡 = 20, leaving vCPU_ CPU2 completely starved across the entire 20 ms horizon.
20
2.10
Borrowed Virtual Time (BVT) scheduler
The BVT scheduler [14, 48] uses virtual time to provide weighted fair sharing of pCPU time, while a temporal “warp” mechanism enables low-latency dispatch for latency-sensitive workloads. Crucially, a discrepancy exists between the theoretical model and its actual codebase: while the configuration data structures define warp parameters, the ACRN kernel implementation leaves the warp calculation as an unfulfilled “TODO” stub. 2.10.1
Parameters
Weight (data->weight): A VM-level parameter (configured at build time, bounded between 1 and 128) defining the proportional share of pCPU time allocated to a vCPU relative to others. Higher weights make virtual time elapse slower. Actual Virtual Time (AVT) (data->avt): A 64-bit counter tracking the cumulative execution time consumed by a vCPU, advanced proportionally to its inverse weight. AVT is updated exclusively during sched_bvt_pick_next(). Scheduler Virtual Time (SVT) (svt): A per-pCPU reference equal to the AVT of the run-queue head, recorded at the last invocation of sched_bvt_pick_next() (update_svt()). Since EVT = AVT in the implementation, it is the minimum AVT among the runnable vCPUs of that pCPU at that instant. It is used to align the AVT of waking vCPUs after a sleep period and prevent CPU monopolization. Effective Virtual Time (EVT) (data->evt): The primary metric used for scheduling decisions. Theoretically, 𝐸𝑉 𝑇 = 𝐴𝑉 𝑇 − 𝑤𝑎𝑟𝑝. In the analyzed ACRN codebase, because the warp feature is marked as a “TODO”, EVT is assigned directly equal to AVT. Warp parameters (warp_value, warp_limit, unwarp_period): Theoretical parameters intended to allow latencysensitive vCPUs to temporarily lower their EVT (warp) to gain prompt preemption, subject to a maximum warp execution limit and a mandatory unwarp recovery window. These mechanisms are unimplemented in ACRN’s default BVT scheduler. Minimum Charging Unit (MCU) (BVT_MCU_MS): The base hardware tick resolution (configured to 1 ms) used to measure pCPU consumption and convert between physical time and virtual time. Context Switch Allowance (CSA) (BVT_CSA_MCU): A configuration constant (default 5 MCU) that acts as a virtual time threshold (SVT - CSA) to limit how much virtual credit a sleeping vCPU can accumulate upon wake-up. 2.10.2
Selection criterion
The scheduler maintains a local per-pCPU run-queue sorted in ascending order of EVT. When selecting the next vCPU to execute, the scheduler picks the runnable vCPU positioned at the head of the list, which possesses the smallest EVT. To prevent context-switch thrashing between vCPUs with close EVT values, a dynamic hardware timer is calculated based on the EVT difference between the head candidate and the second candidate in line, augmented by the CSA. 2.10.3
Triggers
Scheduling decisions and context switches in the BVT scheduler are driven by three triggers: • Wake-up event (sched_bvt_wake): An asynchronous hardware interrupt or event wakes a sleeping vCPU. The scheduler updates the vCPU’s AVT against SVT (as recorded at the last pick_next()). If the AVT lags behind SVT – CSA, it is resynchronized to SVT to prevent long-sleeping vCPUs from claiming an excessive CPU share accumulated while inactive. It then inserts the vCPU into the run-queue (behind vCPUs with equal EVT) and issues a reschedule request. • Voluntary sleep / block / yield (sched_bvt_sleep): The blocking vCPU is removed from the run-queue and a rescheduling is requested. • Countdown expiry ( sched_tick_handler): sched_bvt_pick_next() arms a one-shot timer that expires after (𝐸𝑉 𝑇 𝑠𝑒𝑐𝑜𝑛𝑑 − 𝐸𝑉 𝑇 ℎ𝑒𝑎𝑑 )∕𝑣𝑡_𝑟𝑎𝑡𝑖𝑜ℎ𝑒𝑎𝑑 + 𝐶𝑆𝐴 MCUs; its handler only requests a rescheduling. 2.10.4
Admission control
The BVT scheduler does not implement workload admission control or CPU capacity validation. Operating as a virtual-time-based fair-share algorithm, it allows an arbitrary number of vCPUs to be scheduled without checking aggregate CPU demand against physical execution capacity. During vCPU initialization, parameter validation is limited to sanitizing the assigned weight, which is bounded to a valid range between 1 and 128. Invalid or out-of-bounds weight inputs are silently adjusted to safe operational boundaries without raising error codes or rejecting vCPU instantiation, relying entirely on static build-time configuration to manage resource distribution.
21
2.10.5
Pseudo-code
""" Parameters: weight: Proportional share weight (1 to 128) determining virtual time progression rate. MCU: 1 ms; CSA: 5 ms avt: Actual Virtual Time recording consumed pCPU time weighted by VM share. evt: Effective Virtual Time used as runqueue sorting key. svt: per-pCPU, avt of the run-queue head at the last decision. """ pick_next(runqueue): # sched_bvt_pick_next() if current is not IDLE: update_vt(current) # update_vt() if current is runnable: reinsert_by_evt(current) cancel(countdown_timer) if not runqueue : return IDLE_VCPU update_svt() #update_svt() first = runqueue.head if len(runqueue)>1: gap = runqueue[1].evt - first.evt arm_one_shot(countdown_timer, now + (gap / first.vt_ratio + CSA) * MCU) return first on_countdown_expiry (): # sched_tick_handler() """ Trigger: One-shot countdown timer expiration (quantum end).""" request_reschedule() on_wake(vcpu): # sched_bvt_wake() """Trigger: Asynchronous I/O wake-up event.""" vcpu.state = RUNNABLE if vcpu.avt <= svt - CSA: vcpu.avt = svt vcpu.evt = vcpu.avt #TODO: Add warp limit enforcement logic here #vcpu.evt = vcpu.avt - (vcpu.warp_value if vcpu.is_warped else 0) runqueue_insert_by_evt(vcpu) request_reschedule() on_sleep(vcpu): # sched_bvt_sleep() """Trigger: Voluntary yield / block / sleep.""" vcpu.state = SLEEP runqueue_remove(vcpu) request_reschedule()
2.10.6
Pros
First, the BVT scheduler supports fair CPU sharing by distributing pCPU time in proportion to assigned weights through virtual time accounting. As a work-conserving algorithm, it contributes to effective resource utilization, reallocating unconsumed pCPU cycles to other runnable vCPUs. Theoretically, the “warp” mechanism improves I/O responsiveness by enabling preemption, while resetting AVT to SVT on wake-up prevents long-sleeping vCPUs from starving others. Finally, it provides native multicore support through independent per-pCPU run-queues. 2.10.7
Cons
Conversely, the principal limitation of the BVT scheduler is its efficiency, as maintaining a run-queue sorted by EVT requires (𝑁) linear traversal on every wake-up or re-insertion, compounded by frequent virtual-to-physical arithmetic conversions. Because scheduling is governed by virtual time decay rather than explicit deadlines, the algorithm cannot provide real-time guarantees. Consequently, temporal isolation and mixed-criticality support are compromised, as interactive or computationally heavy vCPUs can introduce execution jitter into critical workloads. Furthermore, a major implementation discrepancy exists in current ACRN code: the warp mechanism is incomplete and explicitly 22
marked as a “TODO”, forcing 𝑒𝑣𝑡 = 𝑎𝑣𝑡. As a result, the code implementation fails to deliver the theoretical I/O responsiveness gains provided by warping, causing BVT in practice to function as a standard weighted fair-share virtual time scheduler. Finally, vCPU weights are statically fixed at build time (via config.xsd), with no interface provided for dynamic runtime adjustment, meaning the system lacks runtime configurability. 2.10.8
Timeline
The schedule under the BVT scheduler was derived from the rules presented in Section 2.10. Unlike the other algorithms, the timeline covers the window from 𝑡 = 20 to 𝑡 = 40 rather than 𝑡 = 0 to 𝑡 = 20, and the events of the reference workload are shifted accordingly: vCPU_RT is released at 𝑡 = 20 and 𝑡 = 30, and the I/O interrupts for vCPU_IO occur at 𝑡 = 22, 𝑡 = 32 and 𝑡 = 36. At initialization (𝑡 = 0), all vCPUs start with an identical virtual time balance (AVT = EVT = 0). Since execution from 𝑡 = 0 exhibits an initial transient behavior that differs significantly from steady-state operation once virtual time drift has accumulated over several cycles, the illustration focuses on the 𝑡 = 20 to 𝑡 = 40 window. At 𝑡 = 20, cumulative execution has driven the SVT baseline to 160, yielding the initial virtual time states EVT_CPU1 = 192, EVT_CPU2 = 160, and EVT_RT = 160 (clamped to SVT upon its release at 𝑡 = 20), while vCPU_ IO is sleeping. The first period of this window (𝑡 = 20 to 30) still reflects the symmetric start-up, in which vCPU_CPU1 and vCPU_CPU2 have equal virtual times (160 at 𝑡 = 19). This tie, resolved in FIFO order, delays vCPU_RT at 𝑡 = 20 and vCPU_IO at 𝑡 = 22. From 𝑡 = 30 on, every waking vCPU is dispatched immediately, which is the steady-state behavior. BVT manages vCPUs using virtual time tracking, where AVT advances during execution by vt_ratio virtualtime units per ms of execution (with vt_ratio = 1024∕weight, or normalized proportionally) and EVT determines run-queue ordering. Higher weights are assigned to vCPU_RT and vCPU_IO (weight = 128, yielding vt_ratio= 8), while the background vCPUs receive lower weights (weight = 32, yielding vt_ratio= 32). As a result, the background vCPUs advance their virtual time four times as fast as the real-time and I/O vCPUs when executing. Furthermore, when a vCPU at the head of the queue is selected, its execution quantum (in ms) is computed as (𝐸𝑉 𝑇 𝑛𝑒𝑥𝑡 − 𝐸𝑉 𝑇 ℎ𝑒𝑎𝑑 )∕𝑣𝑡_𝑟𝑎𝑡𝑖𝑜ℎ𝑒𝑎𝑑 + 𝐶𝑆𝐴 where CSA=5 ms. pCPU CPU2
CPU2
Release
RT
RT
RT
RT
IO
CPU1
CPU1
CPU1
CPU1
RT
RT
Release
IO
Wake
RT
CPU2
CPU2
IO
Wake
CPU2
CPU2
CPU2
Wake
IO CPU1 CPU2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Figure 8. Example timeline for BVT scheduler
At 𝑡 = 20, vCPU_RT is released. Since it was blocked, the wake is effective: its AVT (48) is below the threshold, so it is clamped to the baseline 𝑆𝑉 𝑇 = 160. The run-queue is ordered vCPU_CPU2 (160), RT (160), vCPU_CPU1 (192). With the EVT tie at 160, vCPU_CPU2 precedes vCPU_RT under the FIFO insertion rule. vCPU_CPU2 is elected for a quantum of 5 ms. At 𝑡 = 22, an interrupt wakes vCPU_IO. Its AVT (24) is below 𝑆𝑉 𝑇 − 5 = 155, so it is clamped to 𝑆𝑉 𝑇 = 160. The run-queue becomes vCPU_RT (160), vCPU_IO (160), vCPU_CPU1 (192), vCPU_CPU2 (224). vCPU_RT holds FIFO precedence over vCPU_IO and is elected with a quantum of 5 ms. It runs its full 3 ms job from 𝑡 = 22 to 𝑡 = 25, advancing its EVT to 184 before sleeping. At 𝑡 = 25, vCPU_RT sleeps. vCPU_IO holds the minimum EVT (160) and receives the pCPU. It executes for 1 ms and goes back to sleep at 𝑡 = 26 with an EVT of 168. At 𝑡 = 26, only the background vCPUs remain: vCPU_CPU1 (EVT 192) and vCPU_CPU2 (EVT 224). SVT is updated to 192, and vCPU_CPU1, holding the minimum EVT, is elected with a quantum of 6 ms. At 𝑡 = 30, vCPU_RT is released. It was blocked, so the wake is effective: its AVT (184) is not above SVT − 5 = 187, so it is clamped to SVT = 192. The runqueue is vCPU_RT (192), vCPU_CPU2 (224), vCPU_CPU1 (320), so vCPU_RT is selected with a quantum of 9 ms. At 𝑡 = 32, an interrupt wakes vCPU_IO, whose AVT (168) is clamped to SVT = 192. Since IO (192) now has a lower EVT than RT (208), vCPU_IO preempts vCPU_RT and runs. vCPU_RT still has 1 ms of work pending. At 𝑡 = 33, vCPU_IO completes its 1 ms of work and sleeps with an EVT of 200. vCPU_RT, now at the head of the runqueue (EVT 208), resumes and finishes its last millisecond at 𝑡 = 34, sleeping with an EVT of 216.
23
At 𝑡 = 34, only the background vCPUs remain. SVT is updated to 224 and vCPU_CPU2, which holds the minimum EVT (224 vs. 320 for vCPU_CPU1), is selected with a quantum of 8 ms. At 𝑡 = 36, an interrupt wakes vCPU_IO. Its AVT (200) is below SVT − 5 = 219, so it is clamped to SVT = 224. It holds the minimum EVT, preempting vCPU_CPU2. It runs 1 ms and sleeps at 𝑡 = 37 with an EVT of 232. At 𝑡 = 37, vCPU_CPU2 (EVT 288) is again at the head of the runqueue and resumes execution, with a quantum of 6 ms.
2.11
I/O sensitive Round Robin (IORR) scheduler
The IORR scheduler is a hybrid scheduling algorithm designed to improve latency for I/O-bound vCPUs while maintaining egalitarian time-sharing for CPU-bound vCPUs. This scheduling model is implemented in the ACRN hypervisor [49]. 2.11.1
Parameters
Time slice (CONFIG_SLICE_MS): The default execution quantum (hardcoded to 10 ms) allocated to each vCPU before Round-Robin preemption and tail rotation occur. Per-vCPU execution counters (data->left_cycles , data->last_cycles): Internal tracking variables maintained per vCPU to measure remaining execution time within the active time slice. Per-pCPU run-queue (INIT_LIST_HEAD(&iorr_ctl->runqueue)): A doubly linked list maintained independently per pCPU that stores runnable vCPUs. 2.11.2
Selection criterion
The IORR scheduler uses a hybrid wake-up policy that places awakened vCPUs at the front of the queue and rotates the remaining vCPUs in Round-Robin order. The scheduler inspects the local per-pCPU run-queue and selects the runnable vCPU situated at the head of the list. If the run-queue is empty, the scheduler falls back to selecting the system IDLE vCPU. To differentiate between I/O-bound and CPU-bound workloads without requiring manual priority configuration, the scheduler modifies queue insertion points: waking vCPUs are inserted directly at the front of the run-queue, whereas currently running vCPUs, whether preempted by a waking vCPU or having exhausted their 10 ms time slice, are rotated to the tail of the list. 2.11.3
Triggers
Scheduling decisions and context switches in the IORR scheduler are driven by three triggers: • Wake-up event (sched_iorr_wake): An asynchronous hardware interrupt or event wakes a sleeping vCPU. The scheduler inserts the waking vCPU directly at the head of the local run-queue and issues a reschedule request to execute it promptly. • Voluntary sleep / block / yield (sched_iorr_sleep): When the currently running vCPU completes its execution or blocks on I/O, it is removed from the run-queue, prompting the scheduler to pick the next candidate waiting at the head of the list. • Time slice expiration / tick handler (sched_tick_handler): A periodic per-pCPU timer interrupt (1 ms tick) decrements the running vCPU’s left cycles. When it becomes equal to 0, the scheduler replenishes its allocation, removes it from the head, and moves it to the tail of the run-queue. 2.11.4
Admission control
The IORR scheduler does not perform admission control or workload feasibility checks. During vCPU initialization, the scheduler ignores external configuration parameters and statically sets every vCPU’s execution quantum to a hardcoded compile-time value (CONFIG_SLICE_MS=10 ms). It enforces no validation checks on vCPU parameters, imposes no limits on the number of active vCPUs, and does not evaluate aggregate CPU utilization. Consequently, the hypervisor accepts any vCPU configuration without raising errors or rejecting overcommitted workloads, relying entirely on static system design to bound execution requirements offline.
24
2.11.5
Pseudo-code
""" Parameters: time_slice: Default execution quantum allocated to each vCPU before Round-Robin tail rotation (10 ms). left_cycles: Remaining execution time counter maintained per vCPU for the active time slice. runqueue: Per-pCPU doubly linked list storing active runnable vCPUs. """ pick_next(runq, current_vcpu): # sched_iorr_pick_next() # Front-of-queue selection; rotate current vCPU to tail if time slice exhausted if current_vcpu and current_vcpu.is_runnable(): if current_vcpu.left_cycles <= 0: current_vcpu.left_cycles += current_vcpu.time_slice runq_move_to_tail(runq, current_vcpu) if not runq_is_empty(runq): next_vcpu = runq_get_head(runq) if next_vcpu.left_cycles <= 0: next_vcpu.left_cycles += next_vcpu.time_slice return next_vcpu return IDLE_VCPU on_tick(current_vcpu, delta_time): # sched_tick_handler() """Trigger: Per-pCPU timer tick handler (1 ms).""" current_vcpu.left_cycles -= delta_time if current_vcpu.left_cycles <= 0: return pick_next(runq, current_vcpu) on_wake(vcpu): # sched_iorr_wake() """Trigger: Asynchronous I/O wake-up event.""" vcpu.state = RUNNABLE runqueue_add_head(runq, vcpu) # runqueue_add_head() return pick_next(runq, current_vcpu) on_sleep(vcpu): # sched_iorr_sleep() """Trigger: Voluntary yield / block / sleep.""" vcpu.state = SLEEP runqueue_remove(runq, vcpu) # runqueue_remove() return pick_next(runq, None)
2.11.6
Pros
The IORR scheduler achieves high I/O responsiveness for event-driven workloads by inserting waking vCPUs directly at the head of the queue for preemption. As a work-conserving algorithm, it supports efficient resource utilization by instantly reassigning idle cycles. Regarding scheduler efficiency, it operates with constant-time complexity via simple pointer manipulations without complex arithmetic. Finally, it provides partitioned multicore support through independent per-pCPU run-queues. 2.11.7
Cons
Conversely, IORR lacks temporal isolation, as any vCPU that sleeps and wakes up is automatically placed at the head of the queue regardless of its actual importance, allowing frequent I/O-bound vCPUs to monopolize the pCPU. This unconstrained preemption eliminates real-time guarantees. Consequently, mixed-criticality workloads remain susceptible to interference from I/O-bound vCPUs, potentially affecting the execution of safety-critical workloads. Furthermore, the algorithm lacks fair CPU sharing mechanisms, making proportional pCPU time distribution impossible. Finally, system configurability is restricted because the 10 ms time slice parameter is hardcoded in the hypervisor source code and cannot be modified dynamically at runtime.
25
2.11.8
Timeline
The schedule under the IORR scheduler was derived from the rules presented in Section 2.11. No algorithm-specific parameters are required for this trace. RT
pCPU
RT
Release
IO
RT
CPU1
CPU1
CPU1
CPU1
CPU1
CPU1
CPU1
CPU1
CPU1
Release
IO
Wake
CPU2
CPU2
CPU2
IO
Wake
RT
RT
RT
Wake
IO CPU1 CPU2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Figure 9. Example timeline for IORR scheduler
At 𝑡 = 0, vCPU_RT releases its first period, takes the pCPU, and executes from 𝑡 = 0 to 𝑡 = 2. At 𝑡 = 2, an asynchronous I/O interrupt wakes vCPU_IO. The scheduler places vCPU_IO at the head of the runqueue and preempts vCPU_RT. The preempted vCPU_RT is appended to the tail of the runqueue. vCPU_IO executes from 𝑡 = 2 to 𝑡 = 3 and transitions to a sleeping state. At 𝑡 = 3, the scheduler selects the vCPU at the head of the run-queue. Because vCPU_RT was moved to the tail at 𝑡 = 2, vCPU_CPU1 resides at the head and takes the pCPU. Then, it executes from 𝑡 = 3 through 𝑡 = 10. The job released at 𝑡 = 0 has not completed by its implicit deadline 𝑡 = 10. Because vCPU_RT is currently runnable in the run-queue rather than sleeping, no wake-up boost is granted, and vCPU_RT remains near the tail of the run-queue without preempting vCPU_CPU1. Furthermore, because vCPU_CPU1’s round-robin time slice (CONFIG_SLICE_MS = 10 ms) has not expired, vCPU_CPU1 continues executing from 𝑡 = 10 to 𝑡 = 12. At 𝑡 = 12, a second I/O interrupt wakes vCPU_IO, which preempts vCPU_CPU1 and moves vCPU_CPU1 to the tail of the runqueue. vCPU_IO executes from 𝑡 = 12 to 𝑡 = 13 before returning to sleep. At 𝑡 = 13, the scheduler selects vCPU_CPU2 from the head of the runqueue, which executes from 𝑡 = 13 to 𝑡 = 16. At 𝑡 = 16, a third I/O interrupt wakes vCPU_IO, preempting vCPU_CPU2 and appending vCPU_CPU2 to the tail of the runqueue. vCPU_IO executes from 𝑡 = 16 to 𝑡 = 17 before returning to sleep. Finally, at 𝑡 = 17, vCPU_RT first completes the remaining 1 ms of job 1, which had already missed its deadline at 𝑡 = 10. It then starts job 2, which has only received 2 of its 3 ms by 𝑡 = 20, so job 2 also misses its deadline.
2.12
PRR (Priority Round Robin) scheduler
The PRR scheduler is a hybrid scheduling algorithm that combines a static priority policy with a Round-Robin mechanism for vCPUs operating at the same priority level. This scheduling model is implemented in the Xvisor hypervisor [50, 51]. 2.12.1
Parameters
Priority (vcpu->priority): A static integer assigned to each vCPU at creation time, ranging from 0 to 7, defining its relative execution tier. Time slice (vcpu->time_slice): A per-vCPU temporal execution quantum defined at setup that dictates the maximum continuous runtime allowed before Round-Robin preemption and tail rotation. Priority run-queue (rqi->list): An array of doubly linked list heads maintained per run-queue, indexed from 0 to 7, where each entry holds the active runnable vCPUs belonging to the associated priority level. 2.12.2
Selection criterion
The PRR scheduler applies a priority policy with Round-Robin head extraction. When a pCPU requires a new vCPU, the scheduler iterates through its priority run-queue array starting from the maximum priority index down to 0 to locate the first non-empty list. Upon identifying the highest active priority tier, the scheduler extracts the first vCPU waiting at the head of the list and assigns it an execution timer matching its time slice. If all priority lists are empty, the lookup fails, prompting the system to select the system IDLE vCPU.
26
2.12.3
Triggers
Scheduling decisions and context switches in the PRR scheduler are driven by four triggers: • Wake-up event (vmm_schedalgo_rq_enqueue): An asynchronous hardware interrupt or event wakes a sleeping vCPU. The scheduler enqueues the vCPU at the tail of the list matching its priority level and triggers a preemption check. • Voluntary sleep / block / yield (vmm_schedalgo_rq_detach): When a running vCPU completes its task or blocks on I/O, it is removed from its priority list, prompting the scheduler to select the next highest-priority candidate. • Time slice expiration: A hardware timer interrupt fires when the currently running vCPU exhausts its assigned time slice. The vCPU is preempted, detached from the head, and re-enqueued at the tail of its priority list, forcing a Round-Robin rotation to the next vCPU of identical priority. • Preemption trigger (vmm_schedalgo_rq_prempt_needed): When a higher-priority vCPU wakes up, the scheduler detects that a non-empty list exists at a priority level strictly greater than that of the currently running vCPU, forcing preemption. 2.12.4
Admission control
The PRR scheduler does not perform a workload feasibility test or evaluate aggregate CPU utilization, allowing an arbitrary number of vCPUs to be assigned to any priority level. At the algorithm level (vmm_schedalgo_prr.c), initialization checks are confined to defensive null-pointer and heap allocation verifications, returning an error code only if memory allocation fails. Parameters are, however, sanitized by vmm_manager.c when a vCPU is created from the device tree: the priority is clamped to [0, 7], a null time slice is replaced by the default (10 ms), the deadline is raised to at least the time slice, and the periodicity to at least the deadline (default deadline 100 ms, default periodicity 1s). Inconsistent parameters are thus silently adjusted rather than rejected, leaving the responsibility for preventing priority-tier starvation to offline system integration. 2.12.5
Pseudo-code
""" Parameters: priority: Static integer assigned to each vCPU at creation time (0 to 7). time_slice: Per-vCPU execution quantum dictating maximum continuous runtime before Round-Robin tail ↪ rotation. priority_rq: Array of priority runqueues indexed from 0 to 7. """ pick_next(priority_rq): # vmm_schedalgo_rq_dequeue() # Highest active priority tier lookup with Round-Robin head extraction for p in range(MAX_PRIORITY, -1, -1): if not priority_rq_is_empty(priority_rq[p]): return priority_rq_get_head(priority_rq[p]) return IDLE_VCPU on_tick(current_vcpu, delta_time): # vmm_schedalgo_rq_dequeue() """Trigger: Time slice expiration.""" current_vcpu.time_slice_left -= delta_time if current_vcpu.time_slice_left <= 0: current_vcpu.time_slice_left = current_vcpu.time_slice priority_rq_move_to_tail(current_vcpu) return pick_next(priority_rq) on_wake(vcpu, current_vcpu): # vmm_schedalgo_rq_enqueue() """Trigger: Asynchronous wake-up event.""" vcpu.state = RUNNABLE priority_rq_add_tail(vcpu) if vcpu.priority > current_vcpu.priority: trigger_preempt() on_sleep(vcpu):
# vmm_schedalgo_rq_detach()
27
"""Trigger: Voluntary yield / block / sleep.""" vcpu.state = SLEEP priority_rq_remove(vcpu) return pick_next(priority_rq)
2.12.6
Pros
The PRR scheduler ensures that higher-priority vCPUs execute without preemption from lower-priority ones. However, any real-time guarantee assumes that the system integrator bounds the execution demand of every vCPU at the same or higher priority levels, as the scheduler itself does not enforce budget caps or temporal isolation. For interactive workloads configured at high priority tiers, I/O responsiveness is strong, as asynchronous interrupt wake-ups place vCPUs into their priority queue and quickly trigger preemption against lower-priority running vCPUs. Regarding scheduler efficiency, the algorithm achieves constant time list manipulations for insertion and removal, utilizing direct array indexing that avoids complex list sorting. Its work-conserving nature also helps keep pCPUs busy whenever runnable vCPUs are available. Finally, it provides partitioned multicore support by maintaining independent per-pCPU priority run-queue structures. 2.12.7
Cons
Conversely, the PRR scheduler lacks fair CPU sharing across different priority tiers, as it lacks global weight or credit mechanisms to distribute pCPU cycles in fixed proportions. Its preemption model compromises temporal isolation because a high-priority vCPU that misbehaves or runs indefinitely can monopolize the pCPU. Consequently, mixedcriticality workloads remain susceptible to timing interference unless they are carefully partitioned or their priority assignments are appropriately managed by the system architect. Furthermore, static priority assignment creates a design trade-off between real-time guarantees and I/O responsiveness: elevating an interactive vCPU to a high priority tier to minimize I/O latency directly degrades the deadline guarantees of any lower-priority critical workloads it preempts. Finally, system configurability is restricted because scheduling parameters are static and assigned at vCPU creation time, preventing dynamic adjustments during hypervisor runtime without system reboots. 2.12.8
Timeline
The schedule under the PRR scheduler was derived from the rules presented in Section 2.12. The vCPUs are assigned to specific priority levels and individual Round-Robin time slices: vCPU_RT has the highest priority (time_slice = 4), vCPU_IO the second highest (time_slice = 1), and vCPU_CPU1 and vCPU_CPU2 share an identical, lower background priority level (time_slice = 2). RT
pCPU
RT
Release
RT
RT
IO
CPU1
CPU1
CPU2
CPU2
CPU1
CPU1
RT
RT
Release
RT
Wake
IO
CPU2
CPU2
IO
Wake
CPU1
CPU1
CPU2
Wake
IO CPU1 CPU2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Figure 10. Example timeline for PRR scheduler
At 𝑡 = 0, vCPU_RT releases its first period, is enqueued, and is picked as the highest-priority runnable vCPU. At 𝑡 = 2, an I/O interrupt wakes vCPU_IO. Because vCPU_RT holds a higher priority than vCPU_IO, vCPU_IO remains queued. At 𝑡 = 3, vCPU_RT completes its 3 ms requirement and sleeps. The scheduler selects vCPU_IO from the highest non-empty priority queue. vCPU_IO executes from 𝑡 = 3 to 𝑡 = 4 to handle its I/O event before sleeping. At 𝑡 = 4, with both higher-priority vCPUs asleep, the scheduler selects from the background priority queue. vCPU_ CPU1 is selected and executes for its 2 ms time slice from 𝑡 = 4 to 𝑡 = 6. At 𝑡 = 6, vCPU_CPU1’s quantum expires. It is enqueued at the tail of the background queue, allowing vCPU_ CPU2 (now at the head) to execute for its 2 ms quantum from 𝑡 = 6 to 𝑡 = 8. At 𝑡 = 8, vCPU_CPU2’s quantum expires, and vCPU_CPU1 resumes for another 2 ms time slice from 𝑡 = 8 to 𝑡 = 10.
28
At 𝑡 = 10, vCPU_RT releases its second period. Because vCPU_RT’s priority is the highest, it triggers preemption. vCPU_RT executes from 𝑡 = 10 to 𝑡 = 13. At 𝑡 = 12, an I/O interrupt wakes vCPU_IO, but no preemption occurs as vCPU_RT maintains higher priority. At 𝑡 = 13, vCPU_RT completes its execution and sleeps. The scheduler selects vCPU_IO, which executes from 𝑡 = 13 to 𝑡 = 14 before returning to sleep. At 𝑡 = 14, control returns to the background priority queue. Because vCPU_CPU2 was at the head of the queue, it is selected and executes its 2 ms quantum from 𝑡 = 14 to 𝑡 = 16. At 𝑡 = 16, a third I/O interrupt wakes vCPU_IO. Because vCPU_IO holds a higher priority than the background vCPUs, it preempts and executes from 𝑡 = 16 to 𝑡 = 17 before returning to sleep. At 𝑡 = 17, control returns to the background queue; since vCPU_CPU2’s quantum expired at 𝑡 = 16, vCPU_CPU1 is now at the head of the queue and executes its 2 ms quantum from 𝑡 = 17 to 𝑡 = 19. Finally, at 𝑡 = 19, vCPU_CPU1’s quantum expires, allowing vCPU_CPU2 to resume execution.
2.13
PRM (Priority Rate Monotonic) scheduler
The PRM scheduler is a hybrid scheduling algorithm that combines a priority policy with a Rate Monotonic mechanism for vCPUs sharing the same priority level. This scheduling model is implemented in the Xvisor hypervisor [50, 52]. 2.13.1
Parameters
Priority (vcpu->priority): A static integer assigned to each vCPU at creation time (ranging from 0 to 7), defining its primary execution tier. Periodicity (vcpu->periodicity): A per-vCPU temporal parameter representing the vCPU’s periodicity duration, used to order vCPUs within the same priority level according to the Rate Monotonic principle (shorter periods yield higher precedence). Time Slice (vcpu->time_slice): A temporal execution quantum allocated to a vCPU before preemption and re-insertion into its priority structure occur. Per-priority Red-Black trees (rqi->root): An array of Red-Black tree roots maintained per run-queue, indexed by priority level (from 0 to 7), where each tree stores active runnable vCPUs sorted in ascending order of their periodicity. 2.13.2
Selection criterion
The PRM scheduler applies a highest-priority lookup with Rate Monotonic Red-Black tree extraction. When a pCPU requires a new vCPU, the scheduler iterates through its priority array starting from the maximum priority index down to 0 to locate the first non-empty priority tier. Once the highest active priority tier is identified, the scheduler extracts the leftmost node from the corresponding Red-Black tree, which represents the runnable vCPU with the shortest periodicity. If all priority trees are empty, the lookup fails, prompting the system to select the system IDLE vCPU. 2.13.3
Triggers
Scheduling decisions and context switches in the PRM scheduler are driven by four triggers: • Wake-up event (vmm_schedalgo_rq_enqueue): An asynchronous hardware interrupt or event wakes a sleeping vCPU. The scheduler inserts the vCPU into the Red-Black tree corresponding to its priority level based on its periodicity and triggers a preemption check. • Voluntary sleep / block / yield (vmm_schedalgo_rq_detach): When a running vCPU completes its task or blocks waiting for I/O, it is removed from its priority tree, prompting the scheduler to select the next highest-priority, shortest-periodicity candidate. • Time slice expiration: A hardware timer fires when the currently running vCPU exhausts its assigned time slice. The vCPU is preempted and re-inserted into its Red-Black tree, forcing a context switch to the next eligible vCPU. • Preemption trigger (vmm_schedalgo_rq_prempt_needed): When a vCPU wakes up, the algorithm evaluates if preemption is required. Due to the codebase implementation gap (/* TODO: check lowest periodicity of highest priority with vcpu */), preemption is strictly triggered only when a non-empty tree exists at a priority tier strictly greater than that of the currently running vCPU. Preemption is not triggered for vCPUs at the same priority level, even if the newly awakened vCPU possesses a shorter periodicity. 29
2.13.4
Admission control
PRM does not perform a workload feasibility test: although grounded in Rate Monotonic scheduling theory, PRM omits classical schedulability checks (e.g., verifying that cumulative CPU utilization satisfies Liu and Layland’s bound [11]). At the algorithm level (vmm_schedalgo_prm.c), vCPU setup validation is confined to defensive null-pointer and dynamic memory allocation checks. Parameters are, however, sanitized by vmm_manager.c when a guest vCPU is created from the device tree: the priority is clamped to [0, 7], a null time slice is replaced by the default (10 ms), the deadline is raised to at least the time slice, and the periodicity to at least the deadline (default deadline 100 ms, default periodicity 1s). Inconsistent parameters are thus silently adjusted rather than rejected, shifting the full responsibility for timing feasibility and starvation prevention to offline system integration. 2.13.5
Pseudo-code
""" Parameters: priority: Static integer assigned to each vCPU at creation time (0 to 7), defining its primary execution ↪ tier. periodicity: Temporal parameter representing vCPU periodicity duration; shorter periods give higher ↪ precedence (Rate Monotonic). time_slice: Temporal execution quantum allocated to a vCPU before preemption and tree re-insertion. priority_rbtree: Array of Red-Black tree roots indexed from 0 to 7, storing runnable vCPUs sorted by ↪ ascending periodicity. """ pick_next(priority_rbtree): # vmm_schedalgo_rq_dequeue() # Highest priority tier lookup with Rate Monotonic (shortest periodicity) tree extraction for p in range(MAX_PRIORITY, -1, -1): if not rbtree_is_empty(priority_rbtree[p]): return rbtree_get_min_periodicity(priority_rbtree[p]) return IDLE_VCPU on_tick(current_vcpu, delta_time): # vmm_scheduler_next() """Trigger: Time slice expiration / hardware timer interrupt.""" rbtree_reinsert_by_periodicity(current_vcpu) return pick_next(priority_rbtree) on_wake(vcpu, current_vcpu): # vmm_schedalgo_rq_enqueue() """Trigger: Asynchronous wake-up event / higher-priority preemption.""" vcpu.state = RUNNABLE rbtree_insert_by_periodicity(vcpu) if vcpu.priority > current_vcpu.priority: # vmm_schedalgo_rq_prempt_needed() trigger_preempt() on_sleep(vcpu): # vmm_schedalgo_rq_detach() """Trigger: Voluntary yield / block / sleep.""" vcpu.state = SLEEP rbtree_remove(vcpu) return pick_next(priority_rbtree)
2.13.6
Pros
First, PRM orders vCPUs within each priority level by periodicity, systematically prioritizing vCPUs with shorter periods. However, any real-time guarantee assumes that the system integrator bounds the execution demand of every vCPU at the same or higher priority levels, as the scheduler itself does not enforce budget caps or vCPU isolation. By utilizing per-priority Red-Black trees, the algorithm achieves a logarithmic time complexity for insertion and removal operations, maintaining bounded scheduler efficiency. For interactive workloads, I/O responsiveness can be strong provided they are assigned high-priority tiers. As a work-conserving policy, it keeps pCPUs occupied whenever runnable vCPUs are available. Finally, it provides partitioned multicore support by maintaining independent per-pCPU run-queue structures.
30
2.13.7
Cons
One principal limitation of the PRM scheduler is its lack of fair CPU sharing across priority tiers. Also, preemption compromises temporal isolation, because a high-priority vCPU or a vCPU with an extremely short periodicity can monopolize the pCPU and cause execution starvation for lower-priority vCPUs. Consequently, mixed-criticality workloads remain susceptible to interference caused by misbehaving vCPUs. Furthermore, because the scheduler leaves same-priority periodicity evaluation as an unfulfilled TODO stub, a newly awakened vCPU with a shorter periodicity cannot preempt a running vCPU at the same priority tier, degrading real-time responsiveness for peer periodic vCPUs. Static priority and periodicity assignments also create a design trade-off between real-time guarantees and I/O responsiveness: elevating an interactive vCPU to a high priority tier directly degrades the deadline guarantees of lower-priority critical workloads. Finally, system configurability is restricted because scheduling parameters are static and assigned at vCPU creation time, preventing adjustments during hypervisor runtime without system reboots. 2.13.8
Timeline
The schedule under the PRM scheduler was derived from the rules presented in Section 2.13. The vCPUs are assigned to specific priority levels, periods, and time slices: vCPU_RT has the highest static priority (deadline = periodicity = 10, time_slice = 4), vCPU_IO the second highest (deadline = periodicity = 6, time_slice = 1), and vCPU_CPU1 (deadline = periodicity = 10, time_slice = 2) and vCPU_CPU2 (deadline = periodicity = 15, time_slice = 2) share an identical, lower priority level. RT
pCPU
RT
Release
RT
RT
IO
CPU1
CPU1
CPU1
CPU1
CPU1
CPU1
RT
RT
Release
RT
Wake
IO
CPU1
CPU1
IO
CPU1
CPU1
CPU1
Wake
IO CPU1 CPU2
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Figure 11. Example timeline for PRM scheduler
At 𝑡 = 0, vCPU_RT releases its first period, is inserted into the run-queue, and is selected as the highest priority vCPU. At 𝑡 = 2, an I/O interrupt wakes vCPU_IO. Because vCPU_RT holds a higher priority than vCPU_IO, vCPU_IO is inserted into its priority level’s red-black tree. At 𝑡 = 3, vCPU_RT completes its 3 ms execution requirement and sleeps. The scheduler selects vCPU_IO from the highest non-empty priority tree. vCPU_IO executes from 𝑡 = 3 to 𝑡 = 4 before sleeping. At 𝑡 = 4, the scheduler extracts the leftmost node of the background tree, vCPU_CPU1 (periodicity 10). Each time its time slice expires, vCPU_CPU1 is re-inserted into the tree according to its periodicity and, being shorter than that of vCPU_CPU2 (15), it is again the leftmost node and is immediately re-selected. Then, vCPU_CPU2 starves for as long as vCPU_CPU1 remains runnable. At 𝑡 = 10, vCPU_RT releases its second period. Because vCPU_RT’s priority is the highest, it triggers preemption. vCPU_RT executes from 𝑡 = 10 to 𝑡 = 13. At 𝑡 = 12, an I/O interrupt wakes vCPU_IO, but no preemption occurs as vCPU_RT maintains higher priority. At 𝑡 = 13, vCPU_RT completes its 3 ms execution time and sleeps. The scheduler selects vCPU_IO, which executes from 𝑡 = 13 to 𝑡 = 14 before sleeping. At 𝑡 = 14, vCPU_CPU1 (periodicity = 10) is selected once again over vCPU_CPU2 (periodicity = 15) due to its shorter periodicity in the red-black tree sorting, executing from 𝑡 = 14 to 𝑡 = 16. At 𝑡 = 16, a third I/O interrupt wakes vCPU_IO. Because vCPU_IO holds a higher priority than vCPU_CPU1, vCPU_IO preempts vCPU_CPU1 and executes from 𝑡 = 16 to 𝑡 = 17 before returning to sleep. Finally, at 𝑡 = 17, control returns once again to vCPU_CPU1, which executes continuously from 𝑡 = 17 to 𝑡 = 20 due to its shorter periodicity in the red-black tree, leaving vCPU_CPU2 completely starved over the entire 20 ms horizon.
2.14
Synthesis of the reference schedules
Table 3 summarizes the reference schedules derived above over 20 ms. These values are not performance measurements: they result from a single workload, specific parameter choices and given initial state. Their purpose is to make visible, on a common example, the mechanisms identified in the code: reserved windows left idle (ARINC653), the starvation 31
of a vCPU sharing a priority level (Priority-based, PRM), the precedence given to any waking vCPU (IORR), the deferrable-server latency of a vCPU waking with an exhausted budget (RTDS), and the dependence of wake-up latency on accumulated state (Credit2, BVT). Table 3. Analytical comparison of the reference schedules derived under the workload scenario described in Section 2.3. Metrics report real-time job deadline fulfillment (Done/Missed), wake-up latencies for sporadic I/O events, total execution time for background vCPUs (CPU1, CPU2), and total pCPU idle time (all latencies and execution times are expressed in ms).
RT job deadline
IO wake-up latency
Execution time
Scheduler
Job 1
Job 2
Wake-up 1
Wake-up 2
Wake-up 3
CPU1
CPU2
Idle time
ARINC653 Credit Credit2 RTDS Priority-based BVT IORR PRR PRM
Done Done Done Done Done Done Missed Done Done
Done Done Done Done Done Done Missed Done Done
2 1 1 0 1 3 0 1 1
2 1 0 0 1 0 0 1 1
8 0 0 2 0 0 0 0 0
4 9 4 6 11 4 9 6 11
4 2 7 5 0 7 3 5 0
4 0 0 0 0 0 0 0 0
Table 3 highlights the trade-offs between the schedulers on this workload. Only IORR misses the real-time deadlines, whereas all other schedulers meet them. Under IORR, vCPU_RT is preempted once at 𝑡 = 2 by the waking vCPU_IO and rotated to the tail of the run-queue behind vCPU_CPU1 and vCPU_CPU2. Consequently, vCPU_CPU1 claims the pCPU at 𝑡 = 3 for its 10 ms slice; when the second job of vCPU_RT is released at 𝑡 = 10, vCPU_RT is still runnable in the queue rather than transitioning from blocked to ready, so it never benefits from head-of-queue wake-up insertion. In exchange, IORR provides the best I/O responsiveness, with no wake-up latency (0 ms) for the three I/O events. ARINC653 shows the opposite behavior. Its time windows protect vCPU_RT, which meets both deadlines, but I/O requests must wait for the window of vCPU_IO: the first two wake-ups wait 2 ms, and the third waits 8 ms. It is also the only scheduler that leaves the pCPU idle (4 ms), since a window is not reassigned when its owner has nothing to run. This is the cost of temporal partitioning: strong isolation and predictability, but lower reactivity and lower utilization. RTDS achieves a balanced trade-off on this workload between deadline preservation, reactivity, and utilization. Both real-time deadlines are met, albeit with a longer response time for vCPU_RT (7 ms for job 1, versus 3 ms under fixedpriority schedulers, due to EDF tie-breaking with vCPU_CPU1), while the first two I/O events are served immediately and the third waits 2 ms for budget replenishment. Moreover, the pCPU is never left idle, as unreserved time is reclaimed by the background vCPUs thanks to the extratime flag. The remaining schedulers meet the real-time deadlines but differ in how they allocate the remaining 11 ms of pCPU time between the background vCPUs. Priority-based and PRM give unbalanced shares (11 ms for vCPU_CPU1 and 0 ms for vCPU_CPU2): in the Priority-based scheduler, equal-priority vCPUs (PRIO_LOW) have no time slice so the first background vCPU runs without yielding, whereas in PRM, even when vCPU_CPU1’s time slice expires, its shorter periodicity (10 ms vs. 15 ms) places it back at the leftmost position of the Red-Black tree, starving vCPU_CPU2. PRR avoids this starvation thanks to its 2 ms Round-Robin time slices (6 ms vs. 5 ms). Conversely, the asymmetric shares observed for Credit (9 ms vs. 2 ms) and BVT (4 ms vs. 7 ms) result from the 20 ms observation window and the initial ordering rather than long-term fairness properties, whereas the asymmetry observed for Credit2 (4 ms vs. 7 ms) is the intended effect of a parameter choice. In Credit, fairness is enforced over 30 ms accounting periods (csched_acct) that lie beyond the 20 ms trace. In BVT, vCPU_CPU2 enters the 𝑡 = 20 window with a lower accumulated virtual time (160 vs. 192). In Credit2, vCPU_CPU1 is explicitly restricted to 4 ms (2 ms per 10 ms period) by its 20% utilization cap, which leaves the remaining 7 ms to the uncapped vCPU_CPU2. Finally, for I/O responsiveness, Credit, Credit2, Priority-based, PRR, and PRM serve all I/O events with at most 1 ms of latency, whereas BVT delays the first I/O event (𝑡 = 22) by 3 ms because vCPU_RT (clamped to the same baseline SVT = 160 inherited from the initial CPU1/CPU2 progression) precedes vCPU_IO in FIFO order and executes from 𝑡 = 22 to 𝑡 = 25. Fault scenario (overrun of vCPU_RT). To illustrate temporal isolation on the reference timeline, a fault scenario is evaluated in which the first job of vCPU_RT released at the start of the observation window requires 8 ms of execution instead of 3 ms, while all other parameters remain unchanged. As confirmed by the executable models (Table 4), only three policies prevent the overrun from degrading vCPU_IO and background execution: ARINC653 (which confines vCPU_RT to its 4 ms minor frame per 10 ms major frame), RTDS (which suspends vCPU_RT when its 3 ms budget is exhausted, at 𝑡 = 7 and again at 𝑡 = 14), and IORR (where the wake-up of vCPU_IO at 𝑡 = 2 ms preempts vCPU_RT 32
Table 4. Containment of vCPU_RT overruns under each scheduling policy Policy
IO 1 latency (nominal → fault)
Overrun contained?
Mechanism
ARINC653
2→2
Yes
RT is confined to its 4 ms window; IO, CPU1, and CPU2 are unaffected; RT only misses its own deadlines.
Credit
1→6
No
RT keeps BOOST until a tick finds it running (𝑡 = 10); IO, also in BOOST, waits behind RT in FIFO order.
Credit2
1→1
Partial
Proportional sharing: CPU1 and CPU2 still receive their slices, but RT has no hard bound (unless a cap is set).
RTDS
0→0
Yes
Budget of 3 ms per 10 ms: RT is exhausted at 𝑡 = 7 and again at 𝑡 = 14; IO and background vCPUs are unaffected.
Priority-based
1→6
No
RT at PRIO_HIGH runs for 8 ms; IO (same priority level) is queued behind it.
BVT
3→5
Partial
Proportional sharing; the RT quantum (CSA = 5 ms) delays IO.
IORR
0→0
Yes (by rotation)
RT is placed at the tail of the queue regardless of its needs; RT itself is not protected.
PRR
1→6
No
The 4 ms time slice expires, but RT is alone at its level and resumes immediately.
PRM
1→6
No
Same as PRR.
and rotates it to the tail of the run-queue). Conversely, Credit2 and BVT bound the overrun proportionally through credit consumption and virtual-time advancement, whereas Credit, Priority-based, PRR, and PRM propagate the full 5 ms overrun to vCPU_IO, increasing its first wake-up latency from 1 ms to 6 ms. Beyond the normal-operation schedules of Table 3, the code-level analysis conducted in Sections 2.4 to 2.13 reveals several discrepancies between published algorithm descriptions or hypervisor documentation and the actual kernel implementations. Table 5 consolidates these findings by mapping each documented behavior to its exact source-code location at the frozen commits of Table 2 and stating its practical consequence for the system integrator.
2.15
Threats to validity
Construct validity. The nine qualitative criteria defined in Section 2.2 involve architectural trade-offs, and summarizing them in Table 6 requires structured judgment. To mitigate subjectivity, Section 3 defines explicit operational rules for each rating symbol (✓, (✓), ✗), and every rating is traced directly to the source-code mechanisms analyzed in Sections 2.4 to 2.13. Internal validity. The reference schedules of Sections 2.5 to 2.13 were derived from the source code under explicit simplifying assumptions: zero hypervisor scheduling and context-switch overhead, a 1 ms time resolution, a periodic tick phase aligned with 𝑡 = 0 (for Credit and IORR), and simultaneous event processing prior to rescheduling (Section 2.3). In Credit, this phase assumption is critical: with the accounting tick shifted by 1 ms (𝑡 = 1 + 10𝑘), the tick at 𝑡 = 1 ms clears the BOOST priority of vCPU_RT before the first wake-up of vCPU_IO at 𝑡 = 2 ms; vCPU_IO then preempts vCPU_RT, which is requeued behind the two background vCPUs and misses both deadlines on the reference workload (whereas tick phases 0, 2, 4, or 5 ms preserve the schedule of Figure 4). Where the kernel code leaves the ordering of simultaneous timer events to runtime queue traversal (such as at 𝑡 = 10 in Credit2 and RTDS), the chosen ordering and its alternative are stated explicitly in the text. Both the code reading and the schedule derivations were cross-checked against the frozen source files by the authors. Each schedule in Figures 3–11 and the metrics in Table 3 were re-derived and cross-checked with an executable Python model of the scheduling rules, provided as a public research artifact [53]. Because these models encode the same code reading as the paper, they guarantee reproducibility and internal consistency rather than independent empirical validation. An independent validation would require execution traces collected on a running hypervisor (e.g., via xentrace on Xen or ACRN under QEMU), which is left to future work. External validity. All code-level findings apply to the frozen repository commits listed in Table 2, and behavioral differences with the latest official releases are documented in Section 2.1. Furthermore, the reference workload is an analytical illustration on a single pCPU rather than an empirical benchmark: end-to-end real-time performance on physical targets remains subject to hardware interrupt latency, shared cache/memory contention, and guest OS scheduling. 33
Table 5. Deviations between documented and implemented behaviors across the surveyed scheduling policies (addressing RQ2). Code locations refer to file, function, and line numbers at the frozen commits listed in Table 2. Policy
Documented behavior
Implemented behavior (code location)
Consequence for the integrator
BVT (ACRN)
Temporal warp lowers the EVT of latency-sensitive vCPUs [14, 48]; warp parameters are defined in data structures.
sched_bvt.c: warp disabled at initialization (warp_on = false, l. 213); warp subtraction left as a comment in update_vt() and sched_ bvt_wake() (/* TODO */, l. 248, 327), forcing EVT = AVT.
Warp parameters have no effect; BVT acts as a standard weighted fair-share scheduler without lowlatency preemption, despite being ACRN’s default (config.xsd, l. 56).
Priority-based (ACRN)
Static priority-based scheduling [47].
types.xsd (l. 170–179) exposes only two schema values (PRIO_LOW, PRIO_HIGH), though sched_prio.c (l. 14, 35) stores an int. prio_ queue_add() (l. 52–74) inserts in FIFO order
Only two priority tiers are usable without modifying the configuration schema; the first runnable vCPU in a tier executes until it blocks, starving same-tier peers.
sched_iorr.c: CONFIG_SLICE_MS is hardcoded
No tunable parameters exist; any frequently waking vCPU unconditionally preempts the running vCPU and can delay periodic workloads.
vmm_schedalgo_prm.c, vmm_schedalgo_rq_ prempt_needed() (l. 190–214): preemption is
A waking vCPU with a shorter period cannot preempt a running vCPU at the same priority level and must wait for it to block or exhaust its slice.
vCPU
among equals without time-slicing.
IORR (ACRN)
Round-Robin with I/O sensitivity [49].
PRM (Xvisor)
Rate Monotonic periodicity ordering within each priority tier [52].
to 10 ms (l. 12) and forced at initialization (l. 162); every wake-up inserts directly at the run-queue head (sched_iorr_wake(), l. 212– 214).
triggered only for a strictly higher priority tier; same-tier periodicity check is unimplemented (/* TODO */, l. 211).
PRR, PRM (Xvisor)
Priority, time slice, deadline, and periodicity are configurable pervCPU parameters [50].
vmm_manager.c: priority is clamped to [0, 7] (l. 1303–1308), a null slice is replaced by 10 ms (l. 1396–1398), deadline is raised to at least the slice (l. 1403–1405), and periodicity to at least the deadline (l. 1410–1412).
Inconsistent timing parameters in the device tree are silently rewritten rather than rejected with an error.
Credit (Xen)
Waking I/O vCPUs receive a BOOST priority elevation [40, 41].
credit.c, csched_unit_wake() (l. 1164–1169): BOOST is granted only if the vCPU is UNDER; csched_unit_acct() (l. 957–961) clears BOOST
OVER vCPUs receive no wake-up boost; a boosted vCPU retains BOOST across sleep/wake cycles until a tick catches it running; multiple BOOST vCPUs are served in FIFO order.
only when the 10 ms tick samples the vCPU running; __runq_tickle() (l. 405, 455) preempts only on strictly higher priority. Credit2 (Xen)
Sleeping vCPUs preserve their credits to favor I/O responsiveness [41, 42].
credit2.c, reset_credit() (l. 1783–1839): when the run-queue head reaches ≤ 0 credits, all vCPUs (including sleeping ones) are reset and clipped to CREDIT_INIT + CARRYOVER_MAX (10.5 ms, l. 1838–1839).
Credit preservation for sleeping I/O vCPUs is bounded by the next global credit reset; utilization caps act as periodic parking budgets rather than deferrable servers.
RTDS (Xen)
Budget/period reservations under Global EDF [44–46].
rt.c: rt_try_set_utilization() (l. 706–721)
Online∑admission control checks only budget∕period ≤ 𝑀, which is a necessary but insufficient schedulability condition under Global EDF with deferrable servers.
ARINC653 (Xen)
Static cyclic time-table scheduling [36, 37].
arinc653.c, arinc653_sched_set() (l. 235–
Enforces frame-fit admission control only; execution is restricted to a single pCPU per scheduling pool.
rejects configurations exceeding total capacity with -ENOSPC (l. 1584, 1653). Added in commits 5772eaa and 04584da (21/09/2026); absent from release 4.22.0.
270) checks
∑
≤ major_frame; a653sched_pick_resource() assigns all units to the first pCPU of the pool.
34
runtime
3
Qualitative comparison and selection guide
The previous section analyzed each algorithm separately and compared their behavior on a single reference workload. This section generalizes these observations. Table 6 summarizes how each algorithm satisfies the nine evaluation criteria defined in Section 2.2, based on the code-level mechanisms described in Sections 2.4 to 2.13. For the six behavioral criteria, each symbol follows an operational rating rule: a tick (✓) indicates that the scheduling mechanism natively guarantees the property for all admissible parameter configurations by construction; a parenthesized tick ((✓)) indicates conditional support, meaning that the property holds only under specific offline configuration or schedulability assumptions placed on the system integrator (detailed in the notes below Table 6 and anchored in scheduling theory in Table 7); a cross (✗) indicates that no mechanism in the scheduler can provide the property; and n/a means that the criterion is not applicable. The ratings were derived directly from the code-level mechanisms identified in Sections 2.4 to 2.13 and cross-reviewed by all authors to ensure consistency across hypervisors. Table 6 is then used to construct a decision tree (Figure 12) that guides the system architect in selecting a scheduler according to application requirements.
I/O responsiveness
Workconserving
Fair sharing
Mixed-criticality support
Static partitioning ✓
✓
✓
✗
n/a
✓
(1), no scheduler
ARINC653 Credit
✓ ✗
(✓) ✗
✗ (✓)
✗ ✓
✗ (✓)
✓ ✗
Credit2
✗
✗
(✓)
✓
(✓)
✗
RTDS Priority BVT
(✓) ✗ ✗
(✓) (✓) ✗
(✓) (✓) (✓)
(✓) ✓ ✓
✗ ✗ ✓
(✓) (✓) ✗
IORR PRR PRM
✗ ✗ ✗
✗ (✓) (✓)
✓ (✓) (✓)
✓ ✓ ✓
(✓) (✓) ✗
✗ (✓) (✓)
(1) lookup (1) pick, (𝑁) insert/acct (1) pick, (𝑁) insert/EWMA (1) pick, (𝑁) insert (1) pick, (𝑁) insert (𝑁) pick/insert/VT update (1) pick/insert (1) pick/insert (log 𝑁) pick/insert
Policy
Temporal isolation
RT guarantees
Table 6. Comparative evaluation of scheduling policies across qualitative criteria. Symbols denote full support (✓), conditional support ((✓)), and lack of support (✗).
Efficiency and scalability
Configurability
Multicore
build/boot; runtime for Xen runtime runtime
partitioned uniprocessor global
runtime
global
runtime build build
global partitioned partitioned
none boot boot
partitioned partitioned partitioned
Notes on conditional support (✓) in Table 6: Temporal isolation: In RTDS, budget policing prevents any vCPU from exceeding its reservation, but guaranteeing that each vCPU receives its full budget in every period requires the set of deferrable servers to be schedulable under global EDF. However, the hypervisor admission check only verifies that total utilization does not exceed platform capacity (in the Xen development branch only, Section 2.1; absent from Xen 4.22.0), which is a necessary but insufficient condition (due to Dhall’s effect [54] and back-to-back deferrable server execution [55]). RT guarantees: In ARINC 653, guarantees hold if the integrator aligns minor/major frames offline with vCPU periods and WCETs. In RTDS, guarantees hold if the reservation set satisfies global EDF schedulability bounds with deferrable servers, which the integrator must verify offline as the online admission test only checks total capacity. In Priority, PRR, and PRM, guarantees for high-priority vCPUs hold only if the integrator strictly bounds the execution demand of all vCPUs at the same or higher priority tiers (and additionally in PRM, shares no priority tier among periodic vCPUs due to the unimplemented same-priority preemption TODO). I/O responsiveness: In Credit, Credit2, and BVT, low wake-up latency holds only if the waking I/O vCPU has not exhausted its credits (UNDER state in Credit, competitive credit balance in Credit2) or has slept long enough to be clamped to SVT in BVT (since the warp mechanism is left as an unimplemented TODO). In RTDS, immediate preemption occurs only if the waking I/O vCPU has remaining budget in its current period and an earlier deadline. In Priority, PRR, and PRM, low dispatch latency requires assigning the I/O vCPU to a high static priority tier. Work-conserving: RTDS is work-conserving only when the integrator enables the optional extratime flag on vCPUs. Otherwise, depleted vCPUs are strictly throttled even if the pCPU goes idle. Fair sharing: IORR and PRR only provide egalitarian Round-Robin time-slicing (equal fixed quanta rather than weighted shares), and in PRR this sharing is restricted to vCPUs operating within the exact same priority tier. Credit and Credit2 are rated (✓) because proportional sharing holds only for uncapped VMs (configuring a hard cap overrides proportional weight allocation) and only over multiple accounting periods (Credit) or credit resets (Credit2), with 35
short-term distortions caused by BOOST wake-ups or credit saturation. In BVT, proportional sharing holds once the initial wake-up transient has elapsed. Mixed-criticality support: None of the analyzed hypervisors implements Vestal-style criticality mode changes. Mixed-criticality support here refers to safely co-locating workloads of different criticality levels without temporal interference. In RTDS, it is supported because per-vCPU budgets prevent overruns and extratime demotes best-effort execution to a lower priority tier, provided the tier-0 reservation set is shown schedulable offline. In Priority, PRR, and PRM, safe co-location holds only if critical vCPUs are assigned strictly higher priorities and their execution demand is bounded offline by the integrator. To anchor the conditional guarantees ((✓)) of Table 6 in real-time scheduling theory, Table 7 summarizes the formal schedulability analysis frameworks applicable to each policy for offline verification by the system integrator. Table 7. Applicable real-time schedulability analysis frameworks for establishing the conditional guarantees ((✓)) of Table 6. Policy
Applicable schedulability and isolation analysis
Key references
Static partitioning
No hypervisor-level scheduling; each guest OS is analyzed as on bare metal, with worst-case execution time (WCET) bounds inflated for shared cache and memory-bus contention.
[13, 35]
ARINC653
Compositional/hierarchical scheduling using Periodic or Explicit Deadline Periodic (EDP) resource models: each vCPU partition supplies (𝑄, 𝑃 ) capacity, against which guest tasks are validated via supply-bound functions.
[39, 56]
RTDS
Each deferrable server is modeled as a sporadic task of period 𝑃 , execution demand 𝑄, and release jitter 𝑃 − 𝑄, to which a global EDF schedulability test or virtual-clustering analysis is applied.
[54, 55, 57, 58]
Priority-based, PRR, PRM
Fixed-priority Response-Time Analysis (RTA) at the vCPU level, assuming the integrator strictly bounds the execution demand and minimum inter-arrival time of all higher- or equal-priority vCPUs. Intra-tier FIFO (Priority), time-slicing (PRR), or non-preemptive periodicity order (PRM) must be modeled as blocking terms. These bounds must hold by construction of the guests, since none of the three schedulers enforces a budget (Sections 2.9.4, 2.12.4, and 2.13.4).
[59, 60]
Credit, Credit2, BVT
Proportional-share lag bounds (GPS/PGPS) characterize long-term bandwidth allocation, but no established hard real-time schedulability analysis covers wakeup BOOST (Credit), global credit reset clipping (Credit2), or SVT clamping without warp (BVT).
[18, 19]
IORR
None: unconditional head-of-queue insertion upon every wake-up prevents analytical bounding of worst-case response times for runnable vCPUs.
—
Table 6 confirms the observations of Section 2.14: no single algorithm satisfies all criteria simultaneously, as structural trade-offs oppose strict isolation, resource utilization, fairness, and runtime overhead. Based on these trade-offs, the ten policies fall into three distinct architectural groups: Strong isolation, deterministic mixed-criticality, low utilization. Static partitioning and ARINC653 are the only mechanisms that provide strict temporal isolation by construction, either through dedicated physical cores or fixed cyclic time windows. Consequently, they natively support mixed-criticality workloads with (1) scheduling efficiency and minimal runtime overhead, which simplifies the safety certification argument. However, this determinism carries a severe utilization cost: neither policy is work-conserving, as unused pCPU cycles within an idle core or an early-completing minor frame are permanently lost. Furthermore, while Static partitioning achieves immediate I/O responsiveness through direct hardware assignment, ARINC653 delays asynchronous I/O events until the vCPU’s next scheduled minor frame, as demonstrated in the timeline of Section 2.5. These policies are therefore suited to hard real-time and safety-critical workloads with stable, well-characterized execution demands. Proportional resource sharing without strict real-time or mixed-criticality guarantees. Credit, Credit2, BVT, and IORR are work-conserving policies designed to maximize pCPU utilization, with the first three distributing CPU time proportionally to vCPU weights. However, none of them provides real-time guarantees or safe mixed-criticality support, because they lack deadline awareness and prioritize interactive fairness over deterministic isolation. While Credit and Credit2 allow administrators to limit a vCPU’s consumption via execution caps, this mechanism only enforces an upper utilization bound over a time window and does not prevent short-term preemption jitter from waking vCPUs. Their I/O responsiveness relies on best-effort heuristics (BOOST priority in Credit, sleep credit preservation in Credit2, SVT alignment in BVT since warp remains unimplemented, and head-of-queue wake-up insertion in IORR). In terms of scheduler efficiency, IORR uses (1) pointer manipulations (albeit driven by a 1 ms periodic timer tick), whereas Credit, Credit2, and BVT add periodic accounting (Credit), EWMA load tracking (Credit2), or virtual-time arithmetic (BVT) alongside (𝑁) sorted queue insertions. These algorithms are suited to general-purpose or soft real-time workloads where average throughput and fairness outweigh strict deadline guarantees. 36
Priority and deadline-driven scheduling. Priority, PRR, PRM, and RTDS establish an explicit execution hierarchy that favors critical or urgent workloads. The three fixed-priority schedulers (Priority, PRR, and PRM) deliver fast I/O responsiveness and predictable execution to high-priority vCPUs, with high scheduler efficiency, ranging from (1) array/list extractions in PRR to (log 𝑁) Red-Black tree lookups in PRM, and purely event-driven (1) head selection (albeit (𝑁) wake-up insertion) in ACRN’s Priority scheduler. However, because they lack budget enforcement, they support real-time and mixed-criticality workloads only under the assumption that the system integrator bounds the execution demand of higher-priority vCPUs offline. Otherwise, a misbehaving high-priority vCPU will monopolize the pCPU and starve lower tiers. Moreover, Priority and PRM provide no fair sharing among equal-priority or background vCPUs, whereas PRR enforces egalitarian Round-Robin rotation within each priority tier. Conversely, RTDS is a dynamic policy that enforces per-vCPU budgets while offering work-conserving slack reclamation (through extratime), which supports mixed-criticality co-location and real-time guarantees provided the reservation set is shown schedulable under global EDF with deferrable servers (as its admission test only checks total utilization). However, RTDS does not provide fair sharing among extratime vCPUs, and its multicore scalability is constrained by a global spinlock protecting an (𝑁) deadline-ordered run-queue across all pCPUs. Practical deployment constraints: Configurability and Multicore scalability. Beyond pure scheduling logic, the Configurability, Scheduler efficiency, and Multicore columns introduce decisive architectural constraints. Several schedulers bind their parameters statically at build time (Priority, BVT) or boot time (PRR, PRM), and IORR offers no configurable parameters at all. Only Xen’s schedulers (ARINC653, Credit, Credit2, RTDS, and null) support online runtime reconfiguration via hypercalls. Finally, multicore architectures dictate how scheduling overhead scales with core count: partitioned schedulers (Static partitioning, Priority, BVT, IORR, PRR, PRM) instantiate independent per-pCPU run-queues, completely eliminating cross-core lock contention and vCPU migration overheads at the cost of static core-to-vCPU bin-packing. In contrast, global schedulers (Credit, Credit2, RTDS) dynamically balance load across pCPUs via work-stealing, topology-aware EWMA migration, or a shared global EDF queue, maximizing hardware utilization at the expense of higher synchronization overhead and cache invalidation penalties. Importantly, the “global” and “partitioned” labels in Table 6 describe each scheduler’s default design rather than its only possible deployment mode. In Xen, the integrator can restrict any scheduler to a disjoint subset of pCPUs via cpupools and pin vCPUs to specific cores via hard affinity: for instance, instantiating one single-pCPU RTDS cpupool per core transforms Global EDF into partitioned EDF, eliminating cross-core lock contention and migration. Similarly, Credit2 supports a boot-time run-queue granularity parameter (per-pCPU, core, socket, NUMA node, or global), allowing clustered scheduling. When global scheduling is retained, integrators must account for well-known multiprocessor pitfalls, including cross-core migration and cache-reload delays [60], utilization loss under Global EDF (Dhall’s effect [54]), and back-to-back deferrable server execution across pCPUs [55]. These observations lead to the decision tree in Figure 12, which guides the system architect from hardware and application constraints to the simplest matching policies. Importantly, answering “No” to a question means that a property is not required by the application, not that policies providing it are forbidden. Therefore, each leaf highlights the most parsimonious schedulers satisfying the path. The first question (Step 1) separates systems that can afford a dedicated pCPU per vCPU (where Static partitioning (Bao, Xen null, ACRN NOOP) eliminates scheduling overhead altogether) from consolidated systems where multiple vCPUs must share a pCPU. When pCPUs are shared, Step 2 asks whether critical vCPUs require strict temporal isolation (a guaranteed pCPU share regardless of competing workloads). If so (Step 3), the choice lies between ARINC653, when an offline table-driven schedule and non-work-conserving idle losses are acceptable, and RTDS, when EDF reservations must be combined with work-conserving slack reclamation via extratime. Conversely, if strict temporal isolation is not required, Step 4 distinguishes proportional weighted sharing from priority-based or latency-driven execution. When weighted sharing is needed (Step 5), Credit and Credit2 are required if weights or upper-bound caps must be adjusted at runtime, whereas BVT provides a static build-time alternative (alongside Credit and Credit2). Finally, when weighted sharing is not required (Step 6), systems with a static importance hierarchy between vCPUs map to ACRN’s Priority-based scheduler (2 configured priority levels, no time-slicing within a level), Xvisor’s PRR (8 priority levels with Round-Robin rotation within each level), or PRM (8 priority levels with Rate Monotonic periodicity ordering within each level). In the absence of any priority hierarchy, IORR provides minimal wake-up latency with egalitarian time-sharing and no real-time guarantees. Ultimately, this tree serves as a structural guide rather than a replacement for platform-specific evaluation: as indicated by the (✓) entries in Table 6, the actual guarantees of most algorithms depend on how the system integrator sizes and validates the scheduling parameters. Illustrative case study. Consider a consolidated automotive Electronic Control Unit (ECU) hosting three VMs on shared pCPUs: a safety-critical chassis control VM (10 ms periodic loop), a driver-assistance VM with bursty camera processing, and a best-effort infotainment VM. Because pCPUs are shared across VMs (Step 1: No) and the chassis control VM requires strict temporal isolation from camera bursts and infotainment load (Step 2: Yes), while unused pCPU cycles must be reclaimed by the camera and infotainment workloads (Step 3: No), the decision tree leads directly 37
1. Can each vCPU be given a dedicated pCPU?
No Yes
2. Must critical vCPUs receive a guaranteed pCPU share regardless of others (temporal isolation)?
Static partitioning Multicore: partitioned (1) Yes
No
3. Can unused time be lost?
4. Is a weighted share of the pCPU required?
Yes
Yes
No
5. Must parameters be changed at runtime?
6. Is there a static order of importance between vCPUs?
No
ARINC653
RTDS
Uniprocessor
Multicore: global
(1)
(𝑁)
No
Yes
Credit, Credit2
BVT
Priority, PRR, or PRM
IORR
Multicore: global
Multicore: partitioned
Multicore: partitioned
Multicore: partitioned
(𝑁)
(𝑁)
(𝑁) | (1) | (log 𝑁)
(1)
Yes
No
Figure 12. Decision tree for selecting a vCPU scheduler. Each leaf gives the simplest policies that match the answers along the path; answering “No” to a requirement does not exclude policies from other leaves that also provide the property. The multicore organization and asymptotic scheduling complexity are indicated within each leaf.
to RTDS: the control vCPU is configured as a tier-0 reservation, and the driver-assistance and infotainment vCPUs are configured with extratime enabled, provided the reservation set is verified schedulable offline (Table 7). Note that the two extratime vCPUs then share the residual CPU capacity without proportional control (Section 2.8.7). If the camera VM must be favored over infotainment during overload, a dedicated tier-0 reservation sized for its average demand is required. Furthermore, the temporal isolation guaranteed by RTDS applies strictly at the CPU scheduler level. Bounding interference on shared caches, memory controllers, and I/O buses requires complementary hardware partitioning mechanisms.
4
Related Work
To position the contributions of this paper, this section reviews the existing literature across three areas: general surveys on embedded virtualization, theoretical mixed-criticality scheduling models, and empirical evaluations or extensions of specific hypervisor schedulers.
4.1
Surveys on embedded systems
Using hypervisors to run multiple applications on a single hardware platform reduces Size, Weight, Power, and Cost (SWaP-C) constraints. Several surveys have studied this approach in embedded systems. Early work by Gu and Zhao [2] reviewed real-time virtualization challenges in Xen, KVM, and L4 microkernels. However, it was published before the introduction of modern static-partitioning hypervisors (such as Bao or Jailhouse), Xen’s event-driven RTDS and Credit2 schedulers, and ACRN. More recently, Cinque et al. [61] reviewed industrial trends and isolation issues in avionics, automotive, and railway systems. Similarly, Lozano et al. [62] compared open-source and commercial hypervisors (including Xen, Bao, Jailhouse, and ACRN), focusing on safety certification and hardware isolation mechanisms. Earlier, García-Valls et al. [63] identified the core challenges of real-time virtualization and vCPU scheduling from the perspective of predictable cloud and embedded computing. While these surveys provide a good high-level overview of hypervisor architectures and isolation features, they do not analyze the internal logic of the vCPU schedulers. They usually list the available schedulers by name (for instance, stating that Xen includes ARINC653 and RTDS, or that ACRN includes BVT) without inspecting their source code. As a result, they do not detail the exact selection rules, triggers, and admission checks, and they miss important differences between theoretical algorithms and actual kernel code (such as the unimplemented warp feature in ACRN’s BVT or the missing same-priority preemption check in Xvisor’s PRM).
38
4.2
Mixed-criticality scheduling models
Running applications with different safety levels on a shared processor is the main focus of Mixed-Criticality Systems (MCS) research. Classical real-time systems rely on static time tables or preemptive priority and deadline algorithms [11, 64]. For mixed-criticality workloads, Vestal [65] introduced a model where each task has multiple Worst-Case Execution Time (WCET) estimates depending on its criticality level. Since then, many theoretical studies have proposed modeswitching algorithms, such as Earliest Deadline First with Virtual Deadlines (EDF-VD) [22], and slack management methods [66]. In these models, low-criticality tasks are dropped or delayed if a high-criticality task exceeds its optimistic budget. Recently, Reinforcement Learning (RL) has also been studied in simulation to adaptively schedule mixed-criticality workloads on multicore processors [67, 68]. As noted by Burns and Davis [20] and Ernst and Di Natale [21], there is a clear gap between theoretical MCS models and actual hypervisor implementations. Theoretical mode-switching and RL algorithms require complex runtime monitoring and task dropping mechanisms that are not implemented in current open-source hypervisors. Instead, as shown in Section 2, embedded hypervisors handle mixed-criticality workloads using static core partitioning [3, 31], cyclic ARINC653 time windows [27, 38], fixed priorities [47, 51, 52], or two-tier deferrable servers (extratime in Xen RTDS [44]). This paper bridges this gap by analyzing the scheduling algorithms that are actually implemented in open-source hypervisors and by stating the offline configuration assumptions they place on the system integrator.
4.3
Evaluation and customization of hypervisor schedulers
Several studies have experimentally tested or modified the schedulers of specific hypervisors. The closest precedent for comparing hypervisor schedulers is the early experimental study by Cherkasova et al. [69], which evaluated Xen’s BVT, SEDF, and Credit schedulers in 2007. However, BVT and SEDF have since been removed from Xen, and Credit has been superseded by Credit2 as the default scheduler. In Xen, Ongaro et al. [15] studied how the Credit scheduler impacts I/O latency. Masrur et al. [70] showed through an automotive case study that Credit does not provide hard real-time guarantees and proposed a custom Priority-Switched EDF (PSEDF) scheduler. The RT-Xen project by Xi et al. [44, 71] implemented and tested global and partitioned real-time schedulers in Xen, which led to the mainline RTDS scheduler. Li et al. [72] later used RTDS for multi-mode soft real-time systems. More recently, Cinque et al. [73] used a Design of Experiments (DoE) approach to test the temporal isolation of Xen’s null, Credit2, and RTDS schedulers under heavy CPU load in a railway use case. For static partitioning hypervisors, Danielsson et al. [74] and Jiménez et al. [75] measured interrupt latency and isolation in Jailhouse. Martins and Pinto [35] compared Jailhouse and Bao on ARM platforms, showing that shared cache and memory bus contention can still delay vCPUs even with dedicated pCPUs. For Xvisor, Patel et al. [76] compared its general performance against KVM and Xen, Modica et al. [77] added cache coloring and memory bandwidth control, and Cui et al. [78] extended Xvisor’s PRM scheduler with a contextual-bandit reinforcement-learning policy (eXvisor), reducing real-time task latency with respect to PRR. Outside dedicated embedded hypervisors, Abeni [6] recently evaluated real-time workloads in KVM virtual machines and containers scheduled by Linux’s SCHED_DEADLINE [5]. While these experimental works provide useful measurements on specific boards, they have two main limitations when comparing hypervisors. First, each study tests only one hypervisor (or compares two of them) on a specific hardware target and guest OS setup, which makes it difficult to compare scheduling algorithms across different hypervisors. Second, hardware benchmarks measure the combined effects of interrupts, cache contention, hypervisor context switches, and scheduling rules, which can hide specific behaviors of the scheduling algorithm itself. In contrast, this paper provides a unified, code-level analysis of the ten scheduling policies implemented across Bao, Xen, ACRN, and Xvisor, compares them on a common reference workload, and summarizes their trade-offs in a practical decision tree.
5
Conclusion
This paper surveyed the ten CPU allocation policies offered by four actively maintained open-source hypervisors for embedded systems (Bao, Xen, ACRN, and Xvisor), analyzed at the source-code level on frozen repository states, without runtime measurement. RQ1. Besides spatial partitioning (Bao, Xen null, ACRN NOOP), the nine time-sharing policies follow five decision rules: a static time table (ARINC653); fixed priorities, with three intra-level policies (Priority-based, PRR and PRM); EDF over budget–period servers (RTDS); service accounting by credits or virtual time (Credit, Credit2, BVT); and quantum rotation with wake-up promotion (IORR). Classifying policies by decision rule rather than by hypervisor makes mechanisms from different hypervisors directly comparable. RQ2. Reading the source code rather than the documentation reveals deviations that matter to a system integrator (Table 5): 39
• The warp mechanism of BVT (the default scheduler in ACRN’s configuration) is left as an unimplemented stub. • ACRN’s Priority-based scheduler exposes only two priority levels (PRIO_LOW and PRIO_HIGH) in its configuration schema, despite using an integer priority in C. • In PRM, periodicity orders vCPUs within a priority level but never triggers same-priority preemption (left as a TODO), and Xvisor’s management layer (vmm_manager.c) silently adjusts inconsistent timing parameters instead of rejecting them. • Credit’s wake-up BOOST is granted only to UNDER vCPUs and is cleared only once a 10 ms evaluation tick finds the vCPU running. Its behavior is sensitive to the accounting tick phase: with the evaluation tick at 𝑡 = 1 + 10𝑘, vCPURT loses BOOST before the first I/O wake-up, is requeued behind the background vCPUs, and misses both deadlines on the reference workload. • Credit2 preserves the credits of sleeping vCPUs only until the next credit reset, which clips all balances to a fixed ceiling. • Apart from the frame-fit check of ARINC653, among the surveyed hypervisor-level schedulers, only RTDS performs platform-capacity admission control (added to the Xen development branch in September 2026 and ∑ not yet included in release 4.22.0). However, it checks total utilization only ( budget∕period ≤ 𝑀), which is a necessary but insufficient schedulability condition for global EDF with deferrable servers [54, 55]. RQ3. No surveyed policy holds an explicit criticality attribute or performs a Vestal-style mode change. What they offer for mixed-criticality integration is a bound (or no bound) on the pCPU time a vCPU can consume: by construction (Static partitioning, ARINC 653), by per-period budget (RTDS), by optional upper-bound cap (Credit, Credit2), or not at all (Priority-based, PRR, PRM, BVT, IORR). For accounting-based policies (Credit, Credit2, BVT), wake-up latency also depends on accumulated runtime state, making it difficult to bound analytically. In every case, offline schedulability analysis and the bounding of shared-resource interference remain the integrator’s responsibility. Table 6 and the decision tree (Figure 12) make these assumptions explicit. Future work will extend this analysis to multicore mechanisms (migration, load balancing, and lock-holder preemption), to the fixed-priority round-robin scheduler of Gunyah once its open-source tree targets physical platforms, and to empirical trace validation on hardware targets. Also, some innovative algorithms could be designed and deployed to bridge the gap identified in Table 6 between strict real-time isolation and fair slack sharing, for instance, by combining hierarchical budget enforcement for safety-critical vCPUs with low-overhead, weight-proportional slack reclamation for best-effort workloads, or by integrating lightweight runtime criticality-mode switches directly into open-source hypervisor kernels.
CRediT authorship contribution statement Lisa Mignerey: Conceptualization, Methodology, Investigation, Visualization, Software, Writing – original draft, Writing – review & editing. Anthony Ferrari: Methodology, Writing – review & editing, Supervision, Funding acquisition. Damien Sauveron: Methodology, Writing – review & editing, Supervision, Funding acquisition. Karim Tamine: Supervision, Funding acquisition.
Declaration of competing interest The authors declare the following financial interests/personal relationships which may be considered as potential competing interests: Lisa Mignerey and Anthony Ferrari report a relationship with Thales Cybersecurity & Digital Identity that includes: employment. Damien Sauveron and Karim Tamine report that their laboratory (XLIM, University of Limoges) receives funding from Thales Cybersecurity & Digital Identity under the CIFRE collaboration agreement supporting this work.
Funding This work was supported by Thales Cybersecurity & Digital Identity and the French Ministry of Higher Education and Research (ANRT) [CIFRE PhD grant number 2024/1560] under a collaboration agreement between Thales Cybersecurity & Digital Identity and XLIM. The French Ministry of Higher Education and Research had no involvement in the 40
study design, in the analysis and interpretation, in the writing of the report, or in the decision to submit the article for publication. Thales Cybersecurity & Digital Identity was involved in the study design, supervision, and manuscript review through the affiliated authors.
Data availability The analysed source code is publicly available in the repositories cited in the article, at the commits given in Table 2. The executable Python models used to derive the schedules and generate Figures 3–11 and Table 3 are publicly available on Zenodo at https://doi.org/10.5281/zenodo.23687141.
Declaration of generative AI and AI-assisted technologies in the manuscript preparation process During the preparation of this work, the authors used Claude (Anthropic) and Gemini (Google) to improve the language and readability of the manuscript and to cross-check the code-level descriptions and the hand-derived schedules against the source code. After using these tools, the authors reviewed and verified the content as needed and take full responsibility for the content of the published article.
Acknowledgments The authors would like to thank Pierre-François Bonnefoi for a number of very useful discussions.
References [1] H. Li, X. Xu, J. Ren, Y. Dong, ACRN: A big little hypervisor for IoT development, in: Proceedings of the 15th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments (VEE ’19), 2019, pp. 31–44. doi:10.1145/3313808.3313816. [2] Z. Gu, Q. Zhao, A state-of-the-art survey on real-time issues in embedded systems virtualization, Journal of Software Engineering and Applications 5 (2012) 277–290. doi:10.4236/jsea.2012.54033. [3] R. Ramsauer, J. Kiszka, D. Lohmann, W. Mauerer, Look mum, no VM exits! (Almost), arXiv preprint arXiv:1705.06932, 2017. doi:10.48550/arXiv.1705.06932. [4] A. Buerki, R. Rueegsegger, Muen – An x86/64 Separation Kernel for High Assurance, Technical Report, University of Applied Sciences Rapperswil (HSR), 2013. [5] L. Abeni, A. Biondi, E. Bini, Hierarchical scheduling of real-time tasks over Linux-based virtual machines, Journal of Systems and Software 149 (2019) 234–249. doi:10.1016/j.jss.2018.12.008. [6] L. Abeni, Virtualized real-time workloads in containers and virtual machines, Journal of Systems Architecture 154 (2024) 103238. doi:10.1016/j.sysarc.2024.103238. [7] A. Lyons, K. McLeod, H. Almatary, G. Heiser, Scheduling-context capabilities: A principled, light-weight operating-system mechanism for managing time, in: Proceedings of the 13th EuroSys Conference (EuroSys ’18), 2018, pp. 26:1–26:16. doi:10.1145/3190508.3190539. [8] L. Abeni, G. Buttazzo, Integrating multimedia applications in hard real-time systems, in: Proceedings of the 19th IEEE Real-Time Systems Symposium (RTSS ’98), IEEE, Madrid, Spain, 1998, pp. 4–13. doi:10.1109/REAL.1998. 739726. [9] R. Rajkumar, K. Juvva, A. Molano, S. Oikawa, Resource kernels: A resource-centric approach to real-time and multimedia systems, in: Proceedings of the SPIE/ACM Conference on Multimedia Computing and Networking (MMCN ’98), volume 3310, 1998, pp. 150–164. doi:10.1117/12.298417. [10] C. W. Mercer, S. Savage, H. Tokuda, Processor capacity reserves: Operating system support for multimedia applications, in: Proceedings of the IEEE International Conference on Multimedia Computing and Systems (ICMCS ’94), IEEE, Boston, MA, USA, 1994, pp. 90–99. doi:10.1109/MMCS.1994.292439. 41
[11] C. L. Liu, J. W. Layland, Scheduling algorithms for multiprogramming in a hard-real-time environment, Journal of the ACM (JACM) 20 (1973) 46–61. doi:10.1145/321738.321743. [12] J. A. Stankovic, Misconceptions about real-time computing: A serious problem for next-generation systems, Computer 21 (1988) 10–19. doi:10.1109/2.7053. [13] P. Axer, R. Ernst, H. Falk, A. Girault, D. Grund, N. Guan, B. Jonsson, P. Marwedel, J. Reineke, C. Rochange, M. Sebastian, R. von Hanxleden, R. Wilhelm, W. Yi, Building timing predictable embedded systems, ACM Transactions on Embedded Computing Systems (TECS) 13 (2014) 82:1–82:37. doi:10.1145/2560033. [14] K. J. Duda, D. R. Cheriton, Borrowed-virtual-time (BVT) scheduling: Supporting latency-sensitive threads in a general-purpose scheduler, ACM SIGOPS Operating Systems Review 33 (1999) 261–276. doi:10.1145/319344. 319169. [15] D. Ongaro, A. L. Cox, S. Rixner, Scheduling I/O in virtual machine monitors, in: Proceedings of the 4th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments (VEE ’08), ACM, Seattle, WA, USA, 2008, pp. 1–10. doi:10.1145/1346256.1346258. [16] L. Kleinrock, Queueing Systems, Volume 1: Theory, John Wiley & Sons, Inc., New York, NY, USA, 1975. [17] C. A. Waldspurger, W. E. Weihl, Lottery scheduling: Flexible proportional-share resource management, in: Proceedings of the 1st USENIX Symposium on Operating Systems Design and Implementation (OSDI ’94), USENIX Association, Monterey, CA, USA, 1994, pp. 1–11. [18] I. Stoica, H. Abdel-Wahab, K. Jeffay, S. K. Baruah, J. E. Gehrke, C. G. Plaxton, A proportional share resource allocation algorithm for real-time, time-shared systems, in: Proceedings of the 17th IEEE Real-Time Systems Symposium (RTSS ’96), IEEE, Washington, DC, USA, 1996, pp. 288–299. doi:10.1109/REAL.1996.563725. [19] A. K. Parekh, R. G. Gallager, A generalized processor sharing approach to flow control in integrated services networks: The single-node case, IEEE/ACM Transactions on Networking 1 (1993) 344–357. doi:10.1109/90. 234856. [20] A. Burns, R. I. Davis, A survey of research into mixed criticality systems, ACM Computing Surveys (CSUR) 50 (2017) 82:1–82:37. doi:10.1145/3131347. [21] R. Ernst, M. Di Natale, Mixed criticality systems—a history of misconceptions?, IEEE Design & Test 33 (2016) 65–74. doi:10.1109/MDAT.2016.2594790. [22] S. Baruah, V. Bonifaci, G. D’Angelo, H. Li, A. Marchetti-Spaccamela, S. Van Der Ster, L. Stougie, The preemptive uniprocessor scheduling of mixed-criticality implicit-deadline sporadic task systems, in: Proceedings of the 24th Euromicro Conference on Real-Time Systems (ECRTS ’12), IEEE, Pisa, Italy, 2012, pp. 145–154. doi:10.1109/ECRTS.2012.42. [23] J. Nieh, C. Vaill, H. Zhong, Virtual-time round-robin: An O(1) proportional share scheduler, in: Proceedings of the 2001 USENIX Annual Technical Conference (USENIX ATC ’01), USENIX Association, Boston, MA, USA, 2001, pp. 245–259. [24] B. B. Brandenburg, Scheduling and Locking in Multiprocessor Real-Time Operating Systems, Ph.D. thesis, University of North Carolina at Chapel Hill, Chapel Hill, NC, USA, 2011. [25] D. I. Katcher, H. Arakawa, J. K. Strosnider, Engineering and analysis of fixed priority schedulers, IEEE Transactions on Software Engineering 19 (1993) 920–934. doi:10.1109/32.241774. [26] J. Real, A. Crespo, Mode change protocols for real-time systems: A survey and a new proposal, Real-Time Systems 26 (2004) 161–197. doi:10.1023/B:TIME.0000016129.97430.c6. [27] S. H. VanderLeest, ARINC 653 hypervisor, in: Proceedings of the IEEE/AIAA 29th Digital Avionics Systems Conference (DASC ’10), IEEE, Salt Lake City, UT, USA, 2010, pp. 5.E.2–1–5.E.2–20. doi:10.1109/DASC.2010. 5655298. [28] AUTOSAR Consortium, AUTOSAR Classic Platform (Specification of Operating System) and AUTOSAR Adaptive Platform (Specification of Execution Management), AUTOSAR, 2022. AUTOSAR Standard. [29] United Nations Economic Commission for Europe (UNECE), UN Regulation No. 156: Uniform Provisions Concerning the Approval of Vehicles with Regards to Software Update and Software Updates Management System, 2020. UNECE Addendum 155. 42
[30] J. Carpenter, S. Funk, P. Holman, A. Srinivasan, J. Anderson, S. Baruah, A categorization of real-time multiprocessor scheduling problems and algorithms, in: J. Y.-T. Leung (Ed.), Handbook of Scheduling: Algorithms, Models, and Performance Analysis, Chapman and Hall/CRC, Boca Raton, FL, USA, 2004, pp. 1–29. [31] J. Martins, A. Tavares, M. Solieri, M. Bertogna, S. Pinto, Bao: A lightweight static partitioning hypervisor for modern multi-core embedded systems, in: Proceedings of the Workshop on Next Generation Real-Time Embedded Systems (NG-RES 2020), volume 77 of OASIcs, Schloss Dagstuhl, 2020, pp. 3:1–3:14. doi:10.4230/ OASIcs.NG-RES.2020.3. [32] Bao Project, bao-project/bao-hypervisor, GitHub repository, 2026. URL: https://github.com/bao-project/ bao-hypervisor, release v2.0.0 (commit 0af4a1a), accessed October 20, 2026. [33] Project ACRN, acrn-hypervisor/hypervisor/common/sched_noop.c, GitHub repository, 2026. URL: https:// github.com/projectacrn/acrn-hypervisor/blob/master/hypervisor/common/sched_noop.c, commit 37b1c13, accessed October 20, 2026. [34] Xen Project, xen/common/sched/null.c, GitLab repository, 2026. URL: https://gitlab.com/xen-project/xen/ -/blob/staging/xen/common/sched/null.c, commit 7e020a4, accessed October 20, 2026. [35] J. Martins, S. Pinto, Shedding light on static partitioning hypervisors for Arm-based mixed-criticality systems, arXiv preprint arXiv:2303.11186, 2023. doi:10.48550/arXiv.2303.11186. [36] Xen Project, ARINC653 scheduler, Xen Project Wiki, 2026. URL: https://wiki.xenproject.org/wiki/ ARINC653_Scheduler, accessed October 20, 2026. [37] Xen Project, xen/common/sched/arinc653.c, GitLab repository, 2026. URL: https://gitlab.com/xen-project/ xen/-/blob/staging/xen/common/sched/arinc653.c, commit 7e020a4, accessed October 20, 2026. [38] Airlines Electronic Engineering Committee (AEEC), Avionics Application Software Standard Interface (ARINC Specification 653, Part 1), Aeronautical Radio, Inc., Annapolis, MD, USA, 1996. [39] I. Shin, I. Lee, Periodic resource model for compositional real-time guarantees, in: Proceedings of the 24th IEEE Real-Time Systems Symposium (RTSS ’03), 2003, pp. 2–13. doi:10.1109/REAL.2003.1253249. [40] Xen Project, Credit scheduler, Xen Project Wiki, 2026. URL: https://wiki.xenproject.org/wiki/Credit_ Scheduler, accessed October 20, 2026. [41] Xen Project, xen/common/sched/credit.c, GitLab repository, 2026. URL: https://gitlab.com/xen-project/xen/ -/blob/staging/xen/common/sched/credit.c, commit 7e020a4, accessed October 20, 2026. [42] Xen Project, Credit2 scheduler, Xen Project Wiki, 2026. URL: https://wiki.xenproject.org/wiki/Credit2_ Scheduler, accessed October 20, 2026. [43] Xen Project, xen/common/sched/credit2.c, GitLab repository, 2026. URL: https://gitlab.com/xen-project/ xen/-/blob/staging/xen/common/sched/credit2.c, commit 7e020a4, accessed October 20, 2026. [44] S. Xi, M. Xu, C. Lu, L. T. X. Phan, C. Gill, O. Sokolsky, I. Lee, Real-time multi-core virtual machine scheduling in Xen, in: Proceedings of the 14th International Conference on Embedded Software (EMSOFT ’14), ACM, New Delhi, India, 2014, pp. 1–10. doi:10.1145/2656045.2656066. [45] Xen Project, RTDS-based-scheduler, Xen Project Wiki, 2026. URL: https://wiki.xenproject.org/wiki/ RTDS-Based-Scheduler, accessed October 20, 2026. [46] Xen Project, xen/common/sched/rt.c, GitLab repository, 2026. URL: https://gitlab.com/xen-project/xen/-/ blob/staging/xen/common/sched/rt.c, commit 7e020a4, accessed October 20, 2026. [47] Project ACRN, acrn-hypervisor/hypervisor/common/sched_prio.c, GitHub repository, 2026. URL: https:// github.com/projectacrn/acrn-hypervisor/blob/master/hypervisor/common/sched_prio.c, commit 37b1c13, accessed October 20, 2026. [48] Project ACRN, acrn-hypervisor/hypervisor/common/sched_bvt.c, GitHub repository, 2026. URL: https://github. com/projectacrn/acrn-hypervisor/blob/master/hypervisor/common/sched_bvt.c, commit 37b1c13, accessed October 20, 2026.
43
[49] Project ACRN, acrn-hypervisor/hypervisor/common/sched_iorr.c, GitHub repository, 2026. URL: https:// github.com/projectacrn/acrn-hypervisor/blob/master/hypervisor/common/sched_iorr.c, commit 37b1c13, accessed October 20, 2026. [50] Xvisor Project, xvisor/xvisor: eXtensible Versatile hypervISOR, GitHub repository, 2026. URL: https://github. com/xvisor/xvisor, commit ddbfcd6, accessed October 20, 2026. [51] Xvisor Project, xvisor/core/schedalgo/vmm_schedalgo_prr.c, GitHub repository, 2026. URL: https://github. com/xvisor/xvisor/blob/master/core/schedalgo/vmm_schedalgo_prr.c, commit ddbfcd6, accessed October 20, 2026. [52] Xvisor Project, xvisor/core/schedalgo/vmm_schedalgo_prm.c, GitHub repository, 2026. URL: https://github. com/xvisor/xvisor/blob/master/core/schedalgo/vmm_schedalgo_prm.c, commit ddbfcd6, accessed October 20, 2026. [53] L. Mignerey, A. Ferrari, D. Sauveron, K. Tamine, Executable models of the CPU scheduling policies of four open-source embedded hypervisors, 2026. doi:10.5281/zenodo.23687141, version 1.0.0, Zenodo. [54] S. K. Dhall, C. L. Liu, On a real-time scheduling problem, Operations Research 26 (1978) 127–140. doi:10.1287/ opre.26.1.127. [55] J. K. Strosnider, J. P. Lehoczky, L. Sha, The deferrable server algorithm for enhanced aperiodic responsiveness in hard real-time environments, IEEE Transactions on Computers 44 (1995) 73–91. doi:10.1109/12.368008. [56] A. Easwaran, M. Anand, I. Lee, Compositional analysis framework using EDP resource models, in: Proceedings of the 28th IEEE International Real-Time Systems Symposium (RTSS ’07), 2007, pp. 129–138. doi:10.1109/ RTSS.2007.36. [57] T. P. Baker, Multiprocessor EDF and deadline monotonic schedulability analysis, in: Proceedings of the 24th IEEE Real-Time Systems Symposium (RTSS ’03), 2003, pp. 120–129. doi:10.1109/REAL.2003.1253260. [58] I. Shin, A. Easwaran, I. Lee, Hierarchical scheduling framework for virtual clustering of multiprocessors, in: Proceedings of the 20th Euromicro Conference on Real-Time Systems (ECRTS ’08), 2008, pp. 181–190. doi:10.1109/ECRTS.2008.28. [59] N. C. Audsley, A. Burns, M. Richardson, K. Tindell, A. J. Wellings, Applying new scheduling theory to static priority pre-emptive scheduling, Software Engineering Journal 8 (1993) 284–292. doi:10.1049/sej.1993.0034. [60] R. I. Davis, A. Burns, A survey of hard real-time scheduling for multiprocessor systems, ACM Computing Surveys 43 (2011) 35:1–35:44. doi:10.1145/1978802.1978814. [61] M. Cinque, D. Cotroneo, L. De Simone, S. Rosiello, Virtualizing mixed-criticality systems: A survey on industrial trends and issues, Future Generation Computer Systems 129 (2022) 315–330. doi:10.1016/j.future.2021.12.002. [62] S. Lozano, T. Lugo, J. Carretero, A comprehensive survey on the use of hypervisors in safety-critical systems, IEEE Access 11 (2023) 36244–36263. doi:10.1109/ACCESS.2023.3264825. [63] M. García-Valls, T. Cucinotta, C. Lu, Challenges in real-time virtualization and predictable cloud computing, Journal of Systems Architecture 60 (2014) 726–740. doi:10.1016/j.sysarc.2014.07.004. [64] K. Ramamritham, J. A. Stankovic, Scheduling algorithms and operating systems support for real-time systems, Proceedings of the IEEE 82 (1994) 55–67. doi:10.1109/5.259426. [65] S. Vestal, Preemptive scheduling of multi-criticality systems with varying degrees of execution time assurance, in: Proceedings of the 28th IEEE International Real-Time Systems Symposium (RTSS ’07), IEEE, Tucson, AZ, USA, 2007, pp. 239–243. doi:10.1109/RTSS.2007.47. [66] Y.-W. Zhang, H. Zheng, Slack time management for imprecise mixed-criticality systems with reliability constraints, IEEE Transactions on Computers 74 (2025) 1577–1588. doi:10.1109/TC.2025.3533100. [67] Y. Liang, H. Li, F. Shen, Q. Xu, S. Hua, S. Zhu, Adaptive multi-core real-time scheduling based on reinforcement learning, in: Proceedings of the 2024 IEEE 18th International Conference on Control & Automation (ICCA ’24), IEEE, Reykjavík, Iceland, 2024, pp. 148–153. doi:10.1109/ICCA62789.2024.10591927.
44
[68] M. El-Mahdy, N. Sakr, R. Carrasco, Improving mixed-criticality scheduling with reinforcement learning, arXiv preprint arXiv:2504.03994, 2025. doi:10.48550/arXiv.2504.03994. [69] L. Cherkasova, D. Gupta, A. Vahdat, Comparison of the three CPU schedulers in Xen, ACM SIGMETRICS Performance Evaluation Review 35 (2007) 42–51. doi:10.1145/1330555.1330556. [70] A. Masrur, S. Drössler, T. Pfeuffer, S. Chakraborty, VM-based real-time services for automotive control applications, in: Proceedings of the 2010 IEEE 16th International Conference on Embedded and Real-Time Computing Systems and Applications (RTCSA ’10), IEEE, Macau, China, 2010, pp. 218–223. doi:10.1109/RTCSA.2010.38. [71] S. Xi, J. Wilson, C. Lu, C. Gill, RT-Xen: Towards real-time hypervisor scheduling in Xen, in: Proceedings of the 9th ACM International Conference on Embedded Software (EMSOFT ’11), ACM, Taipei, Taiwan, 2011, pp. 39–48. doi:10.1145/2038642.2038651. [72] H. Li, M. Xu, C. Li, C. Lu, C. Gill, L. Phan, I. Lee, O. Sokolsky, Multi-mode virtualization for soft real-time systems, in: Proceedings of the 2018 IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS ’18), IEEE, Porto, Portugal, 2018, pp. 117–128. doi:10.1109/RTAS.2018.00022. [73] M. Cinque, L. De Simone, D. Ottaviano, Temporal isolation assessment in virtualized safety-critical mixedcriticality systems: A case study on Xen hypervisor, Journal of Systems and Software 216 (2024) 112147. doi:10.1016/j.jss.2024.112147. [74] J. Danielsson, T. Seceleanu, M. Jägemar, M. Behnam, M. Sjödin, Testing performance-isolation in multi-core systems, in: Proceedings of the 2019 IEEE 43rd Annual Computer Software and Applications Conference (COMPSAC ’19), IEEE, Milwaukee, WI, USA, 2019, pp. 604–609. doi:10.1109/COMPSAC.2019.00092. [75] J. Jiménez, L. Muguira, U. Bidarte, A. Largacha, J. Lázaro, Specific electronic platform to test the influence of hypervisors on the performance of embedded systems, Technologies 10 (2022) 65. doi:10.3390/technologies10030065. [76] A. Patel, M. Daftedar, M. Shalan, M. W. El-Kharashi, Embedded hypervisor Xvisor: A comparative analysis, in: Proceedings of the 2015 23rd Euromicro International Conference on Parallel, Distributed, and Network-Based Processing (PDP ’15), IEEE, Turku, Finland, 2015, pp. 682–691. doi:10.1109/PDP.2015.108. [77] P. Modica, A. Biondi, G. Buttazzo, A. Patel, Supporting temporal and spatial isolation in a hypervisor for ARM multicore platforms, in: Proceedings of the 2018 IEEE International Conference on Industrial Technology (ICIT ’18), IEEE, Lyon, France, 2018, pp. 1651–1657. doi:10.1109/ICIT.2018.8352429. [78] W. Cui, C. Wang, Q. Yu, C. Wei, R. Zhang, Optimizing CPU scheduling and inter-VM communication for lightweight virtualization using reinforcement learning, Future Generation Computer Systems 185 (2026) 108612. doi:10.1016/j.future.2026.108612.
45
Related documents
- A code-level survey of CPU scheduling mechanisms in open-source embedded hypervisors#1750340
- Scheduler guided OpenMP execution in cloud VMs#142536
- Do Bio-Inspired Algorithms Save Energy in Data Centres? Separating Server Packing from Migration Search in Virtual Machine Consolidation#1456925
- Do Bio-Inspired Algorithms Save Energy in Data Centres? Separating Server Packing from Migration Search in Virtual Machine Consolidation#1450754
- Bringing dApps to OCUDU: An E3 Controller for Real-Time Open RAN Intelligence#639633
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive