Method and device for loading android virtual machine application
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsShuhua Chen, Yunfeng Dai
Life of this patent
Estimating the term…
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.
Claims16
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.
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.
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.
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.
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.
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.
Dependencies are inferred from the claim text.