CN113377491B - Drive data processing method, drive data processing device, electronic equipment and computer storage medium - Google Patents

Drive data processing method, drive data processing device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN113377491B
CN113377491B CN202010163242.8A CN202010163242A CN113377491B CN 113377491 B CN113377491 B CN 113377491B CN 202010163242 A CN202010163242 A CN 202010163242A CN 113377491 B CN113377491 B CN 113377491B
Authority
CN
China
Prior art keywords
gpu
host
information
preset
driving
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
CN202010163242.8A
Other languages
Chinese (zh)
Other versions
CN113377491A (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.)
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010163242.8A priority Critical patent/CN113377491B/en
Publication of CN113377491A publication Critical patent/CN113377491A/en
Application granted granted Critical
Publication of CN113377491B publication Critical patent/CN113377491B/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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for processing drive data, electronic equipment and a computer storage medium, wherein the method comprises the following steps: starting a drive installation component in response to the virtual GPU instance starting; automatically acquiring host machine GPU driving information corresponding to the virtual GPU instance from a preset driving information data source through the driving installation component; and acquiring a GPU drive installation file corresponding to the GPU drive information of the host machine from a preset drive installation file data source through the drive installation component and installing the GPU drive installation file. According to the technical scheme, the host machine GPU driving information can be automatically identified, the corresponding driving files can be automatically installed, and the corresponding relation between the virtual GPU instance driving version information installed on each virtual machine and the GPU driving version information installed on the host machine can be automatically and continuously maintained, so that the investment of operation and maintenance labor cost and the lag of driving information communication are effectively avoided, and the service operation quality of the virtual machines is favorably improved.

Description

Drive data processing method, drive data processing device, electronic equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a driving data processing method and device, electronic equipment and a computer storage medium.
Background
With the development of data technology, currently, mainstream GPU parallel computing services such as artificial intelligence and GPU (graphics processing unit) rendering are rapidly developed, a scene requiring GPU is also more and more extensive, and in a virtualized application scene, it is considered that some users do not need to perform computation on the whole GPU, therefore, in order to save GPU computation resources and achieve full utilization of the GPU, the total performance of the GPU is generally split, for example, the total performance of the GPU can be split into multiple virtual GPU instances such as 1/2, 1/3, 1/4, 1/8, and then the multiple split virtual GPU instances are allocated to different virtual machines, where each virtual GPU instance has 1/n of the total performance of the GPU, and n is the number of the split virtual GPU instances. Because the GPU driver installed on the host needs to be continuously updated, but the virtual machine cannot actively acquire the driver version of the host, and the virtual GPU instance driver version information installed on the virtual machine also needs to maintain a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of incompatibility of drivers of different versions will occur, in the prior art, the GPU driver version information installed on the current host is provided to each virtual GPU instance (vGPU) in a help document manner, so as to maintain the corresponding relationship between the virtual GPU instance driver version information installed on each virtual machine and the GPU driver version information installed on the host. The processing mode not only needs to increase the investment of operation and maintenance labor cost, but also brings the lag of driving information communication, and is not beneficial to improving the service operation quality of the virtual machine.
Disclosure of Invention
The embodiment of the invention provides a driving data processing method and device, electronic equipment and a computer storage medium.
In a first aspect, an embodiment of the present invention provides a method for processing drive data, which is applicable to a virtual machine.
Specifically, the driving data processing method includes:
starting a drive installation component in response to the virtual GPU instance starting;
automatically acquiring host machine GPU driving information corresponding to the virtual GPU instance from a preset driving information data source through the driving installation assembly, wherein the host machine GPU driving information is written into the preset driving information data source by a host machine in the virtual GPU instance creating process;
and acquiring a GPU drive installation file corresponding to the GPU drive information of the host machine from a preset drive installation file data source through the drive installation component and installing the GPU drive installation file.
With reference to the first aspect, in a first implementation manner of the first aspect, the starting the driver installation component in response to the virtual GPU instance starting is implemented to:
the driver installation component is launched in response to receiving the driver data auto-processing authorization information and in response to the virtual GPU instance launching.
With reference to the first aspect and the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the host GPU driving information at least includes host GPU identification information and host GPU driving version information.
With reference to the first aspect, the first implementation manner of the first aspect, and the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the automatically acquiring, by the driver installation component, host GPU driver information corresponding to the virtual GPU instance from a preset driver information data source includes:
acquiring host GPU identification information of the virtual GPU instance through the drive installation component;
and reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, and the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the obtaining, by the driver installation component, a GPU driver installation file corresponding to the host GPU driver information from a preset driver installation file data source and installing the GPU driver installation file includes:
analyzing the host machine GPU driving information through the driving installation component to obtain host machine GPU driving version information;
acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component;
and installing the GPU driver installation file.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, and the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, an embodiment of the present disclosure further includes:
and in response to receiving a host GPU drive information update notification message sent by a host or in response to detecting that the host GPU drive information stored in the preset drive information data source is updated, automatically acquiring update host GPU drive information corresponding to the virtual GPU instance from the preset drive information data source through the drive installation component, and acquiring a GPU drive installation file corresponding to the update host GPU drive information from a preset drive installation file data source for installation, wherein the host GPU drive information update notification message at least comprises host GPU identification information.
In a second aspect, an embodiment of the present disclosure provides a driving data processing method, which is suitable for a host.
Specifically, the driving data processing method includes:
starting the simulation processor in response to receiving the drive data automatic processing authorization information;
in the virtual GPU instance creating process, host GPU driving information corresponding to the virtual GPU instance is obtained, wherein the host GPU driving information at least comprises host GPU identification information and host GPU driving version information;
and sending host machine GPU driving information corresponding to the virtual GPU instance to a simulation processor, so that the simulation processor writes the host machine GPU driving information into a preset driving information data source.
With reference to the second aspect, in a first implementation manner of the second aspect, the present disclosure further includes:
and in response to the fact that the host GPU driving information is detected to be updated, writing the updated host GPU driving information into a preset driving information data source through the simulation processor, and sending a host GPU driving information updating notification message to the virtual machine, wherein the host GPU driving information updating notification message at least comprises host GPU identification information.
In a third aspect, an embodiment of the present disclosure provides a method for processing drive data, which is applicable to a data processing system including a host and a virtual machine.
Specifically, the driving data processing method includes:
the host responds to the received drive data automatic processing authorization information, starts an analog processor, acquires host GPU drive information corresponding to the virtual GPU instance in the virtual GPU instance creating process, and sends the host GPU drive information corresponding to the virtual GPU instance to the analog processor, so that the analog processor writes the host GPU drive information into a preset drive information data source;
the virtual machine responds to the starting of the virtual GPU instance, a drive installation component is started, host GPU drive information corresponding to the virtual GPU instance is automatically acquired from a preset drive information data source through the drive installation component, and a GPU drive installation file corresponding to the host GPU drive information is acquired from a preset drive installation file data source through the drive installation component and installed.
With reference to the third aspect, in a first implementation manner of the third aspect, the present disclosure further includes:
and the host machine responds to the update of the host machine GPU driving information, writes the updated host machine GPU driving information into a preset driving information data source through the simulation processor, and sends a host machine GPU driving information updating notification message to the virtual machine, wherein the host machine GPU driving information updating notification message at least comprises host machine GPU identification information.
With reference to the third aspect and the first implementation manner of the third aspect, in a second implementation manner of the third aspect, the step of starting, by the virtual machine, the driver installation component in response to the virtual GPU instance starting up is implemented as:
the virtual machine automatically processes the authorization information in response to receiving the driver data and initiates a driver installation component in response to the virtual GPU instance starting.
With reference to the third aspect, the first implementation manner of the third aspect, and the second implementation manner of the third aspect, in a third implementation manner of the third aspect, the step of the virtual machine automatically acquiring, by the driver installation component, host GPU driver information corresponding to the virtual GPU instance from a preset driver information data source is implemented as:
acquiring host GPU identification information of the virtual GPU instance through the drive installation component;
and reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
With reference to the third aspect, the first implementation manner of the third aspect, the second implementation manner of the third aspect, and the third implementation manner of the third aspect, in a fourth implementation manner of the third aspect, the step of acquiring, by the virtual machine, and installing, by the driver installation component, a GPU driver installation file corresponding to the host GPU driver information from a preset driver installation file data source is implemented as:
analyzing the host machine GPU driving information through the driving installation component to obtain host machine GPU driving version information;
acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component;
and installing the GPU driver installation file.
With reference to the third aspect, the first implementation manner of the third aspect, the second implementation manner of the third aspect, the third implementation manner of the third aspect, and the fourth implementation manner of the third aspect, in a fifth implementation manner of the third aspect, the present disclosure further includes:
the virtual machine responds to a received host machine GPU driving information updating notification message sent by a host machine or responds to the detection that the host machine GPU driving information stored in the preset driving information data source is updated, the driving installation component automatically acquires the updating host machine GPU driving information corresponding to the virtual GPU instance from the preset driving information data source, and acquires a GPU driving installation file corresponding to the updating host machine GPU driving information from a preset driving installation file data source for installation, wherein the host machine GPU driving information updating notification message at least comprises host machine GPU identification information.
In a fourth aspect, an embodiment of the present disclosure provides a drive data processing apparatus, which is suitable for a virtual machine.
Specifically, the drive data processing apparatus includes:
a first launch module configured to launch a driver installation component in response to a virtual GPU instance launching;
the first acquisition module is configured to automatically acquire host machine GPU driving information corresponding to the virtual GPU instance from a preset driving information data source through the driving installation assembly, wherein the host machine GPU driving information is written into the preset driving information data source by a host machine in the virtual GPU instance creation process;
and the installation module is configured to acquire and install the GPU drive installation file corresponding to the host GPU drive information from a preset drive installation file data source through the drive installation component.
With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the first starting module is configured to:
the driver installation component is launched in response to receiving the driver data auto-processing authorization information and in response to the virtual GPU instance launching.
With reference to the fourth aspect and the first implementation manner of the fourth aspect, in a second implementation manner of the fourth aspect, the host GPU driver information at least includes host GPU identification information and host GPU driver version information.
With reference to the fourth aspect, the first implementation manner of the fourth aspect, and the second implementation manner of the fourth aspect, in a third implementation manner of the fourth aspect, the embodiment of the present disclosure, where the first obtaining module includes:
a first obtaining sub-module configured to obtain, by the driver installation component, host GPU identification information of the virtual GPU instance;
a reading sub-module configured to read, by the driver installation component, host GPU driver information having the host GPU identification information from the preset driver information data source.
With reference to the fourth aspect, the first implementation manner of the fourth aspect, the second implementation manner of the fourth aspect, and the third implementation manner of the fourth aspect, in a fourth implementation manner of the fourth aspect, the installation module of the present disclosure includes:
the analysis sub-module is configured to analyze the host GPU driving information through the driving installation assembly to obtain the host GPU driving version information;
the second obtaining sub-module is configured to obtain a GPU drive installation file corresponding to the host GPU drive version information from a preset drive installation file data source through the drive installation component according to the host GPU drive version information;
an installation submodule configured to install the GPU driver installation file.
With reference to the fourth aspect, the first implementation manner of the fourth aspect, the second implementation manner of the fourth aspect, the third implementation manner of the fourth aspect, and the fourth implementation manner of the fourth aspect, in a fifth implementation manner of the fourth aspect, the embodiment of the present disclosure further includes:
the updating module is configured to respond to a host GPU driving information updating notification message sent by a host or respond to the fact that the host GPU driving information stored in the preset driving information data source is updated, automatically acquire the updating host GPU driving information corresponding to the virtual GPU instance from the preset driving information data source through the driving installation assembly, and acquire a GPU driving installation file corresponding to the updating host GPU driving information from a preset driving installation file data source for installation, wherein the host GPU driving information updating notification message at least comprises host GPU identification information.
In a fifth aspect, an embodiment of the present disclosure provides a driving data processing apparatus, which is suitable for a host.
Specifically, the drive data processing apparatus includes:
a second starting module configured to start the simulation processor in response to receiving the driving data automatic processing authorization information;
the second acquisition module is configured to acquire host machine GPU driving information corresponding to a virtual GPU instance in the virtual GPU instance creation process, wherein the host machine GPU driving information at least comprises host machine GPU identification information and host machine GPU driving version information;
the first sending module is configured to send host GPU driving information corresponding to the virtual GPU instance to a simulation processor, so that the simulation processor writes the host GPU driving information into a preset driving information data source.
With reference to the fifth aspect, in a first implementation manner of the fifth aspect, the present disclosure further includes:
the second sending module is configured to write the updated host GPU driving information into a preset driving information data source through the simulation processor in response to detecting that the host GPU driving information is updated, and send a host GPU driving information updating notification message to the virtual machine, wherein the host GPU driving information updating notification message at least comprises host GPU identification information.
In a sixth aspect, an embodiment of the present disclosure provides a drive data processing apparatus, which is suitable for a data processing system including a host and a virtual machine.
Specifically, the drive data processing apparatus includes:
the host machine is configured to respond to the received drive data automatic processing authorization information, start the simulation processor, acquire host machine GPU drive information corresponding to the virtual GPU instance in the virtual GPU instance creating process, and send the host machine GPU drive information corresponding to the virtual GPU instance to the simulation processor, so that the simulation processor writes the host machine GPU drive information into a preset drive information data source;
the virtual machine is configured to respond to the starting of a virtual GPU instance, start a drive installation component, automatically acquire host GPU drive information corresponding to the virtual GPU instance from a preset drive information data source through the drive installation component, and acquire and install a GPU drive installation file corresponding to the host GPU drive information from a preset drive installation file data source through the drive installation component.
With reference to the sixth aspect, in a first implementation manner of the sixth aspect, the host is further configured to: and in response to the host GPU driving information is updated, writing the updated host GPU driving information into a preset driving information data source through the simulation processor, and sending a host GPU driving information updating notification message to the virtual machine, wherein the host GPU driving information updating notification message at least comprises host GPU identification information.
With reference to the sixth aspect and the first implementation manner of the sixth aspect, in a second implementation manner of the sixth aspect, the virtual machine, in response to the virtual GPU instance starting up, starts up a part that drives the installation component, and is configured to:
the virtual machine automatically processes the authorization information in response to receiving the driver data and initiates a driver installation component in response to the virtual GPU instance starting.
With reference to the sixth aspect, the first implementation manner of the sixth aspect, and the second implementation manner of the sixth aspect, in a third implementation manner of the sixth aspect, the virtual machine automatically acquires, by the driver installation component, a portion of host GPU driver information corresponding to the virtual GPU instance from a preset driver information data source, and is configured to:
acquiring host GPU identification information of the virtual GPU instance through the drive installation component;
and reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
With reference to the sixth aspect, the first implementation manner of the sixth aspect, the second implementation manner of the sixth aspect, and the third implementation manner of the sixth aspect, in a fourth implementation manner of the sixth aspect, the virtual machine acquires, from a preset driver installation file data source, a GPU driver installation file corresponding to the host GPU driver information through the driver installation component, and installs a portion of the GPU driver installation file, where the portion is configured to:
analyzing the host machine GPU driving information through the driving installation component to obtain host machine GPU driving version information;
acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component;
and installing the GPU driver installation file.
With reference to the sixth aspect, the first implementation manner of the sixth aspect, the second implementation manner of the sixth aspect, the third implementation manner of the sixth aspect, and the fourth implementation manner of the sixth aspect, in a fifth implementation manner of the sixth aspect, the virtual machine is further configured to:
and in response to receiving a host GPU drive information update notification message sent by a host or in response to detecting that the host GPU drive information stored in the preset drive information data source is updated, automatically acquiring update host GPU drive information corresponding to the virtual GPU instance from the preset drive information data source through the drive installation component, and acquiring a GPU drive installation file corresponding to the update host GPU drive information from a preset drive installation file data source for installation, wherein the host GPU drive information update notification message at least comprises host GPU identification information.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory is used to store one or more computer instructions for supporting a driving data processing apparatus to execute the driving data processing method, and the processor is configured to execute the computer instructions stored in the memory. The drive data processing apparatus may further comprise a communication interface for driving the data processing apparatus to communicate with other devices or a communication network.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer instructions for driving a data processing apparatus, where the computer instructions include computer instructions for executing the above-mentioned driving data processing method to drive the data processing apparatus.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
according to the technical scheme, the host machine GPU driving information written into the PCI configuration space by the host machine in the virtual GPU instance creating process is automatically obtained, and the corresponding GPU driving installation file is obtained according to the obtained host machine GPU driving information for installation. According to the technical scheme, the host machine GPU driving information can be automatically identified, the corresponding driving files can be automatically installed, and the corresponding relation between the virtual GPU instance driving version information installed on each virtual machine and the GPU driving version information installed on the host machine can be automatically and continuously maintained, so that the investment of operation and maintenance labor cost and the lag of driving information communication are effectively avoided, and the service operation quality of the virtual machines is favorably improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
Drawings
Other features, objects and advantages of embodiments of the invention will become more apparent from the following detailed description of non-limiting embodiments thereof, when taken in conjunction with the accompanying drawings. In the drawings:
fig. 1 illustrates a flowchart of a driving data processing method according to an embodiment of the present invention;
FIG. 2 illustrates a GPU-driven version information distribution diagram according to the prior art;
3-4 illustrate flow diagrams of driving data processing methods according to various embodiments of the invention;
FIG. 5 is an overall flowchart of a driving data processing method according to an embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating an overall method for processing data driven by a virtual machine according to an embodiment of the present disclosure;
fig. 7 is a block diagram showing a configuration of a driving data processing apparatus according to an embodiment of the present invention;
fig. 8 to 9 are block diagrams showing the construction of a driving data processing apparatus according to various embodiments of the present invention;
FIG. 10 shows a block diagram of an electronic device according to an embodiment of the invention;
fig. 11 is a schematic structural diagram of a computer system suitable for implementing a driving data processing method according to an embodiment of the present invention.
Detailed Description
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Also, for the sake of clarity, parts not relevant to the description of the exemplary embodiments are omitted in the drawings.
In the embodiments of the present invention, it is to be understood that terms such as "including" or "having", etc., are intended to indicate the presence of the features, numbers, steps, actions, components, parts, or combinations thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, actions, components, parts, or combinations thereof may be present or added.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
According to the technical scheme provided by the embodiment of the invention, the host machine GPU driving information written into the PCI configuration space by the host machine in the virtual GPU instance creating process is automatically obtained, and the corresponding GPU driving installation file is obtained according to the obtained host machine GPU driving information for installation. According to the technical scheme, the host machine GPU driving information can be automatically identified, the corresponding driving files can be automatically installed, and the corresponding relation between the virtual GPU instance driving version information installed on each virtual machine and the GPU driving version information installed on the host machine can be automatically and continuously maintained, so that the investment of operation and maintenance labor cost and the lag of driving information communication are effectively avoided, and the service operation quality of the virtual machines is favorably improved.
Fig. 1 shows a flowchart of a driving data processing method according to an embodiment of the present invention, which is applicable to a virtual machine, as shown in fig. 1, the driving data processing method includes the following steps S101 to S103:
in step S101, in response to the virtual GPU instance starting, a driver installation component is started;
in step S102, automatically acquiring, by the driver installation component, host GPU driver information corresponding to the virtual GPU instance from a preset driver information data source, where the host GPU driver information is written into the preset driver information data source by a host in a virtual GPU instance creation process;
in step S103, a GPU driver installation file corresponding to the host GPU driver information is obtained from a preset driver installation file data source through the driver installation component and installed.
As mentioned above, with the development of data technology, currently, mainstream GPU parallel computing services such as artificial intelligence and GPU (graphics processing unit) rendering are rapidly developing, and a scene requiring GPU is also becoming more and more extensive, and in a virtualized application scene, it is considered that some users do not need the whole GPU to perform computation, so in order to save GPU computing resources and achieve full utilization of the GPU, the total performance of the GPU is generally split, for example, the total performance of the GPU can be split into multiple virtual GPU instances such as 1/2, 1/3, 1/4, 1/8, and then the multiple split virtual GPU instances are allocated to different virtual machines, where each virtual GPU instance has 1/n of the total performance of the GPU, and n is the number of the split virtual GPU instances. Because the GPU driver installed on the host needs to be continuously updated, but the virtual machine cannot actively acquire the driver version of the host, and the virtual GPU instance driver version information installed on the virtual machine also needs to maintain a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of incompatibility of drivers of different versions will occur, in the prior art, the GPU driver version information installed on the current host is provided to each virtual GPU instance in a help document manner, so as to maintain the corresponding relationship between the virtual GPU instance driver version information installed on each virtual machine and the GPU driver version information installed on the host, as shown in fig. 2. The processing mode not only needs to increase the investment of operation and maintenance labor cost, but also brings the lag of driving information communication, and is not beneficial to improving the service operation quality of the virtual machine.
In view of the above problem, in this embodiment, a driving data processing method is provided, in which host GPU driving information that has been written into a preset driving information data source by a host in a virtual GPU instance creation process is automatically obtained, and a corresponding GPU driving installation file is obtained according to the obtained host GPU driving information for installation. According to the technical scheme, the host machine GPU driving information can be automatically identified, the corresponding driving files can be automatically installed, and the corresponding relation between the virtual GPU instance driving version information installed on each virtual machine and the GPU driving version information installed on the host machine can be automatically and continuously maintained, so that the investment of operation and maintenance labor cost and the lag of driving information communication are effectively avoided, and the service operation quality of the virtual machines is favorably improved.
In an embodiment of the present invention, as described above, the virtual GPU instance, also called vGPU instance, refers to an instance type obtained by 1/n slicing a physical GPU on a host, where n may be a natural number. The virtual GPU instance obtained after slicing can be allocated to virtual machines for use according to the actual application requirements of the virtual machines, each virtual machine can have one virtual GPU instance, and a plurality of virtual machines share the same physical GPU.
In an embodiment of the invention, the driver installation component is installed on a virtual machine using a virtual GPU instance. After obtaining the authorization permission for automatic processing of the drive data, for example, the virtual machine user selects an automatic installation drive, the drive installation component can automatically acquire the host GPU drive information corresponding to the used virtual GPU instance from the preset drive information data source, and automatically acquire and automatically install the GPU drive installation file corresponding to the host GPU drive information from the preset drive installation file data source. The preset driving information data source may be, for example, a PCI configuration space (peripheral component interconnect standard interface configuration space), and the host writes the current latest host GPU driving information into the unused, i.e., idle PCI configuration space in advance when creating the virtual GPU instance, so as to facilitate the virtual machine to obtain the host GPU driving information. The preset drive installation file data source refers to a preset file memory or a preset file server of the GPU drive installation file stored with different version information, and the drive installation component can acquire the GPU drive installation file corresponding to the GPU drive information of the host machine by means of communication with the preset file memory or the preset file server so as to install subsequent GPU drives.
In an embodiment of the present invention, the host GPU driving information at least includes host GPU identification information and host GPU driving version information. The identification information of the GPU of the host machine is used for identifying the GPU of the host machine distinctively so as to avoid the situation that the GPU of the host machine drives the version information to obtain errors.
As mentioned above, the virtual GPU instance obtained after slicing may be allocated to a virtual machine for use according to the actual application requirement of the virtual machine, each virtual machine may have one virtual GPU instance, and a plurality of virtual machines share the same physical GPU, so when a plurality of virtual machines sharing the same physical GPU are provided, the plurality of virtual machines may all communicate with the corresponding host, the preset drive information data source, and the preset drive installation file data source to obtain the corresponding host GPU drive information and the corresponding GPU drive installation file.
In an embodiment of the present invention, the step S101, that is, the step of starting the driver installation component in response to the virtual GPU instance starting, may be implemented as:
the driver installation component is launched in response to receiving the driver data auto-processing authorization information and in response to the virtual GPU instance launching.
In order to protect the legitimate rights of the user or other virtual machine users, in this embodiment, only after receiving the authorization information for automatically processing the driver data sent or confirmed by the user or other virtual machine users, the driver installation component is started when the virtual GPU instance is started, so as to execute the subsequent automatic installation process of the driver, that is, to complete the automatic acquisition of the driver information, the automatic acquisition of the driver installation file, and the automatic installation.
In an embodiment of the present invention, the step S102, namely, the step of automatically obtaining, by the driver installation component, the host GPU driver information corresponding to the virtual GPU instance from a preset driver information data source, may be implemented as:
acquiring host GPU identification information of the virtual GPU instance through the drive installation component;
and reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
As mentioned above, the identification information of the host GPU is used to perform distinctive identification on the host GPU, so in order to avoid the situation that the acquisition of the host GPU driving version information is incorrect, in this embodiment, the correct host GPU driving information corresponding to the virtual GPU instance is acquired by comparing the identification information of the host GPU. Specifically, first, the driver installation component acquires the host GPU identification information of the virtual GPU instance; and then, reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
In an embodiment of the present invention, the step S103 of obtaining, by the driver installation component, a GPU driver installation file corresponding to the host GPU driver information from a preset driver installation file data source and installing the GPU driver installation file may be implemented as:
analyzing the host machine GPU driving information through the driving installation component to obtain host machine GPU driving version information;
acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component;
and installing the GPU driver installation file.
In order to obtain a correct GPU driver installation file corresponding to the host GPU driver version information, in this embodiment, first, the obtained host GPU driver information is analyzed by the driver installation component to obtain the host GPU driver version information; then, acquiring a GPU drive installation file corresponding to the host GPU drive version information from a preset drive installation file data source through the drive installation component according to the host GPU drive version information; and finally, installing the GPU drive installation file.
As mentioned above, the preset driver installation file data source refers to a preset file memory or a preset file server storing GPU driver installation files with different version information. In an embodiment of the present invention, the preset driver installation file data source may be, for example, a file storage such as an OSS server (object storage server) or a file server, and the GPU driver installation files with different version information are stored thereon, so as to be obtained by a GPU driver installation file demander with different version information.
In one embodiment of the present invention, the method further comprises the steps of:
and in response to receiving a host GPU drive information update notification message sent by a host or in response to detecting that the host GPU drive information stored in the preset drive information data source is updated, automatically acquiring update host GPU drive information corresponding to the virtual GPU instance from the preset drive information data source through the drive installation component, and acquiring a GPU drive installation file corresponding to the update host GPU drive information from a preset drive installation file data source for installation, wherein the host GPU drive information update notification message at least comprises host GPU identification information.
As mentioned above, the GPU driver installed on the host needs to be continuously updated, and the virtual GPU instance driver version information installed on the virtual machine needs to keep a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of driver incompatibility of different versions will occur, and therefore, in this embodiment, the GPU driver information of the host and the GPU driver installation file need to be updated in real time. Specifically, when the virtual machine receives a host GPU drive information update notification message sent by the host, or the drive installation component periodically detects information update on the preset drive information data source, and detects that there is update of the host GPU drive information stored in the preset drive information data source, the drive installation component may initiate an update drive information automatic acquisition operation, that is, automatically acquire the update host GPU drive information corresponding to the virtual GPU instance from the preset drive information data source, and then acquire a new GPU drive installation file corresponding to the update host GPU drive information from the preset drive installation file data source to perform update installation. In order to avoid the situation that the acquisition of the host GPU drive version information is wrong, the host GPU drive information updating notification message at least comprises host GPU identification information.
In one embodiment of the present invention, the method further comprises the steps of:
and triggering preset exception handling when the exception information is detected.
In an actual application process, the virtual machine may encounter abnormal situations that no response or corresponding action occurs after the virtual GPU instance is started, the GPU driver installation file downloaded from the preset driver installation file data source cannot be normally installed or cannot be normally used after installation, and the like, and at this time, if the above abnormal information is detected, a preset abnormal processing flow may be triggered, where the preset abnormal processing may be, for example, reporting specific abnormal information to preset control resources such as preset control personnel and preset control equipment, so that the preset control resources perform corresponding processing according to the reported abnormal information.
Fig. 3 shows a flowchart of a driving data processing method according to another embodiment of the present invention, which is applicable to a host, as shown in fig. 3, the driving data processing method includes the following steps S301 to S303:
in step S301, in response to receiving the drive data automatic processing authorization information, starting the analog processor;
in step S302, in a virtual GPU instance creation process, host GPU driving information corresponding to the virtual GPU instance is obtained, where the host GPU driving information at least includes host GPU identification information and host GPU driving version information;
in step S303, the host GPU driving information corresponding to the virtual GPU instance is sent to the simulation processor, so that the simulation processor writes the host GPU driving information into a preset driving information data source.
As mentioned above, with the development of data technologies, mainstream GPU parallel computing services such as artificial intelligence and GPU (graphics processing unit) rendering are rapidly developed, and a scenario requiring GPU usage is also more and more extensive, and in a virtualized application scenario, it is considered that some users do not need to perform computation by the whole GPU, so, in order to save GPU computational power resources and achieve full utilization of the GPU, the total performance of the GPU is usually fragmented, for example, the total performance of the GPU can be split into a plurality of virtual GPU instances such as 1/2, 1/3, 1/4, 1/8, and then the plurality of split virtual GPU instances are allocated to different virtual machines, where each virtual GPU instance has 1/n of the total performance of the GPU, and n is the number of fragments. Since the GPU driver installed on the host needs to be continuously updated, but the virtual machine cannot actively acquire the driver version of the host, and the virtual GPU instance driver version information installed on the virtual machine needs to maintain a corresponding relationship with the GPU driver version information installed on the host, otherwise, a problem of driver incompatibility of different versions will occur, in the prior art, the GPU driver version information installed on the current host is generally provided to each virtual GPU instance in a help document manner, so as to maintain a corresponding relationship between the virtual GPU instance driver version information installed on each virtual machine and the GPU driver version information installed on the host, as shown in fig. 2. The processing mode not only needs to increase the investment of operation and maintenance labor cost, but also brings the lag of driving information communication, and is not beneficial to improving the service operation quality of the virtual machine.
In view of the above problem, in this embodiment, a driving data processing method is provided, in which host GPU driving information is written into a preset driving information data source in advance in a virtual GPU instance creation process, so that a virtual machine can access the preset driving information data source to actively and timely obtain the host GPU driving information, and further obtain a corresponding GPU driving installation file in time for automatic installation. According to the technical scheme, the GPU driving information of the host machine can be published in time, so that the corresponding virtual machines can automatically install the corresponding driving files, and further, the corresponding relation between the GPU driving version information installed on the host machine and the virtual GPU instance driving version information installed on each virtual machine can be automatically and continuously kept, therefore, the investment of operation and maintenance labor cost and the lag of driving information communication are effectively avoided, and the service operation quality of the virtual machines is favorably improved.
In an embodiment of the present invention, the authorization information for automatically processing the driving data is sent to the virtual machine by the user or other virtual machine user, and is also sent to the host by the virtual machine, and when the user or other virtual machine user confirms authorization to automatically process the driving data, the host starts the simulation processor, so that the simulation processor writes the obtained host GPU driving information corresponding to the virtual GPU instance into a preset driving information data source for the driving installation component of the virtual machine to access.
In order to enable a virtual machine to automatically and timely install a drive file corresponding to host machine GPU drive version information and automatically and continuously maintain the corresponding relation between the GPU drive version information installed on the host machine and virtual GPU instance drive version information installed on each virtual machine, in one embodiment of the invention, the host machine sends the obtained host machine GPU drive information corresponding to the virtual GPU instance to the analog processor in the virtual GPU instance creating process, so that the analog processor writes the host machine GPU drive information into a preset drive information data source in advance.
In one embodiment of the present invention, the method further comprises the steps of:
and in response to the fact that the host GPU driving information is detected to be updated, writing the updated host GPU driving information into a preset driving information data source through the simulation processor, and sending a host GPU driving information updating notification message to the virtual machine, wherein the host GPU driving information updating notification message at least comprises host GPU identification information.
As mentioned above, the GPU driver installed on the host needs to be continuously updated, and the virtual GPU instance driver version information installed on the virtual machine needs to keep a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of driver incompatibility of different versions will occur, and therefore, in this embodiment, the GPU driver information of the host and the GPU driver installation file need to be updated in real time. Specifically, when the host detects that the host GPU driving information is updated, writing the updated host GPU driving information into a preset driving information data source through the analog processor, and sending a host GPU driving information update notification message to the virtual machine to remind the virtual machine to acquire new host GPU driving information and a corresponding GPU driving installation file, wherein in order to avoid a situation of a host GPU driving version information acquisition error, the host GPU driving information update notification message at least includes host GPU identification information.
The technical features of the embodiment shown in fig. 3 and related embodiments are the same as or similar to the technical features described in the embodiment shown in fig. 1-2, and the explanation and description of the related technical features may refer to the explanation and description of the technical features in the embodiment shown in fig. 1-2, and are not repeated herein.
Fig. 4 shows a flowchart of a driving data processing method according to still another embodiment of the present invention, which is applied to a data processing system including a host machine and a virtual machine, as shown in fig. 4, the driving data processing method includes the following steps S401 to S402:
in step S401, the host starts the analog processor in response to receiving the driving data automatic processing authorization information, acquires, in the virtual GPU instance creation process, host GPU driving information corresponding to the virtual GPU instance, and sends the host GPU driving information corresponding to the virtual GPU instance to the analog processor, so that the analog processor writes the host GPU driving information into a preset driving information data source;
in step S402, the virtual machine starts a driver installation component in response to the virtual GPU instance starting, automatically acquires, by the driver installation component, host GPU driver information corresponding to the virtual GPU instance from the preset driver information data source, and acquires, by the driver installation component, a GPU driver installation file corresponding to the host GPU driver information from a preset driver installation file data source and installs the GPU driver installation file.
As mentioned above, with the development of data technology, currently, mainstream GPU parallel computing services such as artificial intelligence and GPU (graphics processing unit) rendering are rapidly developing, and a scene requiring GPU is also becoming more and more extensive, and in a virtualized application scene, it is considered that some users do not need the whole GPU to perform computation, so in order to save GPU computing resources and achieve full utilization of the GPU, the total performance of the GPU is generally split, for example, the total performance of the GPU can be split into multiple virtual GPU instances such as 1/2, 1/3, 1/4, 1/8, and then the multiple split virtual GPU instances are allocated to different virtual machines, where each virtual GPU instance has 1/n of the total performance of the GPU, and n is the number of the split virtual GPU instances. Because the GPU driver installed on the host needs to be continuously updated, but the virtual machine cannot actively acquire the driver version of the host, and the virtual GPU instance driver version information installed on the virtual machine also needs to maintain a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of incompatibility of drivers of different versions will occur, in the prior art, the GPU driver version information installed on the current host is provided to each virtual GPU instance in a help document manner, so as to maintain the corresponding relationship between the virtual GPU instance driver version information installed on each virtual machine and the GPU driver version information installed on the host, as shown in fig. 2. The processing mode not only needs to increase the investment of operation and maintenance labor cost, but also brings the lag of driving information communication, and is not beneficial to improving the service operation quality of the virtual machine.
In view of the above problems, in this embodiment, a driving data processing method is provided, in which a host writes host GPU driving information into a preset driving information data source in advance in a virtual GPU instance creation process, and a virtual machine automatically accesses the preset driving information data source to actively and timely obtain the host GPU driving information, and further obtain a corresponding GPU driving installation file in time for automatic installation. According to the technical scheme, the GPU driving information of the host machine can be published in time, the corresponding virtual machines can automatically install the corresponding driving files, and then the corresponding relation between the GPU driving version information installed on the host machine and the virtual GPU instance driving version information installed on each virtual machine can be automatically and continuously kept, so that the investment of operation and maintenance labor cost and the lag of driving information communication are effectively avoided, and the service operation quality of the virtual machines is favorably improved.
In one embodiment of the present invention, the method further comprises the steps of:
and the host machine responds to the update of the host machine GPU driving information, writes the updated host machine GPU driving information into a preset driving information data source through the simulation processor, and sends a host machine GPU driving information updating notification message to the virtual machine, wherein the host machine GPU driving information updating notification message at least comprises host machine GPU identification information.
In an embodiment of the present invention, the step of starting the driver installation component by the virtual machine in response to the virtual GPU instance starting may be implemented as:
the virtual machine automatically processes the authorization information in response to receiving the driver data and initiates a driver installation component in response to the virtual GPU instance starting.
In an embodiment of the present invention, the step of the virtual machine automatically acquiring, by the driver installation component, host GPU driver information corresponding to the virtual GPU instance from a preset driver information data source may be implemented as:
acquiring host GPU identification information of the virtual GPU instance through the drive installation component;
and reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
In an embodiment of the present invention, the step of obtaining, by the virtual machine, a GPU driver installation file corresponding to the host GPU driver information from a preset driver installation file data source through the driver installation component and installing the GPU driver installation file may be implemented as:
analyzing the host machine GPU driving information through the driving installation component to obtain host machine GPU driving version information;
acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component;
and installing the GPU driver installation file.
In one embodiment of the present invention, the method further comprises the steps of:
the virtual machine responds to a received host machine GPU driving information updating notification message sent by a host machine or responds to the detection that the host machine GPU driving information stored in the preset driving information data source is updated, the driving installation component automatically acquires the updating host machine GPU driving information corresponding to the virtual GPU instance from the preset driving information data source, and acquires a GPU driving installation file corresponding to the updating host machine GPU driving information from a preset driving installation file data source for installation, wherein the host machine GPU driving information updating notification message at least comprises host machine GPU identification information.
In one embodiment of the present invention, the method further comprises the steps of:
and triggering preset exception handling when the virtual machine detects the exception information.
In an actual application process, the virtual machine may encounter abnormal situations that no response or corresponding action occurs after the virtual GPU instance is started, the GPU driver installation file downloaded from the preset driver installation file data source cannot be normally installed or cannot be normally used after installation, and the like, and at this time, if the above abnormal information is detected, a preset abnormal processing flow may be triggered, where the preset abnormal processing may be, for example, reporting specific abnormal information to preset control resources such as preset control personnel and preset control equipment, so that the preset control resources perform corresponding processing according to the reported abnormal information.
The technical features of the embodiment shown in fig. 4 and related embodiments are the same as or similar to the technical features described in the embodiment shown in fig. 1 to 3, and the explanation and description of the related technical features may refer to the explanation and description of the technical features in the embodiment shown in fig. 1 to 3, and are not repeated herein.
Fig. 5 is a flowchart of an overall driving data processing method according to an embodiment of the present disclosure, and as shown in fig. 5, a data processing system in the diagram includes a host and a plurality of virtual machines, for convenience of description, the driving data processing method is described by taking one of the virtual machines as an example, and execution steps of other virtual machines are similar to those of the driving data processing method. After receiving the drive data automatic processing authorization information, the host computer starts an analog processor; in the virtual GPU instance creating process, the GPU sends the acquired host machine GPU driving information corresponding to the virtual GPU instance to the simulation processor; the analog processor writes the received host GPU driving information into a preset driving information data source; the virtual machine responds to the starting of the virtual GPU instance and starts a drive installation component; the driver installation component automatically acquires host machine GPU driver information corresponding to the virtual GPU instance from the preset driver information data source, and then acquires GPU driver installation files corresponding to the host machine GPU driver information from a preset driver installation file data source and installs the GPU driver installation files, wherein the preset driver installation file data source stores GPU driver installation files with different version information, such as GPU driver installation file 1, GPU driver installation file 2 and GPU driver installation file 3.
Fig. 6 is a flowchart of an overall method for processing driver data at a virtual machine end according to an embodiment of the present disclosure, and as shown in fig. 6, after a vGPU instance is created, it is determined whether a virtual machine user has selected an automatic driver installation, and if not, no response is made after the vGPU instance is started, the process is ended; if yes, operating the drive installation assembly after the vGPU instance is started, downloading a corresponding GPU drive installation file from a preset drive installation file data source, then judging whether installation of the GPU drive installation file is normally finished, if yes, finishing, if not, reporting abnormal information to preset management and control resources, and finishing the process.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention.
Fig. 7 is a block diagram showing a configuration of a drive data processing apparatus according to an embodiment of the present invention, which may be implemented as a part or all of an electronic device, which may be implemented as a virtual machine, by software, hardware, or a combination of both. As shown in fig. 7, the driving data processing apparatus includes:
a first starting module 701 configured to start a driver installation component in response to a virtual GPU instance starting;
a first obtaining module 702, configured to automatically obtain, by the driver installation component, host GPU driver information corresponding to the virtual GPU instance from a preset driver information data source, where the host GPU driver information is written into the preset driver information data source by a host in a virtual GPU instance creation process;
the installation module 703 is configured to obtain, through the driver installation component, a GPU driver installation file corresponding to the host GPU driver information from a preset driver installation file data source and install the GPU driver installation file.
As mentioned above, with the development of data technology, currently, mainstream GPU parallel computing services such as artificial intelligence and GPU (graphics processing unit) rendering are rapidly developing, and a scene requiring GPU is also becoming more and more extensive, and in a virtualized application scene, it is considered that some users do not need the whole GPU to perform computation, so in order to save GPU computing resources and achieve full utilization of the GPU, the total performance of the GPU is generally split, for example, the total performance of the GPU can be split into multiple virtual GPU instances such as 1/2, 1/3, 1/4, 1/8, and then the multiple split virtual GPU instances are allocated to different virtual machines, where each virtual GPU instance has 1/n of the total performance of the GPU, and n is the number of the split virtual GPU instances. Because the GPU driver installed on the host needs to be continuously updated, but the virtual machine cannot actively acquire the driver version of the host, and the virtual GPU instance driver version information installed on the virtual machine also needs to maintain a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of incompatibility of drivers of different versions will occur, in the prior art, the GPU driver version information installed on the current host is provided to the virtual machine in a help document manner, so as to maintain the corresponding relationship between the virtual GPU instance driver version information installed on each virtual machine and the GPU driver version information installed on the host, as shown in fig. 2. The processing mode not only needs to increase the investment of operation and maintenance labor cost, but also brings the lag of driving information communication, and is not beneficial to improving the service operation quality of the virtual machine.
In view of the foregoing problems, in this embodiment, a driving data processing apparatus is provided, where the apparatus automatically obtains host GPU driving information that has been written into a preset driving information data source by a host in a virtual GPU instance creation process, and obtains a corresponding GPU driving installation file according to the obtained host GPU driving information for installation. According to the technical scheme, the host machine GPU driving information can be automatically identified, the corresponding driving files can be automatically installed, and the corresponding relation between the virtual GPU instance driving version information installed on each virtual machine and the GPU driving version information installed on the host machine can be automatically and continuously maintained, so that the investment of operation and maintenance labor cost and the lag of driving information communication are effectively avoided, and the service operation quality of the virtual machines is favorably improved.
In an embodiment of the present invention, as described above, the virtual GPU instance, also called vGPU instance, refers to an instance type obtained by 1/n slicing a physical GPU on a host, where n may be a natural number. The virtual GPU instance obtained after slicing can be allocated to virtual machines for use according to the actual application requirements of the virtual machines, each virtual machine can have one virtual GPU instance, and a plurality of virtual machines share the same physical GPU.
In an embodiment of the invention, the driver installation component is installed on a virtual machine using a virtual GPU instance. After obtaining the authorization permission for automatic processing of the drive data, for example, the virtual machine user selects an automatic installation drive, the drive installation component can automatically acquire the host GPU drive information corresponding to the used virtual GPU instance from the preset drive information data source, and automatically acquire and automatically install the GPU drive installation file corresponding to the host GPU drive information from the preset drive installation file data source. The preset driving information data source may be, for example, a PCI configuration space (peripheral component interconnect standard interface configuration space), and the host writes the current latest host GPU driving information into the unused, i.e., idle, PCI configuration space in advance when creating the virtual GPU instance, so as to facilitate the virtual machine to obtain the host GPU driving information. The preset drive installation file data source refers to a preset file memory or a preset file server of the GPU drive installation file stored with different version information, and the drive installation component can acquire the GPU drive installation file corresponding to the GPU drive information of the host machine by means of communication with the preset file memory or the preset file server so as to install subsequent GPU drives.
In an embodiment of the present invention, the host GPU driving information at least includes host GPU identification information and host GPU driving version information. The identification information of the GPU of the host machine is used for identifying the GPU of the host machine distinctively so as to avoid the situation that the GPU of the host machine drives the version information to obtain errors.
As mentioned above, the virtual GPU instance obtained after slicing may be allocated to a virtual machine for use according to the actual application requirement of the virtual machine, each virtual machine may have one virtual GPU instance, and a plurality of virtual machines share the same physical GPU, so when a plurality of virtual machines sharing the same physical GPU are provided, the plurality of virtual machines may all communicate with the corresponding host, the preset drive information data source, and the preset drive installation file data source to obtain the corresponding host GPU drive information and the corresponding GPU drive installation file.
In an embodiment of the present invention, the first starting module 701 may be configured to:
the driver installation component is launched in response to receiving the driver data auto-processing authorization information and in response to the virtual GPU instance launching.
In order to protect the legitimate rights of the user or other virtual machine users, in this embodiment, only after receiving the authorization information for automatically processing the driver data sent or confirmed by the user or other virtual machine users, the driver installation component is started when the virtual GPU instance is started, so as to execute the subsequent automatic installation process of the driver, that is, to complete the automatic acquisition of the driver information, the automatic acquisition of the driver installation file, and the automatic installation.
In an embodiment of the present invention, the first obtaining module 702 may be configured to:
acquiring host GPU identification information of the virtual GPU instance through the drive installation component;
and reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
As mentioned above, the host GPU identification information is used to perform differential identification on the host GPU, and therefore, in order to avoid the situation that the host GPU driving version information is obtained incorrectly, in this embodiment, the correct host GPU driving information corresponding to the virtual GPU instance is obtained by comparing the host GPU identification information. Specifically, first, the driver installation component acquires the host GPU identification information of the virtual GPU instance; and then, reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
In an embodiment of the present invention, the installation module 703 may be configured to:
analyzing the host machine GPU driving information through the driving installation component to obtain host machine GPU driving version information;
acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component;
and installing the GPU driver installation file.
In order to obtain a correct GPU driver installation file corresponding to the host GPU driver version information, in this embodiment, first, the obtained host GPU driver information is analyzed by the driver installation component to obtain the host GPU driver version information; acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component; and finally, installing the GPU drive installation file.
As mentioned above, the preset driver installation file data source refers to a preset file memory or a preset file server storing GPU driver installation files with different version information. In an embodiment of the present invention, the preset driver installation file data source may be, for example, a file storage such as an OSS server (object storage server) or a file server, and the GPU driver installation files with different version information are stored thereon, so as to be obtained by a GPU driver installation file demander with different version information.
In an embodiment of the present invention, the apparatus further includes:
the updating module is configured to respond to a host GPU driving information updating notification message sent by a host or respond to the fact that the host GPU driving information stored in the preset driving information data source is updated, automatically acquire the updating host GPU driving information corresponding to the virtual GPU instance from the preset driving information data source through the driving installation assembly, and acquire a GPU driving installation file corresponding to the updating host GPU driving information from a preset driving installation file data source for installation, wherein the host GPU driving information updating notification message at least comprises host GPU identification information.
As mentioned above, the GPU driver installed on the host needs to be continuously updated, and the virtual GPU instance driver version information installed on the virtual machine needs to keep a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of driver incompatibility of different versions will occur, and therefore, in this embodiment, the GPU driver information of the host and the GPU driver installation file need to be updated in real time. Specifically, when the virtual machine receives a host GPU drive information update notification message sent by the host, or the drive installation component periodically detects information update on the preset drive information data source, and detects that there is update of the host GPU drive information stored in the preset drive information data source, the update module may enable the drive installation component to initiate an update drive information automatic acquisition operation, that is, automatically acquire, from the preset drive information data source, update host GPU drive information corresponding to the virtual GPU instance, and then acquire, from the preset drive installation file data source, a new GPU drive installation file corresponding to the update host GPU drive information to perform update installation. In order to avoid the situation that the acquisition of the host GPU drive version information is wrong, the host GPU drive information updating notification message at least comprises host GPU identification information.
In an embodiment of the present invention, the apparatus further includes:
and the processing module is configured to trigger preset exception handling when the exception information is detected.
In an actual application process, the virtual machine may encounter abnormal situations that no response or corresponding action occurs after the virtual GPU instance is started, the GPU driver installation file downloaded from the preset driver installation file data source cannot be normally installed or cannot be normally used after installation, and the like, and at this time, if the above abnormal information is detected, a preset abnormal processing flow may be triggered, where the preset abnormal processing may be, for example, reporting specific abnormal information to preset control resources such as preset control personnel and preset control equipment, so that the preset control resources perform corresponding processing according to the reported abnormal information.
Fig. 8 is a block diagram illustrating a configuration of a drive data processing apparatus according to another embodiment of the present invention, which may be implemented as a host, as shown in fig. 8, the drive data processing apparatus including:
a second starting module 801 configured to start the simulation processor in response to receiving the driving data automatic processing authorization information;
a second obtaining module 802, configured to obtain host GPU driving information corresponding to a virtual GPU instance in a virtual GPU instance creation process, where the host GPU driving information at least includes host GPU identification information and host GPU driving version information;
a first sending module 803, configured to send the host GPU driving information corresponding to the virtual GPU instance to the simulation processor, so that the simulation processor writes the host GPU driving information into a preset driving information data source.
As mentioned above, with the development of data technology, currently, mainstream GPU parallel computing services such as artificial intelligence and GPU (graphics processing unit) rendering are rapidly developing, and a scene requiring GPU is also becoming more and more extensive, and in a virtualized application scene, it is considered that some users do not need the whole GPU to perform computation, so in order to save GPU computing resources and achieve full utilization of the GPU, the total performance of the GPU is generally split, for example, the total performance of the GPU can be split into multiple virtual GPU instances such as 1/2, 1/3, 1/4, 1/8, and then the multiple split virtual GPU instances are allocated to different virtual machines, where each virtual GPU instance has 1/n of the total performance of the GPU, and n is the number of the split virtual GPU instances. Because the GPU driver installed on the host needs to be continuously updated, but the virtual machine cannot actively acquire the driver version of the host, and the virtual GPU instance driver version information installed on the virtual machine also needs to maintain a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of incompatibility of drivers of different versions will occur, in the prior art, the GPU driver version information installed on the current host is provided to each virtual GPU instance in a help document manner, so as to maintain the corresponding relationship between the virtual GPU instance driver version information installed on each virtual machine and the GPU driver version information installed on the host, as shown in fig. 2. The processing mode not only needs to increase the investment of operation and maintenance labor cost, but also brings the lag of driving information communication, and is not beneficial to improving the service operation quality of the virtual machine.
In view of the above problem, in this embodiment, a driving data processing apparatus is provided, in which host GPU driving information is written into a preset driving information data source in advance in a virtual GPU instance creation process, so that a virtual machine can access the preset driving information data source to actively and timely obtain the host GPU driving information, and further obtain a corresponding GPU driving installation file in time for automatic installation. According to the technical scheme, the GPU driving information of the host machine can be published in time, so that the corresponding virtual machines can automatically install the corresponding driving files, and further, the corresponding relation between the GPU driving version information installed on the host machine and the virtual GPU instance driving version information installed on each virtual machine can be automatically and continuously kept, therefore, the investment of operation and maintenance labor cost and the lag of driving information communication are effectively avoided, and the service operation quality of the virtual machines is favorably improved.
In an embodiment of the present invention, the authorization information for automatically processing the driving data is sent to the virtual machine by the user or other virtual machine user, and is also sent to the host by the virtual machine, and when the user or other virtual machine user confirms authorization to automatically process the driving data, the host starts the simulation processor, so that the simulation processor writes the obtained host GPU driving information corresponding to the virtual GPU instance into a preset driving information data source for the driving installation component of the virtual machine to access.
In order to enable a virtual machine to automatically and timely install a drive file corresponding to host machine GPU drive version information and automatically and continuously maintain the corresponding relation between the GPU drive version information installed on the host machine and virtual GPU instance drive version information installed on each virtual machine, in one embodiment of the invention, the host machine sends the obtained host machine GPU drive information corresponding to the virtual GPU instance to the analog processor in the virtual GPU instance creating process, so that the analog processor writes the host machine GPU drive information into a preset drive information data source in advance.
In an embodiment of the present invention, the apparatus further includes:
the second sending module is configured to write the updated host GPU driving information into a preset driving information data source through the simulation processor in response to detecting that the host GPU driving information is updated, and send a host GPU driving information updating notification message to the virtual machine, wherein the host GPU driving information updating notification message at least comprises host GPU identification information.
As mentioned above, the GPU driver installed on the host needs to be continuously updated, and the virtual GPU instance driver version information installed on the virtual machine needs to keep a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of driver incompatibility of different versions will occur, and therefore, in this embodiment, the GPU driver information of the host and the GPU driver installation file need to be updated in real time. Specifically, when the host detects that the host GPU driving information is updated, the second sending module writes the updated host GPU driving information into a preset driving information data source through the analog processor, and sends a host GPU driving information update notification message to the virtual machine to remind the virtual machine to acquire new host GPU driving information and a corresponding GPU driving installation file, wherein in order to avoid a situation that a host GPU driving version information acquisition error occurs, the host GPU driving information update notification message at least includes host GPU identification information.
The technical features of the embodiment shown in fig. 8 and related embodiments are the same as or similar to the technical features described in the embodiment shown in fig. 7, and the explanation and description of the related technical features may refer to the explanation and description of the technical features in the embodiment shown in fig. 7, and are not repeated herein.
Fig. 9 is a block diagram illustrating a configuration of a drive data processing apparatus according to still another embodiment of the present invention, which may be implemented as a data processing system including a host machine and a virtual machine, as shown in fig. 9, the drive data processing apparatus including:
the host 901 is configured to respond to the received drive data automatic processing authorization information, start the analog processor, acquire host GPU drive information corresponding to the virtual GPU instance in the virtual GPU instance creation process, and send the host GPU drive information corresponding to the virtual GPU instance to the analog processor, so that the analog processor writes the host GPU drive information into a preset drive information data source;
the virtual machine 902 is configured to respond to the starting of the virtual GPU instance, start a driver installation component, automatically acquire, by the driver installation component, host GPU driver information corresponding to the virtual GPU instance from the preset driver information data source, and acquire, by the driver installation component, and install, by the driver installation component, a GPU driver installation file corresponding to the host GPU driver information from the preset driver installation file data source.
As mentioned above, with the development of data technology, currently, mainstream GPU parallel computing services such as artificial intelligence and GPU (graphics processing unit) rendering are rapidly developing, and a scene requiring GPU is also becoming more and more extensive, and in a virtualized application scene, it is considered that some users do not need the whole GPU to perform computation, so in order to save GPU computing resources and achieve full utilization of the GPU, the total performance of the GPU is generally split, for example, the total performance of the GPU can be split into multiple virtual GPU instances such as 1/2, 1/3, 1/4, 1/8, and then the multiple split virtual GPU instances are allocated to different virtual machines, where each virtual GPU instance has 1/n of the total performance of the GPU, and n is the number of the split virtual GPU instances. Because the GPU driver installed on the host needs to be continuously updated, but the virtual machine cannot actively acquire the driver version of the host, and the virtual GPU instance driver version information installed on the virtual machine also needs to maintain a corresponding relationship with the GPU driver version information installed on the host, otherwise, the problem of incompatibility of drivers of different versions will occur, in the prior art, the GPU driver version information installed on the current host is provided to each virtual GPU instance in a help document manner, so as to maintain the corresponding relationship between the virtual GPU instance driver version information installed on each virtual machine and the GPU driver version information installed on the host, as shown in fig. 2. The processing mode not only needs to increase the investment of operation and maintenance labor cost, but also brings the lag of driving information communication, and is not beneficial to improving the service operation quality of the virtual machine.
In view of the above problem, in this embodiment, a driving data processing apparatus is provided, in which a host writes host GPU driving information into a preset driving information data source in advance in a virtual GPU instance creation process, and a virtual machine automatically accesses the preset driving information data source to actively and timely obtain the host GPU driving information, and further obtain a corresponding GPU driving installation file in time for automatic installation. According to the technical scheme, the GPU driving information of the host machine can be published in time, the corresponding virtual machines can automatically install the corresponding driving files, and then the corresponding relation between the GPU driving version information installed on the host machine and the virtual GPU instance driving version information installed on each virtual machine can be automatically and continuously kept, so that the investment of operation and maintenance labor cost and the lag of driving information communication are effectively avoided, and the service operation quality of the virtual machines is favorably improved.
In an embodiment of the present invention, the host 901 is further configured to: and in response to the host GPU driving information is updated, writing the updated host GPU driving information into a preset driving information data source through the simulation processor, and sending a host GPU driving information updating notification message to the virtual machine, wherein the host GPU driving information updating notification message at least comprises host GPU identification information.
In an embodiment of the present invention, the virtual machine, in response to the virtual GPU instance starting up, may be configured to start up a portion of the driver installation component:
the virtual machine automatically processes the authorization information in response to receiving the driver data and initiates a driver installation component in response to the virtual GPU instance starting.
In an embodiment of the present invention, the virtual machine automatically obtains, from a preset drive information data source, a portion of host GPU drive information corresponding to the virtual GPU instance through the drive installation component, and may be configured to:
acquiring host GPU identification information of the virtual GPU instance through the drive installation component;
and reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
In an embodiment of the present invention, the portion of the virtual machine, which obtains and installs the GPU driver installation file corresponding to the host GPU driver information from a preset driver installation file data source through the driver installation component, may be configured to:
analyzing the host machine GPU driving information through the driving installation component to obtain host machine GPU driving version information;
acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component;
and installing the GPU driver installation file.
In an embodiment of the present invention, the virtual machine may be further configured to:
and in response to receiving a host GPU drive information update notification message sent by a host or in response to detecting that the host GPU drive information stored in the preset drive information data source is updated, automatically acquiring update host GPU drive information corresponding to the virtual GPU instance from the preset drive information data source through the drive installation component, and acquiring a GPU drive installation file corresponding to the update host GPU drive information from a preset drive installation file data source for installation, wherein the host GPU drive information update notification message at least comprises host GPU identification information.
In an embodiment of the present invention, the virtual machine may be further configured to: and triggering preset exception handling when the exception information is detected.
In an actual application process, the virtual machine may encounter abnormal situations that no response or corresponding action occurs after the virtual GPU instance is started, the GPU driver installation file downloaded from the preset driver installation file data source cannot be normally installed or cannot be normally used after installation, and the like, and at this time, if the above abnormal information is detected, a preset abnormal processing flow may be triggered, where the preset abnormal processing may be, for example, reporting specific abnormal information to preset control resources such as preset control personnel and preset control equipment, so that the preset control resources perform corresponding processing according to the reported abnormal information.
The technical features of the embodiment shown in fig. 9 and related embodiments are the same as or similar to the technical features described in the embodiment shown in fig. 7 to 8, and the explanation and description of the related technical features may refer to the explanation and description of the technical features in the embodiment shown in fig. 7 to 8, and are not repeated herein.
Fig. 10 is a block diagram illustrating a structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 10, the electronic device 1000 includes a memory 1001 and a processor 1002; wherein the content of the first and second substances,
the memory 1001 is used to store one or more computer instructions, which are executed by the processor 1002 to implement any of the method steps described above.
Fig. 11 is a schematic structural diagram of a computer system suitable for implementing a driving data processing method according to an embodiment of the present invention.
As shown in fig. 11, the computer system 1100 includes a processing unit 1101, which can execute various processes in the above-described embodiments according to a program stored in a Read Only Memory (ROM)1102 or a program loaded from a storage section 1108 into a Random Access Memory (RAM) 1103. In the RAM1103, various programs and data necessary for the operation of the system 1100 are also stored. The processing unit 1101, the ROM1102, and the RAM1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
The following components are connected to the I/O interface 1105: an input portion 1106 including a keyboard, mouse, and the like; an output portion 1107 including a signal output unit such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1108 including a hard disk and the like; and a communication section 1109 including a network interface card such as a LAN card, a modem, or the like. The communication section 1109 performs communication processing via a network such as the internet. A driver 1110 is also connected to the I/O interface 1105 as necessary. A removable medium 1111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1110 as necessary, so that a computer program read out therefrom is mounted into the storage section 1108 as necessary. The processing unit 1101 may be implemented as a CPU, a GPU, an FPGA, an NPU, or other processing units.
In particular, the above described methods may be implemented as computer software programs according to embodiments of the present invention. For example, embodiments of the present invention include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the method of driving data processing. In such an embodiment, the computer program can be downloaded and installed from a network through the communication portion 1109 and/or installed from the removable medium 1111.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be a computer-readable storage medium included in the apparatus in the foregoing embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the embodiments of the present invention.
The foregoing description is only exemplary of the preferred embodiments of the invention and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention according to the embodiments of the present invention is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept. For example, the above features and (but not limited to) the features with similar functions disclosed in the embodiments of the present invention are mutually replaced to form the technical solution.

Claims (19)

1. A driving data processing method is applicable to a virtual machine and comprises the following steps:
starting a drive installation component in response to the virtual GPU instance starting;
automatically acquiring host machine GPU driving information corresponding to the virtual GPU instance from a preset driving information data source through the driving installation assembly, wherein the host machine GPU driving information is written into a preset driving information data source by a host machine in the virtual GPU instance creating process, and the preset driving information data source comprises a peripheral component interconnection standard interface configuration space;
the method comprises the steps that a GPU drive installation file corresponding to GPU drive information of a host is obtained from a preset drive installation file data source through a drive installation assembly and installed, the GPU drive installation file with different version information is stored in the preset drive installation file data source, and the preset drive installation file data source comprises a preset file storage device and a preset file server.
2. The method of claim 1, the initiating a driver installation component in response to the virtual GPU instance starting, implemented to:
the driver installation component is launched in response to receiving the driver data auto-processing authorization information and in response to the virtual GPU instance launching.
3. The method according to claim 1 or 2, wherein the host GPU driver information comprises at least host GPU identification information and host GPU driver version information.
4. The method of claim 3, the automatically obtaining, by the driver installation component, host GPU driver information corresponding to the virtual GPU instance from a preset driver information data source is implemented as:
acquiring host GPU identification information of the virtual GPU instance through the drive installation component;
and reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
5. The method according to any one of claims 1-2 and 4, wherein the obtaining and installing, by the driver installation component, the GPU driver installation file corresponding to the host GPU driver information from a preset driver installation file data source is implemented as:
analyzing the host machine GPU driving information through the driving installation component to obtain host machine GPU driving version information;
acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component;
and installing the GPU driver installation file.
6. The method of any of claims 1-2, 4, further comprising:
and in response to receiving a host GPU drive information update notification message sent by a host or in response to detecting that the host GPU drive information stored in the preset drive information data source is updated, automatically acquiring update host GPU drive information corresponding to the virtual GPU instance from the preset drive information data source through the drive installation component, and acquiring a GPU drive installation file corresponding to the update host GPU drive information from a preset drive installation file data source for installation, wherein the host GPU drive information update notification message at least comprises host GPU identification information.
7. A driving data processing method is suitable for a host machine and comprises the following steps:
starting the simulation processor in response to receiving the drive data automatic processing authorization information;
in the virtual GPU instance creating process, host GPU driving information corresponding to the virtual GPU instance is obtained, wherein the host GPU driving information at least comprises host GPU identification information and host GPU driving version information;
sending host GPU driver information corresponding to the virtual GPU instance to an analog processor, so that the analog processor writes the host GPU driving information into a preset driving information data source, the preset driving information data source comprises a peripheral component interconnection standard interface configuration space, a driving installation component which is started in response to the starting of the virtual GPU instance is used for automatically acquiring host GPU driving information corresponding to the virtual GPU instance from the preset driving information data source, the driver installation component is also used for acquiring and installing a GPU driver installation file corresponding to the GPU driver information of the host machine from a preset driver installation file data source, the preset drive installation file data source stores GPU drive installation files with different version information, the preset drive installation file data source comprises a preset file storage and a preset file server.
8. The method of claim 7, further comprising:
and in response to the fact that the host GPU driving information is detected to be updated, writing the updated host GPU driving information into a preset driving information data source through the simulation processor, and sending a host GPU driving information updating notification message to the virtual machine, wherein the host GPU driving information updating notification message at least comprises host GPU identification information.
9. A driving data processing method is suitable for a data processing system comprising a host machine and a virtual machine, and comprises the following steps:
the host responds to the received driving data automatic processing authorization information, starts a simulation processor, acquires host GPU driving information corresponding to the virtual GPU instance in the virtual GPU instance creating process, and sends the host GPU driving information corresponding to the virtual GPU instance to the simulation processor, so that the simulation processor writes the host GPU driving information into a preset driving information data source, wherein the preset driving information data source comprises a peripheral component interconnection standard interface configuration space;
the virtual machine starts in response to a virtual GPU instance, a drive installation component is started, host GPU drive information corresponding to the virtual GPU instance is automatically acquired from a preset drive information data source through the drive installation component, a GPU drive installation file corresponding to the host GPU drive information is acquired from a preset drive installation file data source through the drive installation component and is installed, GPU drive installation files with different version information are stored in the preset drive installation file data source, and the preset drive installation file data source comprises a preset file storage device and a preset file server.
10. The method of claim 9, further comprising:
and the host machine responds to the update of the host machine GPU driving information, writes the updated host machine GPU driving information into a preset driving information data source through the simulation processor, and sends a host machine GPU driving information updating notification message to the virtual machine, wherein the host machine GPU driving information updating notification message at least comprises host machine GPU identification information.
11. The method of claim 9 or 10, the step of the virtual machine initiating a driver installation component in response to the virtual GPU instance starting up, being implemented as:
the virtual machine automatically processes the authorization information in response to receiving the driver data and initiates a driver installation component in response to the virtual GPU instance starting.
12. The method according to claim 9 or 10, wherein the step of the virtual machine automatically obtaining, by the driver installation component, host GPU driver information corresponding to the virtual GPU instance from a preset driver information data source is implemented as:
acquiring host GPU identification information of the virtual GPU instance through the drive installation component;
and reading the host machine GPU driving information with the host machine GPU identification information from the preset driving information data source through the driving installation component.
13. The method according to claim 9 or 10, wherein the step of the virtual machine obtaining and installing the GPU driver installation file corresponding to the host GPU driver information from a preset driver installation file data source through the driver installation component is implemented as follows:
analyzing the host machine GPU driving information through the driving installation component to obtain host machine GPU driving version information;
acquiring a GPU driver installation file corresponding to the host GPU driver version information from a preset driver installation file data source according to the host GPU driver version information through the driver installation component;
and installing the GPU driver installation file.
14. The method of claim 9 or 10, further comprising:
the virtual machine responds to a received host machine GPU driving information updating notification message sent by a host machine or responds to the detection that the host machine GPU driving information stored in the preset driving information data source is updated, the driving installation component automatically acquires the updating host machine GPU driving information corresponding to the virtual GPU instance from the preset driving information data source, and acquires a GPU driving installation file corresponding to the updating host machine GPU driving information from a preset driving installation file data source for installation, wherein the host machine GPU driving information updating notification message at least comprises host machine GPU identification information.
15. A drive data processing apparatus adapted for a virtual machine, comprising:
a first launch module configured to launch a driver installation component in response to a virtual GPU instance launching;
the virtual GPU instance creating module is configured to create a virtual GPU instance, and the virtual GPU instance is written into a host machine GPU driving information data source by the host machine in the virtual GPU instance creating process, and the host machine GPU driving information data source comprises a peripheral component interconnection standard interface configuration space;
the installation module is configured to acquire and install a GPU driver installation file corresponding to the GPU driver information of the host machine from a preset driver installation file data source through the driver installation assembly, the preset driver installation file data source stores GPU driver installation files with different version information, and the preset driver installation file data source comprises a preset file storage and a preset file server.
16. A drive data processing apparatus adapted for a host, comprising:
a second starting module configured to start the simulation processor in response to receiving the driving data automatic processing authorization information;
the second acquisition module is configured to acquire host machine GPU driving information corresponding to a virtual GPU instance in the virtual GPU instance creation process, wherein the host machine GPU driving information at least comprises host machine GPU identification information and host machine GPU driving version information;
a first sending module configured to send host GPU driver information corresponding to the virtual GPU instance to an analog processor, so that the analog processor writes the host GPU driving information into a preset driving information data source, the preset driving information data source comprises a peripheral component interconnection standard interface configuration space, a driving installation component which is started in response to the starting of the virtual GPU instance is used for automatically acquiring host GPU driving information corresponding to the virtual GPU instance from the preset driving information data source, the driver installation component is also used for acquiring and installing a GPU driver installation file corresponding to the GPU driver information of the host machine from a preset driver installation file data source, the preset drive installation file data source stores GPU drive installation files with different version information, the preset drive installation file data source comprises a preset file storage and a preset file server.
17. A drive data processing apparatus adapted to a data processing system including a host machine and a virtual machine, comprising:
the host machine is configured to respond to the received driving data automatic processing authorization information, start the simulation processor, acquire host machine GPU driving information corresponding to the virtual GPU instance in the virtual GPU instance creating process, and send the host machine GPU driving information corresponding to the virtual GPU instance to the simulation processor, so that the simulation processor writes the host machine GPU driving information into a preset driving information data source, wherein the preset driving information data source comprises a peripheral component interconnection standard interface configuration space;
the virtual machine is configured to respond to virtual GPU instance starting, a drive installation component is started, host GPU drive information corresponding to the virtual GPU instance is automatically acquired from a preset drive information data source through the drive installation component, a GPU drive installation file corresponding to the host GPU drive information is acquired from a preset drive installation file data source through the drive installation component and installed, the preset drive installation file data source stores GPU drive installation files with different version information, and the preset drive installation file data source comprises a preset file storage and a preset file server.
18. An electronic device comprising a memory and a processor; wherein the content of the first and second substances,
the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of any of claims 1-14.
19. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, carry out the method steps of any of claims 1-14.
CN202010163242.8A 2020-03-10 2020-03-10 Drive data processing method, drive data processing device, electronic equipment and computer storage medium Active CN113377491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010163242.8A CN113377491B (en) 2020-03-10 2020-03-10 Drive data processing method, drive data processing device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010163242.8A CN113377491B (en) 2020-03-10 2020-03-10 Drive data processing method, drive data processing device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN113377491A CN113377491A (en) 2021-09-10
CN113377491B true CN113377491B (en) 2022-08-09

Family

ID=77569059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010163242.8A Active CN113377491B (en) 2020-03-10 2020-03-10 Drive data processing method, drive data processing device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113377491B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489210A (en) * 2019-07-31 2019-11-22 北京百度网讯科技有限公司 Create method, apparatus, equipment and the computer storage medium of virtual machine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170505A (en) * 2016-12-07 2018-06-15 华为技术有限公司 A kind of driven management method and host
CN110187908A (en) * 2019-05-30 2019-08-30 苏州浪潮智能科技有限公司 A kind of method and system that GPU driver automatically updates

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489210A (en) * 2019-07-31 2019-11-22 北京百度网讯科技有限公司 Create method, apparatus, equipment and the computer storage medium of virtual machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GPU虚拟化技术详解;吴建明;《https://www.cnblogs.com/wujianming-110117/p/13025585.html》;20200601;全文 *

Also Published As

Publication number Publication date
CN113377491A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
US8181159B2 (en) Test automation using virtual machines
EP1668509B1 (en) Method and apparatus for monitoring and resetting a co-processor
US11392461B2 (en) Method and apparatus for processing information
CN109995877B (en) Information pushing method and device
US20040117414A1 (en) Method and system for automatically updating operating systems
US20120167090A1 (en) Hypervisor for starting a virtual machine
CN109240825B (en) Elastic task scheduling method, device, equipment and computer readable storage medium
CN1725182A (en) Apparatus and method for updating I/O capability of a logically-partitioned computer system
US8234486B2 (en) Managing reboot operations
JP6316978B2 (en) Broadcast management information using fountain codes
US20080040725A1 (en) Method and apparatus for a parallel model of tasks including abstracted execution and software development
CN107918555B (en) Method and apparatus for processing data based on physical host
US10318343B2 (en) Migration methods and apparatuses for migrating virtual machine including locally stored and shared data
CN110968392B (en) Method and device for upgrading virtualized simulator
CN111708662B (en) Debugging method and device
CN108304209B (en) Firmware upgrading method and firmware upgrading system
CN115357310A (en) System starting method and device, electronic equipment and storage medium
CN112099825A (en) Method, device and equipment for upgrading component and storage medium
WO2006098921A2 (en) System and method for conflict identification and resolution
CN113377491B (en) Drive data processing method, drive data processing device, electronic equipment and computer storage medium
US20230342181A1 (en) Validation of combined software/firmware updates
US20140173589A1 (en) Software installer with built-in hypervisor
US20120260246A1 (en) Software application installation
CN107341026B (en) Method and device for controlling driver
US11474807B1 (en) Firmware update method and computer program product for updating firmware

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40058144

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230525

Address after: Room 1-2-A06, Yungu Park, No. 1008 Dengcai Street, Sandun Town, Xihu District, Hangzhou City, Zhejiang Province

Patentee after: Aliyun Computing Co.,Ltd.

Address before: Box 847, four, Grand Cayman capital, Cayman Islands, UK

Patentee before: ALIBABA GROUP HOLDING Ltd.

TR01 Transfer of patent right