CN117009032A - Virtualized device configuration method, device, equipment and medium - Google Patents
Virtualized device configuration method, device, equipment and medium Download PDFInfo
- Publication number
- CN117009032A CN117009032A CN202310815635.6A CN202310815635A CN117009032A CN 117009032 A CN117009032 A CN 117009032A CN 202310815635 A CN202310815635 A CN 202310815635A CN 117009032 A CN117009032 A CN 117009032A
- Authority
- CN
- China
- Prior art keywords
- configuration
- configuration information
- uefi
- interface
- virtualized
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45579—I/O management, e.g. providing access to device drivers or storage
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical field
本公开涉及虚拟机技术领域,尤其涉及一种虚拟化设备配置方法、装置、设备及介质。The present disclosure relates to the field of virtual machine technology, and in particular, to a virtualization device configuration method, device, device and medium.
背景技术Background technique
随着云计算、虚拟化、云原生等技术的发展,用户对于从云端获取的服务也变得越来越多种多样,数据中心需要呈现多种多样的虚拟化设备来满足客户业务的需要。例如,可以通过智能网卡(Data Processing Unit,DPU)配置对应的物理功能(Physical Function,PF)和虚拟功能(Virtual Function,VF)。With the development of cloud computing, virtualization, cloud native and other technologies, the services users obtain from the cloud are becoming more and more diverse, and data centers need to present a variety of virtualization devices to meet customer business needs. For example, the corresponding physical function (Physical Function, PF) and virtual function (Virtual Function, VF) can be configured through the intelligent network card (Data Processing Unit, DPU).
但是,通过智能网卡DPU进行虚拟化设备构建时,虚拟化设备对应的相关配置信息基本上都是固定的,用户并不能根据自身需求对相关配置信息进行自定义设置,无法很好满足用户需求。However, when building virtualized devices through smart network card DPU, the relevant configuration information corresponding to the virtualized device is basically fixed. Users cannot customize the relevant configuration information according to their own needs, which cannot well meet user needs.
发明内容Contents of the invention
为了解决上述技术问题,本公开提供了一种虚拟化设备配置方法、装置、设备及介质。In order to solve the above technical problems, the present disclosure provides a virtualization device configuration method, device, device and medium.
第一方面,本公开提供了一种虚拟化设备配置方法,包括:In a first aspect, the present disclosure provides a virtualization device configuration method, including:
通过DPU管理设备获取虚拟化设备的配置信息,并将配置信息通过配置空间提供给UEFI接口;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;
通过UEFI接口对配置信息进行解析,并在UEFI界面内可视化显示配置信息;Parse the configuration information through the UEFI interface and visually display the configuration information in the UEFI interface;
响应于用户针对UEFI界面的配置变更操作,对配置信息进行变更处理,将变更后的配置信息进行保存并进行重启操作;In response 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;
通过UEFI接口根据变更后的配置信息生成对应的设备配置表,并将设备配置表发送至操作系统,以使操作系统根据设备配置表配置对应的虚拟化设备。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.
第二方面,本公开提供了一种虚拟化设备配置装置,包括:In a second aspect, the present disclosure provides a virtualization device configuration device, including:
第一处理模块,用于通过DPU管理设备获取虚拟化设备的配置信息,并将配置信息通过配置空间提供给UEFI接口;The first processing module is used to 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;
信息显示模块,用于通过UEFI接口对配置信息进行解析,并在UEFI界面内可视化显示配置信息;The information display module is used to parse the configuration information through the UEFI interface and visually display the configuration information in the UEFI interface;
配置变更模块,用于响应于用户针对UEFI界面的配置变更操作,对配置信息进行变更处理,将变更后的配置信息进行保存并进行重启操作;The configuration change module is used to 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;
第二处理模块,用于通过UEFI接口根据变更后的配置信息生成对应的设备配置表,并将设备配置表发送至操作系统,以使操作系统根据设备配置表配置对应的虚拟化设备。The second processing module is configured 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.
第三方面,本公开提供了一种虚拟化设备配置设备,包括:In a third aspect, the present disclosure provides a virtualization device configuration device, including:
处理器;processor;
存储器,用于存储可执行指令;Memory, used to store executable instructions;
其中,处理器用于从存储器中读取可执行指令,并执行可执行指令以实现第一方面的虚拟化设备配置方法。Wherein, 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.
第四方面,本公开提供了一种计算机可读存储介质,该存储介质存储有计算机程序,当计算机程序被处理器执行时,使得处理器实现第一方面的虚拟化设备配置方法。In a fourth aspect, the present disclosure provides a computer-readable storage medium that stores a computer program. When the computer program is executed by a processor, the processor implements the virtualization device configuration method of the first aspect.
本公开实施例提供的技术方案与现有技术相比具有如下优点:Compared with the existing technology, the technical solution provided by the embodiments of the present disclosure has the following advantages:
本公开实施例的虚拟化设备配置方法、装置、设备及介质,能够通过DPU管理设备获取虚拟化设备的配置信息,并将配置信息通过配置空间提供给UEFI接口,接着通过UEFI接口对配置信息进行解析,并在UEFI界面内可视化显示配置信息,然后响应于用户针对UEFI界面的配置变更操作,对配置信息进行变更处理,将变更后的配置信息进行保存并进行重启操作,最后通过UEFI接口根据变更后的配置信息生成对应的设备配置表,并将设备配置表发送至操作系统,以使操作系统根据设备配置表配置对应的虚拟化设备,由此,可以在UEFI界面内可视化显示对应的配置信息,使用户可以进行配置变更操作,并根据变更后的配置信息配置得到对应的虚拟化设备,从而可以满足用户对虚拟化设备的使用需求。The virtualization device configuration method, device, equipment and media of the embodiments of the present disclosure can obtain the configuration information of the virtualization device through the DPU management device, provide the configuration information to the UEFI interface through the configuration space, and then perform the configuration information through the UEFI interface. Parse and visually display the configuration information in the UEFI interface, then respond to the user's configuration change operation on the UEFI interface, change the configuration information, save the changed configuration information and restart the operation, and finally use the UEFI interface according to the changes The subsequent configuration information generates a corresponding device configuration table, and sends the device configuration table 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. , allowing users to perform configuration changes and obtain corresponding virtualization devices based on the changed configuration information, thereby meeting users' needs for virtualization devices.
附图说明Description of the drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages, and aspects of various embodiments of the present disclosure will become more apparent with reference to the following detailed description taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It is to be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
图1为本公开实施例提供的一种虚拟化设备配置方法的流程示意图;Figure 1 is a schematic flowchart of a virtualization device configuration method provided by an embodiment of the present disclosure;
图2为本公开实施例提供的另一种虚拟化设备配置方法的流程示意图;Figure 2 is a schematic flow chart of another virtualization device configuration method provided by an embodiment of the present disclosure;
图3为本公开实施例提供的又一种虚拟化设备配置方法的流程示意图;Figure 3 is a schematic flowchart of yet another virtualization device configuration method provided by an embodiment of the present disclosure;
图4为本公开实施例提供的再一种虚拟化设备配置方法的流程示意图;Figure 4 is a schematic flowchart of yet another virtualization device configuration method provided by an embodiment of the present disclosure;
图5为本公开实施例提供的一种虚拟化设备配置装置的结构示意图;Figure 5 is a schematic structural diagram of a virtualization device configuration device provided by an embodiment of the present disclosure;
图6为本公开实施例提供的一种虚拟化设备配置设备的结构示意图。Figure 6 is a schematic structural diagram of a virtualization device configuration device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, which rather are provided for A more thorough and complete understanding of this disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that various steps described in the method implementations of the present disclosure may be executed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performance of illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "include" and its variations are open-ended, ie, "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"; and the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as “first” and “second” mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units. Or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in this disclosure are illustrative and not restrictive. Those skilled in the art will understand that unless the context clearly indicates otherwise, it should be understood as "one or Multiple”.
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.
随着云计算、虚拟化、云原生等技术的发展,越来越多的数据中心把业务放到云上来服务客户,用户对于从云端获取的服务也变得越来越多种多样,数据中心需要呈现多种多样的虚拟化设备来满足客户业务的需要,Virtio技术(一种I/O半虚拟化解决方案)作为通用的数据通信技术规范,应用越来越广泛。With the development of cloud computing, virtualization, cloud native and other technologies, more and more data centers are putting their business on the cloud to serve customers, and users are becoming more and more diverse in the services they obtain from the cloud. Data centers A variety of virtualization devices need to be presented to meet customer business needs. Virtio technology (an I/O paravirtualization solution), as a general data communication technology specification, is increasingly used.
虚拟化技术是一种对计算机资源进行模拟和抽象的技术,屏蔽了硬件的细节,便于硬件资源的重新划分和共享,同时也提高了资源的利用率。智能网卡DPU作为实现虚拟化的关键性部件,向上为业务操作系统(Operating System,OS)提供业务需求的虚拟化设备,向下作为高速低时延数据传输。联通了整个云计算数据中心的各个节点。由于用户业务的需求是多样化的,对于虚拟化设备相关配置显得尤为重要。Virtualization technology is a technology that simulates and abstracts computer resources. It shields the details of the hardware, facilitates the re-division and sharing of hardware resources, and also improves resource utilization. As a key component to realize virtualization, the intelligent network card DPU provides the virtualization device required by the business operating system (Operating System, OS) upwards and serves as high-speed and low-latency data transmission downwards. 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.
例如,可以通过智能网卡DPU配置对应的物理功能PF和虚拟功能VF。For example, the corresponding physical function PF and virtual function VF can be configured through the intelligent network card DPU.
但是,通过智能网卡DPU进行虚拟化设备构建时,虚拟化设备对应的相关配置信息基本上都是固定的,用户并不能根据自身需求对相关配置信息进行自定义设置,无法很好满足用户需求。However, when building virtualized devices through smart network card DPU, the relevant configuration information corresponding to the virtualized device is basically fixed. Users cannot customize the relevant configuration information according to their own needs, which cannot well meet user needs.
为了解决上述问题,本公开实施例提供了一种虚拟化设备配置方法、装置、设备及介质。下面结合图1至图4对本公开实施例提供的虚拟化设备配置方法进行详细说明。In order to solve the above problems, embodiments of the present disclosure provide a virtualization device configuration method, device, device and medium. The virtualization device configuration method provided by the embodiment of the present disclosure will be described in detail below with reference to FIGS. 1 to 4 .
图1示出了本公开实施例提供的一种虚拟化设备配置方法的流程示意图。Figure 1 shows a schematic flowchart of a virtualization device configuration method provided by an embodiment of the present disclosure.
在本公开实施例中,该虚拟化设备配置方法可以由服务器执行。其中,服务器可以包括但不限于诸如云服务器或者云服务器集群等。In this embodiment of the present disclosure, the virtualization device configuration method may be executed by a server. The server may include, but is not limited to, a cloud server or a cloud server cluster.
如图1所示,该虚拟化设备配置方法可以包括如下步骤。As shown in Figure 1, the virtualization device configuration method may include the following steps.
S110、通过DPU管理设备获取虚拟化设备的配置信息,并将配置信息通过配置空间提供给UEFI接口。S110. 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.
在本公开实施例中,服务器可以通过DPU管理设备获取虚拟化设备的配置信息,并将配置信息通过配置空间提供给UEFI接口。In this embodiment of the present disclosure, the server can 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.
可选地,DPU管理设备可以为管理多个虚拟化设备的设备。例如,管理设备可以为一个PCIE(Peripheral Component Interconnect express)设备。DPU管理设备也可以为多个虚拟化设备中的一个虚拟化设备,此处不做限定。Optionally, the DPU management device may be a device that manages multiple virtualization devices. For example, the management device may be a PCIE (Peripheral Component Interconnect express) device. The DPU management device can also be one virtualization device among multiple virtualization devices, which is not limited here.
可选地,虚拟化设备可以为通过虚拟化技术虚拟出的逻辑设备。虚拟化设备可以为PCIE设备。例如,虚拟化设备可以包括虚拟光驱、虚拟显卡、虚拟内存、虚拟网卡等等,此处不做限定。Optionally, the virtualized device may be a logical device virtualized through virtualization technology. The virtualized device can be a PCIE device. For example, virtualization devices may include virtual optical drives, virtual graphics cards, virtual memory, virtual network cards, etc., which are not limited here.
可选地,配置信息可以为多个虚拟化设备对应的信息。其中,配置信息可以包括虚拟设备数量、队列数量、网络辅助功能中的至少一种。Optionally, the configuration information may be information corresponding to multiple virtualization devices. The configuration information may include at least one of the number of virtual devices, the number of queues, and network auxiliary functions.
例如,配置空间可以包括输入/输出(Input/Output,I/O)空间和内存(Memcached,Mem)空间。For example, the configuration space may include input/output (Input/Output, I/O) space and memory (Memcached, Mem) space.
可选地,UEFI接口可以为统一可扩展固件接口(Unified Extensible FirmwareInterface,UEFI)。Optionally, the UEFI interface may be Unified Extensible Firmware Interface (UEFI).
具体地,服务器可以通过DPU管理设备获取各个虚拟化设备,如虚拟光驱、虚拟显卡各自的配置信息,并通过PCIE资源,如输入/输出(Input/Output,I/O)空间和内存(Memcached,Mem)空间将配置信息提供给UEFI接口,如提供给UEFI BIOS设置功能(Basicinput Output System Setup)。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 through PCIE resources, such as input/output (I/O) space and memory (Memcached, Mem) space provides configuration information to the UEFI interface, such as to the UEFI BIOS setup function (Basicinput Output System Setup).
S120、通过UEFI接口对配置信息进行解析,并在UEFI界面内可视化显示配置信息。S120: Parse the configuration information through the UEFI interface, and visually display the configuration information in the UEFI interface.
在本公开实施例中,服务器可以通过UEFI接口对配置信息进行解析,并在UEFI界面内可视化显示配置信息。In the embodiment of the present disclosure, the server can parse the configuration information through the UEFI interface, and visually display the configuration information in the UEFI interface.
可选地,UEFI界面可以为用于显示虚拟机各个虚拟化设备对应信息的界面。例如,UEFI界面可以在BIOS Setup设置功能中进行显示。Optionally, the UEFI interface may be an interface used to display information corresponding to each virtualization device of the virtual machine. For example, the UEFI interface can be displayed in the BIOS Setup function.
具体地,服务器可以通过UEFI接口对配置信息进行解析,并在UEFI界面内,如BIOSSetup中可视化显示配置信息。Specifically, the server can parse the configuration information through the UEFI interface, and visually display the configuration information in the UEFI interface, such as BIOSSetup.
例如,在接收到配置信息之后,服务器可以通过HII(Human InterfaceInfrastructure)框架,HII数据库中可以提供安装、卸载以及使用各种字符串、字体和图片等资源的接口,服务器可以通过窗口浏览器(Forms Browser)显示配置信息,即在UEFI界面内可视化显示配置信息,如通过字体、字符串、图像和表单等可视化方法进行显示。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 strings, fonts, pictures and other resources. The server can use the window browser (Forms Browser) displays configuration information, that is, visually displays configuration information in the UEFI interface, such as through visual methods such as fonts, strings, images, and forms.
S130、响应于用户针对UEFI界面的配置变更操作,对配置信息进行变更处理,将变更后的配置信息进行保存并进行重启操作。S130. In response 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.
在本公开实施例中,服务器可以响应于用户针对UEFI界面的配置变更操作,对配置信息进行变更处理,将变更后的配置信息进行保存并进行重启操作。In this embodiment of the present disclosure, 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.
可选地,配置变更操作可以为用户对配置信息进行变更的操作。例如,配置变更操作可以为用户针对UEFI界面内显示的控件进行点击、长按等操作,此处不做限定。Optionally, the configuration change operation may be an operation for the user to change the configuration information. For example, the configuration change operation can be performed by the user by clicking, long-pressing and other operations on the controls displayed in the UEFI interface, which are not limited here.
可选地,变更处理可以为变更配置信息的处理。Optionally, the change processing may be the processing of changing configuration information.
具体地,服务器在UEFI界面内可视化显示配置信息之后,用户可以通过UEFI界面查看各个虚拟化设备对应的配置信息,接着用户可以对UEFI界面内显示的一些控件进行配置变更操作,例如,UEFI界面内可以显示开启/关闭控件、删除控件、添加控件等等,用户可以对这些控件进行点击操作,关闭某些配置、删除某些配置等,即进行配置变更操作,服务器可以通过BIOS Setup界面接收并响应于用户的配置变更操作,对配置信息进行变更处理,如响应于用户对虚拟内存对应的配置信息进行删除操作,对虚拟内存进行删除,将变更后的配置信息进行保存并进行重启操作。Specifically, after the server visually displays the configuration information in the UEFI interface, the user can view the configuration information corresponding to each virtualization device through the UEFI interface, and then the user can perform configuration changes on some controls displayed in the UEFI interface, for example, in the UEFI interface It can display on/off controls, delete controls, add controls, etc. Users can click on these controls, close certain configurations, delete certain configurations, etc., that is, perform configuration change operations. The server can receive and respond through the BIOS Setup interface. In response to the user's configuration change operation, the configuration information is changed. For example, in response to the user deleting 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.
图2示出了本公开实施例提供的另一种虚拟化设备配置方法的流程示意图。FIG. 2 shows a schematic flowchart of another virtualization device configuration method provided by an embodiment of the present disclosure.
如图2所示,HII定义了一套管理用户输入的基础框架。HII database数据库中可以为中央存储库,BIOS Setup可以通过HII database保存的配置信息,在HII图形界面(UEFI界面)中进行可视化显示,接着用户可以对UEFI界面内显示的一些控件进行配置更改,即进行配置变更操作,将变更后的配置信息存储在非易失设备中,最后通过PF设备呈现相应的功能设备。As shown in Figure 2, HII defines a basic framework for managing user input. The HII database can be a central repository. BIOS Setup can display the configuration information saved in the HII database visually 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 the configuration change operation, store the changed configuration information in the non-volatile device, and finally present the corresponding functional device through the PF device.
S140、通过UEFI接口根据变更后的配置信息生成对应的设备配置表,并将设备配置表发送至操作系统,以使操作系统根据设备配置表配置对应的虚拟化设备。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.
在本公开实施例中,服务器可以通过UEFI接口根据变更后的配置信息生成对应的设备配置表,并将设备配置表发送至操作系统,以使操作系统根据设备配置表配置对应的虚拟化设备。In this embodiment of the present disclosure, the server can generate a corresponding device configuration table based on 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.
可选地,设备配置表可以为用于表示各个虚拟化设备与对应的配置信息之间关系。例如,设备配置表可以为SMBIOS(System Management BIOS)配置表。Optionally, the device configuration table may be used to represent the relationship between each virtualized device and corresponding configuration information. For example, the device configuration table may be an SMBIOS (System Management BIOS) configuration table.
具体地,在本公开实施例中,服务器在得到变更后的配置信息之后,可以UEFI接口根据该变更后的配置信息,生成对应的设备配置表,如,设备配置表中可以包括各个虚拟化设备与变更后的配置信息的对应关系。Specifically, in this embodiment of the present disclosure, after the server obtains the changed configuration information, the server can use the UEFI interface to generate a corresponding device configuration table based on the changed configuration information. For example, the device configuration table can include various virtualized devices. Correspondence with the changed configuration information.
进一步地,服务器可以通过UEFI接口将设备配置表发送至操作系统,以使操作系统根据设备配置表配置对应的虚拟化设备。Further, the server can 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.
可选地,操作系统可以为主管并控制计算机操作、运用和运行硬件、软件资源和提供公共服务来组织用户交互的相互关联的系统软件程序。Alternatively, an operating system may be an interrelated system software program that manages and controls computer operations, utilizes and runs hardware and software resources, and provides common services to organize user interaction.
具体地,服务器可以通过OS操作系统对设备配置表进行解析,得到设备配置表资源,即虚拟化设备对应的配置文件,并根据该配置文件创建对应的虚拟化设备,得到需要的虚拟机。Specifically, the server can parse the device configuration table through the OS operating system to obtain the device configuration table resource, that is, the configuration file corresponding to the virtualization device, and create the corresponding virtualization device based on the configuration file to obtain the required virtual machine.
由此,在本公开实施例中,能够通过DPU管理设备获取虚拟化设备的配置信息,并将配置信息通过配置空间提供给UEFI接口,接着通过UEFI接口对配置信息进行解析,并在UEFI界面内可视化显示配置信息,然后响应于用户针对UEFI界面的配置变更操作,对配置信息进行变更处理,将变更后的配置信息进行保存并进行重启操作,最后通过UEFI接口根据变更后的配置信息生成对应的设备配置表,并将设备配置表发送至操作系统,以使操作系统根据设备配置表配置对应的虚拟化设备,由此,可以在UEFI界面内可视化显示对应的配置信息,使用户可以进行配置变更操作,并根据变更后的配置信息配置得到对应的虚拟化设备,从而可以满足用户对虚拟化设备的使用需求。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 is provided to the UEFI interface through the configuration space, and then the configuration information is parsed through the UEFI interface, and displayed in the UEFI interface. Visually display the configuration information, then respond to the user's configuration change operation on the UEFI interface, change the configuration information, save the changed configuration information and restart it, and finally generate the corresponding configuration information based on the changed configuration information through the UEFI interface 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, allowing users to make configuration changes. Operation, and configure the corresponding virtualization device according to the changed configuration information, so as to meet the user's use needs of the virtualization device.
可选地,S110可以具体包括:根据配置信息确定对应的目标元素;在UEFI界面内可视化显示目标元素。Optionally, S110 may specifically include: determining the corresponding target element according to the configuration information; and visually displaying the target element in the UEFI interface.
在本公开实施例中,服务器在得到配置信息之后,可以根据配置信息确定对应的目标元素。In this embodiment of the present disclosure, after obtaining the configuration information, the server can determine the corresponding target element based on the configuration information.
可选地,目标元素可以为可以可视化显示的元素。例如,目标元素可以为字体、字符串、图像和表单等,此处不做限定。Optionally, the target element can be an element that can be visually displayed. For example, the target elements can be fonts, strings, images, forms, etc., and are not limited here.
具体地,服务器在得到配置信息之后,服务器可以通过HII框架将配置信息转化为对应的目标元素,并将目标元素保存在HII数据库中。Specifically, after the server obtains the configuration information, the server can convert the configuration information into the corresponding target element through the HII framework, and save the target element in the HII database.
进一步地,服务器可以在窗口浏览器内可视化显示目标元素。Further, the server can visually display the target element within the window browser.
具体地,服务器可以获取HII数据保存的目标元素,接着通过Forms Browser窗口浏览器将目标元素,如字体、字符串、图像和表单等显示出来,即显示在UEFI界面内,以使用户可以查看到可视化的配置信息,从而便于进行自定义设置,满足用户对虚拟化设备的使用需求。Specifically, the server can obtain the target element saved by the HII data, and then display the target element, such as fonts, strings, images, forms, etc., through the Forms Browser window browser, that is, displayed in the UEFI interface so that the user can view it. Visualized configuration information facilitates customized settings to meet user needs for virtualized devices.
可选地,S120可以具体包括:接收用户针对窗口浏览器内的目标元素的配置变更操作;根据配置变更操作对目标元素对应的配置信息进行变更处理。Optionally, S120 may specifically include: receiving the user's configuration change operation for the target element in the window browser; and performing change processing on the configuration information corresponding to the target element according to the configuration change operation.
在本公开实施例中,服务器可以接收用户针对窗口浏览器的目标元素的配置变更操作。In an embodiment of the present disclosure, the server may receive a user's configuration change operation for a target element of the window browser.
具体地,服务器在窗口浏览器内可视化显示目标元素之后,可以接收用户针对窗口浏览器内的目标元素的配置变更操作,例如,用户可以通过窗口浏览器查看目标元素,如字体、字符串、图像和表单等,接着可以对目标元素进行配置变更操作,如对字符串的修改、删除等操作,服务器可以接收用户针对目标元素的配置变更操作,在BIOS Setup界面下配置好DPU管理设备呈现的设备信息和相应的配置选项。Specifically, after the server visually displays the target element in the window browser, it can receive the user's configuration change operation for the target element in the window browser. For example, the user can view the target element, such as fonts, strings, and images, through the window browser. and forms, etc. Then you can perform configuration change operations on the target element, such as modifying and deleting strings. The server can receive the user's configuration change operation on the target element, and configure the device presented by the DPU management device in the BIOS Setup interface. information and corresponding configuration options.
例如,Forms Browser(窗口浏览器)使用这些目标元素在显示设备上呈现用户界面,并通过HID设备从用户接收信息。之后,用户在窗口浏览器所做的更改将保存到UEFIglobal variable storage(使用GetVariable()和SetVariable()获取和设置)提供的存储变量中。For example, Forms Browser uses these target elements to render the user interface on the display device and receive information from the user through HID devices. Afterwards, the changes made by the user in the window browser will be saved to the storage variable provided by UEFIglobal variable storage (obtained and set using GetVariable() and SetVariable()).
进一步地,服务器可以根据配置变更操作对目标元素对应的配置信息进行变更处理,得到变更后的配置信息。Further, the server can change the configuration information corresponding to the target element according to the configuration change operation to obtain the changed configuration information.
具体地,服务器可以接收并响应于用户的配置变更操作,对目标元素对应的配置信息进行变更处理,如用户对某个字符串进行删除,该字符串可以对应虚拟内存的配置信息,因此服务器可以对该目标元素对应的配置信息进行删除处理,从而得到变更后的配置信息。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 certain string, the string can correspond to the configuration information of the virtual memory, so the server can The configuration information corresponding to the target element is deleted to obtain the changed configuration information.
由此,在本公开实施例中,用户可以通过UEFI界面直接进行配置变更操作,使得对应的虚拟化设备能够满足用户的使用需求。Therefore, in the embodiment of the present disclosure, the user can directly perform configuration change operations through the UEFI interface, so that the corresponding virtualization device can meet the user's usage needs.
可选地,在S130之前,该虚拟化设备配置方法还可以包括:将变更后的配置信息进行保存在非易失设备中,执行服务器重启操作,并加载变更后的配置信息;在UEFI界面内显示变更后的配置信息对应的功能设备。Optionally, before S130, the virtualization device configuration method may also include: saving the changed configuration information in a non-volatile device, performing a server restart operation, and loading the changed configuration information; in the UEFI interface Displays the functional devices corresponding to the changed configuration information.
在本公开实施例中,服务器在得到变更后的配置信息之后,可以将变更后的配置信息进行保存在非易失设备中,执行服务器重启操作,并加载变更后的配置信息,在UEFI界面内显示变更后的配置信息对应的功能设备。In this embodiment of the present disclosure, after the server obtains the changed configuration information, it can save the changed configuration information in a non-volatile device, perform a server restart operation, and load the changed configuration information in the UEFI interface. Displays the functional devices corresponding to the changed configuration information.
可选地,服务器重启操作可以为使服务器进行重新启动的操作。Optionally, the server restart operation may be an operation to restart the server.
具体地,服务器在得到变更后的配置信息之后,可以先将变更后的配置信息进行保存并写入BIOS的非易失性随机访问存储器NVRAM(Non-Volatile Random AccessMemory,NVRAM)当中,接着执行服务器重启操作,使服务器进行重新启动,接着加载变更后的配置信息并根据该变更后的配置信息加载对应的虚拟化设备相关驱动(包括但不限于Virtio net,Virtio Blk),virtio是一种I/O半虚拟化解决方案,是一套通用I/O设备虚拟化的程序,是对半虚拟化Hypervisor中的一组通用I/O设备的抽象,在可扩展固件接口(Extensible Firmware Interface BIOS,UEFI BIOS)中显示功能设备(例如net设备和blk设备等),用户可以通过UEFI的shell指令输入pci或者map命令就会看到相应的虚拟化设备,进而可以通过虚拟化设备执行对应的功能。Specifically, after the server obtains the changed configuration information, it 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, and then execute the server The restart operation causes the server to restart, then loads the changed configuration information and loads the corresponding virtualization device-related drivers (including but not limited to Virtio net, Virtio Blk) based on the changed configuration information. Virtio is an I/O The O paravirtualization solution is a set of general I/O device virtualization programs. It is an abstraction of a set of general I/O devices in the paravirtualized hypervisor. It is implemented in the Extensible Firmware Interface BIOS (UEFI). Functional devices (such as net devices and blk devices, etc.) are displayed in the BIOS. Users can enter the pci or map command through the UEFI shell command to see the corresponding virtualization device, and then the corresponding function can be performed through the virtualization device.
图3示出了本公开实施例提供的又一种虚拟化设备配置方法的流程示意图。Figure 3 shows a schematic flowchart of yet another virtualization device configuration method provided by an embodiment of the present disclosure.
如图3所示,服务器可以通过DPU管理设备扫描PCIE设备(虚拟化设备),获取配置信息,接着将配置信息通过配置空间提供给UEFI接口,UEFI接口在PCIE枚举阶段发现管理设备,利用其提供的PCIE资源(配置信息)进行初始化配置,并在HII界面内可视化显示配置信息,以及打开和关闭相应功能的按钮,接着响应于用户针对UEFI界面的配置变更操作,对配置信息进行变更处理,将变更后的配置信息进行保存到非易失设备并进行重启操作,通过UEFI接口根据变更后的配置信息生成对应的设备配置表,最后通过OS操作系统根据设备配置表配置对应的虚拟化设备,开展相应任务。As shown in Figure 3, the server can scan PCIE devices (virtualization devices) 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 during the PCIE enumeration phase and uses it to The provided PCIE resources (configuration information) are initialized and configured, and the configuration information is visually displayed in the HII interface, as well as buttons to turn on and off the corresponding functions. Then, in response to the user's configuration change operation on the UEFI interface, the configuration information is changed. Save the changed configuration information to the non-volatile device and perform a restart operation, generate the corresponding device configuration table based on the changed configuration information through the UEFI interface, and finally configure the corresponding virtualized device according to the device configuration table through the OS operating system. Carry out corresponding tasks.
可选地,在S140之前,该虚拟化设备配置方法还可以包括:根据设备配置表确定应用场景,应用场景包括第一应用场景和第二应用场景。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.
在本公开实施例中,服务器可以根据设备配置表确定应用场景。In the embodiment of the present disclosure, the server can determine the application scenario according to the device configuration table.
可选地,应用场景可以为虚拟化设备运行的应用场景。其中,应用场景可以包括第一应用场景和第二应用场景。Optionally, the application scenario may be an application scenario run by a virtualized device. The application scenario may include a first application scenario and a second application scenario.
例如,第一应用场景可以为裸金属场景。For example, the first application scenario may be a bare metal scenario.
例如,第二应用场景可以为多虚拟机场景。For example, the second application scenario may be a multi-virtual machine scenario.
具体地,服务器可以对设备配置表进行解析,并根据该设备配置表确定对应的应用场景,如判断是第一应用场景还是第二应用场景。Specifically, the server can parse the device configuration table and determine the corresponding application scenario according to the device configuration table, such as determining whether it is the first application scenario or the second application scenario.
可选地,S140可以具体包括:在第一应用场景下,通过操作系统对设备配置表进行设备配置,得到对应的虚拟化设备;在第二应用场景下,执行资源申请操作,得到对应的申请结果;若申请结果为申请成功,通过操作系统对设备配置表进行设备配置,得到对应的虚拟化设备。Optionally, S140 may specifically include: in the first application scenario, performing device configuration on the device configuration table through the operating system to obtain the corresponding virtualized device; in the second application scenario, performing a resource application operation to obtain the corresponding application Result: If the application result is successful, the device configuration table is configured through the operating system to obtain the corresponding virtualized device.
在本公开实施例中,服务器在确定应用场景之后,如果在第一应用场景下,通过操作系统对设备配置表进行设备配置,得到对应的虚拟化设备。In the embodiment of the present disclosure, after determining the application scenario, if the server performs device configuration on the device configuration table through the operating system in the first application scenario, the corresponding virtualized device is obtained.
具体地,服务器在确定应用场景之后,如果确定应用场景为第一应用场景,如裸金属场景,服务器可以通过OS操作系统对设备配置表进行解析,得到设备配置表资源,即虚拟化设备对应的配置文件,并根据该配置文件创建对应的虚拟化设备,得到需要的虚拟机。Specifically, after the server determines the application scenario, if it determines that the application scenario is the first application scenario, such as a bare metal scenario, the server can parse the device configuration table through the OS operating system to obtain the device configuration table resources, that is, the resources corresponding to the virtualized device. configuration file, and create the corresponding virtualization device based on the configuration file to obtain the required virtual machine.
其中,裸金属场景可以适用于对安全方面要求较高、数据物理隔离。比如经济领域:金融、证券类对监管要求高的业务场景;安全性要求高的财务类软件;大数据分析应用、基因测序等高性能应用;核心业务数据库以及网络的物理隔离等场景等。Among them, the bare metal scenario can be applied to situations with higher 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; scenarios such as physical isolation of core business databases and networks, etc.
在本公开实施例中,服务器在确定应用场景之后,如果在第二应用场景下,执行资源申请操作,得到对应的申请结果。In this embodiment of the present disclosure, after determining the application scenario, if the server performs a resource application operation in the second application scenario, it will obtain the corresponding application result.
可选地,资源申请操作可以为用于申请虚拟化设备构建资源的操作。Optionally, the resource application operation may be an operation for applying for virtualization device construction resources.
可选地,申请结果可以为进行资源申请操作后得到的结果。Optionally, the application result may be the result obtained after performing the resource application operation.
具体地,服务器在确定应用场景之后,如果确定应用场景为第二应用场景,服务器在进行虚拟机构建之前,需要启动虚拟机的命令Qemu添加读写配置信息的命令行参数,判断已有虚拟机占用的资源,以及本虚拟机所需要的资源,从而得到对应的申请结果。例如,总的资源为10个虚拟内存,已有虚拟机已经占用了5个虚拟内存,当本虚拟机所需要的资源大于剩余的5个虚拟内存的资源时,确定申请结果为申请失败,并反馈对应的信息;当本虚拟机所需要的资源小于剩余的5个虚拟内存的资源时,确定申请结果为申请失成功,进行虚拟机的构建。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, add command line parameters for reading and writing configuration information, and determine that there is an existing virtual machine. The resources occupied and the resources required by this virtual machine are used to obtain the corresponding application results. For example, the total resources are 10 virtual memories, and an existing virtual machine has occupied 5 virtual memories. When the resources required by this virtual machine are greater than the remaining 5 virtual memory resources, the application result is determined to be application failure, and Feed back the corresponding information; when the resources required by this virtual machine are less than the remaining 5 virtual memory resources, it is determined that the application result is successful and the virtual machine is built.
进一步地,服务器在确定申请结果为申请成功,通过操作系统对设备配置表进行设备配置,得到对应的虚拟化设备。Further, after determining that the application result is successful, the server performs device configuration on the device configuration table through the operating system to obtain the corresponding virtualized device.
具体地,服务器在确定申请结果为申请成功之后,可以通过OS操作系统对设备配置表进行解析,得到设备配置表资源,即虚拟化设备对应的配置文件,并根据该配置文件创建对应的虚拟化设备,得到需要的虚拟机。Specifically, after the server determines that the application result is successful, it can parse the device configuration table through the OS operating system to obtain the device configuration table resource, that is, the configuration file corresponding to the virtualization device, and create the corresponding virtualization device based on the configuration file. device to get the required virtual machine.
其中,多虚拟机场景可以适用于对安全性要求不高、不受监管类的业务。比如:网站、企业级应用软件部署、大众消费类软件部署、个人开发的应用以及宣传类的网站等。Among them, the multi-virtual machine scenario can be applied to businesses that have low security requirements and are not regulated. For example: websites, enterprise-level application software deployment, mass consumer software deployment, personally developed applications and promotional websites, etc.
由此,在本公开实施例中,可以根据不同的应用场景来进行不同的虚拟机构建,能够满足用户不同的虚拟机使用需求。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 needs of users.
图4示出了本公开实施例提供的再一种虚拟化设备配置方法的流程示意图。Figure 4 shows a schematic flowchart of yet another virtualization device configuration method provided by an embodiment of the present disclosure.
如图4所示,通过UEFI接口将Smbios配置表(设备配置表)发送给OS操作系统后,OS操作系统后可以解析Smbios配置表,形成设备配置表资源,启动虚拟机的命令Qemu添加读写设备配置文件的命令行参数,读取已有的设备配置文件中的资源,并减去自身所需的资源数量,判断剩余的资源是否满足虚拟机需求,如果不满足,启动失败,如果满足,回写到配置文件中,进行虚拟机创建,得到虚拟机Vm1.....Vm n。运行中的虚拟机如果想要申请设备配置资源,那么配置文件作为共享文件在多个虚拟机之间进行读写防止发生冲突。As shown in Figure 4, 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 a device configuration table resource. The command Qemu to start the virtual machine adds read and write The command line parameters of the device configuration file read the resources in the existing device configuration file and subtract the number of resources required to determine whether the remaining resources meet the requirements of the virtual machine. If not, the startup fails. If they do, Write it back to the configuration file, create a virtual machine, and get the virtual machine Vm1....Vm n. If a running virtual machine wants to apply for device configuration resources, the configuration file can be read and written as a shared file between multiple virtual machines to prevent conflicts.
如图4所示,用户态可以看到虚拟设备配置表,通过mmap映射到内核态,得到内核态映射表,从而创建对应的虚拟机Vm 1.....Vm n。As shown in Figure 4, 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 machine Vm 1...Vm n.
图5示出了本公开实施例提供的一种虚拟化设备配置装置的结构示意图。FIG. 5 shows a schematic structural diagram of a virtualization device configuration apparatus provided by an embodiment of the present disclosure.
如图5所示,该虚拟化设备配置装置500可以包括第一处理模块510、信息显示模块520、配置变更模块530和第二处理模块540。As shown in FIG. 5 , the virtualization device configuration device 500 may include a first processing module 510 , an information display module 520 , a configuration change module 530 and a second processing module 540 .
该第一处理模块510可以用于通过DPU管理设备获取虚拟化设备的配置信息,并将配置信息通过配置空间提供给UEFI接口。The first processing module 510 may be used to 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.
该信息显示模块520可以通过UEFI接口对配置信息进行解析,并在UEFI界面内可视化显示配置信息。The information display module 520 can parse the configuration information through the UEFI interface, and visually display the configuration information in the UEFI interface.
该配置变更模块530可以响应于用户针对UEFI界面的配置变更操作,对配置信息进行变更处理,将变更后的配置信息进行保存并进行重启操作。The configuration change module 530 can 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.
该第二处理模块540可以用于通过UEFI接口根据变更后的配置信息生成对应的设备配置表,并将设备配置表发送至操作系统,以使操作系统根据设备配置表配置对应的虚拟化设备。The second processing module 540 may be configured 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.
由此,在本公开实施例中,能够通过DPU管理设备获取虚拟化设备的配置信息,并将配置信息通过配置空间提供给UEFI接口,接着通过UEFI接口对配置信息进行解析,并在UEFI界面内可视化显示配置信息,然后响应于用户针对UEFI界面的配置变更操作,对配置信息进行变更处理,将变更后的配置信息进行保存并进行重启操作,最后通过UEFI接口根据变更后的配置信息生成对应的设备配置表,并将设备配置表发送至操作系统,以使操作系统根据设备配置表配置对应的虚拟化设备,由此,可以在UEFI界面内可视化显示对应的配置信息,使用户可以进行配置变更操作,并根据变更后的配置信息配置得到对应的虚拟化设备,从而可以满足用户对虚拟化设备的使用需求。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 is provided to the UEFI interface through the configuration space, and then the configuration information is parsed through the UEFI interface, and displayed in the UEFI interface Visually display the configuration information, then respond to the user's configuration change operation on the UEFI interface, change the configuration information, save the changed configuration information and restart it, and finally generate the corresponding configuration information based on the changed configuration information through the UEFI interface. 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, allowing users to make configuration changes. Operation, and configure the corresponding virtualization device according to the changed configuration information, so as to meet the user's use needs of the virtualization device.
在本公开一些实施例中,配置信息可以包括虚拟设备数量、队列数量、网络辅助功能中的至少一种。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.
在本公开一些实施例中,该第一处理模块510可以具体包括信息确定单元和界面显示单元。In some embodiments of the present disclosure, the first processing module 510 may specifically include an information determination unit and an interface display unit.
该信息确定单元可以用于根据配置信息确定对应的目标元素。The information determining unit may be used to determine the corresponding target element according to the configuration information.
该界面显示单元可以用于在窗口浏览器内可视化显示目标元素。The interface display unit can be used to visually display the target element in the window browser.
在本公开一些实施例中,该信息显示模块520可以具体包括操作接收单元和第一处理单元。In some embodiments of the present disclosure, the information display module 520 may specifically include an operation receiving unit and a first processing unit.
该操作接收单元可以用于接收用户针对UEFI界面内的目标元素的配置变更操作。The operation receiving unit may be used to receive a user's configuration change operation for a target element in the UEFI interface.
该第一处理单元可以用于根据配置变更操作对目标元素对应的配置信息进行变更处理。The first processing unit may be configured to perform change processing on the configuration information corresponding to the target element according to the configuration change operation.
在本公开一些实施例中,该虚拟化设备配置装置500还可以包括信息加载模块。In some embodiments of the present disclosure, the virtualization device configuration apparatus 500 may also include an information loading module.
该信息加载模块可以用于在根据变更后的配置信息,生成对应的设备配置表之前,将变更后的配置信息进行保存在非易失设备中,执行服务器重启操作,并加载变更后的配置信息;在UEFI界面内显示变更后的配置信息对应的功能设备。The information loading module can be used to save the changed configuration information in a non-volatile device, perform a server restart operation, and load the changed configuration information before generating the corresponding device configuration table based on the changed configuration information. ;Display the functional devices corresponding to the changed configuration information in the UEFI interface.
在本公开一些实施例中,该虚拟化设备配置装置500还可以包括场景确定模块。In some embodiments of the present disclosure, the virtualization device configuration apparatus 500 may further include a scenario determination module.
该场景确定模块可以用于在通过操作系统对设备配置表进行设备配置,得到对应的虚拟化设备之前,根据设备配置表确定应用场景,应用场景包括第一应用场景和第二应用场景。The scenario determination module may be used to determine an application scenario according to the device configuration table before configuring the device configuration table through the operating system to obtain the corresponding virtualized device. The application scenario includes a first application scenario and a second application scenario.
在本公开一些实施例中,该第二处理模块540可以具体包括第二处理单元、第三处理单元和第四处理单元。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.
该第二处理单元可以用于第一应用场景下,通过操作系统对设备配置表进行设备配置,得到对应的虚拟化设备。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 the corresponding virtualized device.
该第三处理单元可以用于在第二应用场景下,执行资源申请操作,得到对应的申请结果。The third processing unit may be used to perform a resource application operation in the second application scenario and obtain a corresponding application result.
该第四处理单元可以用于若申请结果为申请成功,通过操作系统对设备配置表进行设备配置,得到对应的虚拟化设备。The fourth processing unit may be used to perform device configuration on the device configuration table through the operating system to obtain the corresponding virtualized device if the application result is successful.
需要说明的是,图5所示的虚拟化设备配置装置500可以执行图1至图4所示的方法实施例中的各个步骤,并且实现图1至图4所示的方法实施例中的各个过程和效果,在此不做赘述。It should be noted that the virtualization device configuration apparatus 500 shown in Figure 5 can perform each step in the method embodiments shown in Figures 1 to 4, and implement each step in the method embodiments shown in Figures 1 to 4. The process and effects will not be described in detail here.
图6示出了本公开实施例提供的一种虚拟化设备配置设备的结构示意图。Figure 6 shows a schematic structural diagram of a virtualization device configuration device provided by an embodiment of the present disclosure.
在本公开一些实施例中,图6所示的虚拟化设备配置设备可以为用户想要进行虚拟化设备配置操作的服务器。其中,服务器可以包括但不限于诸如云服务器或者云服务器集群等。In some embodiments of the present disclosure, the virtualization device configuration device shown in Figure 6 may be a server where the user wants to perform a virtualization device configuration operation. The server may include, but is not limited to, a cloud server or a cloud server cluster.
如图6所示,该虚拟化设备配置设备可以包括处理器601以及存储有计算机程序指令的存储器602。As shown in Figure 6, the virtualization device configuration device may include a processor 601 and a memory 602 storing computer program instructions.
具体地,上述处理器601可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本申请实施例的一个或多个集成电路。Specifically, the above-mentioned processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits according to the embodiments of the present application.
存储器602可以包括用于信息或指令的大容量存储器。举例来说而非限制,存储器602可以包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个及其以上这些的组合。在合适的情况下,存储器602可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器602可在综合网关设备的内部或外部。在特定实施例中,存储器602是非易失性固态存储器。在特定实施例中,存储器602包括只读存储器(Read-Only Memory,ROM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Electrical Programmable ROM,EPROM)、电可擦除PROM(Electrically ErasableProgrammable ROM,EEPROM)、电可改写ROM(Electrically Alterable ROM,EAROM)或闪存,或者两个或及其以上这些的组合。Memory 602 may include bulk storage 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, flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a Universal Serial Bus (USB) drive or both. A combination of the above. Memory 602 may include removable or non-removable (or fixed) media, where appropriate. Memory 602 may be internal or external to the integrated gateway device, where appropriate. In certain embodiments, memory 602 is non-volatile solid-state memory. In a specific embodiment, memory 602 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable ROM, PROM), an erasable PROM (Electrically Programmable ROM, EPROM), or an electrically erasable PROM (Electrically ErasableProgrammable ROM, EEPROM). , Electrically Alterable ROM (EAROM) or flash memory, or a combination of two or more of these.
处理器601通过读取并执行存储器602中存储的计算机程序指令,以执行本公开实施例所提供的虚拟化设备配置方法的步骤。The processor 601 reads and executes the computer program instructions stored in the memory 602 to execute the steps of the virtualization device configuration method provided by the embodiment of the present disclosure.
在一个示例中,该虚拟化设备配置设备还可包括收发器603和总线604。其中,如图6所示,处理器601、存储器602和收发器603通过总线604连接并完成相互间的通信。In one example, the virtualization device configuration device may also include a transceiver 603 and a bus 604. Among them, as shown in Figure 6, the processor 601, the memory 602 and the transceiver 603 are connected through the bus 604 and complete communication with each other.
总线604包括硬件、软件或两者。举例来说而非限制,总线可包括加速图形端口(Accelerated Graphics Port,AGP)或其他图形总线、增强工业标准架构(ExtendedIndustry Standard Architecture,EISA)总线、前端总线(Front Side BUS,FSB)、超传输(Hyper Transport,HT)互连、工业标准架构(Industrial Standard Architecture,ISA)总线、无限带宽互连、低引脚数(Low Pin Count,LPC)总线、存储器总线、微信道架构(MicroChannel Architecture,MCA)总线、外围控件互连(Peripheral Component Interconnect,PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(Serial Advanced TechnologyAttachment,SATA)总线、视频电子标准协会局部(Video Electronics StandardsAssociation Local Bus,VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线604可包括一个或多个总线。尽管本申请实施例描述和示出了特定的总线,但本申请考虑任何合适的总线或互连。Bus 604 includes hardware, software, or both. By way of 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), or HyperTransport (Hyper Transport, HT) interconnect, Industrial Standard Architecture (ISA) bus, infinite bandwidth interconnect, Low Pin Count (LPC) bus, memory bus, MicroChannel Architecture (MCA) ) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local Bus, VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, bus 604 may include one or more buses. Although the embodiments of this application describe and illustrate a specific bus, this application contemplates any suitable bus or interconnection.
本公开实施例还提供了一种非易失性计算机可读存储介质,该存储介质可以存储有计算机程序,当计算机程序被处理器执行时,使得处理器实现本公开实施例所提供的虚拟化设备配置方法。Embodiments of the present disclosure also provide a non-volatile computer-readable storage medium, which can store a computer program. When the computer program is executed by a processor, it causes the processor to implement the virtualization provided by the embodiments of the present disclosure. Device configuration methods.
上述的存储介质可以例如包括计算机程序指令的存储器602,上述指令可由虚拟化设备配置设备的处理器601执行以完成本公开实施例所提供的虚拟化设备配置方法。可选地,存储介质可以是非临时性计算机可读存储介质,例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(Random Access Memory,RAM)、光盘只读存储器(CompactDisc ROM,CD-ROM)、磁带、软盘和光数据存储设备等。The above-mentioned storage medium may, for example, include a memory 602 of computer program instructions. The above instructions may be executed by the processor 601 of the virtualization device configuration device to complete the virtualization device configuration method provided by the embodiment of the present disclosure. Optionally, the storage medium may be a non-transitory computer-readable storage medium. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disk read-only memory (CompactDisc ROM, CD-ROM), tapes, floppy disks and optical data storage devices, etc.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。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 these There is no such actual relationship or sequence between entities or operations. Furthermore, the term "comprising" is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not expressly listed, or is included for such purposes. Elements inherent in a process, method, article, or equipment.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be practiced in other embodiments without departing from the spirit or scope of the disclosure. Therefore, the present disclosure is not to be limited to the embodiments described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310815635.6A CN117009032B (en) | 2023-07-04 | 2023-07-04 | Virtualized device configuration method, device, equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310815635.6A CN117009032B (en) | 2023-07-04 | 2023-07-04 | Virtualized device configuration method, device, equipment and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117009032A true CN117009032A (en) | 2023-11-07 |
| CN117009032B CN117009032B (en) | 2024-12-03 |
Family
ID=88561081
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310815635.6A Active CN117009032B (en) | 2023-07-04 | 2023-07-04 | Virtualized device configuration method, device, equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117009032B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120144554A (en) * | 2025-02-24 | 2025-06-13 | 北京邮电大学 | A data structure reconstruction method, device, electronic device and readable storage medium |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150160960A1 (en) * | 2013-12-06 | 2015-06-11 | Vmware, Inc. | Method and subsystem for data exchange between a guest operating system and a virtualization layer |
| CN109614157A (en) * | 2018-12-27 | 2019-04-12 | 联想(北京)有限公司 | A kind of configuration method of system, device and storage medium |
| CN112367267A (en) * | 2020-09-30 | 2021-02-12 | 新华三大数据技术有限公司 | Virtual machine management method and device |
| CN115185647A (en) * | 2022-09-14 | 2022-10-14 | 珠海星云智联科技有限公司 | virtio equipment direct connection method and related device |
| CN115599451A (en) * | 2021-07-09 | 2023-01-13 | 广州视源电子科技股份有限公司(Cn) | Method and device for booting and starting multiple operating systems |
| CN116009899A (en) * | 2023-01-04 | 2023-04-25 | 北京首都在线科技股份有限公司 | Mirror image making method and device of operating system, electronic equipment and storage medium |
| CN116257320A (en) * | 2022-12-23 | 2023-06-13 | 中科驭数(北京)科技有限公司 | DPU-based virtualization configuration management method, device, equipment and medium |
| CN116302309A (en) * | 2022-12-19 | 2023-06-23 | 北京东土科技股份有限公司 | Configuration method, device, equipment and storage medium of operating system virtual machine |
-
2023
- 2023-07-04 CN CN202310815635.6A patent/CN117009032B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150160960A1 (en) * | 2013-12-06 | 2015-06-11 | Vmware, Inc. | Method and subsystem for data exchange between a guest operating system and a virtualization layer |
| CN109614157A (en) * | 2018-12-27 | 2019-04-12 | 联想(北京)有限公司 | A kind of configuration method of system, device and storage medium |
| CN112367267A (en) * | 2020-09-30 | 2021-02-12 | 新华三大数据技术有限公司 | Virtual machine management method and device |
| CN115599451A (en) * | 2021-07-09 | 2023-01-13 | 广州视源电子科技股份有限公司(Cn) | Method and device for booting and starting multiple operating systems |
| CN115185647A (en) * | 2022-09-14 | 2022-10-14 | 珠海星云智联科技有限公司 | virtio equipment direct connection method and related device |
| CN116302309A (en) * | 2022-12-19 | 2023-06-23 | 北京东土科技股份有限公司 | Configuration method, device, equipment and storage medium of operating system virtual machine |
| CN116257320A (en) * | 2022-12-23 | 2023-06-13 | 中科驭数(北京)科技有限公司 | DPU-based virtualization configuration management method, device, equipment and medium |
| CN116009899A (en) * | 2023-01-04 | 2023-04-25 | 北京首都在线科技股份有限公司 | Mirror image making method and device of operating system, electronic equipment and storage medium |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120144554A (en) * | 2025-02-24 | 2025-06-13 | 北京邮电大学 | A data structure reconstruction method, device, electronic device and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117009032B (en) | 2024-12-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112861057B (en) | Page rendering method, device, equipment and storage medium based on applet | |
| CN111913794B (en) | Method, apparatus, electronic device and readable storage medium for sharing GPU | |
| US10990644B2 (en) | Systems and methods for contextual vocabularies and customer segmentation | |
| JP6974604B2 (en) | User interface display method and terminal device | |
| CN109471626B (en) | Page logic structure, page generation method, page data processing method and device | |
| KR20140038989A (en) | Automated user interface object transformation and code generation | |
| US9984087B2 (en) | Performing actions on objects as a result of applying tags to the objects | |
| US20170272321A1 (en) | Cloud computing configuration form generator | |
| US11895553B2 (en) | Web application with components in different virtual environments | |
| CN113254043A (en) | Web front-end project processing method and device, electronic equipment and storage medium | |
| CN111736825A (en) | An information display method, apparatus, device and storage medium | |
| US20170168845A1 (en) | Managing dependencies for human interface infrastructure (hii) devices | |
| US20240028309A1 (en) | System and method for generating package for a low-code application builder | |
| CN117009032A (en) | Virtualized device configuration method, device, equipment and medium | |
| US10402210B2 (en) | Optimizing user interface requests for backend processing | |
| CN114995699B (en) | Interface interaction method and device | |
| JP2014123360A (en) | Tag classification system and method for virtual machine | |
| CN111435313A (en) | Method and device for changing skin of software | |
| CN114048415A (en) | Form generation method and device, electronic equipment and computer readable storage medium | |
| CN116661951B (en) | Mirror image file processing method and device, electronic equipment and storage medium | |
| CN112905858A (en) | Node relation graph display method and device, computer equipment and storage medium | |
| CN117950751A (en) | A kernel embedded product adaptation method, device, equipment and medium | |
| CN115857828A (en) | Customized system implementation method and device, electronic equipment and storage medium | |
| CN110327626B (en) | Virtual server creation method and device | |
| CN115509663A (en) | A page generation method, device, computing device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |