# US 10,121,001 B1 · System and method for monolithic scheduling in a portable computing device using a hypervisor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,121,001 B1
- Document ID: US10121001B1
- Status: Granted
- Kind: B1
- Application number: 15/629,516
- Filed: 2017-06-21
- Granted: 2018-11-06
- Earliest claimed: 2017-06-21
- Assignees: QUALCOMM Incorporated
- Applicants: Qualcomm Incorporated
- Inventors: Thomas Zeng; Azzedine Touzni; Satyaki Mukherjee
- Web page: https://patentgrep.com/patent/US10121001B1

## CPC

- G06F 21/554: {involving event detection and direct action}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2009/45591: {Monitoring or debugging support}
- G06F 2221/034: Test or assess a computer or a system
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems for a method for monolithic workload scheduling in a portable computing device (“PCD”) having a hypervisor are disclosed. An exemplary method comprises instantiating a primary virtual machine at a first exception level, wherein the primary virtual machine comprises a monolithic scheduler configured to allocate workloads within and between one or more guest virtual machines in response to one or more interrupts, instantiating a secure virtual machine at the first exception level and instantiating one or more guest virtual machines at the first exception level as well. When an interrupt is received at a hypervisor associated with a second exception level, the interrupt is forwarded to the monolithic scheduler along with hardware usage state data and guest virtual machine usage state data. The monolithic scheduler may, in turn, generate one or more context switches which may comprise at least one intra-VM context switch and at least one inter-VM context switch.

## Claims

### Claim 1

A method for monolithic workload scheduling in a portable computing device (“PCD”) having a hypervisor, the method comprising:
instantiating a primary virtual machine at a first exception level, wherein the primary virtual machine (VM) comprises a monolithic scheduler configured to allocate workloads within and between one or more guest virtual machines in response to one or more interrupts;
instantiating a secure virtual machine at the first exception level;
instantiating one or more guest virtual machines at the first exception level;
receiving an interrupt at a hypervisor associated with a second exception level;
forwarding the interrupt to the monolithic scheduler along with hardware usage state data and guest virtual machine usage state data;
generating one or more context switches with the monolithic scheduler, wherein the one or more context switches comprise at least one intra-VM context switch and at least one inter-VM context switch;
periodically scheduling a secure task for verifying software image signatures to the secure virtual machine;
monitoring a secure timer relating to the secure task; and
based on the secure timer, determining the presence or absence of malware by determining whether a software image signature matches an approved signature.

### Claim 2 (depends on 1)

The method of claim 1, wherein the hypervisor and secure virtual machine make resource usage states readable to the primary virtual machine and the one or more guest virtual machines in a secure manner such that only metadata is published.

### Claim 3 (depends on 1)

The method of claim 1, further comprising generating a malware attack alert.

### Claim 4 (depends on 1)

The method of claim 1, wherein the primary virtual machine enables a user interface.

### Claim 5 (depends on 1)

The method of claim 1, wherein the guest virtual machine usage state data comprises metastates about at least one of a queue size of the virtual cpu (VCPU) list, Quality of Service (QoS) indicators from the secure virtual machine, and Real-time integrity checker (RTIC) timer state of the user-mode exception level (EL0).

### Claim 6 (depends on 1)

The method of claim 1, wherein the portable computing device is battery powered.

### Claim 7 (depends on 1)

The method of claim 1, wherein the portable computing device comprises at least one of a mobile telephone, a personal digital assistant, a pager, a smartphone, a navigation device, and a hand-held computer with a wireless connection or link.

### Claim 8

A computer system for monolithic workload scheduling in a portable computing device (“PCD”) having a hypervisor, the system comprising:
a system-on-chip (SoC) having a processor and memory, the processor and memory configured to execute:
application software, a graphics imaging library, and a run-time integrity checker module having a first exception level (EL0) corresponding to a user-mode of operation;
a primary virtual machine comprising a monolithic scheduler that is accessible by a secure virtual machine and a guest virtual machine, wherein the primary virtual machine, secure virtual machine, and guest virtual machine have a second exception level (EL1) corresponding to a kernal mode of operation; and
a hypervisor comprising an interrupt manager, a memory management unit, and an application core manager, wherein the interrupt manager, memory management unit, and AC manager have a third exception level (EL2) corresponding to a hypervisor mode of operation, the hypervisor configured to record a virtual machine usage state and provide that state to the monolithic scheduler of the primary virtual, the hypervisor configured to periodically schedules secure task for verifying software image signatures to the secure virtual machine, monitor a secure timer relating to the secure task, and based on the secure timer, determine the presence or absence of malware by determining whether a software image signature matches an approved signature.

### Claim 9 (depends on 8)

The system of claim 8, wherein the hypervisor and secure virtual machine make resource usage states readable to the primary virtual machine and the one or more guest virtual machines in a secure manner such that only metadata is published.

### Claim 10 (depends on 8)

The system of claim 8, wherein interrupt requests generated by the secure timer are handled by the hypervisor.

### Claim 11 (depends on 8)

The system of claim 8, wherein the primary virtual machine enables a user interface.

### Claim 12 (depends on 8)

The system of claim 8, wherein the guest virtual machine usage state data comprises metastates about at least one of a queue size of the virtual cpu (VCPU) list, Quality of Service (QoS) indicators from the secure virtual machine, and Real-time integrity checker (RTIC) timer state of the user-mode exception level (EL0).

### Claim 13 (depends on 8)

The system of claim 8, wherein the portable computing device is battery-powered.

### Claim 14 (depends on 8)

The system of claim 8, wherein the portable computing device comprises at least one of a mobile telephone, a personal digital assistant, a pager, a smartphone, a navigation device, and a hand-held computer with a wireless connection or link.

### Claim 15

A computer system for monolithic workload scheduling in a portable computing device (“PCD”) having a hypervisor, the system comprising:
means for instantiating a primary virtual machine at a first exception level, wherein the primary virtual machine (VM) comprises a monolithic scheduler configured to allocate workloads within and between one or more guest virtual machines in response to one or more interrupts;
means for instantiating a secure virtual machine at the first exception level;
means for instantiating one or more guest virtual machines at the first exception level;
means for receiving an interrupt at a hypervisor associated with a second exception level;
means for forwarding the interrupt to the monolithic scheduler along with hardware usage state data and guest virtual machine usage state data;
means for generating one or more context switches with the monolithic scheduler, wherein the one or more context switches comprise at least one intra-VM context switch and at least one inter-VM context switch;
means for periodically scheduling a secure task for verifying software image signatures to the secure virtual machine;
means for monitoring a secure timer relating to the secure task; and
means for determining, based on the secure timer, the presence or absence of malware by determining whether a software image signature matches an approved signature.

### Claim 16 (depends on 15)

The system of claim 15, wherein the hypervisor and secure virtual machine make resource usage states readable to the primary virtual machine and the one or more guest virtual machines in a secure manner such that only metadata is published.

### Claim 17 (depends on 15)

The system of claim 15, further comprising means for generating a malware attack alert.

### Claim 18 (depends on 15)

The system of claim 15, wherein the guest virtual machine usage state data comprises metastates about at least one of a queue size of the virtual cpu (VCPU) list, Quality of Service (QoS) indicators from the secure virtual machine, and Real-time integrity checker (RTIC) timer state of the user-mode exception level (EL0).

### Claim 19 (depends on 15)

The system of claim 15, wherein the portable computing device is battery powered.

### Claim 20 (depends on 15)

The system of claim 15, wherein the portable computing device comprises at least one of a mobile telephone, a personal digital assistant, a pager, a smartphone, a navigation device, and a hand-held computer with a wireless connection or link.

### Claim 21

A computer program product comprising a computer usable device having a computer readable program code embodied therein, said computer readable program code adapted to be executed to implement a method for monolithic workload scheduling in a portable computing device (“PCD”) having a hypervisor, said method comprising:
instantiating a primary virtual machine at a first exception level, wherein the primary virtual machine comprises a monolithic scheduler configured to allocate workloads within and between one or more guest virtual machines in response to one or more interrupts;
instantiating a secure virtual machine at the first exception level;
instantiating one or more guest virtual machines at the first exception level;
receiving an interrupt at a hypervisor associated with a second exception level;
forwarding the interrupt to the monolithic scheduler along with hardware usage state data and guest virtual machine usage state data;
generating one or more context switches with the monolithic scheduler, wherein the one or more context switches comprise at least one intra-VM context switch and at least one inter-VM context switch;
periodically scheduling a secure task for verifying software image signatures to the secure virtual machine;
monitoring a secure timer relating to the secure task; and
based on the secure timer, determining the presence or absence of malware by determining whether a software image signature matches an approved signature.

### Claim 22 (depends on 21)

The computer program product of claim 21, wherein the hypervisor and secure virtual machine make resource usage states readable to the primary virtual machine and the one or more guest virtual machines in a secure manner such that only metadata is published.

### Claim 23 (depends on 21)

The computer program product of claim 21, further comprising generating a malware attack alert.

### Claim 24 (depends on 21)

The computer program product of claim 21, wherein the guest virtual machine usage state data comprises metastates about at least one of a queue size of the virtual cpu (VCPU) list, Quality of Service (QoS) indicators from the secure virtual machine, and Real-time integrity checker (RTIC) timer state of the user-mode exception level (EL0).

### Claim 25 (depends on 21)

The computer program product of claim 21, wherein the portable computing device is battery powered.

### Claim 26 (depends on 21)

The computer program product of claim 21, wherein the portable computing device comprises at least one of a mobile telephone, a personal digital assistant, a pager, a smartphone, a navigation device, and a hand-held computer with a wireless connection or link.
