Cloudification method, device, medium and electronic device for virtual machine components
By calling the system interface on the virtual machine side, the query instructions are transmitted to the physical machine, which solves the problem that virtual machine components cannot directly obtain physical machine data, and realizes the accuracy and security of system data.
Patent Information
- Application Number
- CN202010606457.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-29
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2040-06-29
AI Technical Summary
Virtual machine components cannot directly obtain data from the physical machine side, which affects the compatibility and accuracy of system data.
The query instructions are transmitted to the physical machine corresponding to the virtual machine through the system interface of the virtual machine. The physical machine querys and returns application data on the physical machine side.
It solves the problem that virtual machine components cannot directly call physical machine-side data, ensuring the security and correctness of system data.
Smart Images

Figure CN113934505B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of multimedia terminals and cloud computing, and in particular to a cloudification method, device, medium and electronic device for a virtual machine component. Background Art
[0002] With the rapid development of cloud computing and virtualization technology, and the increasing maturity of IPTV (Internet Protocol Television, interactive network television), in order to meet the needs of users to obtain higher multimedia audio and video processing speed, enjoy richer value-added services, and have a better user experience without having to iterate and update their home set-top boxes, cloud-based smart set-top boxes based on cloud computing and virtualization technology have been born.
[0003] In the related art, components on the virtual machine side are usually unable to directly obtain data on the physical machine side, which affects the compatibility and accuracy of the system data. Summary of the invention
[0004] Embodiments of the present invention provide a cloud-based method, device, medium, and electronic device for a virtual machine component, so as to at least solve the problem in the related art that the virtual machine component cannot directly call the physical machine-side data.
[0005] According to one embodiment of the present invention, a cloudification method for a virtual machine component is provided, the method comprising: a first component of the virtual machine queries application data on the virtual machine side based on an application request; if the query result of the application data is empty, the first component transmits the query instruction of the application data to a physical machine corresponding to the virtual machine by calling the system interface of the virtual machine; the virtual machine receives the application data obtained by the physical machine from the query on the physical machine side based on the query instruction.
[0006] According to another embodiment of the present invention, a cloudification method for a virtual machine component is provided, the method comprising: a physical machine corresponding to the virtual machine receives a query instruction for application data sent by the virtual machine, wherein the query instruction is sent by a first component of the virtual machine by calling a system interface of the virtual machine when the application data queried on the virtual machine side is empty; a second component of the physical machine queries the application data on the physical machine side according to the query instruction, wherein the second component is a component on the physical machine side corresponding to the first component; and the physical machine returns the query result of the application data to the virtual machine.
[0007] According to another embodiment of the present invention, a cloud device of a virtual machine component is provided, which is located at the virtual machine end, and the device includes: a first query module, used to query application data at the virtual machine end through the first component of the virtual machine based on an application request; a transmission module, used to transmit the query instruction of the application data to the physical machine corresponding to the virtual machine by calling the system interface of the virtual machine when the query result of the application data is empty; and a first receiving module, used to receive the application data obtained by the physical machine through the query at the physical machine end based on the query instruction.
[0008] According to another embodiment of the present invention, a cloud device for a virtual machine component is provided, which is located on a physical machine corresponding to the virtual machine, and the device includes: a second receiving module, which is used for querying instructions for application data sent by the virtual machine, wherein the query instructions for application data are sent by the first component of the virtual machine by calling a system interface when the result of querying application data on the virtual machine side is empty; a second query module, which is used to query the application data on the physical machine side according to the query instruction; and a return module, which is used to return the query result of the application data to the virtual machine.
[0009] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0010] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0011] Through the above-mentioned embodiments of the present invention, when the components of the virtual machine need to use application data, they can directly call the system interface to obtain relevant data from the physical machine, thereby solving the problem in the related technology that the virtual machine components cannot directly obtain data from the physical machine, and ensuring the security and correctness of the system data. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a hardware structure block diagram of a computer terminal of a cloudification method of a virtual machine component according to an embodiment of the present invention;
[0013] Figure 2 is a flow chart of a cloudification method for a virtual machine component according to an embodiment of the present invention;
[0014] Figure 3 is a flow chart of a cloudification method for a virtual machine component according to an optional embodiment of the present invention;
[0015] Figure 4 is a structural block diagram of a cloud device for a virtual machine component according to an embodiment of the present invention;
[0016] Figure 5 is a structural block diagram of a cloud device for a virtual machine component according to an optional embodiment of the present invention;
[0017] Figure 6 This is a basic structure and main workflow diagram of a cloud-based set-top box system according to an embodiment of the present invention;
[0018] Figure 7 This is a main workflow diagram of a cloud-based set-top box system according to an embodiment of the present invention;
[0019] Figure 8 is a flow chart of a component cloudification scenario when a cloudified set-top box is used according to an embodiment of the present invention;
[0020] Fig. 9 is a flow chart of optimizing the cloudification of a single component of a cloudified set-top box according to an embodiment of the present invention;
[0021] Fig.10 It is a sequence diagram of cloudification of specific main components of cloud platform components according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0024] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal, a server or a similar computing device. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal of a cloudification method of a virtual machine component according to an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the cloud method of the virtual machine component in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0026] The transmission device 106 is used to receive or send data via a network. The specific examples of the above-mentioned network may include a wireless network or a wired network or other hybrid networks. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0027] In this embodiment, a cloudification method for a virtual machine component running on the above-mentioned computer terminal is provided. Figure 2 is a flow chart of a cloudification method for a virtual machine component according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0028] Step S201, a first component of a virtual machine queries application data on the virtual machine side based on an application request;
[0029] Step S202, if the query result of the application data is empty, the first component transmits the query instruction of the application data to the physical machine corresponding to the virtual machine by calling the system interface of the virtual machine;
[0030] Step S203: the virtual machine receives application data obtained by the physical machine through querying the physical machine based on the query instruction.
[0031] Before step S201 of this embodiment, the method may further include: binding the system interface of the virtual machine with the communication service of the virtual machine and the physical machine.
[0032] In step S202 of this embodiment, the first component transmits the query instruction of the application data to the physical machine by calling the system interface of the virtual machine, and may also include: the first component calls the system interface of the virtual machine, and the system interface of the virtual machine then calls the communication service to transmit the query instruction to the physical machine.
[0033] After step S203 of this embodiment, the method may further include: the first component of the virtual machine returns the application data to the application that initiates the application request, and the application displays the application data on a display interface.
[0034] Through the above steps, since the cloud virtual machine itself does not save some application data of the physical machine, when the user in the virtual machine needs to use this data, it can obtain it immediately through the components of the virtual machine. Therefore, it can solve the problem in related technologies that the virtual machine cannot directly call the physical machine components to obtain data, thereby ensuring the privacy of the physical machine data while using the public virtual machine, and ensuring the correct acquisition of data.
[0035] In this embodiment, a cloud-based method for a virtual machine component is also provided. Figure 3 is a flow chart of a cloudification method for a virtual machine component according to an optional embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0036] Step S301, a physical machine corresponding to a virtual machine receives a query instruction for application data sent by the virtual machine, wherein the query instruction is sent by a first component of the virtual machine by calling a system interface of the virtual machine when the query for application data on the virtual machine side is empty;
[0037] Step S302, the second component of the physical machine queries the application data at the physical machine end according to the query instruction, wherein the second component is a component corresponding to the first component at the physical machine end;
[0038] Step S302: the physical machine returns the query result of the application data to the virtual machine.
[0039] In step S302 of this embodiment, the communication service on the physical machine parses the query instruction and calls the second component of the physical machine to query the application data on the physical machine side.
[0040] In step S303 of this embodiment, the second component of the physical machine calls the communication service of the virtual machine to return the query result of the application data to the cloud component of the virtual machine.
[0041] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0042] In this embodiment, a cloud device for a virtual machine component is also provided, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0043] Figure 4 is a structural block diagram of a cloud device for a virtual machine component according to an embodiment of the present invention, such as Figure 4 As shown, the device is located at the virtual machine end, and includes a first query module 10, a transmission module 20 and a first receiving module 30.
[0044] The first query module 10 is used to query application data on the virtual machine side through the first component base of the virtual machine based on an application request.
[0045] The transmission module 20 is used to transmit the query instruction of the application data to the physical machine corresponding to the virtual machine by calling the system interface of the virtual machine when the query result of the application data is empty.
[0046] The first receiving module 30 is used to receive application data obtained by the second component of the physical machine through querying on the physical machine side based on the query instruction.
[0047] In this embodiment, a display module 40 is also included, which is used to return the application data to the application and display the application data on a display interface.
[0048] Figure 5 is a structural block diagram of a cloud device for a virtual machine component according to an optional embodiment of the present invention, such as Figure 5 As shown, the device is located on a physical machine, and includes a second receiving module 50 , a second query module 60 and a returning module 70 .
[0049] The second receiving module 50 is used to receive a query instruction for application data sent by the virtual machine, wherein the query instruction for application data is sent by the first component of the virtual machine by calling the system interface of the virtual machine based on an application request when the result of querying the application data is empty.
[0050] The second query module 60 is used to query the application data at the entity terminal according to the query instruction.
[0051] The returning module 70 is used to return the query result of the application data to the virtual machine.
[0052] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0053] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0054] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0055] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0056] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0057] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0058] In order to facilitate the understanding of the technical solution provided by the present invention, an embodiment of a specific scenario of a cloud-based set-top box will be described in detail below.
[0059] The cloud-based set-top box vSTB not only needs to support traditional IPTV services, but also the cloud-based components become particularly important for the acquisition of data from many set-top boxes tSTB from the perspective of data privacy protection and data accuracy.
[0060] The four basic components of Android are activity, service, broadcast, and contentprovider. The cloud components involved in the embodiments of the present invention mainly include these cloud functions.
[0061] In the related art, vSTB cannot call tSTB components to obtain data. For example, when obtaining contentprovider data from an application on vSTB, for the application, tSTB and vSTB are in a unified system, and the interfaces are mixed and displayed on the TV, but the content of vSTB is displayed through the spiceClient application. This leads to a problem. There are two applications, one installed on tSTB and the other installed on vSTB. The contentprovider data obtained by the two applications may be different, thus affecting the compatibility and accuracy of the system data.
[0062] In an embodiment, the above technical problem is solved by clouding the components of the cloud set-top box. The core idea is: the cloud set-top box in the cloud queries relevant data through the component interface. If the data does not exist in the cloud, the component can directly go to the set-top box to obtain the corresponding data and return it to the cloud.
[0063] Figure 6 FIG. 1 is a basic structure and main workflow diagram of a cloud-based set-top box system according to an embodiment of the present invention. Figure 6 As shown in the figure, the cloud set-top box system mainly consists of three parts: the physical set-top box tSTB, the cloud set-top box vSTB (i.e., the virtual processor system), and the cloud platform virtual machine control system (VM Controller).
[0064] Figure 7 is a flow chart of the main working process of the cloud set-top box system according to an embodiment of the present invention. Figure 6 and Figure 7 As shown in the figure, the main workflow of the cloud set-top box system includes the following steps:
[0065] Step S701, the tSTB passes the tSTB authentication system and accesses the cloud platform;
[0066] Step S702, after passing the authentication of the authentication system of tSTB, the cloud platform virtual machine control system (VMController) allocates the corresponding virtual processor system vSTB to tSTB;
[0067] Step S703, vSTB receives the key command from tSTB, and based on the processing of the key command, vSTB feeds back the result to tSTB;
[0068] Step S704: The interface of the vSTB is displayed on the TV via spiceclient.
[0069] In this embodiment, step S703 may include: the application on the vSTB applies for component information, such as obtaining contentprovider information, and if the vSTB has response information, it feeds back relevant cursor data to the application; if the vSTB does not have data, it returns null.
[0070] In this embodiment, step S703 may include: application application component information on the vSTB, such as an application on the vSTB applying to open another third-party application. If the vSTB exists, it is opened directly; if it does not exist, the interface is unresponsive.
[0071] Through the description of the above implementation modes, those skilled in the art can clearly understand that an application can only obtain information on the system on the vSTB.
[0072] When the application obtains contentprovider data from the above vSTB, for the application, tSTB and vSTB are in a unified system, and the interfaces are mixed and displayed on the TV, but the content of vSTB is displayed through the spcieClient application; this leads to a problem. There are two applications, one installed on tSTB and the other installed on vSTB. The contentprovider data obtained by the two applications may be different.
[0073] The embodiment of the present invention mainly proposes a method for clouding the main components of a cloud set-top box, so as to solve the problem that the cloud set-top box vSTB cannot directly call the physical set-top box tSTB component to obtain data.
[0074] This specific embodiment uses contentprovider as an example. When a user opens an application that uses the contentprovider component, and the data queried by the vSTB using the contentResover component is empty, the corresponding request parameters can be packaged and organized into an ordered data string and transmitted to the interactive service of the tSTB by binding the service that communicates with the tSTB. The tSTB service then calls the system component interface to query the data in the tSTB system and return it to the vSTB.
[0075] The embodiment of the invention goes to the set-top box end and obtains data only when the query on the virtual machine end fails, thereby ensuring the compatibility and accuracy of the system data.
[0076] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0077] Figure 8 is a flow chart of a component cloudification scenario when a user uses a cloudified set-top box according to an embodiment of the present invention, such as Figure 8 As shown, in the scenario where the user uses the cloud component contentprovider of the cloud set-top box, the process includes the following steps:
[0078] Step S801, the user turns on the TV and the set-top box;
[0079] Step S802, the set-top box displays the interface of the vSTB application through the television;
[0080] Step S803, the application calls the contentprovider interface, and the query result is empty;
[0081] Step S804, vSTB queries the data of tSTB through the cloud component function;
[0082] Step S805, tSTB returns the data to vSTB;
[0083] Step S806: The application displays the acquired data on the interface.
[0084] According to the above user usage scenario, the corresponding workflow of the cloud set-top box cloud component of the present invention is as follows Fig. 9 shown.
[0085] Among them, this embodiment involves the following software-level applications that need to be modified:
[0086] The application of vSTB communication is referred to as frameworkproxy;
[0087] vSTB provides an interface for component calls, which is referred to as (devmanagerservice);
[0088] The application of tSTB communication is referred to as spiceclient here;
[0089] The framework layer of vSTB, i.e. framework;
[0090] The framework layer of tSTB does not need to be modified here, it just needs to be called.
[0091] Fig. 9is a flow chart of optimizing the cloudification of a single component of a cloudified set-top box according to an embodiment of the present invention, such as Fig. 9 As shown, the process includes the following steps:
[0092] Step S901, when the service for communication between vSTB and tSTB is created, the cloud-based system interface is bound to the service;
[0093] Step S902, when the tSTB is normally connected to the vSTB, the vSTB opens the application from the vSTB, and the application uses the component contentprovider;
[0094] Step S903: If the query of vSTB data is empty, contentResover calls the cloud system interface to query the tSTB data;
[0095] Step S904, the cloud-based system interface calls the communication service interface to transmit the specific instruction information to be queried or operated from the vSTB to the tSTB;
[0096] Step S905, the communication servcie on the tSTB parses the corresponding instruction and parses the instruction into a specific component interface call;
[0097] Step S906, tSTB feeds back the result of the component call to the vSTB communication service, and the service returns the result to the specific component of the vSTB;
[0098] Step S907: vSTB returns the cloud component return value to the application and displays it on the interface.
[0099] The above workflow involves vSTB data transmission and data caching; tSTB data return and data caching.
[0100] Fig.10 is a sequence diagram of cloudification of specific main components of cloud platform components according to an embodiment of the present invention, such as Fig.10 As shown, the process includes the following steps:
[0101] Step S1001, the application on the vSTB calls an interface to query database information;
[0102] Step S1002, the contentresover query interface in the framework on the vSTB is empty, that is, the vSTB has no corresponding database information;
[0103] Step S1003, the vSTB framework calls the interface in devmanagerservice to query the tstb database;
[0104] Step S1004, Devmanagerservice has previously bound to the frameworkproxy of the vSTB, and the vstb directly calls the interface of the frameworkproxy to communicate with the communication application in the tSTB;
[0105] Step S1005, the spiceclient in the tSTB receives the message to query the database, calls the interface of the frameworkwok layer of the tSTB, obtains the real data, and returns it to the frameworkproxy;
[0106] Step S1006, frameworkproxy in vSTB returns the data to devmanagerservice, and devmanagerservice returns the data to the framework of vSTB;
[0107] In step S1007, the framework in the vSTB returns the actual result to the user; the user can then obtain the data from the tSTB database.
[0108] In this embodiment, because the spiceclient of tSTB needs to manage multiple objects to interact, step S1001 may include: when the vSTB application calls a component query, the cloud component needs to be based on whether the current cloud function is turned on; if the cloud function is turned on, is it a normal query or a cloud query? If it is a cloud component function, add the cloud component flag and add the unique identifier of the component to facilitate communication with tSTB; the query is sent to the communication service via the system service, and then the query is sent to tSTB, and tSTB finds the handle of the component in tSTB according to the unique identifier; the handle is stored through mapping, and the specific data is queried according to the handle and returned to vSTB; the processed data is returned to the application.
[0109] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0110] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A cloudification method for a virtual machine component, characterized in that: include: The first component of the virtual machine queries the application data at the virtual machine end based on the application request; If the query result of the application data is empty, the first component transmits the query instruction of the application data to the physical machine corresponding to the virtual machine by calling the system interface of the virtual machine; The virtual machine receives application data obtained by the physical machine through querying the physical machine based on the query instruction.
2. The method according to claim 1, characterized in that Before the first component transmits the query instruction of the application data to the physical machine by calling the system interface of the virtual machine, the first component further includes: Bind the system interface of the virtual machine with the communication service of the virtual machine and the physical machine.
3. The method according to claim 2, characterized in that The first component transmits the query instruction of the application data to the physical machine by calling the system interface of the virtual machine, including: The first component calls the system interface of the virtual machine, and the system interface of the virtual machine calls the communication service to transmit the query instruction to the physical machine.
4. The method according to claim 1, characterized in that: After the virtual machine receives the application data obtained by the physical machine through querying on the physical machine side based on the query instruction, the method further includes: The first component of the virtual machine returns the application data to the application that initiated the application request, and the application displays the application data on a display interface.
5. A cloudification method for a virtual machine component, characterized in that: include: The physical machine corresponding to the virtual machine receives a query instruction for application data sent by the virtual machine, wherein the query instruction is sent by the first component of the virtual machine by calling the system interface of the virtual machine when the query application data on the virtual machine side is empty; The second component of the physical machine queries the application data on the physical machine side according to the query instruction, wherein the second component is a component corresponding to the first component on the physical machine side; The physical machine returns the query result of the application data to the virtual machine.
6. The method according to claim 5, characterized in that The second component of the physical machine queries the application data on the physical machine side according to the query instruction, including: The communication service on the physical machine parses the query instruction and calls the second component of the physical machine to query the application data on the physical machine side.
7. The method according to claim 6, characterized in that The physical machine returns the query result of the application data to the virtual machine, including: The second component of the physical machine calls the communication service of the virtual machine to return the query result of the application data to the cloud component of the virtual machine.
8. A cloud device for a virtual machine component, located at a virtual machine end, characterized in that: include: A first query module, configured to query application data on the virtual machine side through a first component of the virtual machine based on an application request; A transmission module, configured to transmit the query instruction of the application data to a physical machine corresponding to the virtual machine by calling a system interface of the virtual machine when the query result of the application data is empty; The first receiving module is used to receive application data obtained by the physical machine through querying at the physical machine end based on the query instruction.
9. The device according to claim 8, characterized in that The virtual machine is a cloud-based set-top box, and the physical machine is a set-top box.
10. A cloud device for a virtual machine component, located on a physical machine corresponding to the virtual machine, characterized in that: include: A second receiving module, for querying the application data sent by the virtual machine, wherein the querying instruction for the application data is sent by the first component of the virtual machine by calling the system interface when the result of querying the application data on the virtual machine side is empty; A second query module, used for querying the application data on the physical machine side according to the query instruction; The returning module is used to return the query result of the application data to the virtual machine.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.
12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Set top box clouded framework based on NFV and service implementation method thereof
CN108449633A
Communication method and apparatus between application programs, electronic device and storage medium
CN109189584A