Remote desktop control method and device based on DPU, equipment and medium
By sinking the remote control server program to the DPU, and using the target graphics adapter component in the DPU to obtain and send desktop image information, the problem of remote control occupying resources is solved, and the service performance and security of the controlled end are improved.
Patent Information
- Application Number
- CN202510391004.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-11
AI Technical Summary
In the existing remote desktop control technology, server-side programs run on the controlled machine, occupying resources and affecting business performance.
Sink the remote control server program to the DPU, and obtain and send desktop image information through the target graphics adapter component in the DPU, avoiding running on the host under control.
Improves the service performance of the controlled end and improves access security through physical isolation to avoid data leakage from multiple users.
Smart Images

Figure CN120295709A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of remote desktop control, and in particular, to a remote desktop control method, device, equipment, and medium based on a DPU. Background Art
[0002] Current remote desktop control technologies all require deploying a server program, i.e., server, on the controlled machine and a client program, i.e., client, on the control end. After the controlled machine and the control end establish a connection, the control end receives the desktop information sent by the server based on the client, and then performs remote desktop control on the controlled machine based on the desktop information.
[0003] However, since the server runs on the controlled machine, the server will occupy the resources of the controlled machine, such as CPU resources, network resources, etc., thereby affecting the business performance of the controlled machine. Summary of the Invention
[0004] To solve the above technical problems, the present disclosure provides a remote desktop control method, device, equipment, and medium based on a DPU.
[0005] The first aspect of the embodiments of the present disclosure provides a remote desktop control method based on a DPU, which is applied to a DPU in which a remote control server program and a target graphics adapter component are deployed, and includes:
[0006] In response to a to-be-processed request sent by a control end, obtain a target descriptor corresponding to the to-be-processed request from a preset queue based on the target graphics adapter component, where the target descriptor is the descriptor corresponding to the most recent desktop image information of the controlled end;
[0007] Obtain desktop image information based on the target graphics adapter component and the target descriptor;
[0008] Send the desktop image information to the control end based on the remote control server program, so that the control end performs remote desktop control on the controlled end based on the desktop image information.
[0009] The second aspect of the embodiments of the present disclosure provides a remote desktop control device based on a DPU, which is applicable to a DPU in which a remote control server program and a target graphics adapter component are deployed, and includes:
[0010] A first acquisition module, configured to obtain a target descriptor corresponding to a to-be-processed request from a preset queue based on the target graphics adapter component in response to the to-be-processed request sent by the control end, where the target descriptor is the descriptor corresponding to the most recent desktop image information of the controlled end;
[0011] A second acquisition module, configured to acquire desktop image information based on a target graphics adapter component and a target descriptor;
[0012] An information sending module, configured to send the desktop image information to a control end based on a remote control server program, so that the control end performs remote desktop control on a controlled end based on the desktop image information.
[0013] A third aspect of the embodiments of the present disclosure provides an electronic device, including:
[0014] A processor;
[0015] A memory, configured to store executable instructions;
[0016] Wherein, the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the DPU-based remote desktop control method provided in the first aspect above.
[0017] A fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the DPU-based remote desktop control method provided in the first aspect above.
[0018] The technical solutions provided by the embodiments of the present disclosure have the following advantages compared with the prior art:
[0019] The DPU-based remote desktop control method, device, equipment and medium provided by the embodiments of the present disclosure can, in response to a to-be-processed request sent by a control end, acquire a target descriptor corresponding to the to-be-processed request from a preset queue based on a target graphics adapter component, where the target descriptor is a descriptor corresponding to the most recent desktop image information of the controlled end. Then, based on the target graphics adapter component and the target descriptor, desktop image information is acquired. After the desktop image information is acquired, the desktop image information is sent to the control end based on a remote control server program, so that the control end performs remote desktop control on the controlled end based on the desktop image information. Thus, by sinking the remote control server program from the host side of the controlled end to the DPU, the problem that the remote control server program runs on the controlled end and occupies the resources of the controlled end is avoided, and further the service performance of the controlled end is improved. Description of the Drawings
[0020] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present disclosure and used together with the description to explain the principles of the present disclosure.
[0021] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0022] Figure 1 is a flowchart of a remote desktop control method based on DPU provided by an embodiment of the present disclosure;
[0023] Figure 2 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0024] Figure 3 is a flowchart of another remote desktop control method based on DPU provided by an embodiment of the present disclosure;
[0025] Figure 4 is a flowchart of a control data processing method provided by an embodiment of the present disclosure;
[0026] Figure 5 is a schematic structural diagram of a remote desktop control device based on DPU provided by an embodiment of the present disclosure;
[0027] Figure 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0028] In order to more clearly understand the above-mentioned objects, features, and advantages of the present disclosure, the following will further describe the solutions of the present disclosure. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.
[0029] In the following description, many specific details are set forth to fully understand the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all the embodiments.
[0030] It should be understood that the various steps recorded in the method embodiments of the present disclosure can be executed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.
[0031] It should be noted that in this text, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0032] It should be noted that the modifications of "a" and "plural" mentioned in this disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly specified in the context, it should be understood as "one or more".
[0033] Generally, current remote desktop control technologies require deploying a server-side program, i.e., server, on the controlled machine and a client-side program, i.e., client, on the control end to achieve remote desktop control of the controlled machine by the control end. However, since the server runs on the controlled machine, the server will occupy the resources of the controlled machine such as CPU resources, network resources, etc., thereby affecting the business performance of the controlled machine. To address this problem, the embodiments of this disclosure provide a remote desktop control method based on DPU, which will be introduced below in conjunction with specific embodiments.
[0034] Figure 1 is a flowchart of a remote desktop control method based on DPU provided by the embodiments of this disclosure. This method can be executed by a remote desktop control device based on DPU. The remote desktop control device based on DPU can be implemented in software and / or hardware, and can be configured in an electronic device, such as a server or a terminal. Among them, the terminal specifically includes a mobile phone, a computer or a tablet computer, etc. In addition, this method can be applied to Figure 2 the application scenario shown in the figure. This application scenario includes a control end 10, a controlled unit 20 and a DPU 30 (i.e., Data Processing Unit, data processor). It can be understood that the remote desktop control method based on DPU provided by the embodiments of this disclosure can also be applied to other scenarios.
[0035] Such as Figure 2As shown, in the prior art, the control end 10 includes a remote control client program, namely client, and a first network interface card (Network Interface Card, NIC) for network communication. The controlled end 20 includes a remote control server program, namely server, and a second network interface card for network communication. That is to say, the remote control server program is deployed and runs in the controlled end 20.
[0036] In the present invention, the control end 10 still includes a remote control client program, namely client, and a first network interface card for network communication. However, the remote control server program in the controlled end 20 is sunk to the DPU 30 side. And a target graphics adapter component is deployed on the DPU 30 side, and a target graphics adapter driver corresponding to the target graphics adapter component is deployed on the controlled end 20 side to interact with the DPU 30. The control end 10 and the DPU 30 interact through the network. The DPU 30 exposes the target graphics adapter component to the controlled end 20 through an interface (VF or PF) to interact with the controlled end 20. Thereby, the service performance of the controlled end 20 is improved.
[0037] Next, in combination with Figure 2 the application scenario shown, Figure 1 the DPU-based remote desktop control method shown will be introduced. For example, Figure 2 the DPU 30 in
[0038] can execute this method. Figure 1 As shown, the DPU-based remote desktop control method provided in this embodiment is applied to the DPU, and a remote control server program and a target graphics adapter component are deployed in the DPU. Specifically, the DPU-based remote desktop control method includes the following steps.
[0039] S110. In response to a pending request sent by the control end, obtain a target descriptor corresponding to the pending request from a preset queue based on the target graphics adapter component, where the target descriptor is the descriptor corresponding to the most recent desktop image information of the controlled end.
[0040] In the embodiments of the present disclosure, the pending request may be a login request, a connection request, a control instruction, etc. sent by the control end.
[0041] The remote control server program is responsible for receiving requests or instructions sent by the control end and executing the received requests or instructions.
[0042] The target graphics adapter component may be a graphics adapter component based on para-virtualization technology and has certain virtualization standard specifications. Exemplarily, the target graphics adapter component may be a VirtIO-GPU component.
[0043] The preset queue can be a queue that is pre - set for storing descriptors corresponding to desktop image information.
[0044] Among them, the preset queue contains at least one descriptor, and at least one descriptor is generated by the target graphics adapter driver in the controlled end based on the desktop image information of the controlled end.
[0045] When the target graphics adapter component is a VirtIO - GPU component, the target graphics adapter driver is a VirtIO - GPU driver.
[0046] In the embodiments of the present disclosure, when there is an image to be displayed in the window system on the controlled end, the target graphics adapter driver is called based on a preset interface. The target graphics adapter driver obtains the desktop image information of the controlled end, converts the desktop image information into corresponding descriptors based on a preset protocol standard, and writes them into the preset queue pointed to by the preset register, so as to notify the target graphics adapter component located on the DPU.
[0047] The descriptor is used to describe the metadata of the desktop image information. Specifically, it can include information such as the storage address corresponding to the desktop image information, the size or character length of the desktop image information, etc.
[0048] Further, when the target graphics adapter component in the DPU responds to a pending request sent by the control end, it obtains the target descriptor corresponding to the pending request from the preset queue, that is, the descriptor corresponding to the desktop image information notified by the target graphics adapter driver most recently.
[0049] S120. Obtain the desktop image information based on the target graphics adapter component and the target descriptor.
[0050] In the embodiments of the present disclosure, the desktop image information may include desktop display contents such as open windows, application program interfaces, etc., and may also include information such as the resolution and color settings of the desktop screen, etc., which are not limited herein.
[0051] Specifically, after the DPU obtains the target descriptor, it parses the target descriptor based on the target graphics adapter, determines the target storage address corresponding to the target descriptor, reads the desktop image information from the target storage address, and thus obtains the desktop image information corresponding to the pending request.
[0052] S130. Send the desktop image information to the control end based on the remote control server program, so that the control end can perform remote desktop control on the controlled end based on the desktop image information.
[0053] Specifically, after obtaining the desktop image information, the DPU sends the desktop image information to the control end based on the remote control server program, so that after receiving the desktop image information, the control end performs remote desktop control on the controlled end based on the desktop image information.
[0054] In the embodiment of the present disclosure, in response to a processing request sent by the control end, a target descriptor corresponding to the processing request is obtained from a preset queue based on the target graphics adapter component. The target descriptor is the descriptor corresponding to the most recent desktop image information of the controlled end. Then, based on the target graphics adapter component and the target descriptor, the desktop image information is obtained. After obtaining the desktop image information, the desktop image information is sent to the control end based on the remote control server program, so that the control end performs remote desktop control on the controlled end based on the desktop image information. Thus, by sinking the remote control server program from the host side of the controlled end to the DPU, the problem that the remote control server program runs on the controlled end and occupies the resources of the controlled end is avoided, and further the service performance of the controlled end is improved.
[0055] Based on the above embodiments of the present disclosure, by deploying the target graphics adapter component in the DPU to communicate with the controlled end, physical isolation is achieved between the user of the control end and the controlled end. And at least one access interface is deployed on the target graphics adapter component, and each access interface corresponds to a target user. The target user is the user who performs remote desktop control on the controlled end through the control end. Each target user corresponds to target resources in the target graphics adapter component. Thus, each target user can only access the target graphics adapter component and access its corresponding target resources through its corresponding access interface, improving access security and avoiding data leakage between multiple users.
[0056] Among them, the access interface can be in the form of an interface based on PF (Physical Function) or VF (Virtual Function).
[0057] In the embodiment of the present disclosure, after obtaining the desktop image information based on the target graphics adapter component and the target descriptor, the remote desktop control method based on the DPU may further include: performing format conversion processing on the desktop image information based on the target graphics adapter component to obtain the desktop image information in the target format.
[0058] Among them, the format conversion processing can be understood as performing processing such as compression encoding on the desktop image information based on a preset remote desktop protocol and converting it into a format that the remote control server program can recognize.
[0059] Specifically, after acquiring the desktop image information, the DPU performs format conversion processing on the desktop image information based on the target image adapter component to obtain the desktop image information in a target format that can be recognized by the remote control server program.
[0060] Furthermore, sending the desktop image information to the control end based on the remote control server program may specifically include: sending the desktop image information in a target format to the control end based on the remote control server program.
[0061] In an embodiment of the present disclosure, after obtaining desktop image information based on the target graphics adapter component and the target descriptor, the DPU-based remote desktop control method may also include: sending a notification message to the target graphics adapter driver in the controlled end based on the target graphics adapter component, the notification message being used to inform the target graphics adapter driver of the processing result of the desktop image information corresponding to the target descriptor.
[0062] The notification message includes the processing status of the desktop image information.
[0063] Specifically, after the DPU obtains the desktop image information based on the target graphics adapter component, it sends the desktop image information to the remote control server program based on the target graphics adapter component, and sends a notification message to the target adapter driver to inform the graphics adapter driver of the processing result of the desktop image information corresponding to the descriptor, that is, whether the pending request has been processed. Furthermore, the DPU injects an interrupt event to the controlled end, and the interrupt handler will feed back the completion status of the pending request to the window system. In this way, the completion status of the pending request can be fed back to the controlled end in a timely manner.
[0064] Figure 3 is a flow chart of another DPU-based remote desktop control method provided by an embodiment of the present disclosure, such as Figure 3 As shown, the DPU-based remote desktop control method may include the following steps:
[0065] S310: Receive a request to be processed sent by the control end based on the remote control server program.
[0066] S320, in response to the pending request sent by the control terminal, based on the target graphics adapter component, obtain a target descriptor corresponding to the pending request from a preset queue, where the target descriptor is a descriptor corresponding to the most recent desktop image information of the controlled terminal.
[0067] S330: Acquire desktop image information based on the target graphics adapter component and the target descriptor.
[0068] S340. Perform format conversion processing on the desktop image information based on the target graphics adapter component to obtain the desktop image information in the target format.
[0069] S350. Send the desktop image information in the target format to the control end based on the remote control server program, so that the control end performs remote desktop control on the controlled end based on the desktop image information in the target format.
[0070] S360. Send a notification message to the target graphics adapter driver in the controlled end based on the target graphics adapter component. The notification message is used to inform the target graphics adapter driver of the processing result of the desktop image information corresponding to the target descriptor.
[0071] It should be noted that the execution order of step S350 and step S360 is not restricted. Step S350 and step S360 can be executed simultaneously. Step S350 can be executed before step S360, and step S350 can also be executed after step S360. There is no restriction here.
[0072] In the embodiment of the present disclosure, communication can be carried out between the remote control server program and the control end, and communication can be carried out between the target graphics adapter component and the controlled end, realizing the transmission of the desktop image information of the window system of the controlled end to the control end. By sinking the remote control server program from the host side of the controlled end to the DPU, the problem that the remote control server program runs on the controlled end and occupies the resources of the controlled end can be avoided, thereby improving the service performance of the controlled end.
[0073] In the embodiment of the present disclosure, after the desktop image information is sent to the control end, the control end will perform remote desktop control on the controlled end based on the desktop image information, which further involves the processing of the control data of the control end, that is, the process of sending the control data of the control end to the controlled end.
[0074] Figure 4 It is a flowchart of a control data processing method provided by the embodiment of the present disclosure. As Figure 4 shown, the control data processing method may specifically include the following steps:
[0075] S410. Receive the control data sent by the control end based on the remote control server program, and construct a target instruction based on the control data. The control data includes keyboard data and / or mouse data.
[0076] In the embodiment of the present disclosure, the control data is the data captured by the remote control client program in the control end for controlling the controlled end.
[0077] The keyboard data may include key information, key status, input content, etc. of the keyboard; the mouse data may include position information, movement trajectory, click information, etc. of the mouse.
[0078] The target instruction can be understood as an instruction for transmitting and storing control data. This target instruction depends on the driver of the PCIe device. The target instruction may include the storage location information of the control data and the register information. The register information includes the information of the data register for storing the control data, and also includes the control register information for storing the storage location information of the control data.
[0079] Specifically, after the DPU sends the desktop image information to the control end, it can receive the control data sent by the control end in real time based on the remote control server program. After receiving the control data, the remote control server program constructs a target instruction according to the control data and the preset transmission mechanism.
[0080] Further, after constructing the target instruction, the remote desktop control method based on the DPU may further include: sending an interrupt event to the controlled end, so that after receiving the interrupt event, the controlled end performs an interrupt operation corresponding to the interrupt event.
[0081] S420: Send the target instruction to the controlled end, so that the controlled end obtains the control data based on the graphics adapter driver and the target instruction, and performs corresponding operations based on the control data.
[0082] Specifically, the DPU sends the target instruction to the controlled end and injects an interrupt event into the controlled end. The controlled end parses the target instruction based on the interrupt handler and obtains the control data from the data register and places it in the memory. In the soft interrupt, the control data is injected into the operating system of the controlled end to perform corresponding operations.
[0083] In the embodiments of the present disclosure, it is possible to receive the control data sent by the control end through the remote control server program and construct a target instruction to transmit the control data to the controlled end, that is, a transmission channel for transmitting the control data to the controlled end is established, realizing the transmission of the control data to the controlled end, and further enabling the controlled end to perform corresponding operations based on the control data.
[0084] Figure 5 It is a schematic structural diagram of a remote desktop control device based on a DPU provided by the embodiments of the present disclosure.
[0085] In an embodiment of the present disclosure, the DPU-based remote desktop control device can be applicable to a DPU, in which a remote control server program and a target graphics adapter component are deployed, and it is disposed within an electronic device and is understood as some functional modules in the above-mentioned electronic device. Specifically, the electronic device can be a server or a terminal, where the terminal specifically includes a mobile phone, a computer, a tablet computer, etc., and is not limited herein.
[0086] As Figure 5 shown, the DPU-based remote desktop control device 500 may include a first acquisition module 510, a second acquisition module 520, and an information sending module 530.
[0087] The first acquisition module 510 can be configured to, in response to a to-be-processed request sent by a control end, acquire a target descriptor corresponding to the to-be-processed request from a preset queue based on the target graphics adapter component, where the target descriptor is the descriptor corresponding to the most recent desktop image information of the controlled end.
[0088] The second acquisition module 520 can be configured to acquire desktop image information based on the target graphics adapter component and the target descriptor.
[0089] The information sending module 530 can be configured to send the desktop image information to the control end based on the remote control server program, so that the control end performs remote desktop control on the controlled end based on the desktop image information.
[0090] In an embodiment of the present disclosure, it is possible to, in response to a to-be-processed request sent by a control end, acquire a target descriptor corresponding to the to-be-processed request from a preset queue based on the target graphics adapter component, where the target descriptor is the descriptor corresponding to the most recent desktop image information of the controlled end, and then, acquire desktop image information based on the target graphics adapter component and the target descriptor. After acquiring the desktop image information, the desktop image information is sent to the control end based on the remote control server program, so that the control end performs remote desktop control on the controlled end based on the desktop image information. Thus, by sinking the remote control server program from the host side of the controlled end to the DPU, the problem that the remote control server program runs on the controlled end and occupies the resources of the controlled end is avoided, and further, the service performance of the controlled end is improved.
[0091] In some embodiments of the present disclosure, the DPU-based remote desktop control device 500 may further include a format conversion module.
[0092] The format conversion module can be configured to, after acquiring the desktop image information based on the target graphics adapter component and the target descriptor, perform format conversion processing on the desktop image information based on the target graphics adapter component to obtain the desktop image information in a target format.
[0093] The information sending module 530 may be specifically configured to send desktop image information in a target format to the control end based on the remote control server program.
[0094] In some embodiments of the present disclosure, at least one descriptor in the preset queue is generated by the target graphics adapter driver in the controlled end based on the desktop image information of the controlled end.
[0095] In some embodiments of the present disclosure, the DPU-based remote desktop control device 500 may further include an information notification module.
[0096] The information notification module may be configured to, after obtaining the desktop image information based on the target graphics adapter component and the target descriptor, send a notification message to the target graphics adapter driver in the controlled end based on the target graphics adapter component, where the notification message is used to inform the target graphics adapter driver of the processing result of the desktop image information corresponding to the target descriptor.
[0097] In some embodiments of the present disclosure, the DPU-based remote desktop control device 500 may further include a control data processing module.
[0098] The control data processing module may be configured to, after sending the desktop image information to the control end based on the remote control server program, receive control data sent by the control end based on the remote control server program, and construct a target instruction based on the control data, where the control data includes keyboard data and / or mouse data;
[0099] Send the target instruction to the controlled end, so that the controlled end obtains the control data based on the graphics adapter driver and the target instruction, and performs corresponding operations based on the control data.
[0100] In some embodiments of the present disclosure, the DPU-based remote desktop control device 500 may further include an interrupt processing module.
[0101] The interrupt processing module may be configured to, after receiving the control data sent by the control end based on the remote control server program and constructing a target instruction based on the control data, send an interrupt event to the controlled end, so that the controlled end performs an interrupt operation corresponding to the interrupt event after receiving the interrupt event.
[0102] In some embodiments of the present disclosure, at least one access interface is deployed on the target graphics adapter component, each access interface corresponds to a target user, the target user is a user who performs remote desktop control on the controlled end through the control end, and each target user corresponds to a target resource in the target graphics adapter component.
[0103] It should be noted that Figure 5The DPU-based remote desktop control device 500 shown can execute each step in the above method embodiments, and implement each process and effect in the above method embodiments, which will not be elaborated here.
[0104] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
[0105] In the embodiments of the present disclosure, Figure 6 The electronic device shown can be a server or a terminal. Specifically, the terminal includes, without limitation, a mobile phone, a computer, a tablet computer, etc.
[0106] As Figure 6 shown, the electronic device may include a processor 610 and a memory 620 storing computer program instructions.
[0107] Specifically, the above-mentioned processor 610 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure.
[0108] The memory 620 may include a mass storage for information or instructions. By way of example and not limitation, the memory 620 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 620 may include removable or non-removable (or fixed) media. In a suitable case, the memory 620 may be internal or external to the integrated gateway device. In a specific embodiment, the memory 620 is a non-volatile solid state memory. In a specific embodiment, the memory 620 includes a read-only memory (ROM). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0109] The processor 610 reads and executes the computer program instructions stored in the memory 620 to perform the steps of the DPU-based remote desktop control method provided by the embodiments of the present disclosure.
[0110] In one example, the electronic device may further include a transceiver 630 and a bus 640. Among them, as Figure 6 shown, the processor 610, the memory 620, and the transceiver 630 are connected through the bus 640 and complete communication with each other.
[0111] The bus 640 includes hardware, software, or both. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side BUS (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. In a suitable case, the bus 640 may include one or more buses.
[0112] The embodiments of the present disclosure further provide a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the DPU-based remote desktop control method provided by the embodiments of the present disclosure.
[0113] The above storage medium may include, for example, a memory 620 storing computer program instructions that can be executed by a processor 610 of an electronic device to implement the DPU-based remote desktop control method provided by the embodiments of the present disclosure. Optionally, the storage medium may be a non-transitory computer-readable storage medium. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0114] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but rather will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A remote desktop control method based on DPU, characterized in that, Applied to a DPU, in which a remote control server program and a target graphics adapter component are deployed, including: In response to a to-be-processed request sent by a control end, obtaining, based on the target graphics adapter component, a target descriptor corresponding to the to-be-processed request from a preset queue, where the target descriptor is a descriptor corresponding to the most recent desktop image information of the controlled end; Obtaining desktop image information based on the target graphics adapter component and the target descriptor; Sending the desktop image information to the control end based on the remote control server program, so that the control end performs remote desktop control on the controlled end based on the desktop image information.
2. The method according to claim 1, wherein After obtaining the desktop image information based on the target graphics adapter component and the target descriptor, the method further includes: Performing format conversion processing on the desktop image information based on the target graphics adapter component to obtain desktop image information in a target format; The sending the desktop image information to the control end based on the remote control server program includes: Sending the desktop image information in the target format to the control end based on the remote control server program.
3. The method according to claim 1, wherein At least one descriptor in the preset queue is generated by a target graphics adapter driver in the controlled end based on the desktop image information of the controlled end.
4. The method according to claim 1, characterized in that, After obtaining the desktop image information based on the target graphics adapter component and the target descriptor, the method further includes: Sending a notification message to a target graphics adapter driver in the controlled end based on the target graphics adapter component, where the notification message is used to inform the target graphics adapter driver of the processing result of the desktop image information corresponding to the target descriptor.
5. The method according to claim 1, wherein After sending the desktop image information to the control end based on the remote control server program, the method further includes: Receiving control data sent by the control end based on the remote control server program, and constructing a target instruction based on the control data, where the control data includes keyboard data and / or mouse data; Sending the target instruction to the controlled end, so that the controlled end obtains the control data based on the graphics adapter driver and the target instruction, and performs corresponding operations based on the control data.
6. The method according to claim 5, wherein After receiving the control data sent by the control end based on the remote control server program and constructing the target instruction based on the control data, the method further includes: Sending an interrupt event to the controlled end, so that the controlled end performs an interrupt operation corresponding to the interrupt event after receiving the interrupt event.
7. The method according to claim 1, characterized in that, At least one access interface is deployed on the target graphics adapter component, each access interface corresponds to a target user, the target user is a user who performs remote desktop control on the controlled end through the control end, and each target user corresponds to a target resource in the target graphics adapter component.
8. A remote desktop control device based on DPU, characterized in that, Applied to a DPU, in which a remote control server program and a target graphics adapter component are deployed, including: A first acquisition module, configured to, in response to a to-be-processed request sent by a control end, acquire a target descriptor corresponding to the to-be-processed request from a preset queue based on the target graphics adapter component, where the target descriptor is a descriptor corresponding to the most recent desktop image information of a controlled end; A second acquisition module, configured to acquire desktop image information based on the target graphics adapter component and the target descriptor; An information sending module, configured to send the desktop image information to the control end based on the remote control server program, so that the control end performs remote desktop control on the controlled end based on the desktop image information.
9. An electronic device, characterized in that, Comprising: A processor; A memory, configured to store executable instructions; Wherein, the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the DPU-based remote desktop control method according to any one of claims 1-7 above.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to implement the DPU-based remote desktop control method according to any one of claims 1-7 above.