# US 9,354,919 B2 · Method and device for loading android virtual machine application

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

- Number: US 9,354,919 B2
- Document ID: US9354919B2
- Status: Granted
- Kind: B2
- Application number: 14/478,030
- Filed: 2014-09-05
- Published: 2014-12-25
- Granted: 2016-05-31
- Earliest claimed: 2013-06-04
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Shuhua Chen; Yunfeng Dai
- Web page: https://patentgrep.com/patent/US9354919B2

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/4416: {Network booting; Remote initial program loading [RIPL]}
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and a device for loading a virtual machine application are provided herein. An exemplary method comprises: loading a management object of the virtual machine by the layer-booting object; reading the virtual machine configuration by the management object of the virtual machine; and invoking a creation function of the management object of the virtual machine by the virtual machine configuration and creating an operational instance of the virtual machine. The Android loading method and device for a virtual machine can be used to improve switching speed between instances.

## Claims

### Claim 1

A method comprising:
loading a layer-booting object that is a Linux Kernel layer object;
loading a management object of a virtual machine by the loaded layer-booting object;
reading a configuration of the virtual machine by the loaded management object of the virtual machine;
invoking a creation function of the loaded management object of the virtual machine by the read configuration and thereby creating a zygote process; and
creating an operational instance of the virtual machine based on Android Runtime layer by the zygote process.

### Claim 2 (depends on 1)

The method according to claim 1, wherein
the configuration further includes a processor status register instruction set corresponding to the operational instance of the virtual machine; and
the method further comprising:
coding the processor status register instruction set by invoking an instruction coding function of the loaded management object of the virtual machine.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
accepting switching instructions of the virtual machine; and
invoking a switching function of the loaded management object of the virtual machine by the accepted switching instructions of the virtual machine and thereby switching the operational instance of the virtual machine.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
accepting creation instructions of the virtual machine; and
invoking a creation function of the management object of the virtual machine by the accepted creation instructions of the virtual machine and thereby creating a new operational instance of the virtual machine.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
accepting switching instructions of the virtual machine; and
invoking a switching function of the loaded management object of the virtual machine by the accepted switching instructions of the virtual machine and thereby switching the operational instance of the virtual machine.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
accepting creation instructions of the virtual machine; and
invoking a creation function of the loaded management object of the virtual machine by the accepted creation instructions of the virtual machine and thereby creating the a new operational instance of the virtual machine.

### Claim 7

A method comprising:
loading a layer-booting object that is a bootloader layer object;
loading a management object of a virtual machine by the loaded layer-booting object;
reading a configuration of the virtual machine by the loaded management object of the virtual machine;
invoking a creation function of the loaded management object of the virtual machine by the read configuration based on Linux Kernel layer and thereby creating an operational instance of the virtual machine;
intercepting interruption instructions and/or abnormal instructions by the loaded management object of the virtual machine;
accepting a memory location corresponding to the intercepted instructions and/or abnormal instructions; and
transmitting the intercepted instructions and/or abnormal instructions to a corresponding instructions handling function and/or an abnormal handling function of the operational instance of the virtual machine by the accepted memory location.

### Claim 8 (depends on 7)

The method according to claim 7, further comprising:
accepting switching instructions of the virtual machine; and
invoking a switching function of the loaded management object of the virtual machine by the accepted switching instructions of the virtual machine and thereby switching the operational instance of the virtual machine.

### Claim 9 (depends on 7)

The method according to claim 7, further comprising:
accepting creation instructions of the virtual machine; and
invoking a creation function of the loaded management object of the virtual machine by the accepted creation instructions of the virtual machine and thereby creating a new operational instance of the virtual machine.

### Claim 10

A device comprising:
at least one computer configured to provide:
a boot-object loading module configured to load a layer-booting object that is a Linux Kernel layer object;
a management object loading module configured to load a management object of a virtual machine by the loaded layer-booting object;
a configuration reading module configured to read a configuration of the virtual machine by the loaded management object of the virtual machine; and
a virtual machine configuration initialization module configured to invoke a creation function of the loaded management object of the virtual machine by the read configuration and thereby create a zygote process, and to create an operational instance of the virtual machine based on Android Runtime layer by the zygote process.

### Claim 11 (depends on 10)

The device according to claim 10, wherein the configuration further includes:
a processor status register instruction set corresponding to the operational instance of the virtual machine; and
the configuration reading module is further configured to code the processor status register instruction set by invoking an instruction coding function of the loaded management object of the virtual machine.

### Claim 12 (depends on 10)

The device according to claim 10, wherein the at least one computer is further configured to provide a virtual machine switching module configured to accept a switching instructions of the virtual machine, and to invoke a switching function of the management object of the virtual machine by the accepted switching instructions of the virtual machine and thereby switch the operational instance of the virtual machine.

### Claim 13 (depends on 10)

The device according to claim 10, wherein the at least one computer is further configured to provide a virtual machine creating module configured to accept a creation instructions of the virtual machine, and to invoke a creation function of the loaded management object of the virtual machine by the accepted creation instructions of the virtual machine and thereby create a new operational instance of the virtual machine.

### Claim 14

A comprising:
at least one computer configured to provide:
a boot-object loading module configured to load a layer-booting object that is a bootloader layer object;
a management object loading module configured to load a management object of a virtual machine by the loaded layer-booting object;
a configuration reading module configured to read a configuration of the virtual machine by the loaded management object of the virtual machine; and
a virtual machine configuration initialization module configured to invoke a creation function of the loaded management object of the virtual machine by the read configuration based on Linux Kernel layer and thereby create an operational instance of the virtual machine,
wherein the at least one computer is further configured to provide an instructions scheduling module configured to intercept interruption instructions and/or abnormal instructions by the loaded management object of the virtual machine, to accept a memory location corresponding to the intercepted instructions and/or abnormal instructions, and to transmit the instructions and/or abnormal instructions to a corresponding instructions handling function and/or a abnormal handling function of the operational instance of the virtual machine by the memory location.

### Claim 15

A non-transitory computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which, when executed by a mobile device having one or more processors and a display, cause the mobile device to perform operations including:
loading a layer-booting object that is a Linux Kernel layer object;
loading a management object of a virtual machine by the loaded layer-booting object;
reading a configuration of the virtual machine by the loaded management object of the virtual machine;
invoking a creation function of the loaded management object of the virtual machine by the read configuration and thereby creating a zygote process; and
creating an operational instance of the virtual machine based on Android Runtime layer by the zygote process.

### Claim 16

An apparatus comprising :
at least one computer configured to:
load a layer-booting object that is a Linux Kernel layer object;
load a management object of a virtual machine by the loaded layer-booting object;
read a configuration of the virtual machine by the loaded management object;
invoke a creation function of the loaded management object by the read configuration and thereby create a plurality of zygote processes;
create a plurality of operational instances of the virtual machine based on Android Runtime layer by the plurality of zygote processes, respectively; and
invoke a switching function of the loaded management object to thereby switch from a respective operational instance of the plurality of operational instances to a different operational instance of the plurality of operational instances.
