CN110297674B - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN110297674B
CN110297674B CN201910577286.2A CN201910577286A CN110297674B CN 110297674 B CN110297674 B CN 110297674B CN 201910577286 A CN201910577286 A CN 201910577286A CN 110297674 B CN110297674 B CN 110297674B
Authority
CN
China
Prior art keywords
package
application
memory
program
virtual device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910577286.2A
Other languages
Chinese (zh)
Other versions
CN110297674A (en
Inventor
李红卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910577286.2A priority Critical patent/CN110297674B/en
Publication of CN110297674A publication Critical patent/CN110297674A/en
Application granted granted Critical
Publication of CN110297674B publication Critical patent/CN110297674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44584Portable applications, i.e. making applications self-contained, e.g. U3 standard
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an information processing method and electronic equipment, wherein the method comprises the following steps: building a first virtual appliance based on a first package stored on a first memory, wherein the first package contains at least one first application; when the first virtual device is detected in the starting process of the electronic device, acquiring the first program package and constructing a second virtual device on a second memory of the electronic device based on the first program package; launching the first application from the second virtual device to invoke data corresponding to the first application from the second memory. The running process of the first application program does not depend on the first memory, the running of the first application program cannot be influenced by the disconnection or the failure of the first memory, and the running of the first application program is more stable.

Description

Information processing method and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an information processing method and an electronic device.
Background
Typically, an Extensible Firmware Interface (EFI) application package is stored in Embedded memory (eMMC) of a Baseboard Management Controller (BMC). During operation, firstly, the BMC mounts the EFI application program as a virtual device, then a Unified Extensible Firmware Interface (UEFI) senses the virtual device, and starts the EFI application program from the virtual device. Data needs to be read from the virtual device at proper time in the running process of the EFI application program, so that the virtual device must be always available in the running process of the EFI application program, and the BMC cannot be disconnected. The EFI application program function has larger dependence on BMC, is not flexible, has limited use function, and can directly cause the EFI application program crash due to the unstable BMC; moreover, the reading and writing speed of the virtual device is often not fast, so the performance of the EFI application program in the running process is influenced to a certain extent; the BMC consumes BMC resources if the virtual device remains available all the time, which places a burden on the BMC to some extent.
Content of application
The application provides an information processing method and electronic equipment, which are used for solving the technical problems that in the prior art, data needs to be loaded from virtual equipment in the running process of an EFI application program, and BMC cannot be disconnected, so that the running process of the EFI application program can be independent of BMC.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme:
an information processing method comprising:
building a first virtual appliance based on a first package stored on a first memory, wherein the first package contains at least one first application;
when the first virtual device is detected in the starting process of the electronic device, acquiring the first program package and constructing a second virtual device on a second memory of the electronic device based on the first program package;
launching the first application from the second virtual device to invoke data corresponding to the first application from the second memory.
In some embodiments, said building a first virtual appliance based on a first package stored on a first memory comprises:
a first virtual appliance is constructed based on the first package and a second package, wherein the second package includes at least one second application.
In some embodiments, the obtaining the first package and building a second virtual device on a second memory of the electronic device based on the first package comprises:
starting the second application program;
the second application builds the second virtual device on a second memory of the electronic device based on the first package.
In some embodiments, said launching said first application from said second virtual device comprises:
the second application launches the first application from the second virtual device.
In some embodiments, said building a second virtual appliance on a second memory of the electronic device based on the first package comprises:
allocating storage space on a second memory of the electronic device;
copying the first package to the storage space;
building the second virtual appliance based on the first package stored in the storage space.
An electronic device, comprising:
a build module to build a first virtual appliance based on a first package stored on a first memory, wherein the first package contains at least one first application;
the acquisition module is used for acquiring the first program package and constructing a second virtual device on a second memory of the electronic device based on the first program package after the first virtual device is detected in the starting process of the electronic device;
a starting module for starting the first application program from the second virtual device to call data corresponding to the first application program from the second memory.
In some embodiments, the building module is specifically configured to:
a first virtual appliance is constructed based on the first package and a second package, wherein the second package includes at least one second application.
In some embodiments, the obtaining module comprises:
the starting unit is used for starting the second application program;
a building unit to build, by the second application, the second virtual device on a second memory of the electronic device based on the first package.
In some embodiments, the starting module is specifically configured to:
launching, by the second application, the first application from the second virtual device.
In some embodiments, the building unit is specifically configured to:
allocating storage space on a second memory of the electronic device;
copying the first package to the storage space;
building the second virtual appliance based on the first package stored in the storage space.
The beneficial effects of the embodiment of the application are that:
in the information processing method of the embodiment of the application, a first program package is stored in a first memory, in an implementation process, a first virtual device is built based on the first program package, after the first virtual device is detected in a starting process of an electronic device, the first program package is obtained from the first virtual device, a second virtual device is built on a second memory of the electronic device based on the first program package, and then a first application program contained in the first program package is started from the second virtual device. Therefore, the first application program and the corresponding data are stored in the second memory, the first application program is started from the second memory, the corresponding data are obtained from the second memory, the running process of the first application program does not depend on the first memory, the running of the first application program cannot be influenced by the disconnection or the fault of the first memory, and the running of the first application program is more stable.
Drawings
Fig. 1 is a flowchart of a first embodiment of an information processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a second embodiment of an information processing method according to an embodiment of the present application;
fig. 3 is a flowchart of a method for constructing a second virtual device on a second storage of an electronic device based on a first program package in an information processing method according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a block diagram of an acquisition module of an electronic device according to an embodiment of the present application.
Description of reference numerals:
10-building a module; 20-an acquisition module; 21-a start-up unit; 22-a building unit; 30-start module.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
The embodiment of the application provides an information processing method, which comprises the following steps:
building a first virtual appliance based on a first package stored on a first memory, wherein the first package contains at least one first application;
when the first virtual device is detected in the starting process of the electronic device, acquiring the first program package and constructing a second virtual device on a second memory of the electronic device based on the first program package;
launching the first application from the second virtual device to invoke data corresponding to the first application from the second memory.
The first program package is stored on the first storage, in the implementation process, a first virtual device is built based on the first program package, after the first virtual device is detected in the starting process of the electronic device, the first program package is obtained from the first virtual device, a second virtual device is built on the second storage of the electronic device based on the first program package, and then a first application program contained in the first program package is started from the second virtual device. Therefore, the first application program and the corresponding data are stored in the second memory, the first application program is started from the second memory, the corresponding data are obtained from the second memory, the running process of the first application program after starting does not depend on the first memory, the running of the first application program cannot be influenced by the disconnection or the fault of the first memory, and the running of the first application program is more stable.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of an information processing method according to an embodiment of the present application, and referring to fig. 1, the information processing method includes the following steps:
s100, constructing a first virtual device based on a first program package stored on a first memory, wherein the first program package comprises at least one first application program.
The first memory may be a memory on the electronic device, or may be an external memory connected to the electronic device through an interface, for example. The first memory may take various forms including, but not limited to, volatile memory and/or non-volatile memory, for example. The first package may include one or more first applications, which may be, for example, a hardware detection application, a hardware driver application, a system setup application, an operating system boot program, or other types of applications, and is not specifically limited herein. After the first program package on the first storage is acquired, a first virtual device image file may be created based on the first program package, and then the first virtual device image file is mounted as a first virtual device, and the first virtual device is enabled. The first virtual device is a logic device based on first program package virtualization, and the first program package is virtualized as the first virtual device, so that the interface or other devices can quickly identify the first virtual device and acquire the first program package. .
S200, when the first virtual device is detected in the starting process of the electronic device, the first program package is obtained, and a second virtual device is constructed on a second memory of the electronic device based on the first program package.
The electronic device may be a desktop computer, an all-in-one computer, a notebook computer, a tablet computer, a smart phone, and the like, which is not limited herein. The electronic device can detect the first virtual device based on the interface in the starting process, and can also detect the first virtual device based on the operating system. After detecting the first virtual device, the first package can be obtained, for example, the first package is extracted from the first virtual device, and the first package is copied to the second storage. The second memory is a memory on the electronic device, which may also take various forms, including but not limited to, for example, volatile memory and/or non-volatile memory. Thereafter, a second virtual logical device is constructed on the second storage based on the first package, such that the first package is stored on the second storage such that the second virtual device can be quickly identified and the first package therein obtained.
S300, starting the first application program from the second virtual device, so as to call data corresponding to the first application program from the second storage.
The first application program can be started under the guidance of the bootstrap program, or can be started when the running state of the electronic equipment meets the preset condition, or can be started under the manual control of a user. Since the first application program and the corresponding data are stored in the second memory, the first application program calls the corresponding data from the second memory during the running process without calling the corresponding data from the first memory.
Taking the electronic device as a notebook computer as an example, the first memory may be an embedded memory (eMMC) on a Baseboard Management Controller (BMC), the first package may be an application package of an Extensible Firmware Interface (EFI), the first application may be an EFI application such as a hardware driver, an operating system boot program, and the like, and the second memory may be an internal memory of the notebook computer. In the starting process of the electronic equipment, firstly, the BMC constructs first virtual equipment based on a first program package stored on the eMMC; then, detecting the first virtual device through, for example, a Unified Extensible Fixed Interface (UEFI), and acquiring a first program package from the first virtual device, thereby creating a second virtual device on an internal memory based on the first program package; finally, the EFI application is launched from the second virtual device on the internal memory. Because the EFI application program and the corresponding data are stored in the internal memory, the EFI application program does not need to depend on BMC after being started, does not need to occupy BMC resources, is beneficial to reducing BMC load, and does not influence the running of the EFI application program when the BMC runs stably, so that the running stability of the EFI application program is higher.
As shown in fig. 2, in some embodiments, the building the first virtual appliance based on the first package stored on the first storage may include:
a first virtual appliance is constructed based on the first package and a second package, wherein the second package includes at least one second application.
The second application may be a loader or a bootstrap program, or may be a hardware detection application, a hardware driver application, a system setup application, an operating system bootstrap program, or other types of applications like the first application. The second package may be stored in the first memory or in another memory, as long as the second package can be acquired when a device such as a BMC constructs the first virtual device, and can be constructed as the first virtual device together with the first package. After detecting the first virtual device, the electronic device may acquire the second package, or start a second application program in the second package, in addition to the first package.
In some embodiments, the obtaining the first package and constructing a second virtual device on a second memory of the electronic device based on the first package may include:
starting the second application program;
the second application builds the second virtual device on a second memory of the electronic device based on the first package.
In a specific implementation process, a first virtual device may be constructed by, for example, a BMC of a laptop computer based on a first package and a second package, during a startup process of the laptop computer, UEFI may detect the first virtual device and start a second application program in the second package on the first virtual device, where the second application program may be a loader program, and a process of constructing a second virtual device on a second memory of an electronic device based on the first package may be executed by the second application program. That is, after the second application program is started, the second application program obtains the first program package and constructs a second virtual device on the internal memory of, for example, a notebook computer based on the first program package. Therefore, the content or format of the first application program or the first program package does not need to be modified, so that the information processing method can be generally suitable for loading and starting of various application programs and is suitable for popularization and application. In a preferred embodiment, the first program package may be a compressed program package, and after the second application program is started, the first program package is first obtained and decompressed, and then a second virtual device is constructed on a second storage of the electronic device based on the decompressed first program package. The compressed program package occupies a small space, and the storage space occupied by the first program package on the first storage can be reduced.
In some embodiments, the launching the first application from the second virtual device may include:
the second application launches the first application from the second virtual device.
That is, after the second virtual device is constructed, the second application program can also boot the first application program to start, without the need for the first application program to self-establish a boot program, or without the need for an operating system of the electronic device or an interface such as UEFI to start the first application program, which is beneficial to improving the practicability of the information processing method.
In some embodiments, the second package may be stored on the third memory, and before the launching of the second application, may further include:
building a third virtual appliance based on the second package;
and detecting the third virtual equipment and starting the second application program from the third virtual equipment.
The third memory may be another memory than the first memory, such as another memory on the BMC, or a memory elsewhere on the electronic device. In this case, the second package is stored in a different location from the first package, and the third virtual device is constructed based on the second package stored on the third storage simultaneously with, before, or after the first virtual device is constructed based on the first package stored on the first storage. Before the electronic device acquires the first program package, the electronic device first detects the third virtual device and starts the second application program from the third virtual device, then the second application program constructs the second virtual device on the second memory of the electronic device based on the first program package, and the second application program starts the first application program from the second virtual device. In this way, the second application program runs on the basis of the third storage, and compared with the first virtual device which is built on the basis of the common package of the first program package and the second program package, the first virtual device and the third virtual device are respectively built on the basis of the first program package and the second program package, the running of the second application program is not dependent on the first storage, and the degree of dependence on the first storage can be further reduced.
As shown in fig. 3, in some embodiments, the building a second virtual device on a second storage of the electronic device based on the first package includes:
s201, allocating a storage space on a second storage of the electronic equipment;
s202, copying the first program package to the storage space;
s203, constructing the second virtual device based on the first program package stored in the storage space.
Still taking the electronic device as a notebook computer and taking the second storage as an internal storage as an example, first, the second application program requests the internal storage of the notebook computer to allocate a storage space for storing the first program package, then copies the first program package to the storage space, if the first program package is a compressed program package, decompresses the compressed program package and obtains the decompressed first program package, after obtaining the first program package, may create a second virtual device image file based on the first program package, then mount the second virtual device image file as the second virtual device, and register the second virtual device on the internal storage to form a recognizable interface, and then start the second virtual device to complete the construction process of the second virtual device.
The second virtual device may be configured to automatically delete the first virtual device from the internal memory after the first application is finished running, so as to avoid occupying the internal memory space. The second virtual device may be further configured to delete the application program from the internal memory when the occupancy rate of the internal memory is greater than the preset threshold, so that the second virtual device is retained in the internal memory when the occupancy rate of the internal memory is low, so as to be able to be started quickly when needed, and can delete the application program from the internal memory when the occupancy rate of the internal memory is high, thereby avoiding the influence on the operation of the application program requiring a large memory space, such as an image processing program, due to the occupation of the space of the internal memory. Or, when the electronic device satisfies a first predetermined condition, the data related to the second virtual device is saved in the non-volatile memory, and when the electronic device satisfies a second predetermined condition, the data related to the second virtual device stored in the non-volatile memory is called to the internal memory. For example, when the electronic device is in an unused state such as shutdown, standby, hibernation, or sleep, the data related to the second virtual device is transferred to a hard disk of a notebook computer, and when the electronic device is awakened or restarted, the data related to the second virtual device may be called from the hard disk to an internal memory, so that the first application program can be quickly started.
An embodiment of the present application further provides an electronic device, including:
a building module 10 for building a first virtual appliance based on a first package stored on a first memory, wherein the first package contains at least one first application;
an obtaining module 20, configured to obtain the first program package and construct a second virtual device on a second memory of the electronic device based on the first program package after the first virtual device is detected in a starting process of the electronic device;
a starting module 30, configured to start the first application program from the second virtual device, so as to call data corresponding to the first application program from the second storage.
The first program package is stored in the first storage, in an implementation process, the building module 10 builds a first virtual device based on the first program package, after detecting the first virtual device in a starting process of the electronic device, the obtaining module 20 obtains the first program package from the first virtual device, builds a second virtual device on a second storage of the electronic device based on the first program package, and then the starting module 30 starts a first application program included in the first program package from the second virtual device. Therefore, the first application program and the corresponding data are stored in the second memory, the first application program is started from the second memory, the corresponding data are obtained from the second memory, the running process of the first application program after starting does not depend on the first memory, the running of the first application program cannot be influenced by the disconnection or the fault of the first memory, and the running of the first application program is more stable.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present application, and referring to fig. 4, the electronic device includes:
a building module 10 for building a first virtual appliance based on a first package stored on a first memory, wherein the first package contains at least one first application.
The first memory may be a memory on the electronic device, or may be an external memory connected to the electronic device through an interface, for example. The first memory may take various forms including, but not limited to, volatile memory and/or non-volatile memory, for example. The first package may include one or more first applications, which may be, for example, a hardware detection application, a hardware driver application, a system setup application, an operating system boot program, or other types of applications, and is not specifically limited herein. After the first program package on the first storage is acquired, a first virtual device image file may be created based on the first program package, and then the first virtual device image file is mounted as a first virtual device, and the first virtual device is enabled. The first virtual device is a logic device based on first program package virtualization, and the first program package is virtualized as the first virtual device, so that the interface or other devices can quickly identify the first virtual device and acquire the first program package.
The obtaining module 20 is configured to, after detecting the first virtual device in a starting process of the electronic device, obtain the first program package and construct a second virtual device on a second memory of the electronic device based on the first program package.
The electronic device may be a desktop computer, an all-in-one computer, a notebook computer, a tablet computer, a smart phone, and the like, which is not limited herein. The electronic device can detect the first virtual device based on the interface in the starting process, and can also detect the first virtual device based on the operating system. After detecting the first virtual device, the obtaining module 20 can obtain the first package, such as extracting the first package from the first virtual device, and copying the first package onto the second storage. The second memory is a memory on the electronic device, which may also take various forms, including but not limited to, for example, volatile memory and/or non-volatile memory. Thereafter, a second virtual logical device is constructed on the second storage based on the first package, such that the first package is stored on the second storage such that the second virtual device can be quickly identified and the first package therein obtained.
A starting module 30, configured to start the first application program from the second virtual device, so as to call data corresponding to the first application program from the second storage.
The first application program can be started under the guidance of the bootstrap program, or can be started when the running state of the electronic equipment meets the preset condition, or can be started under the manual control of a user. Since the first application program and the corresponding data are stored in the second memory, the first application program calls the corresponding data from the second memory during the running process without calling the corresponding data from the first memory.
Taking the electronic device as a notebook computer as an example, the first memory may be an embedded memory (eMMC) on a Baseboard Management Controller (BMC), the first package may be an application package of an Extensible Firmware Interface (EFI), the first application may be an EFI application such as a hardware driver, an operating system boot program, and the like, and the second memory may be an internal memory of the notebook computer. In the starting process of the electronic equipment, firstly, the BMC constructs first virtual equipment based on a first program package stored on the eMMC; then, detecting the first virtual device through, for example, a Unified Extensible Fixed Interface (UEFI), and acquiring a first program package from the first virtual device, thereby creating a second virtual device on an internal memory based on the first program package; finally, the EFI application is launched from the second virtual device on the internal memory. Because the EFI application program and the corresponding data are stored in the internal memory, the EFI application program does not need to depend on BMC after being started, does not need to occupy BMC resources, is beneficial to reducing BMC load, and does not influence the running of the EFI application program when the BMC runs stably, so that the running stability of the EFI application program is higher.
In some embodiments, the building module 10 is specifically configured to:
building a first virtual appliance based on the first package and a second package stored on the first memory, wherein the second package includes at least one second application.
The second application may be a loader or a bootstrap program, or may be a hardware detection application, a hardware driver application, a system setup application, an operating system bootstrap program, or other types of applications like the first application. The second package may be stored in the first memory or in another memory, as long as the second package can be acquired when a device such as a BMC constructs the first virtual device, and can be constructed as the first virtual device together with the first package. After detecting the first virtual device, the electronic device may acquire the second package, or start a second application program in the second package, in addition to the first package.
As shown in fig. 5, in some embodiments, the obtaining module 20 includes:
a starting unit 21 configured to start the second application;
a building unit 22, configured to build, by the second application program, the second virtual device on a second memory of the electronic device based on the first program package.
In a specific implementation process, a first virtual device may be constructed based on a first program package and a second program package by, for example, a BMC of a notebook computer, UEFI may detect the first virtual device during a startup process of the notebook computer, and a second application program in the second program package on the first virtual device may be started through the starting unit 21, where the second application program may be a loader, and a process of constructing the second virtual device on a second memory of the electronic device based on the first program package may be executed by the second application program. That is, after the second application program is started, the constructing unit 22 acquires the first program package through the second application program and constructs the second virtual device on the internal memory of, for example, the notebook computer based on the first program package. Therefore, the content or format of the first application program or the first program package does not need to be modified, so that the electronic equipment can be generally suitable for loading and starting of various application programs, and is suitable for popularization and application. In a preferred embodiment, the first program package may be a compressed program package, and after the second application program is started, the first program package is first obtained and decompressed, and then a second virtual device is constructed on a second storage of the electronic device based on the decompressed first program package. The compressed program package occupies a small space, and the storage space occupied by the first program package on the first storage can be reduced.
In some embodiments, the starting module 30 is specifically configured to:
launching, by the second application, the first application from the second virtual device.
That is, after the second virtual device is built, the second application program can also boot the first application program to start, without the need for the first application program to have a boot program by itself, or without the need for an operating system of the electronic device or an interface such as UEFI to start the first application program, which is beneficial to improving the practicability of the electronic device.
In some embodiments, the second package may be stored on a third memory;
the building module 10 is further configured to build a third virtual device based on the second program package;
the obtaining module 20 is further configured to detect the third virtual device and start the second application program from the third virtual device.
The third memory may be another memory than the first memory, such as another memory on the BMC, or a memory elsewhere on the electronic device. In this case, the second package is stored in a different location from the first package, and the third virtual device is constructed based on the second package stored on the third storage simultaneously with, before, or after the first virtual device is constructed based on the first package stored on the first storage. Before the electronic device acquires the first program package, the electronic device first detects the third virtual device and starts the second application program from the third virtual device, then the second application program constructs the second virtual device on the second memory of the electronic device based on the first program package, and the second application program starts the first application program from the second virtual device. In this way, the second application program runs on the basis of the third storage, and compared with the first virtual device which is built on the basis of the common package of the first program package and the second program package, the first virtual device and the third virtual device are respectively built on the basis of the first program package and the second program package, the running of the second application program is not dependent on the first storage, and the degree of dependence on the first storage can be further reduced.
In some embodiments, the building unit 22 is specifically configured to:
allocating storage space on a second memory of the electronic device;
copying the first package to the storage space;
building the second virtual appliance based on the first package stored in the storage space.
Still taking the electronic device as a notebook computer and taking the second storage as an internal storage as an example, first, the second application program requests the internal storage of the notebook computer to allocate a storage space for storing the first program package, then copies the first program package to the storage space, if the first program package is a compressed program package, decompresses the compressed program package and obtains the decompressed first program package, after obtaining the first program package, may create a second virtual device image file based on the first program package, then mount the second virtual device image file as the second virtual device, and register the second virtual device on the internal storage to form a recognizable interface, and then start the second virtual device to complete the construction process of the second virtual device.
The second virtual device may be configured to automatically delete the first virtual device from the internal memory after the first application is finished running, so as to avoid occupying the internal memory space. The second virtual device may be further configured to delete the application program from the internal memory when the occupancy rate of the internal memory is greater than the preset threshold, so that the second virtual device is retained in the internal memory when the occupancy rate of the internal memory is low, so as to be able to be started quickly when needed, and can delete the application program from the internal memory when the occupancy rate of the internal memory is high, thereby avoiding the influence on the operation of the application program requiring a large memory space, such as an image processing program, due to the occupation of the space of the internal memory. Or, when the electronic device satisfies a first predetermined condition, the data related to the second virtual device is saved in the non-volatile memory, and when the electronic device satisfies a second predetermined condition, the data related to the second virtual device stored in the non-volatile memory is called to the internal memory. For example, when the electronic device is in an unused state such as shutdown, standby, hibernation, or sleep, the data related to the second virtual device is transferred to a hard disk of a notebook computer, and when the electronic device is awakened or restarted, the data related to the second virtual device may be called from the hard disk to an internal memory, so that the first application program can be quickly started.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. An information processing method comprising:
building a first virtual appliance based on a first package stored on a first memory, wherein the first package contains at least one first application;
when the first virtual device is detected in the starting process of the electronic device, acquiring the first program package and constructing a second virtual device on a second memory of the electronic device based on the first program package;
launching the first application from the second virtual device to invoke data corresponding to the first application from the second memory.
2. The information processing method of claim 1, wherein the building a first virtual appliance based on a first package stored on a first memory comprises:
a first virtual appliance is constructed based on the first package and a second package, wherein the second package includes at least one second application.
3. The information processing method of claim 2, wherein the obtaining the first package and building a second virtual device on a second memory of an electronic device based on the first package comprises:
starting the second application program;
the second application builds the second virtual device on a second memory of the electronic device based on the first package.
4. The information processing method according to claim 3, wherein the starting of the first application from the second virtual device includes:
the second application launches the first application from the second virtual device.
5. The information processing method of claim 3, wherein the building a second virtual appliance on a second memory of the electronic device based on the first package comprises:
allocating storage space on a second memory of the electronic device;
copying the first package to the storage space;
building the second virtual appliance based on the first package stored in the storage space.
6. An electronic device, comprising:
a build module to build a first virtual appliance based on a first package stored on a first memory, wherein the first package contains at least one first application;
the acquisition module is used for acquiring the first program package and constructing a second virtual device on a second memory of the electronic device based on the first program package after the first virtual device is detected in the starting process of the electronic device;
a starting module for starting the first application program from the second virtual device to call data corresponding to the first application program from the second memory.
7. The electronic device of claim 6, wherein the build module is specifically configured to:
a first virtual appliance is constructed based on the first package and a second package, wherein the second package includes at least one second application.
8. The electronic device of claim 7, wherein the acquisition module comprises:
the starting unit is used for starting the second application program;
a building unit to build, by the second application, the second virtual device on a second memory of the electronic device based on the first package.
9. The electronic device of claim 8, wherein the start module is specifically configured to:
launching, by the second application, the first application from the second virtual device.
10. The electronic device of claim 8, wherein the building unit is specifically configured to:
allocating storage space on a second memory of the electronic device;
copying the first package to the storage space;
building the second virtual appliance based on the first package stored in the storage space.
CN201910577286.2A 2019-06-28 2019-06-28 Information processing method and electronic equipment Active CN110297674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910577286.2A CN110297674B (en) 2019-06-28 2019-06-28 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910577286.2A CN110297674B (en) 2019-06-28 2019-06-28 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110297674A CN110297674A (en) 2019-10-01
CN110297674B true CN110297674B (en) 2021-01-15

Family

ID=68029430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910577286.2A Active CN110297674B (en) 2019-06-28 2019-06-28 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110297674B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0715814D0 (en) * 2006-08-18 2007-09-26 Intel Corp EFI based mechanism to export platform management capabilities to the os
CN102135891A (en) * 2010-01-21 2011-07-27 杭州华三通信技术有限公司 System capable of realizing bootload, bootload control device and method
CN104375890A (en) * 2008-12-31 2015-02-25 英特尔公司 Processor extensions for execution of secure embedded containers
TWI566105B (en) * 2016-05-17 2017-01-11 神雲科技股份有限公司 Rack
CN106909400A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of UEFI firmware implementation methods based on notebook
CN109408115A (en) * 2018-09-12 2019-03-01 上海数耕智能科技有限公司 A kind of method and computing system based on migrating objects in container environment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015114841A (en) * 2013-12-11 2015-06-22 富士通株式会社 Information processing device, control program, and data movement method
CN105095005B (en) * 2015-06-30 2018-11-20 上海华为技术有限公司 A kind of fault initiating method and device
CN108021405B (en) * 2016-10-28 2020-11-06 瑞芯微电子股份有限公司 Method and device for driving storage medium in SOC system starting process
US10489594B2 (en) * 2017-07-19 2019-11-26 Dell Products, Lp System and method for secure migration of virtual machines between host servers
CN108334383B (en) * 2018-03-30 2021-09-14 联想(北京)有限公司 Information processing method and electronic equipment
CN109408122B (en) * 2018-09-28 2021-05-18 联想(北京)有限公司 Equipment starting method, electronic equipment and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0715814D0 (en) * 2006-08-18 2007-09-26 Intel Corp EFI based mechanism to export platform management capabilities to the os
CN104375890A (en) * 2008-12-31 2015-02-25 英特尔公司 Processor extensions for execution of secure embedded containers
CN102135891A (en) * 2010-01-21 2011-07-27 杭州华三通信技术有限公司 System capable of realizing bootload, bootload control device and method
CN106909400A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of UEFI firmware implementation methods based on notebook
TWI566105B (en) * 2016-05-17 2017-01-11 神雲科技股份有限公司 Rack
CN109408115A (en) * 2018-09-12 2019-03-01 上海数耕智能科技有限公司 A kind of method and computing system based on migrating objects in container environment

Also Published As

Publication number Publication date
CN110297674A (en) 2019-10-01

Similar Documents

Publication Publication Date Title
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
US20110213954A1 (en) Method and apparatus for generating minimum boot image
US9563437B2 (en) Technologies for pre-memory phase initialization of a computing device
CN105739961B (en) Starting method and device of embedded system
JP2009512020A (en) Fast startup from operating system halt state
US20140304497A1 (en) Electronic device having function of booting operating system by bootloader, method of performing the same function, and storage medium
CN114879828A (en) Firmware interface with persistent memory storage
US7007195B2 (en) BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image & software failure
CN103514015A (en) Method and device for booting operation system from storage medium
US20220308963A1 (en) Method and apparatus for providing recovery from a computing device boot up error
CN107408073B (en) Reducing memory commit overhead using memory compression
US20140089653A1 (en) Electronic apparatus, method of restoring guid partition table (gpt) and computer-readable recording medium
US7284084B2 (en) ROM scan memory expander
US7849300B2 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
CN110737558A (en) Method and device for automatically deploying efi shell system to execute test, computer equipment and storage medium
US11226755B1 (en) Core dump in a storage device
CN113127263B (en) Kernel crash recovery method, device, equipment and storage medium
CN110297674B (en) Information processing method and electronic equipment
CN102591691B (en) Hard disk startup method and the os starting loading method based on BIOS
CN111796882A (en) Electronic equipment system processing method and device and electronic equipment
CN116521062A (en) Data processing method, device, computer equipment and storage medium
TWI518594B (en) Computer system and activation method for computer system
WO2023279875A1 (en) Bootloader startup procedure monitoring method and apparatus, embedded device, and storage medium
US10768940B2 (en) Restoring a processing unit that has become hung during execution of an option ROM
US10061630B2 (en) Image forming apparatus that ensures operation while HDD is inoperative, and recording medium therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant