DELEGATION OF TIMER INTERRUPT REQUEST HANDLING
Abstract
Disclosed is a method of handling interrupt requests (IRQs) performed by a confidential security state controller, comprising determining, after a confidential security state exit of a virtual machine (VM), whether a pending IRQ is a timer IRQ with a VM-level processor privilege; based on the pending IRQ being the timer IRQ with the VM-level processor privilege, activating the timer IRQ in a per-processor interrupt routing infrastructure (IRI); and returning control to the VM.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 0.
Claims (22 — 4 Independent, 18 Dependent)
- Claim 1Independent Claim
A confidential security state controller comprising: one or more processors configured, either alone or in combination, to: determine, after a confidential security state exit of a virtual machine (VM), whether a pending IRQ is a timer IRQ with a VM-level processor privilege; based on the pending IRQ being the timer IRQ with the VM-level processor privilege, activate the timer IRQ in a per-processor interrupt routing infrastructure (IRI); and return control to the VM.
- Claim 2Depends on #1
The confidential security state controller of claim 1, wherein the per-processor IRI is associated with a central processing unit (CPU), and activating the timer IRQ is via memory-mapped register access to the per-processor IRI.
- Claim 3Depends on #1
The confidential security state controller of claim 1, wherein: based on the pending IRQ being caused by the timer, an exception caused by the pending IRQ is handled by the confidential security state controller, and does not return execution to a host operating system.
- Claim 4Depends on #1
The confidential security state controller of claim 1, wherein the one or more processors, either alone or in combination, are further configured to: based on the pending IRQ not being caused by the timer, exiting to a host operating system.
- Claim 5Depends on #1
The confidential security state controller of claim 1, wherein the one or more processors, either alone or in combination, are further configured to: based on the pending IRQ being caused by the timer, injecting a virtual IRQ into a per-processor interrupt virtualization state.
- Claim 6Depends on #5
The confidential security state controller of claim 5, wherein the per-processor interrupt virtualization state is associated with a central processing unit (CPU) of the CCA, and the injecting is via a register of the CPU.
- Claim 7Depends on #1
The confidential security state controller of claim 1, wherein: after activating the timer IRQ in the per-processor IRI, there is no new pending IRQ; and return control to the VM is based on there being no new pending IRQ.
- Claim 8Depends on #1
The confidential security state controller of claim 1, wherein the pending IRQ is a highest-priority pending IRQ presented to a central processing unit (CPU).
- Claim 9Depends on #1
The confidential security state controller of claim 1, wherein the one or more processors, either alone or in combination, are further configured to: indicate, to a feature register associated with a central processing unit (CPU), that the confidential security state controller supports delegation of timer IRQ handling.
- Claim 10Depends on #1
The confidential security state controller of claim 1, wherein the one or more processors, either alone or in combination, are further configured to: receive, from a host operating system, an indication that delegation of timer IRQ handling to the confidential security state controller is enabled.
- Claim 11Independent Claim
A method of handling interrupt requests (IRQs), performed by a confidential security state controller, comprising: determining, after a confidential security state exit of a virtual machine (VM), whether a pending IRQ is a timer IRQ with a VM-level processor privilege; based on the pending IRQ being the timer IRQ with the VM-level processor privilege, activating the timer IRQ in a per-processor interrupt routing infrastructure (IRI); and returning control to the VM.
- Claim 12Depends on #11
The method of claim 11, wherein the per-processor IRI is associated with a central processing unit (CPU), and activating the timer IRQ is via memory-mapped register access to the per-processor IRI.
- Claim 13Depends on #11
The method of claim 11, wherein: based on the pending IRQ being caused by the timer, an exception caused by the pending IRQ is handled by the confidential security state controller, and does not return execution to a host operating system.
- Claim 14Depends on #11
The method of claim 11, further comprising: based on the pending IRQ not being caused by the timer, exiting to a host operating system.
- Claim 15Depends on #11
The method of claim 11, further comprising: based on the pending IRQ being caused by the timer, injecting a virtual IRQ into a per-processor interrupt virtualization state.
- Claim 16Depends on #15
The method of claim 15, wherein the per-processor interrupt virtualization state is associated with a central processing unit (CPU) of the CCA, and the injecting is via a register of the CPU.
- Claim 17Depends on #11
The method of claim 11, wherein: after activating the timer IRQ in the per-processor IRI, there is no new pending IRQ; and returning control to the VM is based on there being no new pending IRQ.
- Claim 18Depends on #11
The method of claim 11, wherein the pending IRQ is a highest-priority pending IRQ presented to a central processing unit (CPU).
- Claim 19Depends on #11
The method of claim 11, further comprising: indicating, to a feature register associated with a central processing unit (CPU), that the confidential security state controller supports delegation of timer IRQ handling.
- Claim 20Depends on #11
The method of claim 11, further comprising: receiving, from a host operating system, an indication that delegation of timer IRQ handling to the confidential security state controller is enabled.
- Claim 21Independent Claim
A non-transitory computer-readable medium storing computer-executable instructions that, when executed by a confidential security state controller, cause the confidential security state controller to: determine, after a confidential security state exit of a virtual machine (VM), whether a pending IRQ is a timer IRQ with a VM-level processor privilege; based on the pending IRQ being the timer IRQ with the VM-level processor privilege, activate the timer IRQ in a per-processor interrupt routing infrastructure (IRI); and return control to the VM.
- Claim 22Independent Claim
A confidential security state controller comprising: means for determining, after a confidential security state exit of a virtual machine (VM), whether a pending IRQ is a timer IRQ with a VM-level processor privilege; means for activating the timer IRQ in a per-processor interrupt routing infrastructure (IRI)based on the pending IRQ being the timer IRQ with the VM-level processor privilege; and means for returning control to the VM.
Technical Overview & Description
BACKGROUND OF THE DISCLOSURE Aspects of the disclosure relate generally to handling of timer interrupt requests (IRQs). More specifically, but not exclusively, to delegation of timer IRQ handling to a confidential security state controller for enhanced efficiency. Traditional security measures, like encryption, conventionally protect data while in storage (e.g., in memory) or in transit (e.g., during communication). Confidential and secure processing environments have been introduced to ensure that data is protected during active use (e.g., processing). Some architectures (e.g., a confidential compute architecture (CCA)) use virtual machines (VMs) to process sensitive data. The architecture may include a computer having one or more processors/processor cores and a host operating system. Within the architecture, a VM monitor (e.g., a hypervisor) may create and manage one or more VMs. For sensitive data, the architecture may provide a trusted execution environment that includes special VMs that provide heightened data security (e.g., realm VMs). These VMs have special safeguards in place for ensuring data confidentiality and integrity, and are co-managed by a confidential security state controller (e.g., a realm management monitor (RMM)). The architecture may implement a trust boundary that isolates these VMs from other VMs, the hypervisor, and/or the host operating system (OS). In a scenario with multiple VMs, timer interrupts may be necessary to manage resources. For example, when a timer interrupt occurs during execution of a VM, the VM will exit to the confidential security state controller, and the confidential security state controller will exit to the host OS. The host OS and/or hypervisor may determine whether to perform resource management (e.g., reallocation of the resources to a different VM). Often, reallocation will not be performed, and control will return to the VM via the confidential security state controller. However, timer interrupts may occur frequ
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (0)
No backward patent references recorded.