Virtualization device configuration method, device, equipment and medium

The virtualized device configuration information is obtained and parsed through the DPU management device, and provided it to the UEFI interface for custom configuration, solving the problem of fixed virtualized device configuration information, and realizing the flexible configuration and diverse requirements of virtualized devices.

CN117009032BActive Publication Date: 2024-12-03YUSUR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310815635.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-04
Publication Date
2024-12-03
Estimated Expiration
2043-07-04

AI Technical Summary

Technical Problem

In the prior art, when building a virtualized device through an intelligent network card DPU, the configuration information of the virtualized device is fixed, and users cannot customize it and cannot meet diversified business needs.

Method used

The configuration information of the virtualized device is obtained through the DPU management device, provided to the UEFI interface for analysis and visual display, and in response to user configuration changes, the device configuration table is generated and sent to the operating system to realize custom configuration.

Benefits of technology

The configuration information is visually displayed in the UEFI interface, allowing users to make configuration changes, meet users' diverse needs for virtualized devices, and realizes flexible configuration of virtualized devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117009032B_ABST
    Figure CN117009032B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a virtualization device configuration method, apparatus, equipment and medium. The virtualization device configuration method includes: obtaining the configuration information of the virtualization device through the DPU management device, and providing the configuration information to the UEFI interface through the configuration space; parsing the configuration information through the UEFI interface, and visually displaying the configuration information in the UEFI interface; in response to the user's configuration change operation on the UEFI interface, changing the configuration information, saving the changed configuration information and performing a restart operation; generating a corresponding device configuration table according to the changed configuration information through the UEFI interface, and sending the device configuration table to the operating system, so that the operating system configures the corresponding virtualization device according to the device configuration table. According to the embodiment of the present disclosure, the user's use requirements for virtualization devices can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of virtual machine technology, and in particular to a virtualization device configuration method, apparatus, device and medium. Background Art

[0002] With the development of cloud computing, virtualization, cloud native and other technologies, users are getting more and more diverse services from the cloud, and data centers need to present a variety of virtualized devices to meet customer business needs. For example, the corresponding physical function (PF) and virtual function (VF) can be configured through the smart network card (Data Processing Unit, DPU).

[0003] However, when a virtualized device is constructed through the smart network card DPU, the relevant configuration information corresponding to the virtualized device is basically fixed, and the user cannot customize the relevant configuration information according to his own needs, which cannot meet the user's needs well. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides a virtualization device configuration method, apparatus, device and medium.

[0005] In a first aspect, the present disclosure provides a virtualization device configuration method, comprising:

[0006] Obtain the configuration information of the virtualized device through the DPU management device, and provide the configuration information to the UEFI interface through the configuration space;

[0007] Parse the configuration information through the UEFI interface and visualize the configuration information in the UEFI interface;

[0008] In response to a configuration change operation of a user on a UEFI interface, the configuration information is changed, the changed configuration information is saved, and a restart operation is performed;

[0009] A corresponding device configuration table is generated according to the changed configuration information through the UEFI interface, and the device configuration table is sent to the operating system, so that the operating system configures the corresponding virtualized device according to the device configuration table.

[0010] In a second aspect, the present disclosure provides a virtualization device configuration apparatus, comprising:

[0011] A first processing module is used to obtain configuration information of the virtualized device through the DPU management device, and provide the configuration information to the UEFI interface through the configuration space;

[0012] An information display module is used to parse the configuration information through the UEFI interface and visually display the configuration information in the UEFI interface;

[0013] A configuration change module, used to respond to a user's configuration change operation on the UEFI interface, change the configuration information, save the changed configuration information and perform a restart operation;

[0014] The second processing module is used to generate a corresponding device configuration table according to the changed configuration information through the UEFI interface, and send the device configuration table to the operating system, so that the operating system configures the corresponding virtualized device according to the device configuration table.

[0015] In a third aspect, the present disclosure provides a virtualization device configuration device, including:

[0016] processor;

[0017] A memory for storing executable instructions;

[0018] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the virtualization device configuration method of the first aspect.

[0019] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the virtualization device configuration method of the first aspect.

[0020] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0021] The virtualization device configuration method, apparatus, device and medium of the disclosed embodiments can obtain the configuration information of the virtualization device through the DPU management device, and provide the configuration information to the UEFI interface through the configuration space, and then parse the configuration information through the UEFI interface, and visually display the configuration information in the UEFI interface, and then respond to the user's configuration change operation on the UEFI interface, change the configuration information, save the changed configuration information and perform a restart operation, and finally generate a corresponding device configuration table according to the changed configuration information through the UEFI interface, and send the device configuration table to the operating system, so that the operating system configures the corresponding virtualization device according to the device configuration table, thereby, the corresponding configuration information can be visually displayed in the UEFI interface, so that the user can perform configuration change operations, and obtain the corresponding virtualization device according to the changed configuration information, thereby meeting the user's use requirements for the virtualization device. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0023] Figure 1 A flowchart of a virtualized device configuration method provided by an embodiment of the present disclosure;

[0024] Figure 2 A flowchart of another virtualization device configuration method provided by an embodiment of the present disclosure;

[0025] Figure 3 A flowchart of another virtualization device configuration method provided by an embodiment of the present disclosure;

[0026] Figure 4 A flowchart of another virtualization device configuration method provided by an embodiment of the present disclosure;

[0027] Figure 5 A schematic diagram of the structure of a virtualized device configuration apparatus provided in an embodiment of the present disclosure;

[0028] Figure 6 A schematic diagram of the structure of a virtualized device configuration device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0030] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0031] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0035] With the development of cloud computing, virtualization, cloud native and other technologies, more and more data centers are putting their businesses on the cloud to serve customers. The services users obtain from the cloud are becoming more and more diverse. Data centers need to present a variety of virtualization devices to meet customer business needs. Virtio technology (an I / O semi-virtualization solution) is a general data communication technology specification and is becoming more and more widely used.

[0036] Virtualization technology is a technology that simulates and abstracts computer resources, shielding the details of the hardware, facilitating the redivision and sharing of hardware resources, and also improving resource utilization. As a key component for virtualization, the Smart NIC DPU provides virtualization devices for business needs to the business operating system (OS) and acts as a high-speed, low-latency data transmission. It connects all nodes in the entire cloud computing data center. Since user business needs are diverse, the configuration of virtualization devices is particularly important.

[0037] For example, the corresponding physical function PF and virtual function VF can be configured through the smart network card DPU.

[0038] However, when a virtualized device is constructed through the smart network card DPU, the relevant configuration information corresponding to the virtualized device is basically fixed, and the user cannot customize the relevant configuration information according to his own needs, which cannot meet the user's needs well.

[0039] In order to solve the above problems, the embodiments of the present disclosure provide a virtualization device configuration method, apparatus, device and medium. Figures 1 to 4 The virtualization device configuration method provided by the embodiment of the present disclosure is described in detail.

[0040] Figure 1 A flow chart of a virtualized device configuration method provided by an embodiment of the present disclosure is shown.

[0041] In the embodiment of the present disclosure, the virtualized device configuration method may be executed by a server, wherein the server may include but is not limited to a cloud server or a cloud server cluster.

[0042] like Figure 1 As shown, the virtualized device configuration method may include the following steps.

[0043] S110. Obtain configuration information of the virtualized device through the DPU management device, and provide the configuration information to the UEFI interface through the configuration space.

[0044] In the embodiment of the present disclosure, the server may obtain the configuration information of the virtualized device through the DPU management device, and provide the configuration information to the UEFI interface through the configuration space.

[0045] Optionally, the DPU management device may be a device that manages multiple virtualized devices. For example, the management device may be a PCIE (Peripheral Component Interconnect express) device. The DPU management device may also be a virtualized device among multiple virtualized devices, which is not limited here.

[0046] Optionally, the virtualized device may be a logical device virtualized by virtualization technology. The virtualized device may be a PCIE device. For example, the virtualized device may include a virtual optical drive, a virtual graphics card, a virtual memory, a virtual network card, etc., which are not limited here.

[0047] Optionally, the configuration information may be information corresponding to a plurality of virtualized devices, wherein the configuration information may include at least one of the number of virtual devices, the number of queues, and network auxiliary functions.

[0048] For example, the configuration space may include an input / output (I / O) space and a memory (Memcached, Mem) space.

[0049] Optionally, the UEFI interface may be a Unified Extensible Firmware Interface (UEFI).

[0050] Specifically, the server can obtain the configuration information of each virtualized device, such as a virtual optical drive and a virtual graphics card, through the DPU management device, and provide the configuration information to the UEFI interface through PCIE resources, such as input / output (I / O) space and memory (Memcached, Mem) space, such as to the UEFI BIOS setup function (Basicinput Output System Setup).

[0051] S120. Parse the configuration information through the UEFI interface, and visually display the configuration information in the UEFI interface.

[0052] In the disclosed embodiment, the server may parse the configuration information through the UEFI interface and visually display the configuration information in the UEFI interface.

[0053] Optionally, the UEFI interface may be an interface for displaying information corresponding to each virtualized device of the virtual machine. For example, the UEFI interface may be displayed in a BIOS Setup setting function.

[0054] Specifically, the server can parse the configuration information through the UEFI interface and visually display the configuration information in the UEFI interface, such as BIOS Setup.

[0055] For example, after receiving the configuration information, the server can use the HII (Human Interface Infrastructure) framework. The HII database can provide interfaces for installing, uninstalling, and using various resources such as strings, fonts, and images. The server can display the configuration information through a window browser (Forms Browser), that is, visually display the configuration information in the UEFI interface, such as through visual methods such as fonts, strings, images, and forms.

[0056] S130: In response to the user's configuration change operation on the UEFI interface, the configuration information is changed, the changed configuration information is saved, and a restart operation is performed.

[0057] In the disclosed embodiment, the server may change the configuration information in response to the user's configuration change operation on the UEFI interface, save the changed configuration information, and perform a restart operation.

[0058] Optionally, the configuration change operation may be an operation performed by a user to change configuration information. For example, the configuration change operation may be an operation performed by a user to click or long press a control displayed in the UEFI interface, which is not limited here.

[0059] Optionally, the change process may be a process of changing configuration information.

[0060] Specifically, after the server visually displays the configuration information in the UEFI interface, the user can view the configuration information corresponding to each virtualized device through the UEFI interface. The user can then perform configuration change operations on some controls displayed in the UEFI interface. For example, the UEFI interface can display on / off controls, delete controls, add controls, etc. The user can click on these controls to turn off certain configurations, delete certain configurations, etc., that is, perform configuration change operations. The server can receive and respond to the user's configuration change operations through the BIOS Setup interface and change the configuration information. For example, in response to the user's deletion operation on the configuration information corresponding to the virtual memory, the virtual memory is deleted, the changed configuration information is saved, and a restart operation is performed.

[0061] Figure 2 A flow chart of another virtualization device configuration method provided by an embodiment of the present disclosure is shown.

[0062] like Figure 2 As shown in the figure, HII defines a basic framework for managing user input. The HII database can be a central repository. BIOS Setup can visualize the configuration information saved in the HII database in the HII graphical interface (UEFI interface). Then the user can make configuration changes to some controls displayed in the UEFI interface, that is, perform configuration change operations, store the changed configuration information in a non-volatile device, and finally present the corresponding functional device through the PF device.

[0063] S140. Generate a corresponding device configuration table according to the changed configuration information through the UEFI interface, and send the device configuration table to the operating system, so that the operating system configures the corresponding virtualized device according to the device configuration table.

[0064] In the disclosed embodiment, the server may generate a corresponding device configuration table according to the changed configuration information through the UEFI interface, and send the device configuration table to the operating system so that the operating system configures the corresponding virtualized device according to the device configuration table.

[0065] Optionally, the device configuration table may be used to represent the relationship between each virtualized device and the corresponding configuration information. For example, the device configuration table may be an SMBIOS (System Management BIOS) configuration table.

[0066] Specifically, in the disclosed embodiment, after obtaining the changed configuration information, the server may generate a corresponding device configuration table according to the changed configuration information through the UEFI interface. For example, the device configuration table may include the correspondence between each virtualized device and the changed configuration information.

[0067] Furthermore, the server may send the device configuration table to the operating system through the UEFI interface, so that the operating system configures the corresponding virtualized device according to the device configuration table.

[0068] Alternatively, an operating system may be a system of interrelated software programs that manages and controls computer operations, utilizes and runs hardware and software resources, and provides common services to organize user interactions.

[0069] Specifically, the server can parse the device configuration table through the OS operating system to obtain the device configuration table resources, that is, the configuration file corresponding to the virtualized device, and create the corresponding virtualized device according to the configuration file to obtain the required virtual machine.

[0070] Therefore, in the embodiment of the present disclosure, the configuration information of the virtualized device can be obtained through the DPU management device, and the configuration information can be provided to the UEFI interface through the configuration space, and then the configuration information is parsed through the UEFI interface, and the configuration information is visually displayed in the UEFI interface, and then in response to the user's configuration change operation on the UEFI interface, the configuration information is changed, the changed configuration information is saved and a restart operation is performed, and finally, a corresponding device configuration table is generated according to the changed configuration information through the UEFI interface, and the device configuration table is sent to the operating system, so that the operating system configures the corresponding virtualized device according to the device configuration table. Thus, the corresponding configuration information can be visually displayed in the UEFI interface, so that the user can perform configuration change operations and obtain the corresponding virtualized device according to the changed configuration information, thereby meeting the user's requirements for the use of the virtualized device.

[0071] Optionally, S110 may specifically include: determining a corresponding target element according to the configuration information; and visually displaying the target element in the UEFI interface.

[0072] In the embodiment of the present disclosure, after obtaining the configuration information, the server may determine the corresponding target element according to the configuration information.

[0073] Optionally, the target element may be an element that can be visually displayed, for example, a font, a string, an image, a form, etc., which are not limited here.

[0074] Specifically, after obtaining the configuration information, the server may convert the configuration information into corresponding target elements through the HII framework, and save the target elements in the HII database.

[0075] Furthermore, the server may visually display the target element in the window browser.

[0076] Specifically, the server can obtain the target elements saved in the HII data, and then display the target elements, such as fonts, strings, images, and forms, through the Forms Browser window browser, that is, display them in the UEFI interface, so that users can view the visual configuration information, thereby facilitating customized settings and meeting users' needs for the use of virtualized devices.

[0077] Optionally, S120 may specifically include: receiving a configuration change operation from a user on a target element in the window browser; and performing a change process on configuration information corresponding to the target element according to the configuration change operation.

[0078] In an embodiment of the present disclosure, the server may receive a configuration change operation of a user on a target element of a window browser.

[0079] Specifically, after the server visually displays the target element in the window browser, it can receive the user's configuration change operation on the target element in the window browser. For example, the user can view the target elements, such as fonts, strings, images, and forms, through the window browser, and then perform configuration change operations on the target elements, such as modifying or deleting the strings. The server can receive the user's configuration change operations on the target elements and configure the device information and corresponding configuration options presented by the DPU management device in the BIOS Setup interface.

[0080] For example, the Forms Browser uses these target elements to render the user interface on the display device and receive information from the user through the HID device. Afterwards, the changes made by the user in the window browser will be saved to the storage variables provided by the UEFIglobal variable storage (GetVariable() and SetVariable()).

[0081] Furthermore, the server may perform a change process on the configuration information corresponding to the target element according to the configuration change operation to obtain the changed configuration information.

[0082] Specifically, the server can receive and respond to the user's configuration change operation and change the configuration information corresponding to the target element. For example, if the user deletes a string, the string may correspond to the configuration information of the virtual memory. Therefore, the server can delete the configuration information corresponding to the target element to obtain the changed configuration information.

[0083] Therefore, in the embodiments of the present disclosure, the user can directly perform configuration change operations through the UEFI interface so that the corresponding virtualized device can meet the user's usage requirements.

[0084] Optionally, before S130, the virtualization device configuration method may further include: saving the changed configuration information in a non-volatile device, performing a server restart operation, and loading the changed configuration information; and displaying functional devices corresponding to the changed configuration information in the UEFI interface.

[0085] In the disclosed embodiment, after obtaining the changed configuration information, the server can save the changed configuration information in a non-volatile device, execute a server restart operation, load the changed configuration information, and display the functional devices corresponding to the changed configuration information in the UEFI interface.

[0086] Optionally, the server restart operation may be an operation of restarting the server.

[0087] Specifically, after obtaining the changed configuration information, the server can first save the changed configuration information and write it into the non-volatile random access memory NVRAM (Non-Volatile Random Access Memory, NVRAM) of the BIOS, then execute the server restart operation to restart the server, then load the changed configuration information and load the corresponding virtualization device related drivers (including but not limited to Virtio net, Virtio Blk) according to the changed configuration information. Virtio is an I / O semi-virtualization solution, a set of general I / O device virtualization programs, and an abstraction of a group of general I / O devices in a semi-virtualized Hypervisor. Functional devices (such as net devices and blk devices, etc.) are displayed in the Extensible Firmware Interface (UEFI BIOS). Users can enter the pci or map command through the UEFI shell instruction to see the corresponding virtualized device, and then the corresponding function can be executed through the virtualized device.

[0088] Figure 3 A flow chart of another virtualization device configuration method provided by an embodiment of the present disclosure is shown.

[0089] like Figure 3 As shown, the server can scan the PCIE device (virtualized device) through the DPU management device to obtain configuration information, and then provide the configuration information to the UEFI interface through the configuration space. The UEFI interface discovers the management device in the PCIE enumeration stage, uses the PCIE resources (configuration information) provided by it to initialize the configuration, and visualizes the configuration information in the HII interface, as well as buttons to turn on and off corresponding functions. Then, in response to the user's configuration change operation on the UEFI interface, the configuration information is changed, the changed configuration information is saved to a non-volatile device and a restart operation is performed. The corresponding device configuration table is generated according to the changed configuration information through the UEFI interface, and finally the corresponding virtualized device is configured according to the device configuration table through the OS operating system to carry out the corresponding task.

[0090] Optionally, before S140, the virtualized device configuration method may further include: determining an application scenario according to the device configuration table, where the application scenario includes a first application scenario and a second application scenario.

[0091] In the embodiment of the present disclosure, the server may determine the application scenario according to the device configuration table.

[0092] Optionally, the application scenario may be an application scenario in which a virtualized device is running, wherein the application scenario may include a first application scenario and a second application scenario.

[0093] For example, the first application scenario may be a bare metal scenario.

[0094] For example, the second application scenario may be a multi-virtual machine scenario.

[0095] Specifically, the server may parse the device configuration table, and determine a corresponding application scenario according to the device configuration table, such as determining whether it is the first application scenario or the second application scenario.

[0096] Optionally, S140 may specifically include: in a first application scenario, configuring the device configuration table through the operating system to obtain a corresponding virtualized device; in a second application scenario, executing a resource application operation to obtain a corresponding application result; if the application result is a successful application, configuring the device configuration table through the operating system to obtain a corresponding virtualized device.

[0097] In the embodiment of the present disclosure, after determining the application scenario, if in the first application scenario, the server performs device configuration on the device configuration table through the operating system to obtain the corresponding virtualized device.

[0098] Specifically, after the server determines the application scenario, if the application scenario is determined to be the first application scenario, such as the bare metal scenario, the server can parse the device configuration table through the OS operating system, obtain the device configuration table resources, that is, the configuration file corresponding to the virtualized device, and create the corresponding virtualized device according to the configuration file to obtain the required virtual machine.

[0099] Among them, bare metal scenarios can be applied to scenarios with high security requirements and physical isolation of data. For example, in the economic field: business scenarios with high regulatory requirements in finance and securities; financial software with high security requirements; high-performance applications such as big data analysis applications and gene sequencing; and physical isolation of core business databases and networks.

[0100] In the embodiment of the present disclosure, after determining the application scenario, if the server performs a resource application operation in the second application scenario, a corresponding application result is obtained.

[0101] Optionally, the resource application operation may be an operation for applying for virtualized device construction resources.

[0102] Optionally, the application result may be a result obtained after performing a resource application operation.

[0103] Specifically, after the server determines the application scenario, if the application scenario is determined to be the second application scenario, before the server builds the virtual machine, it needs to start the virtual machine command Qemu to add command line parameters for reading and writing configuration information, determine the resources occupied by the existing virtual machine, and the resources required by the current virtual machine, so as to obtain the corresponding application result. For example, the total resources are 10 virtual memories, and the existing virtual machine has occupied 5 virtual memories. When the resources required by the current virtual machine are greater than the remaining 5 virtual memory resources, the application result is determined to be an application failure, and the corresponding information is fed back; when the resources required by the current virtual machine are less than the remaining 5 virtual memory resources, the application result is determined to be an application failure, and the virtual machine is built.

[0104] Furthermore, after determining that the application result is successful, the server performs device configuration on the device configuration table through the operating system to obtain a corresponding virtualized device.

[0105] Specifically, after determining that the application result is successful, the server can parse the device configuration table through the OS operating system to obtain the device configuration table resources, that is, the configuration file corresponding to the virtualized device, and create the corresponding virtualized device according to the configuration file to obtain the required virtual machine.

[0106] Among them, the multi-virtual machine scenario can be applied to businesses that do not require high security and are not subject to supervision, such as websites, enterprise-level application software deployment, mass consumer software deployment, personally developed applications, and promotional websites.

[0107] Therefore, in the embodiments of the present disclosure, different virtual machines can be constructed according to different application scenarios, which can meet the different virtual machine usage requirements of users.

[0108] Figure 4 A flow chart of another virtualization device configuration method provided by an embodiment of the present disclosure is shown.

[0109] like Figure 4 As shown, after the Smbios configuration table (device configuration table) is sent to the OS operating system through the UEFI interface, the OS operating system can parse the Smbios configuration table to form the device configuration table resources, and the command Qemu to start the virtual machine adds command line parameters for reading and writing the device configuration file, reads the resources in the existing device configuration file, and subtracts the number of resources required by itself, and determines whether the remaining resources meet the virtual machine requirements. If not, the startup fails. If it is satisfied, it is written back to the configuration file, and the virtual machine is created to obtain virtual machines Vm1.....Vm n. If the running virtual machine wants to apply for device configuration resources, the configuration file is read and written as a shared file between multiple virtual machines to prevent conflicts.

[0110] like Figure 4 As shown, the user state can see the virtual device configuration table, which is mapped to the kernel state through mmap to obtain the kernel state mapping table, thereby creating the corresponding virtual machines Vm 1.....Vm n.

[0111] Figure 5 A structural schematic diagram of a virtualized device configuration apparatus provided by an embodiment of the present disclosure is shown.

[0112] like Figure 5 As shown, the virtualized device configuration apparatus 500 may include a first processing module 510 , an information display module 520 , a configuration change module 530 and a second processing module 540 .

[0113] The first processing module 510 can be used to obtain configuration information of the virtualized device through the DPU management device, and provide the configuration information to the UEFI interface through the configuration space.

[0114] The information display module 520 can parse the configuration information through the UEFI interface and visually display the configuration information in the UEFI interface.

[0115] The configuration change module 530 can respond to the user's configuration change operation on the UEFI interface, change the configuration information, save the changed configuration information and perform a restart operation.

[0116] The second processing module 540 can be used to generate a corresponding device configuration table according to the changed configuration information through the UEFI interface, and send the device configuration table to the operating system, so that the operating system configures the corresponding virtualized device according to the device configuration table.

[0117] Therefore, in the embodiment of the present disclosure, the configuration information of the virtualized device can be obtained through the DPU management device, and the configuration information can be provided to the UEFI interface through the configuration space, and then the configuration information is parsed through the UEFI interface, and the configuration information is visually displayed in the UEFI interface, and then in response to the user's configuration change operation on the UEFI interface, the configuration information is changed, the changed configuration information is saved and a restart operation is performed, and finally, a corresponding device configuration table is generated according to the changed configuration information through the UEFI interface, and the device configuration table is sent to the operating system, so that the operating system configures the corresponding virtualized device according to the device configuration table. Thus, the corresponding configuration information can be visually displayed in the UEFI interface, so that the user can perform configuration change operations and obtain the corresponding virtualized device according to the changed configuration information, thereby meeting the user's requirements for the use of the virtualized device.

[0118] In some embodiments of the present disclosure, the configuration information may include at least one of the number of virtual devices, the number of queues, and network auxiliary functions.

[0119] In some embodiments of the present disclosure, the first processing module 510 may specifically include an information determination unit and an interface display unit.

[0120] The information determination unit may be configured to determine a corresponding target element according to the configuration information.

[0121] The interface display unit can be used to visually display the target element in the window browser.

[0122] In some embodiments of the present disclosure, the information display module 520 may specifically include an operation receiving unit and a first processing unit.

[0123] The operation receiving unit may be used to receive a configuration change operation from a user on a target element in a UEFI interface.

[0124] The first processing unit may be configured to perform a change process on the configuration information corresponding to the target element according to the configuration change operation.

[0125] In some embodiments of the present disclosure, the virtualization device configuration apparatus 500 may further include an information loading module.

[0126] The information loading module can be used to save the changed configuration information in a non-volatile device before generating the corresponding device configuration table based on the changed configuration information, execute a server restart operation, and load the changed configuration information; and display the functional devices corresponding to the changed configuration information in the UEFI interface.

[0127] In some embodiments of the present disclosure, the virtualized device configuration apparatus 500 may further include a scenario determination module.

[0128] The scenario determination module can be used to determine the application scenario according to the device configuration table before performing device configuration on the device configuration table through the operating system to obtain the corresponding virtualized device, and the application scenario includes a first application scenario and a second application scenario.

[0129] In some embodiments of the present disclosure, the second processing module 540 may specifically include a second processing unit, a third processing unit, and a fourth processing unit.

[0130] The second processing unit can be used in the first application scenario to perform device configuration on the device configuration table through the operating system to obtain a corresponding virtualized device.

[0131] The third processing unit can be used to execute a resource application operation in the second application scenario to obtain a corresponding application result.

[0132] The fourth processing unit can be used to configure the device configuration table through the operating system to obtain the corresponding virtualized device if the application result is successful.

[0133] It should be noted that Figure 5 The virtualized device configuration apparatus 500 shown can execute Figures 1 to 4 The various steps in the method embodiment shown in the figure are implemented Figures 1 to 4 The various processes and effects in the method embodiment shown are not described in detail here.

[0134] Figure 6 A schematic diagram of the structure of a virtualized device configuration device provided by an embodiment of the present disclosure is shown.

[0135] In some embodiments of the present disclosure, Figure 6 The virtualized device configuration device shown may be a server on which a user wants to perform a virtualized device configuration operation, wherein the server may include but is not limited to a cloud server or a cloud server cluster.

[0136] like Figure 6As shown, the virtualized device configuration device may include a processor 601 and a memory 602 storing computer program instructions.

[0137] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0138] The memory 602 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 602 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 602 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 602 is a non-volatile solid-state memory. In a particular embodiment, the memory 602 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.

[0139] The processor 601 reads and executes the computer program instructions stored in the memory 602 to perform the steps of the virtualization device configuration method provided in the embodiment of the present disclosure.

[0140] In one example, the virtualized device configuration device may further include a transceiver 603 and a bus 604. Figure 6 As shown, the processor 601, the memory 602 and the transceiver 603 are connected via a bus 604 and communicate with each other.

[0141] The bus 604 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 604 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0142] The embodiments of the present disclosure also provide a non-volatile computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the virtualization device configuration method provided by the embodiments of the present disclosure.

[0143] The above-mentioned storage medium may, for example, include a memory 602 of computer program instructions, and the above-mentioned instructions may be executed by a processor 601 of a virtualization device configuration device to complete the virtualization device configuration method provided by an embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (CompactDisc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0144] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0145] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A virtualized device configuration method, characterized in that: include: Acquire configuration information of the virtualized device through the DPU management device, and provide the configuration information to the UEFI interface through the configuration space; Parsing the configuration information through the UEFI interface and visually displaying the configuration information in the UEFI interface; In response to a configuration change operation of the user on the UEFI interface, the configuration information is changed, the changed configuration information is saved, and a restart operation is performed; Generate a corresponding device configuration table according to the changed configuration information through the UEFI interface, and send the device configuration table to the operating system, so that the operating system configures the corresponding virtualized device according to the device configuration table, wherein the configuration information includes at least one of the number of virtual devices, the number of queues, and network auxiliary functions; Wherein, enabling the operating system to configure the corresponding virtualized device according to the device configuration table includes: In the first application scenario, the device configuration table is configured through the operating system to obtain a corresponding virtualized device; in the second application scenario, a resource application operation is performed according to existing configuration file resources through a virtual machine command to obtain a corresponding application result; if the application result is a successful application, the device configuration table is configured through the operating system to obtain a corresponding virtualized device.

2. The method according to claim 1, characterized in that: The visually displaying the configuration information in the UEFI interface includes: Determine the corresponding target element according to the configuration information; The target element is visually displayed in a window browser.

3. The method according to claim 2, characterized in that In response to a configuration change operation of the user on the UEFI interface, the configuration information is changed, including: Receiving a configuration change operation from a user on the target element displayed in the window browser; The configuration information corresponding to the target element is changed according to the configuration change operation.

4. The method according to claim 1, characterized in that: The step of saving the changed configuration information and restarting the system includes: The changed configuration information is saved in a non-volatile device, a server restart operation is performed, and the changed configuration information is loaded; The functional device corresponding to the changed configuration information is displayed in the UEFI interface.

5. The method according to claim 1, characterized in that After sending the device configuration table to the operating system, the method further includes: An application scenario is determined according to the device configuration table, where the application scenario includes a first application scenario and a second application scenario.

6. A virtualized device configuration device, characterized in that: include: A first processing module, configured to obtain configuration information of a virtualized device through a DPU management device, and provide the configuration information to a UEFI interface through a configuration space; An information display module, used to parse the configuration information through the UEFI interface and visually display the configuration information in the UEFI interface; A configuration change module, configured to respond to a configuration change operation of the user on the UEFI interface, change the configuration information, save the changed configuration information and perform a restart operation; A second processing module is used to generate a corresponding device configuration table according to the changed configuration information through a UEFI interface, and send the device configuration table to an operating system, so that the operating system configures the corresponding virtualized device according to the device configuration table, wherein the configuration information includes at least one of the number of virtual devices, the number of queues, and a network auxiliary function; Wherein, the second processing module includes: A second processing unit is used to perform device configuration on the device configuration table through the operating system in the first application scenario to obtain a corresponding virtualized device; The third processing unit is used to execute a resource application operation according to the existing configuration file resources through a virtual machine command in the second application scenario to obtain a corresponding application result; The fourth processing unit is used to, if the application result is successful, perform device configuration on the device configuration table through the operating system to obtain a corresponding virtualized device.

7. A virtualized device configuration device, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the virtualization device configuration method described in any one of claims 1 to 5.

8. A non-volatile computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the virtualization device configuration method according to any one of claims 1 to 5.