WO2024098914A1 - 基本输入输出***bios配置项的配置方法及服务器 - Google Patents

基本输入输出***bios配置项的配置方法及服务器 Download PDF

Info

Publication number
WO2024098914A1
WO2024098914A1 PCT/CN2023/116589 CN2023116589W WO2024098914A1 WO 2024098914 A1 WO2024098914 A1 WO 2024098914A1 CN 2023116589 W CN2023116589 W CN 2023116589W WO 2024098914 A1 WO2024098914 A1 WO 2024098914A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration item
bios
cpu
configuration
content
Prior art date
Application number
PCT/CN2023/116589
Other languages
English (en)
French (fr)
Inventor
温朝颖
Original Assignee
超聚变数字技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 超聚变数字技术有限公司 filed Critical 超聚变数字技术有限公司
Publication of WO2024098914A1 publication Critical patent/WO2024098914A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the technical field of basic input and output systems, and in particular to a configuration method and server for basic input and output system BIOS configuration items.
  • BIOS The basic input output system
  • BIOS is a program embedded in the BIOS chip on the motherboard. Its main function is to provide hardware settings and control for the server.
  • BIOS also provides users with a variety of configuration items. By modifying the contents of these configuration items, the operating status of the server can be controlled.
  • the embodiment of the present application provides a configuration method and server for basic input and output system BIOS configuration items, which can modify the BIOS configuration items without restarting the system, helping to avoid interruption of services running on the server.
  • a method for configuring a basic input/output system BIOS configuration item is provided, which is used for a server, and the server includes a central processing unit (CPU) and an out-of-band controller, and the method is executed by the out-of-band controller; the method includes: determining the content to be configured of a target configuration item in the BIOS configuration item; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the CPU runs an operating system (OS), a system management interrupt signal is sent to the CPU; wherein the system management interrupt signal is used to indicate: the CPU switches from running the OS to running the BIOS; during the CPU running the BIOS, the CPU obtains the content to be configured, and configures the content configured in the target configuration item as the content to be configured; and if the CPU completes the configuration of the target configuration item, the CPU resumes running the OS.
  • OS operating system
  • the out-of-band controller after determining the content to be configured of the target configuration item, if the CPU is running the OS, the out-of-band controller sends a system management interrupt signal to the CPU to instruct the CPU to switch from running the OS to running the BIOS, and in the process of the CPU running the BIOS, the content configured in the target configuration item is configured as the content to be configured, thereby modifying the configuration content of the target configuration item. Since the system management interrupt signal can also instruct the CPU to resume running the OS after completing the configuration of the target configuration item, the target configuration item can be modified without restarting the system, thereby realizing the modification of the target configuration item while keeping the server's business online continuously.
  • the content to be configured of the target configuration item can be modified while keeping the server's business online continuously, so as to turn off inapplicable or defective features.
  • the target configuration item can also be reconfigured according to whether the business is in a peak working state or a trough working state. For example, when the business is running in a peak working state, the content to be configured of the target configuration item can be modified so that the content to be configured indicates turning off the energy-saving feature, so that the server runs in high-performance mode.
  • the content to be configured of the target configuration item can be modified so that the content to be configured indicates turning on the energy-saving feature, thereby achieving energy conservation and emission reduction effects.
  • the current running scenario is modified, and the content to be configured of the target configuration item is modified so that the energy efficiency tuning type indicated by the content to be configured matches the current running scenario. In this way, the energy efficiency tuning mode matching the current running scenario is configured for the server while the server's business is continuously online.
  • determining the content to be configured of a target configuration item in a BIOS configuration item includes: sending interface configuration information to a terminal device; the interface configuration information is used for the terminal device to display a configuration interface, and the configuration interface includes the target configuration item; receiving the content to be configured of the target configuration item sent by the terminal device; the content to be configured is determined by the terminal device in response to a configuration operation on the target configuration item on the configuration interface.
  • a specific implementation method for determining the content to be configured of the target configuration item is provided.
  • the out-of-band controller sends interface configuration information to the terminal device so that the terminal device can display the target configuration item.
  • the terminal device can determine the content to be configured of the target configuration item by performing configuration operations on the target configuration item.
  • the out-of-band controller determines the content to be configured of the target configuration item by receiving the content to be configured returned by the terminal device.
  • the user does not need to understand the programming language. The user only needs to perform configuration operations on the configuration interface, and the out-of-band controller can determine the content to be configured of the target configuration item.
  • the implementation process is simple and convenient, and the requirements on the user are relatively low.
  • determining the content to be configured of the target configuration item in the BIOS configuration item includes: sending an identifier of the target configuration item to the terminal device in response to a request of the terminal device; receiving the content to be configured sent by the terminal device; the content to be configured is determined by the terminal device based on the identifier of the target configuration item.
  • a specific implementation method for determining the content to be configured of the target configuration item is provided.
  • the out-of-band controller sends the identifier of the target configuration item to the terminal device, so that the user can understand which configuration items in the BIOS configuration items support online modification.
  • the out-of-band controller determines the content to be configured of the target configuration item by receiving the content to be configured returned by the terminal device.
  • the out-of-band controller only needs to send the identifier of the target configuration item to the terminal device to determine the content to be configured of the target configuration item, which simplifies the control logic of the out-of-band controller to determine the content to be configured of the target configuration item, and helps to reduce the requirements for the out-of-band controller.
  • the method further includes: receiving a configuration item set sent by the CPU; the configuration item set is a set of configuration items supported for online modification by the current version of BIOS, the configuration item set includes a target configuration item, and the configuration item set is sent during the BIOS startup process.
  • the out-of-band controller receives the set of configuration items that the current version of the BIOS supports online modification, which, on the one hand, enables the out-of-band controller to determine which configuration items in the BIOS configuration items support online modification based on the set of configuration items.
  • the set of configuration items is a set of configuration items that the current version of the BIOS supports online modification, it helps to ensure that the determined target configuration items match the current version of the BIOS.
  • the method further includes: receiving a configuration result of the target option returned by the CPU; the configuration result is used to indicate whether the target configuration item is successfully configured or failed, and the configuration result is sent during the CPU running the BIOS.
  • the out-of-band controller determines whether the target configuration item has been updated to the content to be configured by receiving the configuration result returned by the CPU. This helps the out-of-band controller to promptly understand whether the configuration content of the target configuration item has been updated.
  • the server also includes a BIOS chip, and the BIOS chip stores the configuration content of the BIOS configuration item; the method also includes: receiving a get request sent by the CPU; the get request is sent during the BIOS startup process, and the get request is used to request the content configured by the target configuration item; if the configuration result indicates that the target configuration item is successfully configured, sending the content to be configured to the CPU; the content to be configured is used to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • the out-of-band controller when the server is restarted, during the BIOS startup process, the out-of-band controller returns the content to be configured to the CPU based on the CPU's acquisition request, so that the CPU can modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • the BIOS can configure the server based on the content to be configured configured by the target configuration item in the BIOS chip, so that after the server is restarted, it can automatically restore to the configuration before the restart without having to reconfigure.
  • a method for configuring a basic input/output system BIOS configuration item is provided, which is used in a server, wherein the server includes a central processing unit (CPU) and an out-of-band controller, and the method is executed by the CPU; the method includes: if the CPU runs an operating system (OS), the CPU receives a system management interrupt signal, and performs the following operations based on the system management interrupt signal: the CPU switches from running the OS to running the BIOS; the CPU runs the BIOS During the process, the CPU obtains the content to be configured of the target configuration item from the out-of-band controller, and configures the content of the target configuration item as the content to be configured; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the CPU completes the configuration of the target configuration item, the CPU resumes running the OS.
  • OS operating system
  • the CPU receives a system management interrupt signal, and performs the following operations based on the system management interrupt signal: the CPU switches from running the OS to running the BIOS;
  • the CPU receives the system management interrupt signal sent by the out-of-band controller, and executes the conversion from running the OS to running the BIOS as indicated by the system management interrupt signal, obtains the to-be-configured content of the target configuration item from the out-of-band controller, and configures the content of the target configuration item as the to-be-configured content, thereby modifying the configuration content of the target configuration item.
  • the system management interrupt signal also indicates that the CPU resumes running the OS after completing the configuration of the target configuration item, the content configured by the target configuration item can be modified without restarting the system, thereby modifying the target configuration item while keeping the server's business online continuously.
  • the method further includes: the CPU sending a configuration item set to the out-of-band controller; the configuration item set is a set of configuration items that the current version of the BIOS supports online modification; and the configuration item set includes a target configuration item.
  • the CPU sends a configuration item set to the out-of-band controller, which, on the one hand, enables the out-of-band controller to determine which configuration items in the BIOS configuration items support online modification based on the configuration item set.
  • the configuration item set is a set of configuration items that the current version of BIOS supports online modification, it helps to improve the matching of the determined target configuration items with the current version of BIOS.
  • the method further includes: the CPU sending a configuration result of the target configuration item to the out-of-band controller; the configuration result is used to indicate whether the configuration of the target configuration item is successful or failed.
  • the CPU when the CPU runs the BIOS, the CPU sends the configuration result of the target configuration item to the out-of-band controller, so that the out-of-band controller can determine whether the configuration content of the target configuration item has been updated through the configuration result. This helps the out-of-band controller to promptly understand whether the configuration content of the target configuration item has been updated.
  • the server also includes a BIOS chip, and the BIOS chip stores the configuration content of the BIOS configuration item; during the BIOS startup process, the method also includes: the CPU sends a get request to the out-of-band controller; the get request is used to request the content configured by the target configuration item; the CPU receives the content to be configured returned by the out-of-band controller; the CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • the CPU when the server is restarted, during the BIOS startup process, the CPU sends a request to the out-of-band controller to request the content configured by the target configuration item. After that, the CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured based on the content to be configured returned by the out-of-band controller. In this way, the BIOS can configure the server based on the content to be configured configured by the target configuration item in the BIOS chip, so that after the server is restarted, it can automatically restore to the configuration before the restart without having to reconfigure.
  • a configuration device for a basic input/output system BIOS configuration item comprising: a functional unit for executing any one of the methods provided in the first aspect, the actions performed by each functional unit being implemented by hardware or by executing corresponding software through hardware.
  • the configuration device for a basic input/output system BIOS configuration item may include: a processing unit and a sending unit; the processing unit is used to determine the content to be configured of a target configuration item in the BIOS configuration item; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; the sending unit is used to send a system management interrupt signal to the CPU if the CPU runs an operating system OS; the system management interrupt signal is used to indicate: the CPU switches from running the OS to running the BIOS; during the CPU running the BIOS, the CPU obtains the content to be configured and configures the content of the target configuration item as the content to be configured; if the CPU completes the configuration of the target configuration item, the CPU resumes running the OS.
  • a basic input/output system BIOS configuration item configuration device comprising: a functional unit for executing any one of the methods provided in the second aspect, the actions executed by each functional unit are implemented by hardware or by hardware executing corresponding software.
  • the basic input/output system BIOS configuration item configuration device may include: a receiving unit and a processing unit; the receiving unit is used to receive a system management interrupt signal if the CPU runs an operating system OS; the processing unit is used to perform the following operations based on the system management interrupt signal: control the CPU to switch from running the OS to running the BIOS; during the CPU running the BIOS, control the CPU to obtain the content to be configured of the target configuration item from the out-of-band controller, and control the CPU to configure the content of the target configuration item as the content to be configured; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the CPU completes the configuration of the target configuration item, control the CPU to resume running the OS.
  • a server comprising: a processor and a memory, wherein the processor is connected to the memory.
  • the memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory, thereby implementing any one of the methods provided in the first aspect, or implementing any one of the methods provided in the second aspect.
  • a configuration system for basic input/output system BIOS configuration items comprising: a central processing unit CPU and an out-of-band controller, the CPU being connected to the out-of-band controller; wherein the out-of-band controller is used to execute any one of the methods provided in the first aspect above, and the CPU is used to execute any one of the methods provided in the second aspect above.
  • a configuration system for a basic input/output system BIOS configuration item comprising a terminal device and a server; the terminal device and the server are connected.
  • the terminal device is used to generate the content to be configured of the target configuration item in the BIOS configuration item and send it to the server;
  • the target configuration item is a configuration item in the BIOS configuration item that supports online modification;
  • the server is used to execute any one of the methods provided in the first aspect above, or execute any one of the methods provided in the second aspect above, based on the content to be configured of the received target configuration item.
  • a configuration system for basic input/output system BIOS configuration items comprising a terminal device and a server; the terminal device and the server are connected.
  • the server comprises a central processing unit CPU and an out-of-band controller.
  • the out-of-band controller is used to determine the content to be configured of the target configuration item in the BIOS configuration item; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; the out-of-band controller is also used to: if the CPU runs the operating system OS, send a system management interrupt signal to the CPU; the CPU is used to receive the system management interrupt signal, and perform the following operations based on the system management interrupt signal: the CPU switches from running the OS to running the BIOS; during the CPU running the BIOS, the CPU obtains the content to be configured of the target configuration item from the out-of-band controller, and configures the content of the target configuration item as the content to be configured; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the CPU
  • the out-of-band controller is also used to: send interface configuration information to the terminal device; the interface configuration information is used for the terminal device to display a configuration interface, the configuration interface including target configuration items; receive the content to be configured of the target configuration item sent by the terminal device; the content to be configured is determined by the terminal device in response to the configuration operation of the target configuration item on the configuration interface.
  • the terminal device is used to: receive interface configuration information; based on the interface configuration information, display a configuration interface, the configuration interface including a target configuration item; in response to a configuration operation on a target configuration item on the configuration interface, determine content to be configured of the target configuration item; and send content to be configured of the target configuration item to an out-of-band controller.
  • the out-of-band controller is further used to: send an identifier of a target configuration item to the terminal device in response to a request from the terminal device; receive content to be configured of the target configuration sent by the terminal device; the content to be configured is determined by the terminal device based on the identifier of the target configuration item.
  • the terminal device is used to: receive an identifier of a target configuration item; determine content to be configured of the target configuration item based on the identifier of the target configuration item; and send the content to be configured of the target configuration item to the out-of-band controller.
  • the CPU is further used to: send a configuration item set to the out-of-band controller; the configuration item set is a set of configuration items that the current version of BIOS supports online modification, and the configuration item set includes the target configuration item.
  • the out-of-band controller is further used to: receive a configuration item set sent by the CPU; the configuration item set is a set of configuration items that the current version of BIOS supports online modification, and the configuration item set includes a target configuration item.
  • the CPU is further used to: send a configuration result of a target configuration item to the out-of-band controller; the configuration result is used to indicate whether the target configuration item is successfully configured or failed to be configured.
  • the out-of-band controller is further used to: receive a configuration result of a target configuration item returned by the CPU; the configuration result is used to indicate whether the configuration of the target configuration item is successful or failed.
  • the server also includes a BIOS chip, which stores configuration content of the BIOS configuration item; during the BIOS startup process, the CPU is also used to: send an acquisition request to the out-of-band controller; the acquisition request is used to request the content configured by the target configuration item; receive the content to be configured returned by the out-of-band controller; and modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • a BIOS chip which stores configuration content of the BIOS configuration item
  • the CPU is also used to: send an acquisition request to the out-of-band controller; the acquisition request is used to request the content configured by the target configuration item; receive the content to be configured returned by the out-of-band controller; and modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • the out-of-band controller is also used to: receive an acquisition request sent by the CPU; the acquisition request is used to request the content configured by the target configuration item; if the configuration result indicates that the target configuration item is successfully configured, send the content to be configured to the CPU; the content to be configured is used to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • a chip comprising: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute any one of the methods provided in the first aspect above, or to execute any one of the methods provided in the second aspect above.
  • a computer-readable storage medium which stores computer execution instructions.
  • the computer execution instructions When the computer execution instructions are executed on a computer, the computer executes any one of the methods provided in the first aspect above, or executes any one of the methods provided in the second aspect above.
  • a computer program product comprising computer execution instructions, which, when executed on a computer, enable the computer to execute any one of the methods provided in the first aspect or any one of the methods provided in the second aspect.
  • the technical effects brought about by any implementation method in the third aspect to the eleventh aspect can refer to the technical effects brought about by different implementation methods in the first aspect or the technical effects brought about by different implementation methods in the second aspect, and will not be repeated here.
  • FIG1 is a system architecture diagram of a server provided in an embodiment of the present application.
  • FIG2 is a schematic diagram of a configuration system for BIOS configuration items provided in an embodiment of the present application.
  • FIG3 is a flow chart of a method for configuring a BIOS configuration item provided in an embodiment of the present application
  • FIG4 is a flow chart of another method for configuring BIOS configuration items provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of a configuration interface provided in an embodiment of the present application.
  • FIG6 is a flowchart of another method for configuring BIOS configuration items provided in an embodiment of the present application.
  • FIG7 is a schematic diagram of a configuration device for BIOS configuration items provided in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another BIOS configuration item configuration device provided in an embodiment of the present application.
  • plural means two or more than two.
  • At least one of the following or similar expressions refers to any combination of these items, including any combination of single items or plural items.
  • at least one of a, b, or c can mean: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
  • the words “first”, “second” and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words “first”, “second” and the like do not limit the quantity and execution order, and the words “first”, “second” and the like do not necessarily limit the differences.
  • the words “exemplary” or “for example” are used to indicate examples, illustrations or explanations. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design. Specifically, the use of words such as “exemplary” or “for example” is intended to present related concepts in a concrete manner for ease of understanding.
  • BIOS The basic input and output system BIOS is a program embedded in the BIOS chip on the motherboard. Its main function is to provide hardware settings and control for the server. In addition, BIOS also provides users with a variety of configuration items. By modifying the configuration content of these configuration items, the operating status of the server can be controlled. Since the BIOS is configured by default when it leaves the factory, and the requirements for energy efficiency tuning are inconsistent when the server is in different scenarios, the operation of the server can be matched to the current scenario by modifying the content of the BIOS configuration items.
  • an embodiment of the present application provides a configuration method for a basic input/output system BIOS configuration item.
  • the out-of-band controller determines the content to be configured of the target configuration, if the CPU runs the OS, the out-of-band controller sends a system management interrupt signal to the CPU to instruct the CPU to switch from running the OS to running the BIOS, and in the process of the CPU running the BIOS, the content of the target configuration item is configured as the content to be configured, thereby modifying the configuration content of the target configuration item.
  • the system management interrupt signal can also instruct the CPU to resume running the OS after the BIOS completes the configuration of the target configuration item, the target configuration item can be modified without restarting the system, thereby realizing the modification of the target configuration item while keeping the server's business online continuously.
  • FIG1 it is a system architecture diagram of a server provided in an embodiment of the present application.
  • the server includes a central processing unit (CPU), system management memory (SMRAM) and an out-of-band controller.
  • CPU central processing unit
  • SMRAM system management memory
  • out-of-band controller the server includes a central processing unit (CPU), system management memory (SMRAM) and an out-of-band controller.
  • the server includes BIOS and OS, which are run by the CPU.
  • the OS including operating system program code.
  • the operating system can be Linux, Windows, or vxWarks, etc.
  • the OS is mainly used for running services and managing energy consumption.
  • BIOS is the most basic software code loaded on the server hardware system, which is used for power-on, self-test, CPU initialization, memory initialization, detection of input and output devices and bootable devices, and finally guiding the OS to start.
  • the BIOS is first started, and then the BIOS guides the OS to start.
  • the BIOS startup process mainly includes the following 7 stages:
  • Verification phase (security, SEC), EFI environment pre-initialization phase (pre-efi initialization environment, PEI), driver execution environment phase (driver execution environment, DXE), boot device selection phase (boot device select, BDS), temporary system operation phase (transient system load, TSL), runtime phase (runtime, RT), after life phase (after life, AL).
  • the BIOS is mainly used to report information of configuration items that support online modification to the out-of-band controller, and configure the content of the target configuration items that support online modification as the content to be configured.
  • the system management memory is used to store the CPU context before the CPU enters the system management mode, and the program to be run after the CPU enters the SMM mode (such as the SMM handler indicated by the system management interrupt).
  • the out-of-band controller can remotely maintain and manage the server through a dedicated data channel.
  • the out-of-band controller is completely independent of the server's CPU, BIOS, and OS, and can communicate with the BIOS and OS (or OS management unit) running in the CPU through the server's out-of-band management interface.
  • the out-of-band controller is mainly used to send interface configuration information and the identifier of the target configuration item to the terminal device, send the content to be configured of the target configuration item to the BIOS, and store the configuration results of the target configuration item.
  • the out-of-band controller may include a monitoring management unit outside the server, a management system in a management chip outside the processor, a baseboard management controller (BMC) of the server, a system management mode (SMM) module, etc.
  • BMC baseboard management controller
  • SMM system management mode
  • BMC server management
  • iLO server management
  • iDRAC server management
  • the server further includes a south bridge (platform controller hub, PCH), a complex programmable logic device (complex The out-of-band controller is connected to the CPLD, and the CPLD is connected to the PCH.
  • PCH platform controller hub
  • complex programmable logic device complex The out-of-band controller is connected to the CPLD
  • the CPLD is connected to the PCH.
  • a configuration system for a BIOS configuration item includes a terminal device and a server (see Figure 1), and the terminal device and the server are connected via a network, or, alternatively, can be connected via a communication bus.
  • the terminal device is used to generate the content to be configured of the target configuration item in the BIOS configuration, and send the content to be configured of the target configuration item to the server.
  • the server is used to configure the content of the target configuration item as the content to be configured based on the received content to be configured of the target configuration item.
  • the terminal device may be referred to as: terminal, user equipment (UE), access terminal, user unit, user station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device, etc.
  • the terminal device may be a mobile phone, augmented reality (AR) device, virtual reality (VR) device, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc.
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • SMI System management interrupt
  • system management interrupts are divided into software interrupts and hardware interrupts.
  • Software interrupts refer to interrupts generated by program settings
  • hardware interrupts refer to interrupts generated by external hardware.
  • System Management Mode It is a CPU execution mode of Intel x86 architecture. Currently, System Management Mode can only be entered through System Management Interrupt. In System Management Mode, other operations through the CPU are blocked. At this time, the operating OS is in a "frozen" state, and all other interrupts cannot be processed.
  • IPMI Intelligent Platform Management Interface
  • IPMI is an industry standard for managing peripherals used in enterprise systems based on Intel architecture. Users can use IPMI to monitor the physical health characteristics of the server, such as temperature, voltage, fan working status, power status, etc. IPMI can span different operating systems, firmware and hardware platforms, and can intelligently monitor, control and automatically report the operating status of a large number of servers to reduce server system costs.
  • IPMI commands use instructions specified in the IPMI specification.
  • the BMC receives and records event messages in the system event log and maintains sensor data records that describe the conditions of sensors in the system.
  • Redfish is an open industry standard specification published by the distributed management task force (DMTF) to provide simple and secure management capabilities for scalable platform hardware. It is a management standard based on the hypertext transfer protocol secure (HTTPS) service, using the representational state transfer full (RESTful) interface to implement device management. Each HTTPS operation submits or returns a resource or result in JavaScript object notation (JSON) format encoded in unicode transformation format (UTF)-8 (UTF-8 for short), just like a world wide web (Web) application returns hypertext markup language (HTML) to a browser.
  • JSON JavaScript object notation
  • UTF-8 unicode transformation format
  • Web world wide web
  • HTML hypertext markup language
  • the first part introduces the process of the CPU reporting the configuration items that support online modification in the BIOS configuration items to the out-of-band controller in conjunction with FIG. 3 .
  • the second part introduces a process of configuring the configuration items that support online modification in the first part by an out-of-band controller in combination with FIG. 4 to FIG. 5 .
  • the third part introduces the process of configuring the configuration items that support online modification in the first part by another out-of-band controller in combination with FIG. 6 .
  • Fig. 3 is a flow chart showing a method for configuring a basic input/output system BIOS configuration item according to an exemplary embodiment. Exemplarily, the method includes the following S301-S304.
  • the CPU in S301-S304 executes a certain step (such as S301, S302 and S304), which can be considered as the CPU calling the BIOS to execute the step.
  • S301 The CPU sends a configuration item set to the out-of-band controller.
  • the configuration item set is a set of configuration items that the current version of BIOS supports online modification.
  • the configuration item set includes multiple configuration items that support online modification, and the multiple configuration items include a target configuration item.
  • the configuration item set may include multiple configuration item identifiers that support online modification, and the multiple configuration item identifiers are used to indicate multiple configuration items that support online modification.
  • the configuration item identifier corresponds to the configuration one by one, that is, one configuration item identifier indicates one configuration item.
  • the modified configuration content of the configuration items that support online can take effect without restarting the system.
  • online means that the OS is online
  • effective means that the server can run based on the modified configuration content.
  • the configuration items that support online modification include energy-saving mode. After the energy-saving mode is changed from “on” to "off", the server can run in high-performance mode with the energy-saving mode turned off without restarting the system.
  • configuration item a For example, content 1 configured by configuration item a that supports online modification (hereinafter referred to as configuration item a) is modified to content 2, there is no need to restart the system, and content 2 configured by configuration item a takes effect. That is, the server can run based on content 2 configured by configuration item a.
  • the configuration content of the configuration item that supports online modification is stored in a register.
  • one configuration item that supports online modification corresponds to one register.
  • the configuration items that support online modification correspond to the registers one by one, that is, one register only stores data corresponding to the configuration content of one configuration item that supports online modification.
  • the register corresponding to the target configuration item is the target register, and the target register only stores the value corresponding to the configuration content of the target configuration item.
  • the multiple configuration items include configuration item a
  • configuration item a may be any one of the multiple configuration items.
  • configuration item a is taken as an example to exemplarily illustrate the characteristics of the configuration items that support online modification.
  • the value a corresponding to the original configuration content of configuration item a is stored in register a. If the configuration content of configuration item a is to be modified, it is only necessary to modify the value in register a. Based on this, if the original configuration content of configuration item a is to be modified to a new configuration content, it is only necessary to modify the original value a in register a to a value b corresponding to the new configuration content. After the content in register a is modified to value b, the server can run based on the new configuration content corresponding to the value b of register a without restarting the system.
  • the configuration item set includes dynamic energy saving, non-core power scaling, hardware pre-reading, data cache unit pre-reading, third-level cache pre-reading, power performance adjustment, power efficiency preference mode and other configuration items.
  • the configurable contents of dynamic energy saving include energy saving mode on and energy saving mode off.
  • the configurable contents also include multiple different energy saving levels, such as level 0, level 1, level 2, ..., level M, etc.
  • the configurable contents of the non-core power scaling include on and off. When on, the configurable contents also include multiple percentages, such as 10%, 30%, 60%, etc.
  • the configurable contents of hardware pre-reading include on and off.
  • the configurable contents of data cache unit pre-reading include on and off.
  • the configurable contents of level 3 cache pre-reading include on and off.
  • the configurable contents of power performance adjustment include BIOS and OS. If BIOS is selected, it means that the policy selection of power performance adjustment is controlled by BIOS, and if OS is selected, it means that the policy selection of power performance adjustment is controlled by OS.
  • the configurable contents of the energy efficiency preference mode include performance balance mode, performance priority mode, power consumption balance mode and energy saving priority mode.
  • the energy efficiency preference mode belongs to the power performance strategy, that is, if the power performance adjustment is configured as OS, the configuration of the energy efficiency preference mode is controlled by OS.
  • the BIOS program is pre-configured with multiple configuration items that support online modification.
  • the BIOS running in the CPU can determine the configuration item set to be sent to the out-of-band controller based on the multiple configuration items that support online modification configured in the program.
  • the BIOS running in the CPU actively sends a set of configuration items that the current version of the BIOS supports online modification to the out-of-band controller.
  • the BIOS can send a set of configuration items that the current version of the BIOS supports online modification during the driver execution environment (DXE) phase.
  • DXE driver execution environment
  • the out-of-band controller triggers a target system management interrupt signal, which is used to instruct the CPU to switch from running the OS to running the BIOS, and sends a set of configuration items that the current version of the BIOS supports online modification to the out-of-band controller.
  • the CPU after receiving the target system management interrupt signal, the CPU enters the SMM mode to implement the conversion from running the OS to running the BIOS. After that, the BIOS running on the CPU sends a set of configuration items that support online modification to the out-of-band controller. After the BIOS running on the CPU sends the set of configuration items that support online modification to the out-of-band controller, the CPU exits the SMM mode and resumes running the OS.
  • the BIOS executed by the CPU generates a JSON file 1 based on the configuration items that support online modification, and the JSON file 1 includes the identifier of each configuration item in the configuration item set, that is, the identifier of the configuration item that supports online modification.
  • the BIOS executed by the CPU sends an IPMI command 1 to the out-of-band controller, and the IPMI command 1 carries the JSON file 1, thereby sending the set of configuration items that support online modification to the out-of-band controller.
  • the BIOS running on the CPU sends an IPMI command 2 to the out-of-band controller.
  • the IPMI command 2 carries information about a set of configuration items, thereby sending a set of configuration items that support online modification to the out-of-band controller.
  • the BIOS executed by the CPU further sends BIOS configuration items, configurable contents of the BIOS configuration, and current configuration contents of the BIOS configuration items to the out-of-band controller.
  • the BIOS executed by the CPU sends a configuration item set to the out-of-band controller
  • if no reply is received from the out-of-band controller within a preset time it is determined that the sending has failed. If a reply is received from the out-of-band controller within the preset time, it is determined that the sending has succeeded.
  • the preset time may be 0.5 seconds, 1 second, 1.5 seconds, etc. It should be noted that the embodiments of the present application do not limit the specific value of the preset time.
  • the BIOS running on the CPU sends a configuration item set to the out-of-band controller
  • the configuration item set is sent to the out-of-band controller again.
  • N is a positive integer greater than 1.
  • N can be 5, 6, etc.
  • S303 The out-of-band controller receives the configuration item set sent by the CPU.
  • the out-of-band controller determines the configuration items in the BIOS configuration items that support online modification by parsing the JSON file 1.
  • the out-of-band controller parses the IPMI command 2 to determine the configuration items in the BIOS configuration items that support online modification.
  • the out-of-band controller after receiving the configuration item set, stores the configuration item set in a local cache so that the configuration items in the BIOS configuration items that support online modification can be modified during the subsequent server OS operation.
  • the configuration item set also includes a BIOS version number.
  • the out-of-band controller after receiving the configuration item set, the out-of-band controller generates a configuration item based on the BIOS version number included in the configuration item set and the out-of-band controller receives the configuration item set.
  • the BIOS version number included in the historical configuration item set stored in the controller is compared to determine whether the BIOS version has changed. If the BIOS version has changed, the out-of-band controller stores the newly received configuration item set, which is used to determine the target configuration item in the following embodiments. If the BIOS version has not changed, the out-of-band control area may store the newly received configuration set, or may not store the configuration item set received by the information.
  • the BIOS executed by the CPU if the BIOS executed by the CPU fails to send the configuration item set to the out-of-band controller, the BIOS executed by the CPU prints an exception message to record the failure to send the configuration item set to the out-of-band controller. After printing the exception message, the BIOS continues to run.
  • the BIOS running on the CPU sends a configuration item set to the out-of-band controller, which, on the one hand, enables the out-of-band controller to determine which configuration items in the BIOS configuration items support online modification based on the configuration item set.
  • the configuration item set is a set of configuration items that the current version of the BIOS supports online modification, it helps to improve the matching of the determined target configuration items with the current version of the BIOS.
  • Fig. 4 is a flow chart showing a method for configuring a basic input/output system BIOS configuration item according to an exemplary embodiment. Exemplarily, the method includes the following S401-S410.
  • S401 The out-of-band controller sends interface configuration information to the terminal device.
  • the interface configuration information is used for the terminal device to display the configuration interface, and the configuration interface includes the target configuration item.
  • the target configuration item is the configuration item that supports online modification in the BIOS configuration item.
  • the target configuration item includes one or more configuration items in the configuration item set.
  • the target configuration item may include some of the configuration items in the configuration item set, or may include all of the configuration items in the configuration item set, which is not limited in the embodiment of the present application.
  • the BIOS running on the CPU sends a configuration item set to the out-of-band controller, and the out-of-band controller generates interface configuration information during the BIOS startup process based on the identifier of the target configuration item in the configuration item set.
  • the out-of-band controller after the OS of the server is running, the out-of-band controller generates interface configuration information during the OS running stage based on the identifier of the target configuration item in the configuration item set stored in the local cache. In some embodiments, the out-of-band controller generates first interface configuration information, and the first configuration interface corresponding to the first interface configuration information can display some configuration items in the configuration item set.
  • the partial configuration items are the configuration items that the out-of-band controller determines currently need to modify. For example, it can be determined based on the current running scenario of the server, or it can also be determined based on the current running business of the server, and the embodiments of the present application do not limit this.
  • the out-of-band controller generates second interface configuration information, and the second configuration interface corresponding to the second interface configuration information can display all configuration items in the configuration item set.
  • the out-of-band controller can send interface configuration information to the terminal device when the CPU runs BIOS, or it can also send interface configuration information to the terminal device when the CPU runs OS.
  • the embodiments of the present application do not limit this.
  • the terminal device displays a configuration interface, and in response to a configuration operation on a target configuration item on the configuration interface, determines content to be configured of the target configuration item.
  • the configuration interface includes a Web interface.
  • the configuration interface can be displayed on a browser, which helps to simplify the display process of the configuration interface compared to using a dedicated application to display the configuration interface.
  • a schematic diagram of a configuration interface is shown.
  • a target configuration item such as a dynamic energy-saving configuration item
  • the terminal device determines the content to be configured of the target configuration item in response to the configuration operation.
  • the content to be configured can be a state option such as off or on, or a numerical value.
  • the target configuration item is non-core power scaling
  • the content to be configured also includes a specific scaling percentage, such as 30%. Therefore, the embodiment of the present application does not limit the form of the content to be configured.
  • the user can be allowed to configure the target configuration item when the CPU is running BIOS, or When the OS is running, the target configuration item is modified. It should be noted that the embodiment of the present application does not limit the timing of modifying the target configuration item by the terminal device.
  • S403 The terminal device sends the to-be-configured content of the target configuration item to the out-of-band controller.
  • the terminal device after the terminal device determines the content to be configured of the target configuration item, it sends the content to be configured of the target configuration item to the out-of-band controller. For example, the terminal device may generate a JSON file 2, which records the content to be configured of the target configuration item, and the terminal device sends the JSON file 2 to the out-of-band controller to send the content to be configured of the target configuration item to the out-of-band controller.
  • the terminal device may generate a JSON file 2, which records the content to be configured of the target configuration item, and the terminal device sends the JSON file 2 to the out-of-band controller to send the content to be configured of the target configuration item to the out-of-band controller.
  • the out-of-band controller determines the to-be-configured content of the target configuration item in the BIOS configuration item.
  • the out-of-band controller executes S404, that is, determines the content to be configured of the target configuration item.
  • the out-of-band controller receives JSON file 2 and obtains the content to be configured by parsing JSON file 2.
  • the out-of-band controller after receiving the content to be configured sent by the terminal device, performs S404 when it is determined that the CPU runs the OS, that is, determines the content to be configured of the target configuration item in the BIOS configuration item.
  • the out-of-band controller determines the content to be configured of the target configuration item in the BIOS configuration item, and the out-of-band controller may generate a JSON file 3 according to the content to be configured, and the JSON file 3 includes the target configuration item and the content to be configured of the target configuration item.
  • the out-of-band controller pre-stores configurable content of the target configuration item. After receiving the content to be configured of the target configuration item, it determines whether the content to be configured belongs to configurable content. If the judgment result is yes, execute S405, otherwise, end.
  • the out-of-band controller pre-stores the current configuration content of the target configuration item. After receiving the content to be configured of the target configuration item, it determines whether the content to be configured is the same as the current configuration content. If the judgment result is yes, the process ends; if the judgment result is no, S405 is executed.
  • the configurable content of the target configuration item and the current configuration content of the target configuration item are sent by the BIOS to the out-of-band controller, and the out-of-band controller stores them in a local cache.
  • the system management interrupt signal is used to instruct the CPU to execute a target operation.
  • the target operation includes the following S407-S410.
  • the out-of-band controller if the out-of-band controller executes S404 without determining whether the CPU is running the OS, the out-of-band controller sends a system management interrupt signal to the CPU after determining that the CPU is running the OS.
  • the BIOS sends an IPMI command 3 to the out-of-band controller, and the IPMI command 3 includes notification information, and the notification information is used to instruct the CPU to run the OS.
  • the out-of-band controller determines that the CPU is running the OS. After that, the out-of-band controller sends a system management interrupt signal to the CPU.
  • the out-of-band controller if the out-of-band controller executes S404 when determining that the CPU runs an OS, the out-of-band controller sends a system management interrupt signal to the CPU after determining the content to be configured of the target configuration item.
  • the out-of-band controller pulls down a general-purpose input/output (GPIO) to trigger a system management interrupt signal.
  • GPIO general-purpose input/output
  • the out-of-band controller is configured with a register b, and the out-of-band controller writes a value c into the register, and the value c is used to indicate that the GPIO is pulled down.
  • the CPLD performs the operation of pulling down the GPIO corresponding to the value c.
  • the PCH determines the identifier of the GPIO that is pulled down, and sends a system management interrupt signal with a target identifier to the CPU based on the identifier.
  • out-of-band controller may also execute S405 by sending a system management interrupt signal to the CPU in the related art, and the embodiment of the present application does not limit this.
  • S406 The CPU receives the system management interrupt signal, and performs the following operations in response to the system management interrupt signal.
  • different system management interrupt signals have different identifiers, each identifier indicates a system management interrupt program, and the system management interrupt program indicates the operations to be performed after the CPU enters the system management mode.
  • the target identifier of the system management interrupt signal corresponds to the target system management interrupt program, and the target system management interrupt program indicates the operations in S408-S410.
  • system management interrupt signal is also used to instruct the CPU to enter a system management mode.
  • the CPU suspends the running of the OS, writes the CPU context of the current processing program into the system management memory, and switches to the system management mode. In the system management mode, the CPU runs the BIOS.
  • the BIOS running in the CPU sends an IPMI command 4 to the out-of-band controller, and the IPMI command 4 is used to instruct to obtain the content to be configured of the target configuration item.
  • the out-of-band controller After receiving the IPMI command 4, the out-of-band controller returns an IPMI command 5 to the BIOS running in the CPU, and the IPMI command 5 carries a JSON file 3, as described above, and the JSON file 3 includes the target configuration item and the content to be configured of the target configuration item.
  • the out-of-band controller after receiving the IPMI command 4, the out-of-band controller returns an IPMI command 6 to the BIOS running in the CPU, where the IPMI command 6 carries the target configuration item and the content to be configured of the target configuration item.
  • the BIOS running in the CPU obtains the content to be configured of the target configuration item, it determines whether the target configuration item is a configuration item that supports online modification, and if the determination result is yes, S409 is executed. If the determination result is no, the process ends.
  • the BIOS running in the CPU writes the numerical value corresponding to the content to be configured into the target register corresponding to the target configuration item, thereby configuring the content of the target configuration as the content to be configured.
  • the configuration content of the target configuration item becomes effective, and then the server runs based on the mode indicated by the content to be configured of the target configuration item.
  • the BIOS running in the CPU writes the content to be configured into the static file, thereby configuring the content of the target configuration as the content to be configured.
  • the configuration content of the target configuration item takes effect, and then the server runs based on the mode indicated by the content to be configured of the target configuration item.
  • Completing the configuration of the target configuration item refers to configuring the content of the target configuration item as the content to be configured.
  • the CPU exits the system management mode and reads the CPU context written before entering the system management mode from the system management memory, and restores the operating mode before entering the system management mode based on the CPU context to achieve the recovery of the OS.
  • the method may further include the following S411-S412.
  • the configuration result is used to indicate whether the target configuration item is configured successfully or failed.
  • the BIOS running in the CPU sends the configuration result of the target configuration item to the out-of-band controller.
  • S412 The out-of-band controller receives the configuration result of the target configuration item sent by the CPU.
  • a target file (JSON file 4) is generated, and the target file includes the target configuration item and the content to be configured.
  • the target file is used to record the modified target configuration item and the content currently configured in the target configuration item among the configuration items that support online modification.
  • the out-of-band controller modifies the target configuration item multiple times, in some embodiments, the out-of-band controller only saves the latest generated target file. In other embodiments, the out-of-band controller saves the target file generated each time the target configuration item is modified. Based on this, when the BIOS running in the CPU requests to obtain the content configured by the target configuration item, the out-of-band controller returns the current configuration content of the target configuration item to the BIOS running in the CPU based on the latest generated target file.
  • the server further includes a BIOS chip, and the BIOS chip stores configuration contents of BIOS configuration items.
  • the method may further include the following S413-S416.
  • the get request is used to request the content configured by the target configuration item.
  • a request is sent to the out-of-band controller, for example, IPMI command 7 is sent to request the content required for the target configuration item to be configured.
  • the BIOS running in the CPU sends the request to the out-of-band controller in the driver execution environment (DXE) stage.
  • DXE driver execution environment
  • the content to be configured is used by the BIOS running in the CPU to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • the out-of-band controller determines whether the target configuration item is configured successfully. If the target configuration item is configured successfully, the configuration content of the target configuration item is sent to the BIOS running in the CPU.
  • S415 The CPU receives the content to be configured returned by the out-of-band controller.
  • the BIOS running in the CPU receives an IPMI command 8 returned by an out-of-band controller, where the IPMI command 8 carries a target configuration item and the currently configured content of the target configuration (i.e., the content to be configured).
  • the BIOS running in the CPU obtains the target configuration item and the currently configured content of the target configuration (i.e., the content to be configured) by parsing the IPMI command 8.
  • the BIOS running in the CPU receives the IPMI command 9 returned by the out-of-band controller, and the IPMI command 8 carries the target file, as described above, and the target file includes the target configuration item and the content currently configured in the target configuration item.
  • the BIOS running in the CPU obtains the target configuration item and the content currently configured in the target configuration item by parsing the target file.
  • S416 The CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • the server is configured based on the content configured by the target configuration item in the BIOS chip.
  • the BIOS running in the CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured in the driver execution environment (DXE) stage.
  • DXE driver execution environment
  • the above is the first part of the embodiment of the present application.
  • the second part of the embodiment of the present application is exemplarily introduced below in conjunction with FIG. 6 .
  • Fig. 6 is a flow chart showing a method for configuring a basic input/output system BIOS configuration item according to an exemplary embodiment. Exemplarily, the method includes the following S601-S610.
  • the out-of-band controller sends an identifier of a target configuration item to the terminal device in response to a request from the terminal device.
  • the terminal device sends a request to the out-of-band controller to request to obtain the configuration items in the BIOS configuration items that support online modification. After receiving the request, the out-of-band controller returns the identifier of the target configuration item to the terminal device.
  • the out-of-band controller may return a JSON file 1 to the terminal device, as described above, where the JSON file 1 includes an identifier of the target configuration item.
  • the terminal device determines the to-be-configured content of the target configuration item based on the identifier of the target configuration item.
  • the terminal device obtains the to-be-configured content of the target configuration item based on the identifier of the target configuration item.
  • the user inputs the content to be configured corresponding to the identifier of the target configuration item to the terminal device through Redfish, and the terminal device receives the content to be configured and generates a JSON file 5, which records the identifier of the target configuration item and the content to be configured of the target configuration item.
  • the terminal device sends the to-be-configured content of the target configuration item to the out-of-band controller.
  • the terminal device after determining the content to be configured, sends the content to be configured of the target configuration item to the out-of-band controller to instruct the out-of-band controller to configure the target configuration item based on the content to be configured.
  • the terminal device sends the JSON file 5 to the out-of-band controller, so as to send the content to be configured of the target configuration item to the out-of-band controller.
  • the terminal device may also send the content to be configured of the target configuration item to multiple out-of-band controllers of multiple servers, and after the multiple out-of-band controllers receive the content to be configured of the target configuration item, they respectively execute steps S604-S610.
  • the terminal device sends the content to be configured of the target configuration item to multiple out-of-band controllers of multiple servers, thereby realizing simultaneous configuration of multiple servers. Modifying BIOS configuration items helps improve modification efficiency.
  • BIOS of multiple servers support online modification of target configuration items.
  • S604-S610 refer to the above S404-S410.
  • the second part of the embodiment of the present application may also include S411-S416 in the first part of the implementation of the present application, which will not be described in detail here.
  • the configuration device of the BIOS configuration item includes a hardware structure and/or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
  • the embodiment of the present application can divide the configuration device of the BIOS configuration item into functional modules according to the above method.
  • the configuration device of the BIOS configuration item can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
  • FIG7 shows a possible structural diagram of a configuration device for BIOS configuration items involved in the above-mentioned embodiment (referred to as a configuration device for BIOS configuration items 700), wherein the configuration device for BIOS configuration items 700 includes a processing unit 701 and a sending unit 702.
  • the processing unit 701 is used to determine the content to be configured of the target configuration item in the BIOS configuration item; the target configuration item is a configuration item in the BIOS configuration item that supports online modification.
  • S404 shown in FIG4, and S604 shown in FIG6 For example, S404 shown in FIG4, and S604 shown in FIG6.
  • the sending unit 702 is used to send a system management interrupt signal to the CPU if the CPU runs the operating system OS; the system management interrupt signal is used to indicate: the CPU switches from running the OS to running the BIOS; during the process of the CPU running the BIOS, the CPU obtains the content to be configured, and configures the content configured for the target configuration item as the content to be configured; and if the configuration of the target configuration item is completed in the CPU, the CPU resumes running the OS.
  • the system management interrupt signal is used to indicate: the CPU switches from running the OS to running the BIOS; during the process of the CPU running the BIOS, the CPU obtains the content to be configured, and configures the content configured for the target configuration item as the content to be configured; and if the configuration of the target configuration item is completed in the CPU, the CPU resumes running the OS.
  • S405 shown in FIG4, and S605 shown in FIG6 for example, S405 shown in FIG4, and S605 shown in FIG6.
  • the processing unit 701 is specifically used to: send interface configuration information to the terminal device; the interface configuration information is used for the terminal device to display a configuration interface, the configuration interface including target configuration items; receive the content to be configured of the target configuration item sent by the terminal device; the content to be configured is determined by the terminal device in response to the configuration operation of the target configuration item on the configuration interface.
  • the processing unit 701 is specifically used to: send an identifier of a target configuration item to the terminal device in response to a request of the terminal device; receive content to be configured of the target configuration item sent by the terminal device; the content to be configured is determined by the terminal device based on the identifier of the target configuration item.
  • the processing unit 701 is further used to: receive a configuration item set sent by the CPU; the configuration item set is a set of configuration items that the current version of BIOS supports online modification, the configuration item set includes a target configuration item, and the configuration item set is sent during the BIOS startup process.
  • the processing unit 701 is further used to: receive a configuration result of a target configuration item returned by the CPU; the configuration result is used to indicate whether the target configuration item is successfully configured or failed, and the configuration result is sent during the CPU running BIOS.
  • the server also includes a BIOS chip, and the BIOS chip stores the configuration content of the BIOS configuration item; optionally, the processing unit 701 is also used to: receive a get request sent by the CPU; the get request is sent by the CPU during the BIOS startup process, and the get request is used to request the content configured by the target configuration item; if the configuration result indicates that the target configuration item is successfully configured, the content to be configured is sent to the CPU; the content to be configured is used to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • the processing unit 701 is also used to: receive a get request sent by the CPU; the get request is sent by the CPU during the BIOS startup process, and the get request is used to request the content configured by the target configuration item; if the configuration result indicates that the target configuration item is successfully configured, the content to be configured is sent to the CPU; the content to be configured is used to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • FIG8 shows a possible structural diagram of a BIOS configuration item configuration device (referred to as a BIOS configuration item configuration device 800) involved in the above embodiment, and the BIOS configuration item configuration device includes a receiving unit 801 and a processing unit 802.
  • the receiving unit 801 is used to receive a system management interrupt signal when the CPU runs an operating system OS. For example, S406 shown in FIG4 and S407 shown in FIG6 S606.
  • the processing unit 802 is used to perform the following operations based on the system management interrupt signal: control the CPU to switch from running the OS to running the BIOS; when the CPU is running the BIOS, control the CPU to obtain the content to be configured of the target configuration item from the out-of-band controller, and control the CPU to configure the content of the target configuration item as the content to be configured; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the BIOS in the CPU completes the configuration of the target configuration item, control the CPU to resume running the OS.
  • S407-S410 shown in Figure 4 and S607-S610 shown in Figure 6.
  • the processing unit 802 is further used to: control the CPU to send a configuration item set to the out-of-band controller; the configuration item set is a set of configuration items that the current version of BIOS supports online modification, and the configuration item set includes the target configuration item.
  • the processing unit 802 is further used to: control the CPU to send a configuration result of the target configuration item to the out-of-band controller; the configuration result is used to indicate whether the target configuration item is successfully configured or failed.
  • the server also includes a BIOS chip, in which BIOS configuration items are stored; during the BIOS startup process, the processing unit 802 is also used to: control the CPU to send an acquisition request to the out-of-band controller; wherein the acquisition request is used to request the content configured by the target configuration item; control the CPU to receive the content to be configured returned by the out-of-band controller; and control the CPU to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • BIOS chip in which BIOS configuration items are stored
  • the processing unit 802 is also used to: control the CPU to send an acquisition request to the out-of-band controller; wherein the acquisition request is used to request the content configured by the target configuration item; control the CPU to receive the content to be configured returned by the out-of-band controller; and control the CPU to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.
  • the embodiment of the present application also provides a computer device, which includes a processor and a memory, the processor is connected to the memory, the memory stores a computer execution instruction, and the processor implements the data processing method in the above embodiment when executing the computer execution instruction.
  • the computer device can be a terminal device or a network device.
  • the terminal device can be called: terminal, user equipment (UE), terminal equipment, access terminal, user unit, user station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device, etc.
  • the terminal device can be a mobile phone, augmented reality (AR) device, virtual reality (VR) device, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc.
  • the network device can be a server, etc.
  • the server can be a physical or logical server, or it can be two or more physical or logical servers that share different responsibilities and cooperate with each other to realize the functions of the server.
  • An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored.
  • the computer program When the computer program is executed on a computer, the computer executes any method executed by any computer device provided above.
  • the embodiment of the present application also provides a chip.
  • the chip integrates a control circuit and one or more ports for realizing the functions of the above-mentioned computer device.
  • the functions supported by the chip can be referred to above and will not be repeated here.
  • a person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned embodiment can be completed by instructing the relevant hardware through a program.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium mentioned above can be a read-only memory, a random access memory, etc.
  • the above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, an application specific integrated circuit (ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • ASIC application specific integrated circuit
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the embodiments of the present application also provide a computer program product including instructions, which, when executed on a computer, enables the computer to perform any one of the methods in the above embodiments.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiments of the present application is generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • computer instructions may be transmitted from a website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless
  • the computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media integrated with the medium.
  • the available media can be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., SSD), etc.
  • the above embodiments it can be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • a software program it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with the medium. Available media can be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives (SSDs)), etc.

Landscapes

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

Abstract

本申请实施例提供了一种基本输入输出***BIOS配置项的配置方法及服务器,涉及基本输入输出***技术领域。该方法中,带外控制器在确定BIOS配置项中支持在线修改的目标配置项的待配置内容后,若CPU运行OS,则向CPU发送***管理中断信号,实现指示CPU由运行OS转换为运行BIOS,并在CPU运行BIOS的过程中,将目标配置项的内容配置为待配置内容,从而实现修改目标配置项的配置内容。由于***管理中断信号还能够指示CPU完成目标配置项的配置后,CPU恢复运行OS,因此,能够在不重启***的情况下修改目标配置项,从而实现了在保持服务器的业务连续在线的情况下修改目标配置项。

Description

基本输入输出***BIOS配置项的配置方法及服务器
本申请要求于2022年11月07日提交国家知识产权局、申请号为202211385564.2、申请名称为“基本输入输出***BIOS配置项的配置方法及服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及基本输入输出***技术领域,尤其涉及一种基本输入输出***BIOS配置项的配置方法及服务器。
背景技术
基本输入输出***(basic input output system,BIOS)是固化在主板上的BIOS芯片中的程序,主要功能是为服务器提供硬件设置和控制。此外,BIOS还向用户提供了多种配置项,通过修改这些配置项所配置的内容,可以控制服务器的运行状态。
相关技术中,服务器的操作***(operating system,OS)运行后,如果想要修改BIOS配置项的配置内容,需要重启***,从而在BIOS运行过程中修改BIOS配置项的配置内容。之后,再次重启***,由BIOS执行修改操作,以使BIOS配置项的修改生效。
也就是说,OS运行后,若想要修改BIOS配置项的配置内容,需要重启两次服务器才能使BIOS配置项的修改生效。这样,势必会造成服务器所运行的业务中断,严重影响了服务器的服务性能。
发明内容
本申请实施例提供一种基本输入输出***BIOS配置项的配置方法及服务器,能够在不重启***的情况下修改BIOS配置项,有助于避免服务器所运行的业务被中断。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,提供了一种基本输入输出***BIOS配置项的配置方法,用于服务器,服务器包括中央处理器CPU和带外控制器,该方法由带外控制器执行;该方法包括:确定BIOS配置项中的目标配置项的待配置内容;目标配置项为BIOS配置项中支持在线修改的配置项;若CPU运行操作***OS,向CPU发送***管理中断信号;其中,***管理中断信号用于指示:CPU由运行OS转换为运行BIOS;CPU运行BIOS的过程中,CPU获取待配置内容,并将目标配置项配置的内容配置为待配置内容;以及若CPU完成目标配置项的配置,CPU恢复运行OS。
在该方案中,带外控制器在确定目标配置项的待配置内容后,若CPU运行OS,则向CPU发送***管理中断信号,实现指示CPU由运行OS转换为运行BIOS,并在CPU运行BIOS的过程中,将目标配置项配置的内容配置为待配置内容,从而实现修改目标配置项的配置内容。由于***管理中断信号还能够指示在CPU完成目标配置项的配置后,CPU恢复运行OS,因此,能够在不重启***的情况下修改目标配置项,从而实现了在保持服务器的业务连续在线的情况下修改目标配置项。
基于此,一方面,在发现BIOS芯片或者BIOS特性有缺陷时,则可以在保持服务器的业务连续在线的情况下修改目标配置项的待配置内容,实现关闭不适用或者有缺陷的特性。另一方面,还可以根据业务处于波峰工作状态或波谷工作状态,对目标配置项进行重新配置,例如,业务处于波峰工作状态运行,通过修改目标配置项的待配置内容,使待配置内容指示关闭节能特性,使得服务器运行于高性能模式。业务处于波谷工作状态,通过修改目标配置项的待配置内容,使待配置内容指示开启节能特性,从而达到节能减排效果。此外,由于服务器的不同运行场景对能效调优的需求存在差异,因此,还可以根据服务器的当 前运行场景,修改目标配置项的待配置内容,使待配置内容指示的能效调优类型与当前运行场景相匹配,实现在服务器的业务持续在线的情况下,为服务器配置与当前运行场景匹配的能效调优模式。
在一种可能的实现方式中,确定BIOS配置项中的目标配置项的待配置内容,包括:向终端设备发送界面配置信息;界面配置信息用于终端设备显示配置界面,配置界面包括目标配置项;接收终端设备发送的目标配置项的待配置内容;待配置内容是终端设备响应于对配置界面上的目标配置项的配置操作确定的。
在该实现方式中,提供了一种确定目标配置项的待配置内容的具体实现方式。该方式中,带外控制器通过向终端设备发送界面配置信息,使得终端设备可以显示目标配置项,这样,终端设备就可以通过对目标配置项的配置操作,确定目标配置项的待配置内容。之后,带外控制器通过接收终端设备返回的待配置内容,实现确定目标配置项的待配置内容。该方式中,无需用户了解编程语言,只需用户在配置界面上进行配置操作,带外控制器即可实现确定目标配置项的待配置内容,实现过程简单、方便,对用户的要求较低。
另一种可能的实现方式中,确定BIOS配置项中的目标配置项的待配置内容,包括:响应于终端设备的请求,向终端设备发送目标配置项的标识;接收终端设备发送的待配置内容;待配置内容是终端设备基于目标配置项的标识确定的。
在该实现方式中,提供了一种确定目标配置项的待配置内容的具体实现方式。该方式中,带外控制器通过向终端设备发送目标配置项的标识,使得用户可以了解BIOS配置项中的哪些配置项支持在线修改。之后,带外控制器通过接收终端设备返回的待配置内容,实现确定目标配置项的待配置内容。该方式中,带外控制器只需向终端设备发送目标配置项的标识,即可实现确定目标配置项的待配置内容,简化了带外控制器确定目标配置项的待配置内容的控制逻辑,有助于降低对带外控制器的要求。
另一种可能的实现方式中,该方法还包括:接收CPU发送的配置项集合;配置项集合为当前版本的BIOS支持在线修改的配置项的集合,配置项集合包括目标配置项,配置项集合是在BIOS启动过程中发送的。
在该实现方式中,BIOS启动过程中,带外控制器接收CPU发送的当前版本的BIOS支持在线修改的配置项的集合,一方面,能够使得带外控制器可以基于该配置项集合,确定BIOS配置项中哪些配置项支持在线修改。另一方面,由于配置项集合为当前版本的BIOS支持在线修改的配置项的集合,因此,有助于保证所确定的目标配置项与当前版本的BIOS相匹配。
另一种可能的实现方式中,该方法还包括:接收CPU返回的目标选项的配置结果;配置结果用于指示目标配置项配置成功或配置失败,配置结果是CPU运行BIOS的过程中发送的。
在该实现方式中,CPU运行BIOS的过程中,带外控制器通过接收CPU返回的配置结果,确定目标配置项是否已更新为待配置内容,这样,有助于带外控制器及时掌握目标配置项的配置内容是否发生更新。
另一种可能的实现方式中,服务器还包括BIOS芯片,BIOS芯片中存储有BIOS配置项的配置内容;该方法还包括:接收CPU发送的获取请求;获取请求是在BIOS启动过程发送的,获取请求用于请求目标配置项所配置的内容;若配置结果指示目标配置项配置成功,向CPU发送待配置内容;待配置内容用于将BIOS芯片中的目标配置项的配置内容修改为待配置内容。
在该实现方式中,服务器重启时,在BIOS启动过程中,带外控制器基于CPU的获取请求,向CPU返回待配置内容,使得CPU可以将BIOS芯片中的目标配置项的配置内容修改为待配置内容。这样,BIOS就可以基于BIOS芯片中的目标配置项所配置的待配置内容,为服务器进行配置设置,从而使得服务器重启后,可以自动恢复到重启前的配置,不必再重新进行配置。
第二方面,提供了一种基本输入输出***BIOS配置项的配置方法,用于服务器,服务器包括中央成处理器CPU和带外控制器,该方法由CPU执行;该方法包括:若CPU运行操作***OS,CPU接收***管理中断信号,并基于***管理中断信号执行以下操作:CPU由运行OS转换为运行BIOS;CPU运行BIOS 的过程中,CPU向带外控制器获取目标配置项的待配置内容,并将目标配置项的内容配置为待配置内容;目标配置项为BIOS配置项中支持在线修改的配置项;若CPU完成目标配置项的配置,CPU恢复运行OS。
在该方案中,若CPU运行OS,CPU接收带外控制器发送的***管理中断信号,并执行该***管理中断信号所指示的由运行OS转换为运行BIOS,向带外控制器获取目标配置项的待配置内容,并将目标配置项的内容配置为待配置内容,从而实现修改目标配置项的配置内容。由于***管理中断信号还指示在CPU完成目标配置项的配置后,CPU恢复运行OS,因此,能够在不重启***的情况下修改目标配置项所配置的内容,从而实现了在保持服务器的业务连续在线的情况下修改目标配置项。
需要说明的,第二方面的其他技术效果可以参考第一方面,此处不再细述。
在一种可能的实现方式中,在BIOS启动过程中,该方法还包括:CPU向带外控制器发送配置项集合;配置项集合为当前版本的BIOS支持在线修改的配置项的集合;配置项集合包括目标配置项。
在该实现方式中,在BIOS启动过程中,CPU通过向带外控制器发送配置项集合,一方面,能够使得带外控制器可以基于该配置项集合,确定BIOS配置项中的哪些配置项支持在线修改。另一方面,由于配置项集合为当前版本的BIOS支持在线修改的配置项的集合,因此,有助于提高所确定的目标配置项与当前版本的BIOS相匹配。
另一种可能的实现方式中,CPU运行BIOS的过程中,该方法还包括:CPU向带外控制器发送目标配置项的配置结果;配置结果用于指示目标配置项配置成功或配置失败。
在该实现方式中,CPU运行BIOS的过程中,CPU通过向带外控制器发送目标配置项的配置结果,使得带外控制器可以通过该配置结果,确定目标配置项是否更新了配置内容,这样,有助于带外控制器及时掌握目标配置项的配置内容是否发生更新。
另一种可能的实现方式中,服务器还包括BIOS芯片,BIOS芯片中存储有BIOS配置项的配置内容;在BIOS启动过程中,该方法还包括:CPU向带外控制器发送获取请求;获取请求用于请求目标配置项所配置的内容;CPU接收带外控制器返回的待配置内容;CPU将BIOS芯片中的目标配置项的配置内容修改为待配置内容。
在该实现方式中,服务器重启时,在BIOS启动过程中,CPU向带外控制器发送获取请求,以请求目标配置项所配置的内容,之后,CPU基于带外控制器返回的待配置内容,将BIOS芯片中的目标配置项的配置内容修改为待配置内容。这样,BIOS就可以基于BIOS芯片中的目标配置项所配置的待配置内容,为服务器进行配置设置,从而使得服务器重启后,可以自动恢复到重启之前的配置,不必再重新进行配置。
第三方面,提供了一种基本输入输出***BIOS配置项的配置装置,该装置包括:用于执行第一方面提供的任意一种方法的功能单元,各个功能单元所执行的动作通过硬件实现或通过硬件执行相应的软件实现。例如,基本输入输出***BIOS配置项的配置装置可以包括:处理单元和发送单元;处理单元,用于确定BIOS配置项中的目标配置项的待配置内容;目标配置项为BIOS配置项中支持在线修改的配置项;发送单元,用于若CPU运行操作***OS,向CPU发送***管理中断信号;***管理中断信号用于指示:CPU由运行OS转换为运行BIOS;CPU运行BIOS的过程中,CPU获取待配置内容,并将目标配置项的内容配置为待配置内容;若CPU完成目标配置项的配置,CPU恢复运行OS。
第四方面,提供了一种基本输入输出***BIOS配置项的配置装置,该装置包括:用于执行第二方面提供的任意一种方法的功能单元,各个功能单元所执行的动作通过硬件实现或通过硬件执行相应的软件实现。例如,基本输入输出***BIOS配置项的配置装置可以包括:接收单元和处理单元;接收单元,用于若CPU运行操作***OS,接收***管理中断信号;处理单元,用于基于***管理中断信号执行以下操作:控制CPU由运行OS转换为运行BIOS;CPU运行BIOS的过程中,控制CPU向带外控制器获取目标配置项的待配置内容,并控制CPU将目标配置项的内容配置为待配置内容;目标配置项为BIOS配置项中支持在线修改的配置项;若CPU完成目标配置项的配置,控制CPU恢复运行OS。
第五方面,提供了一种服务器,包括:包括:处理器和存储器,处理器与存储器连接。存储器用于存储计算机执行指令,处理器执行存储器存储的计算机执行指令,从而实现第一方面提供的任意一种方法,或实现第二方面提供的任意一种方法。
第六方面,提供了一种基本输入输出***BIOS配置项的配置***,该***包括:中央处理器CPU和带外控制器,CPU与带外控制器连接;其中,带外控制器用于执行上述第一方面提供的任意一种方法,CPU用于执行上述第二方面提供的任意一种方法。
第七方面,提供了一种基本输入输出***BIOS配置项的配置***,该***包括终端设备和服务器;终端设备和服务器连接。终端设备用于生成BIOS配置项中的目标配置项的待配置内容,并发送给服务器;目标配置项为BIOS配置项中支持在线修改的配置项;服务器用于基于接收到的目标配置项的待配置内容执行上述第一方面提供的任意一种方法,或执行上述第二方面提供的任意一种方法。
第八方面,提供了一种基本输入输出***BIOS配置项的配置***,该***包括终端设备和服务器;终端设备和服务器连接。服务器包括中央处理器CPU和带外控制器。带外控制器,用于确定BIOS配置项中的目标配置项的待配置内容;目标配置项为BIOS配置项中支持在线修改的配置项;带外控制器还用于:若CPU运行操作***OS,向CPU发送***管理中断信号;CPU,用于接收***管理中断信号,并基于***管理中断信号执行以下操作:CPU由运行OS转换为运行BIOS;CPU运行BIOS的过程中,CPU向带外控制器获取目标配置项的待配置内容,并将目标配置项的内容配置为待配置内容;目标配置项为BIOS配置项中支持在线修改的配置项;若CPU完成目标配置项的配置,CPU恢复运行OS。
可选地,带外控制器还用于:向终端设备发送界面配置信息;界面配置信息用于终端设备显示配置界面,配置界面包括目标配置项;接收终端设备发送的目标配置项的待配置内容;待配置内容是终端设备响应于对配置界面上的目标配置项的配置操作确定的。
可选地,终端设备用于:接收界面配置信息;基于界面配置信息,显示配置界面,该配置界面包括目标配置项;响应于对配置界面上的目标配置项的配置操作,确定目标配置项的待配置内容;向带外控制器发送目标配置项的待配置内容。
可选地,带外控制器还用于:响应于终端设备的请求,向终端设备发送目标配置项的标识;接收终端设备发送的目标配置的待配置内容;待配置内容是终端设备基于目标配置项的标识确定的。
可选地,终端设备用于:接收目标配置项的标识;基于目标配置项的标识,确定目标配置项的待配置内容;向带外控制器发送目标配置项的待配置内容。
可选地,在BIOS启动过程中,CPU还用于:向带外控制器发送配置项集合;配置项集合为当前版本的BIOS支持在线修改的配置项的集合,配置项集合包括目标配置项。
可选地,带外控制器还用于:接收CPU发送的配置项集合;配置项集合为当前版本的BIOS支持在线修改的配置项的集合,配置项集合包括目标配置项。
可选地,CPU运行BIOS过程中,CPU还用于:向带外控制器发送目标配置项的配置结果;配置结果用于指示目标配置项配置成功或配置失败。
可选地,带外控制器还用于:接收CPU返回的目标配置项的配置结果;配置结果用于指示目标配置项配置成功或配置失败。
可选地,服务器还包括BIOS芯片,BIOS芯片中存储有BIOS配置项的配置内容;在BIOS启动过程中,CPU还用于:向带外控制器发送获取请求;获取请求用于请求目标配置项所配置的内容;接收带外控制器返回的待配置内容;将BIOS芯片中的目标配置项的配置内容修改为待配置内容。
可选地,带外控制器还用于:接收CPU发送的获取请求;获取请求用于请求目标配置项所配置的内容;若配置结果指示目标配置项配置成功,向CPU发送待配置内容;待配置内容用于将BIOS芯片中的目标配置项的配置内容修改为待配置内容。
第九方面,提供了一种芯片,该芯片包括:处理器和接口电路;接口电路,用于接收代码指令并传输至处理器;处理器,用于运行代码指令以执行上述第一方面提供的任意一种方法,或执行上述第二方面提供的任意一种方法。
第十方面,提供了一种计算机可读存储介质,存储有计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行上述第一方面提供的任意一种方法,或执行上述第二方面提供的任意一种方法。
第十一方面,提供了一种计算机程序产品,包括计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行上述第一方面提供的任意一种方法,或执行上述第二方面提供的任意一种方法。
其中,第三方面至第十一方面中任一种实现方式所带来的技术效果可参见第一方面中不同实现方式所带来的技术效果或第二方面中不同实现方式所带来的技术效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种服务器的***架构图;
图2为本申请实施例提供的一种BIOS配置项的配置***的示意图;
图3为本申请实施例提供的一种BIOS配置项的配置方法的流程图;
图4为本申请实施例提供的另一种BIOS配置项的配置方法的流程图;
图5为本申请实施例提供的一种配置界面的示意图;
图6为本申请实施例提供的另一种BIOS配置项的配置方法的流程图;
图7为本申请实施例提供的一种BIOS配置项的配置装置的示意图;
图8为本申请实施例提供的另一种BIOS配置项的配置装置的示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
其中,在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。
并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。同时,在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。
首先,对本申请实施例的应用场景进行示例性介绍。
基本输入输出***BIOS是固化在主板上的BIOS芯片中的程序,主要功能是为服务器提供硬件设置和控制。此外,BIOS还向用户提供了多种配置项,通过修改这些配置项的配置内容,可以控制服务器的运行状态。由于BIOS出厂时都是默认配置,而服务器所处不同场景时,对能效调优的需求不一致,通过修改BIOS配置项的内容,可以服务器的运行与当前场景匹配。
相关技术中,服务器的操作***OS运行后,如果想要修改BIOS配置项的配置内容,需要重启操作***,从而在BIOS运行过程中修改BIOS配置项的配置内容。之后,再次操作***,由BIOS执行修改操作,以使BIOS配置项的修改生效。
也就是说,OS运行后,若想要修改BIOS配置项的配置内容,需要重启两次操作***才能使BIOS配置项的修改生效。这样,势必会造成业务中断,严重影响了服务器的正常运行。
有鉴于此,本申请实施例提供了一种基本输入输出***BIOS配置项的配置方法,带外控制器在确定目标配置的待配置内容后,若CPU运行OS,则向CPU发送***管理中断信号,实现指示CPU由运行OS转换为运行BIOS,并在CPU运行BIOS的过程中,将目标配置项的内容配置为待配置内容,从而实现修改目标配置项的配置内容。由于***管理中断信号还能够指示CPU在BIOS完成目标配置项的配置后,恢复运行OS,因此,能够在不重启***的情况下修改目标配置项,从而实现了在保持服务器的业务连续在线的情况下修改目标配置项。
其次,对本申请实施例的***架构进行示例性介绍。
如图1所示,为本申请实施例提供的一种服务器的***架构图。
硬件方面,服务器包括中央处理器(central processing unit,CPU)、***管理内存(system management random access memory,SMRAM)和带外控制器。
软件方面,该服务器包括BIOS和OS。其中,OS和BIOS由CPU运行。
OS,包括操作***程序代码。操作***可以是Linux、Windows或vxWarks等。
在本申请实施例中,OS主要用于运行业务,以及能耗管理。
BIOS,是加载在服务器硬件***上的最基本的软件代码,用于上电、自检、CPU初始化、内存初始化、检测输入输出设备以及可启动设备,并最终引导OS启动。也就是说,服务器上电后,首先是启动BIOS,之后,由BIOS引导OS启动。
其中,BIOS的启动过程主要包括以下7个阶段:
验证阶段(security,SEC)、EFI环境预初始化阶段(pre-efi initialization environment,PEI)、驱动运行环境阶段(driver execution environment,DXE)、引导设备选择阶段(boot device select,BDS)、临时***运行阶段(transient system load,TSL)、运行时阶段(runtime,RT)、后世阶段(after life,AL)。
在本申请实施例提供的方法中,BIOS主要用于向带外控制器上报支持在线修改的配置项的信息,以及将支持在线修改的目标配置项的内容配置为待配置内容。
***管理内存,用于存储CPU进入***管理模式前的CPU上下文,以及CPU进入SMM模式后所要运行的程序(如***管理中断指示的SMM处理程序)。
带外控制器,可以通过专用的数据通道对服务器进行远程维护和管理。带外控制器完全独立于服务器的CPU、BIOS以及OS之外,可以通过服务器的带外管理接口与运行在CPU中的BIOS和OS(或OS管理单元)进行通信。
在本申请实施例提供的方法中,带外控制器主要用于向终端设备发送界面配置信息、目标配置项的标识,向BIOS下发目标配置项的待配置内容,以及存储目标配置项的配置结果。
示例性的,带外控制器可以包括服务器外部的监控管理单元、处理器外的管理芯片中的管理***、服务器的基板管理控制器(baseboard management controller,BMC)、***管理模式(system management mode,SMM)模块等。需要说明的,本申请实施例对带外控制器的具体形式并不限定,以上仅为示例性说明。在下述实施例中,仅以带外控制器为BMC为例进行说明。
需要说明的,不同服务器对BMC有不同的称呼,例如,一些服务器称为BMC,一些服务器称为iLO,另一服务器称为iDRAC。不论是叫BMC,还是叫iLO或iDRAC,都可以理解为是本发明实施例中的BMC。
在一些实施例中,该服务器还包括南桥(platform controller hub,PCH)、复杂可编程逻辑器件(complex  programmable logic device,CPLD)。其中,带外控制器与CPLD连接,CPLD与PCH连接。关于PCH和CPLD的具体用途将在后续实施例中进行说明,此处不再细述。
如图2所示,为本申请实施例提供的一种BIOS配置项的配置***,该***包括终端设备和服务器(参见图1),终端设备和服务器通过网络连接,或者,也可以通过通信总线进行连接。其中,终端设备用于生成BIOS配置中的目标配置项的待配置内容,并将目标配置项的待配置内容发给服务器。服务器用于基于接收目标配置项的待配置内容,并将目标配置项的内容配置为待配置内容。
在一些实施例中,终端设备可以被称为:终端、用户设备(user equipment,UE)、接入终端、用户单元、用户站、移动站、远方站、远程终端、移动设备、用户终端、无线通信设备、用户代理或用户装置等。终端设备可以是手机、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等。
以下,对本申请涉及的术语进行简要介绍。
***管理中断(system management interrupt,SMI):是服务器中的最高优先级的中断,无法被屏蔽。***管理中断被触发后,CPU进入***管理模式(system management mode,SMM),并执行***管理中断所指示的中断处理程序。
其中,***管理中断分为软件中断和硬件中断,软件中断是指使用程序设定产生中断,硬件中断是指使用外部硬件产生中断。
***管理模式:是英特尔(Intel)x86体系结构的一种CPU执行模式。目前,***管理模式只能通过***管理中断进入。在***管理模式下,其他经过CPU的操作都被屏蔽。此时,操作OS处于一种“被冻住”的状态,其他所有中断都无法处理。
智能型平台管理接口(intelligent platform management interface,IPMI):是管理基于Intel架构的企业***中所使用的***设备所采用的一种工业标准。用户可以利用IPMI监视服务器的物理健康特征,如温度、电压、风扇工作状态、电源状态等。IPMI能够横跨不同的操作***、固件和硬件平台,可以智能的监控、控制和自动回报大量服务器的运作状况,以降低服务器***成本。
在工作时,所有的IPMI功能都是通过向BMC发送IPMI命令来完成的,IPMI命令使用IPMI规范中规定的指令,BMC接收并在***事件日志中记录事件消息,维护描述***中传感器情况的传感器数据记录。
Redfish:是由分布式管理任务组(distributed management task force,DMTF)发布的一个开放的行业标准规范,为可扩展平台硬件提供简单,安全的管理功能。它是一种基于超文本传输安全协议(hypertext transfer protocol secure,HTTPS)服务的管理标准,利用表现层状态转换风格(representational state transfer full,RESTful)接口实现设备管理。每个HTTPS操作都以统一字符编码转换格式(unicode transformation format,UTF)-8(简称UTF-8)编码的JS对象简谱(JavaScript object notation,JSON)格式提交或返回一个资源或结果,就像全球广域网(world wide web,Web)应用程序向浏览器返回超文本标记语言(hyper text markup language,HTML)一样。
需要说明的,本申请实施例描述的***架构以及应用场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着***架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
为了便于理解,以下结合附图对本申请提供的基本输入输出***BIOS配置项的配置方法进行示例性介绍,该方法适用于图1至图2所示的***架构。
本申请以下实施例将分成三部分对基本输入输出***BIOS配置项的配置方法进行介绍。
第一部分,结合图3介绍CPU向带外控制器上报BIOS配置项中支持在线修改的配置项的过程。
第二部分,结合图4至图5介绍一种带外控制器对第一部分中支持在线修改的配置项进行配置的过程。
第三部分,结合图6介绍另一种带外控制器对第一部分中支持在线修改的配置项进行配置的过程。
图3是根据一示例性实施例示出的一种基本输入输出***BIOS配置项的配置方法的流程图。示例性的,该方法包括以下S301-S304。
需要说明的,S301-S304中的CPU执行某个步骤(如S301、S302以及S304),可以认为是CPU调用BIOS执行该步骤。
S301:CPU向带外控制器发送配置项集合。
其中,配置项集合为当前版本的BIOS支持在线修改的配置项的集合。配置项集合包括支持在线修改的多个配置项,多个配置项包括目标配置项。示例性的,配置项集合可以包括支持多个配置项标识,多个配置项标识用于指示支持在线修改的多个配置项。其中,配置项标识与配置一一对应,也即,一个配置项标识指示一个配置项。
BIOS对支持在线的配置项执行修改操作后,不需要重启***,该支持在线的配置项的修改后的配置内容就能够生效。其中,在线是指OS在线,生效是指服务器可以基于该修改后的配置内容运行。例如,支持在线修改的配置项包括节能模式,在节能模式由“开启”修改为“关闭”后,无需重启***,服务器就能够以关闭节能模式的高性能模式运行。
也就是说,支持在线修改的配置项的配置内容被修改后,例如,支持在线修改的配置项a(以下简称配置项a)所配置的内容1被修改为内容2,无需重启***,该配置项a所配置的内容2即生效,也即,服务器可以基于配置项a所配置的内容2运行。
在一些实施例中,支持在线修改的配置项的配置内容存储寄存器中。其中,一个支持在线修改的配置项对应一个寄存器。支持在线修改的配置项与寄存器一一对应,也即,一个寄存器中仅存储一个支持在线修改的配置项的配置内容所对应的数据,示例性的,目标配置项所对应的寄存器为目标寄存器,目标寄存器中仅存储目标配置项的配置内容所对应的数值。
示例性的,该多个配置项包括配置项a,配置项a可以是多个配置项中的任意一个配置项。以下,以配置项a为例,对支持在线修改的配置项所具有的特性进行示例性说明。
在一些实施例中,配置项a的原配置内容所对应的数值a存储于寄存器a中,若要修改配置项a的配置内容,只需修改寄存器a中的数值即可。基于此,若要将配置项a的原配置内容修改为新配置内容,只需将寄存器a中的原数值a修改为新配置内容所对应的数值b。在寄存器a中的内容被修改为数值b后,无需重启***,服务器即可基于寄存器a的数值b所对应的新配置内容运行。
可选地,配置项集合包括动态节能、非核心功率缩放、硬件预读取、数据缓存单元预读取、三级缓存预读取、电源性能调整、电源的能效偏好模式等配置项。
其中,动态节能的可配置内容包括节能模式开启和节能模式关闭。在节能模式开启状态下,可配置内容还包括多个不同的节能等级,如,0级、1级、2级、……、M级等。
非核心功率缩放的可配置内容包括开启和关闭,在开启下状态下,可配置内容还包括多个百分比,如,10%、30%、60%等。
硬件预读取的可配置内容包括开启和关闭。数据缓存单元预读取的可配置内容包括开启和关闭。三级缓存预读取的可配置内容包括开启和关闭。
电源性能调整的可配置内容包括BIOS和OS。若选择BIOS,则表示由BIOS控制电源性能调整的策略选择,若选择OS,则表示由OS控制电源性能调整的策略选择。
能效偏好模式的可配置内容包括性能均衡模式、性能优先模式、功耗均衡模式和节能优先模式。其中,能效偏好模式属于电源性能的策略,也就是说,若电源性能调整配置为OS,则由OS控制能效偏好模式的配置。
可选地,BIOS的程序中预先配置有支持在线修改的多个配置项。CPU中运行的BIOS可以基于程序中配置的支持在线修改的多个配置项,确定向带外控制器发送的配置项集合。
需要说明的,不同版本的BIOS的配置项集合的内容可以不同,或者,也可以相同,本申请实施例对此不做限制。
在一些实施例中,服务器上电后,在BIOS启动阶段,CPU中运行的BIOS主动向带外控制器发送当前版本的BIOS支持在线修改的配置项的集合。示例性的,BIOS可以在驱动运行环境阶段(driver execution environment,DXE)发送当前版本的BIOS支持在线修改的配置项的集合。
在另一些实施例中,OS启动后,带外控制器触发目标***管理中断信号,该目标***管理中断信号用于指示CPU由运行OS转换为运行BIOS,并向带外控制器发送当前版本的BIOS支持在线修改的配置项的集合。
示例性的,CPU接收到目标***管理中断信号后,进入SMM模式,实现由运行OS转换为运行BIOS。之后,CPU运行的BIOS向带外控制器发送支持在线修改的配置项的集合。在CPU运行的BIOS向带外控制器发送支持在线修改的配置项的集合后,CPU退出SMM模式,恢复运行OS。
在一个示例性中,CPU运行的BIOS基于支持在线修改的配置项生成JSON文件1,该JSON文件1包括配置项集合中的每个配置项的标识,也即,支持在线修改的配置项的标识。CPU运行的BIOS向带外控制器发送IPMI命令1,该IPMI命令1携带JSON文件1,从而实现将支持在线修改的配置项的集合发送给带外控制器。
在另一个示例中,CPU运行的BIOS向带外控制器发送IPMI命令2,IPMI命令2携带有配置项集合的信息,从而实现将支持在线修改的配置项的集合发送给带外控制器。
在一些实施例中,CPU运行的BIOS还向带外控制器发送BIOS配置项、BIOS配置的可配置内容,以及BIOS配置项的当前配置内容。
需要说明的,关于该部分内容将在后续实施例中进行说明,此处不再细述。
S302:CPU判断是否发送成功。
若判断结果为是,则执行S303。若判断结果为否,则执行S304。
在一些实施例中,CPU运行的BIOS向带外控制器发送配置项集合后,若在预设时长内未收到带外控制器的回复,则确定为发送失败,若在预设时长内收到带外控制器的回复,则确定发送成功。其中,预设时长可以是0.5秒、1秒、1.5秒等,需要说明的,本申请实施例对预设时长的具体数值不做限制。
在另一些实施例中,CPU运行的BIOS向带外控制器发送配置项集合后,若在预设时长内未收到带外控制器的回复,则再次向带外控制器发送配置项集合。再发送N次后,若仍未在预设时长内容收到带外控制器的回复,则确定发送失败。N为大于1的正整数。通过设置发送N次后,再判断是否发送成功,相较于发送1次就判断是否发送成功,有助于提高发送成功的概率。
需要说明的,本申请实施例对N的具体数值不做限制,例如,N可以是5、6等数值。
S303:带外控制器接收CPU发送的配置项集合。
在一些实施例中,带外控制器在接收到IPMI命令1,通过解析JSON文件1确定BIOS配置项中支持在线修改的配置项。
在另一些实施例中,带外控制器在接收到IPMI命令2,解析IPMI命令2确定BIOS配置项中支持在线修改的配置项。
在一些实施例中,带外控制器接收到配置项集合后,将配置项集合存储在本地缓存中,以便后续服务器运行OS过程中,对BIOS配置项中在支持在线修改的配置项进行修改。可选地,配置项集合还包括BIOS版本号。
在一些实施例中,带外控制器在接收到配置项集合后,基于配置项集合所包括的BIOS版本号与带外 控制器中存储的历史配置项集合所包括的BIOS版本号进行比对,判断BIOS版本是否发生改变,若BIOS版本发生改变,则带外控制器存储该新接收到的配置项集合,该新接收到的配置项集合用于确定下述实施例中的目标配置项。若BIOS版本未发生改变,带外控制区可以存储该新接收到的配置集合,或者,也可以不存储该信息接收到的配置项集合。
S304:CPU打印异常信息。
在一些实施例中,CPU运行的BIOS向带外控制器发送配置项集合失败,CPU运行的BIOS打印异常信息,以记录本次未向带外控制器发送配置项集合失败。在打印异常信息后,BIOS继续运行。
上述实施例中,CPU运行的BIOS通过向带外控制器发送配置项集合,一方面,能够使得带外控制器可以基于该配置项集合,确定BIOS配置项中的哪些配置项支持在线修改。另一方面,由于配置项集合为当前版本的BIOS支持在线修改的配置项的集合,因此,有助于提高所确定的目标配置项与当前版本的BIOS相匹配。
图4是根据一示例性实施例示出的一种基本输入输出***BIOS配置项的配置方法的流程图。示例性的,该方法包括以下S401-S410。
S401:带外控制器向终端设备发送界面配置信息。
其中,界面配置信息用于终端设备显示配置界面,配置界面包括目标配置项。目标配置项为BIOS配置项中支持在线修改的配置项。
可选地,目标配置项包括配置项集合中的一个或多个配置项。
其中,目标配置项可以包括配置项集合中的部分配置项,或者,也可以包括配置项集合中的全部配置项,本申请实施例对此不做限制。
在一些实施例中,服务器上电后,BIOS启动过程中,CPU运行的BIOS向带外控制器发送配置项集合,带外控制器基于配置项集合中的目标配置项的标识,在BIOS启动过程中,生成界面配置信息。
在另一些实施例中,服务器的OS运行后,带外控制器基于本地缓存中存储的配置项集合中的目标配置项的标识,在OS运行阶段,生成界面配置信息。在一些实施例中,带外控制器生成第一界面配置信息,该第一界面配置信息所对应的第一配置界面可以显示配置项集合中的部分配置项。该部分配置项为带外控制器确定的当前需要修改的配置项。例如,可以是基于服务器的当前运行场景确定的,或者,还可以是基于服务器的当前运行业务确定,本申请实施例对此不做限制。
在另一些实施例中,带外控制器生成第二界面配置信息,该第二界面配置信息所对应的第二配置界面可以显示配置项集合中的全部配置项。
需要说明的,带外控制器可以在CPU运行BIOS时,向终端设备发送界面配置信息,或者,也可以在CPU运行OS时,向终端设备发送界面配置信息,本申请实施例对此不做限制。
S402:终端设备显示配置界面,并响应于对配置界面上的目标配置项的配置操作,确定目标配置项的待配置内容。
可选地,配置界面包括Web界面。通过设置配置界面包括Web界面,可以在浏览器上显示该配置界面,相对于使用专用应用程序显示配置界面,有助于简化配置界面的显示过程。
在一些实施例中,如图5所示,为配置界面的示意图。在用户对配置界面上的目标配置项(如动态节能配置项)执行配置操作时,例如,用户将目标配置项的内容配置为关闭节能模式(即待配置内容),终端设备响应于该配置操作,确定目标配置项的待配置内容。
可以理解的,待配置内容可以是关闭或开启等状态选项,或者,也可以数值,例如,目标配置项为非核心功率缩放时,若非核心功率缩放处于开启状态,则待配置内容还包括具体的缩放百分比,如,30%。因此,本申请实施例对待配置内容的形式不做限制。
需要说明的,可以在CPU运行BIOS时,就允许用户对目标配置项进行配置,或者,也可以在CPU 运行OS时,才运行对目标配置项进行修改。需要说明的,本申请实施例对终端设备修改目标配置项的时机不做限制。
S403:终端设备向带外控制器发送目标配置项的待配置内容。
在一些实施例中,终端设备确定目标配置项的待配置内容后,向带外控制器发送目标配置项的待配置内容。例如,可以是终端设备生成JSON文件2,该JSON文件2记载了目标配置项的待配置内容,终端设备通过将JSON文件2发送给带外控制器,实现将目标配置项的待配置内容发送给带外控制器。
S404:带外控制器确定BIOS配置项中目标配置项的待配置内容。
在一些实施例中,带外控制器接收终端设备发送的目标配置项的待配置内容后,即执行S404,也即,确定目标配置项的待配置内容。示例性的,带外控制器接收到JSON文件2,通过解析JSON文件2得到待配置内容。
在另一些实施例中,带外控制器接收到终端设备发送的待配置内容后,在确定CPU运行OS的情况下,执行S404,也即,确定BIOS配置项中目标配置项的待配置内容。
在一些实施例中,带外控制器确定BIOS配置项中目标配置项的待配置内容,可以是带外控制器根据待配置内容生成JSON文件3,该JSON文件3包括目标配置项以及目标配置项的待配置内容。
在一些实施例中,带外控制器预先存储有目标配置项的可配置内容,在接收到目标配置项的待配置内容后,确定待配置内容是否属于可配置内容,若判断结果为是,则执行S405,否则,结束。
在另一些实施例中,带外控制器预先存储有目标配置项的当前配置内容,在接收到目标配置项的待配置内容后,确定待配置内容与当前配置内容是否相同,若判断结果为是,则结束,若判断结果为否,则执行S405。
需要说明的,目标配置项的可配置内容,以及目标配置项的当前配置内容,由BIOS发送给带外控制器,带外控制器存储在本地缓存中。
S405:若CPU运行操作***OS,带外控制器向CPU发送***管理中断信号。
***管理中断信号用于指示CPU执行目标操作。目标操作包括以下S407-S410。
在一些实施例中,若带外控制器在未确定CPU是否运行OS的情况下,执行的S404,则带外控制器在确定CPU运行OS后,向CPU发送***管理中断信号。示例性的,BIOS向带外控制器发送IPMI命令3,该IPMI命令3包括通知信息,该通知信息用于指示CPU运行OS,带外控制器在接收到BIOS发送的通知信息,确定CPU运行OS。之后,带外控制器向CPU发送***管理中断信号。
在另一些实施例中,若带外控制器在确定CPU运行OS的情况下,执行的S404,则带外控制器在确定目标配置项的待配置内容后,即向CPU发送***管理中断信号。
以下,对带外控制器向CPU发送***管理中断信号的过程进行示例性介绍。
带外控制器拉低通用输入输出(general-purpose input/output,GPIO),触发***管理中断信号。示例性的,带外控制器配置有寄存器b,带外控制器向寄存器中写入数值c,数值c用于指示拉低GPIO。CPLD在检测到寄存器b写入数值c后,执行数值c所对应的拉低GPIO的操作。PCH在检测到GPIO被拉低后,确定被拉低的GPIO的标识,并基于该标识向CPU发送具有目标标识的***管理中断信号。
需要说明的,带外控制器也可以采用相关技术中向CPU发送***管理中断信号的方式执行S405,本申请实施例对此不做限制。
S406:CPU接收***管理中断信号,并响应于***管理中断信号执行以下操作。
在一些实施例中,不同的***管理中断信号具有不同的标识,每个标识指示一个***管理中断程序,该一个***管理中断程序指示了CPU进入***管理模式后所需执行的操作。在本申请实施例中,***管理中断信号的目标标识对应目标***管理中断程序,目标***管理中断程序指示了S408-S410中的操作。
S407:CPU由运行OS转换为运行BIOS。
可选地,***管理中断信号还用于指示CPU进入***管理模式。
在一些实施例中,CPU接收到***管理中断信号后,暂停运行OS,并将当前处理程序的CPU上下文写入***管理内存,切换到***管理模式。在***管理模式下,CPU运行BIOS。
S408:CPU运行BIOS过程中,CPU向带外控制器获取目标配置项的待配置内容。
在一些实施例中,CPU中运行的BIOS向带外控制器发送IPMI命令4,该IPMI命令4用于指示获取目标配置项的待配置内容。带外控制器基于接收到IPMI命令4后,向CPU中运行的BIOS返回IPMI命令5,该IPMI命令5携带了JSON文件3,如上述,该JSON文件3包括目标配置项以及目标配置项的待配置内容。
在另一些实施例中,带外控制器基于接收到IPMI命令4后,向CPU中运行的BIOS返回IPMI命令6,该IPMI命令6携带了目标配置项的以及目标配置项的待配置内容。
在一些实施例中,CPU中运行的BIOS获取到目标配置项的待配置内容后,确定目标配置项是否为支持在线修改的配置项,若判断结果为是,执行S409。若判断结果为否,则结束。
S409:CPU运行BIOS过程中,CPU将目标配置项的内容配置为待配置内容。
在一些实施例中,若目标配置项的配置内容存储于寄存器中,CPU中运行的BIOS将待配置内容所对应的数值写入目标配置项所对应的目标寄存器,从而实现将目标配置的内容配置为待配置内容。
需要说明的,待配置内容所对应的数值写入目标寄存器后,目标配置项的配置内容即生效,之后,服务器便基于目标配置项的待配置内容所指示的模式运行。
在另一些实施例中,若目标配置的配置内容存储静态文件中,CPU中运行的BIOS将待配置内容写入该静态文件中,从而实现将目标配置的内容配置为待配置内容。
需要说明的,待配置内容写入静态文件后,目标配置项的配置内容即生效,之后,服务器便基于目标配置项的待配置内容所指示的模式运行。
S410:若CPU完成目标配置项的配置,CPU恢复运行OS。
其中,完成目标配置项的配置,是指将目标配置项的内容配置为待配置内容。
在一些实施例中,CPU中运行的BIOS完成目标配置的配置后,CPU退出***管理模式,并从***管理内存读取进入***管理模式前所写入的CPU上下文,基于CPU上下文恢复到进入***管理模式之前的运行模式,实现恢复运行OS。
可选地,该方法还可以包括以下S411-S412。
S411:CPU运行BIOS过程中,CPU向带外控制器发送目标配置项的配置结果。
其中,配置结果用于指示目标配置项配置成功或配置失败。
在一些实施例中,在执行完S409后,CPU中运行的BIOS向带外控制器发送目标配置项的配置结果。
S412:带外控制器接收CPU发送的目标配置项的配置结果。
在一些实施例中,带外控制器接收到目标配置项的配置结果后,若配置结果指示配置成功,则生成目标文件(JSON文件4),目标文件包括目标配置项和待配置内容。该目标文件用于记录支持在线修改的配置项中,已修改的目标配置项以及目标配置项当前所配置的内容。
在服务器的整个运行阶段,若带外控制器对目标配置项进行了多次修改,在一些实施例中,带外控制器仅保存最新生成的目标文件。在另一些实施例中,带外控制器保存每次修改目标配置项后生成的目标文件,基于此,在CPU中运行的BIOS请求获取目标配置项所配置的内容时,带外控制器基于最新生成目标文件,向CPU运行的BIOS返回目标配置项当前所配置的内容。
可选地,服务器还包括BIOS芯片,BIOS芯片中存储有BIOS配置项的配置内容。
该方法还可以包括以下S413-S416。
S413:在BIOS启动过程中,CPU向带外控制器发送获取请求。
其中,获取请求用于请求目标配置项所配置的内容。
在一些实施例中,服务器上电,BIOS启动过程中,向带外控制器发送获取请求,例如,可以是发送IPMI命令7,以请求获取目标配置项所需配置的内容。示例性的,CPU中运行的BIOS在驱动运行环境阶段(driver execution environment,DXE)向带外控制器发送获取请求。
S414:若配置结果指示目标配置项配置成功,带外控制器向CPU发送目标配置项的待配置内容。
其中,待配置内容用于CPU中运行的BIOS将BIOS芯片中的目标配置项的配置内容修改为待配置内容。
在一些实施例中,带外控制器在接收到CPU中运行的BIOS的获取请求后,判断目标配置项是否配置成功,若目标配置项配置成功,则向CPU中运行的BIOS发送目标配置项的待配置内容。
S415:CPU接收带外控制器返回的待配置内容。
在一些实施例中,CPU中运行的BIOS接收到带外控制器返回的IPMI命令8,该IPMI命令8携带了目标配置项以及目标配置的当前所配置的内容(即待配置内容),CPU中运行的BIOS通过解析IPMI命令8,得到目标配置项以及目标配置当前所配置的内容(即待配置内容)。
在另一些实施例中,CPU中运行的BIOS接收到带外控制器返回的IPMI命令9,该IPMI命令8携带了目标文件,如上述,该目标文件包括了目标配置项以及目标配置项当前所配置的内容。CPU中运行的BIOS通过解析目标文件,得到目标配置项以及目标配置项当前所配置的内容。
S416:CPU将BIOS芯片中的目标配置项的配置内容修改为待配置内容。
在一些实施例中,CPU中运行的BIOS将BISO芯片中的目标配置项的配置内容修改为待配置内容后,基于BIOS芯片中目标配置项所配置的内容,对服务器进行配置设置。示例性的,CPU中运行的BIOS在驱动运行环境阶段(driver execution environment,DXE),将BIOS芯片中的目标配置项的配置内容修改为待配置内容。
以上,为本申请实施例的第一部分。以下,结合图6,对本申请实施例的第二部分进行示例性介绍。
图6是根据一示例性实施例示出的一种基本输入输出***BIOS配置项的配置方法的流程图。示例性的,该方法包括以下S601-S610。
S601:带外控制器响应于终端设备的请求,向终端设备发送目标配置项的标识。
在一些实施中,终端设备向带外控制器发送请求,以请求获取BIOS配置项中支持在线修改的配置项。带外控制器在接收到该请求后,向终端设备返回目标配置项的标识。
示例性的,带外控制器可以向终端设备返回JSON文件1,如上述,该JSON文件1包括目标配置项的标识。
S602:终端设备基于目标配置项的标识确定目标配置项的待配置内容。
在一些实施例中,终端设备基于目标配置项的标识,获取目标配置项的待配置内容。
示例性的,用户通过Redfish向终端设备输入目标配置项的标识所对应的待配置内容,终端设备接收到待配置内容,生成JSON文件5,JSON文件5记载了目标配置项的标识以及目标配置项的待配置内容。
S603:终端设备向带外控制器发送目标配置项的待配置内容。
在一些实施例中,终端设备确定待配置内容后,向带外控制器发送目标配置项的待配置内容,以指示带外控制器基于待配置内容对目标配置项进行配置。
示例性的,终端设备向带外控制器发送JSON文件5,实现将目标配置项的待配置内容发送给带外控制器。
在另一些实施例中,终端设备还可以向多台服务器的多个带外控制器发送目标配置项的待配置内容,该多个带外控制器接收到的目标配置项的待配置内容后,分别执行S604-S610的步骤。该实施例中,终端设备通过向多台服务器的多个带外控制器下发目标配置的待配置内容,从而可以实现同时对多台服务器的 BIOS配置项进行修改,有助于提高修改效率。
需要说明的,多台服务器的多个BIOS支持在线修改目标配置项。
S604-S610:参考上述S404-S410。
需要说明的,本申请实施例的第二部分,也可以包括本申请实施第一部分中的S411-S416,此处不再细述。
上述主要从方法的角度对本申请实施例提供的方案进行了介绍。为了实现上述功能,BIOS配置项的配置装置包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法,示例性的对BIOS配置项的配置装置进行功能模块的划分,例如,BIOS配置项的配置装置可以包括对应各个功能划分的各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
示例性的,图7示出了上述实施例中所涉及的BIOS配置项的配置装置(记为BIOS配置项的配置装置700)的一种可能的结构示意图,该BIOS配置项的配置装置700包括处理单元701和发送单元702。处理单元701,用于确定BIOS配置项中的目标配置项的待配置内容;目标配置项为BIOS配置项中支持在线修改的配置项。例如,图4所示的S404,以及图6所示的S604。发送单元702,用于若CPU运行操作***OS,向CPU发送***管理中断信号;***管理中断信号用于指示:CPU由运行OS转换为运行BIOS;CPU运行BIOS的过程中,CPU获取待配置内容,并将目标配置项配置为的内容配置为待配置内容;以及若CPU中完成目标配置项的配置,CPU恢复运行OS。例如,图4所示的S405,以及图6所示的S605。
可选地,处理单元701具体用于:向终端设备发送界面配置信息;界面配置信息用于终端设备显示配置界面,配置界面包括目标配置项;接收终端设备发送的目标配置项的待配置内容;待配置内容是终端设备响应于对配置界面上的目标配置项的配置操作确定的。
可选地,处理单元701具体用于:响应于终端设备的请求,向终端设备发送目标配置项的标识;接收终端设备发送的目标配置项的待配置内容;待配置内容是终端设备基于目标配置项的标识确定的。
可选地,处理单元701还用于:接收CPU发送的配置项集合;配置项集合为当前版本的BIOS支持在线修改的配置项的集合,配置项集合包括目标配置项,配置项集合是在BIOS启动过程中发送的。
可选地,处理单元701还用于:接收CPU返回的目标配置项的配置结果;配置结果用于指示目标配置项配置成功或配置失败,配置结果是CPU运行BIOS的过程中发送的。
可选地,服务器还包括BIOS芯片,BIOS芯片中存储有BIOS配置项的配置内容;可选地,处理单元701还用于:接收CPU发送的获取请求;获取请求是在BIOS启动过程中CPU发送的,获取请求用于请求目标配置项所配置的内容;若配置结果指示目标配置项配置成功,向CPU发送待配置内容;待配置内容用于将BIOS芯片中的目标配置项的配置内容修改为待配置内容。
关于上述可选方式的具体描述可以参见前述的方法实施例,此处不再赘述。此外,上述提供的任一种BIOS配置项的配置装置700的解释以及有益效果的描述均可参考上述对应的方法实施例,不再赘述。
示例性的,图8示出了上述实施例中所涉及的BIOS配置项的配置装置(记为BIOS配置项的配置装置800)的一种可能的结构示意图,该BIOS配置项的配置装置包括接收单元801和处理单元802。接收单元801,用于若CPU运行操作***OS,接收***管理中断信号。例如,图4所示的S406,以及图6所示 的S606。处理单元802,用于基于***管理中断信号执行以下操作:控制CPU由运行OS转换为运行BIOS;CPU运行BIOS过程中,控制CPU向带外控制器获取目标配置项的待配置内容,并控制CPU将目标配置项的内容配置为待配置内容;目标配置项为BIOS配置项中支持在线修改的配置项;若CPU中的BIOS完成目标配置项的配置,控制CPU恢复运行OS。例如,图4所示的S407-S410,以及图6所示的S607-S610。
可选地,在BIOS启动过程中,处理单元802还用于:控制CPU向带外控制器发送配置项集合;配置项集合为当前版本的BIOS支持在线修改的配置项的集合,配置项集合包括目标配置项。
可选地,CPU运行BIOS的过程中,处理单元802还用于:控制CPU向带外控制器发送目标配置项的配置结果;配置结果用于指示目标配置项配置成功或配置失败。
可选地,服务器还包括BIOS芯片,BIOS芯片中存储有BIOS配置项;在BIOS启动过程中,处理单元802还用于:控制CPU向带外控制器发送获取请求;其中,获取请求用于请求目标配置项所配置的内容;控制CPU接收带外控制器返回的待配置内容;控制CPU将BIOS芯片中的目标配置项的配置内容修改为待配置内容。
关于上述可选方式的具体描述可以参见前述的方法实施例,此处不再赘述。此外,上述提供的任一种BIOS配置项的配置装置800的解释以及有益效果的描述均可参考上述对应的方法实施例,不再赘述。
本申请实施例还提供了一种计算机设备,该计算机设备包括处理器和存储器,处理器与存储器连接,存储器存储有计算机执行指令,处理器执行该计算机执行指令时实现上述实施例中的数据处理方法。本申请实施例对计算机设备的具体形式不作任何限制。例如,计算机设备具体可以是终端装置,也可以是网络设备。其中,终端装置可以被称为:终端、用户设备(user equipment,UE)、终端设备、接入终端、用户单元、用户站、移动站、远方站、远程终端、移动设备、用户终端、无线通信设备、用户代理或用户装置等。终端装置具体可以是手机、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等。网络设备具体可以是服务器等。其中,服务器可以是一个物理或逻辑服务器,也可以是有两个或两个以上分担不同职责的物理或逻辑服务器、相互协同来实现服务器的各项功能。
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上文提供的任一种计算机设备所执行的方法。
关于上述提供的任一种计算机可读存储介质中相关内容的解释及有益效果的描述,均可以参考上述对应的实施例,此处不再赘述。
本申请实施例还提供了一种芯片。该芯片中集成了用于实现上述计算机设备的功能的控制电路和一个或者多个端口。可选的,该芯片支持的功能可以参考上文,此处不再赘述。本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可通过程序来指令相关的硬件完成。所述的程序可以存储于一种计算机可读存储介质中。上述提到的存储介质可以是只读存储器,随机接入存储器等。上述处理单元或处理器可以是中央处理器,通用处理器、特定集成电路(application specific integrated circuit,ASIC)、微处理器(digital signal processor,DSP),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。
本申请实施例还提供了一种包含指令的计算机程序产品,当该指令在计算机上运行时,使得计算机执行上述实施例中的任意一种方法。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线 (例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如SSD)等。
应注意,本申请实施例提供的上述用于存储计算机指令或者计算机程序的器件,例如但不限于,上述存储器、计算机可读存储介质和通信芯片等,均具有非易失性(non-transitory)。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (12)

  1. 一种基本输入输出***BIOS配置项的配置方法,其特征在于,用于服务器,所述服务器包括中央处理器CPU和带外控制器,所述方法由所述带外控制器执行;所述方法包括:
    确定所述BIOS配置项中的目标配置项的待配置内容;所述目标配置项为所述BIOS配置项中支持在线修改的配置项;
    若所述CPU运行操作***OS,向所述CPU发送***管理中断信号;
    其中,所述***管理中断信号用于指示所述CPU由运行所述OS转换为运行所述BIOS;从而在运行所述BIOS的过程中所述CPU获取所述待配置内容,并将所述目标配置项的内容配置为所述待配置内容;以及若所述CPU完成所述目标配置项的配置,所述CPU恢复运行所述OS。
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述BIOS配置项中的目标配置项的待配置内容,包括:
    向终端设备发送界面配置信息;所述界面配置信息用于所述终端设备显示配置界面,所述配置界面包括所述目标配置项;
    接收所述终端设备发送的所述目标配置项的所述待配置内容;所述待配置内容是所述终端设备响应于对所述配置界面上的目标配置项的配置操作确定的。
  3. 根据权利要求1所述的方法,其特征在于,所述确定所述BIOS配置项中的目标配置项的待配置内容,包括:
    响应于终端设备的请求,向所述终端设备发送所述目标配置项的标识;
    接收所述终端设备发送的所述目标配置的所述待配置内容;所述待配置内容是所述终端设备基于所述目标配置项的标识确定的。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:
    接收所述CPU发送的配置项集合;所述配置项集合为当前版本的所述BIOS支持在线修改的配置项的集合,所述配置项集合包括所述目标配置项,所述配置项集合是在所述BIOS启动过程中发送的。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:
    接收所述CPU返回的所述目标配置项的配置结果;所述配置结果用于指示所述目标配置项配置成功或配置失败,所述配置结果是所述CPU运行所述BIOS的过程中发送的。
  6. 根据权利要求5所述的方法,其特征在于,所述服务器还包括BIOS芯片,所述BIOS芯片中存储有所述BIOS配置项的配置内容;所述方法还包括:
    接收所述CPU发送的获取请求;所述获取请求是在所述BIOS启动过程中发送的,所述获取请求用于请求所述目标配置项所配置的内容;
    若所述配置结果指示所述目标配置项配置成功,向所述CPU发送所述待配置内容;所述待配置内容用于将所述BIOS芯片中的所述目标配置项的配置内容修改为所述待配置内容。
  7. 一种基本输入输出***BIOS配置项的配置方法,其特征在于,用于服务器,所述服务器包括中央成处理器CPU和带外控制器,所述方法由所述CPU执行;所述方法包括:
    若所述CPU运行操作***OS,所述CPU接收***管理中断信号,并基于所述***管理中断信号执行以下操作:
    所述CPU由运行所述OS转换为运行所述BIOS;
    所述CPU运行所述BIOS的过程中,所述CPU向所述带外控制器获取所述目标配置项的待配置内容,并将所述目标配置项的内容配置为所述待配置内容;所述目标配置项为所述BIOS配置项中支持在线修改的配置项;
    若所述CPU完成所述目标配置项的配置,所述CPU恢复运行所述OS。
  8. 根据权利要求7所述的方法,其特征在于,在所述BIOS启动过程中,所述方法还包括:
    所述CPU向所述带外控制器发送配置项集合;所述配置项集合为当前版本的所述BIOS支持在线修改的配置项的集合,所述配置项集合包括所述目标配置项。
  9. 根据权利要求7或8所述的方法,其特征在于,所述CPU运行所述BIOS的过程中,所述方法还包括:
    所述CPU向所述带外控制器发送所述目标配置项的配置结果;所述配置结果用于指示所述目标配置项配置成功或配置失败。
  10. 根据权利要求9所述的方法,其特征在于,所述服务器还包括BIOS芯片,所述BIOS芯片中存储有所述BIOS配置项的配置内容;在所述BIOS启动过程中,所述方法还包括:
    所述CPU向所述带外控制器发送获取请求;其中,所述获取请求用于请求所述目标配置项所配置的内容;
    所述CPU接收所述带外控制器返回的所述待配置内容;
    所述CPU将所述BIOS芯片中的所述目标配置项的配置内容修改为所述待配置内容。
  11. 一种服务器,其特征在于,包括:处理器;
    所述处理器与存储器连接,所述存储器用于存储计算机执行指令,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述计算机设备实现如权利要求1-6中任一项所述的方法,或如权利要求7-10中任一项所述的方法。
  12. 一种基本输入输出***BIOS配置项的配置***,其特征在于,包括:
    中央处理器CPU和带外控制器,所述CPU与所述带外控制器连接;
    其中,所述带外控制器用于执行如权利要求1-6中任一项所述的方法,所述CPU用于执行如权利要求7-10中任一项所述的方法。
PCT/CN2023/116589 2022-11-07 2023-09-01 基本输入输出***bios配置项的配置方法及服务器 WO2024098914A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211385564.2A CN115756616A (zh) 2022-11-07 2022-11-07 基本输入输出***bios配置项的配置方法及服务器
CN202211385564.2 2022-11-07

Publications (1)

Publication Number Publication Date
WO2024098914A1 true WO2024098914A1 (zh) 2024-05-16

Family

ID=85357052

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/116589 WO2024098914A1 (zh) 2022-11-07 2023-09-01 基本输入输出***bios配置项的配置方法及服务器

Country Status (2)

Country Link
CN (1) CN115756616A (zh)
WO (1) WO2024098914A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115756616A (zh) * 2022-11-07 2023-03-07 超聚变数字技术有限公司 基本输入输出***bios配置项的配置方法及服务器

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614157A (zh) * 2018-12-27 2019-04-12 联想(北京)有限公司 一种***的配置方法、装置和存储介质
US20200301714A1 (en) * 2019-03-22 2020-09-24 Dell Products L.P. Bios setting modification system
CN113064643A (zh) * 2021-03-16 2021-07-02 山东英信计算机技术有限公司 一种即时生效的修改bios设定值的方法、***及介质
CN113360257A (zh) * 2021-04-16 2021-09-07 山东英信计算机技术有限公司 一种基于bios的信息操作方法、装置、存储介质及设备
CN113703799A (zh) * 2020-05-21 2021-11-26 华为技术有限公司 计算设备及其bios更新方法和介质
CN115756616A (zh) * 2022-11-07 2023-03-07 超聚变数字技术有限公司 基本输入输出***bios配置项的配置方法及服务器

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614157A (zh) * 2018-12-27 2019-04-12 联想(北京)有限公司 一种***的配置方法、装置和存储介质
US20200301714A1 (en) * 2019-03-22 2020-09-24 Dell Products L.P. Bios setting modification system
CN113703799A (zh) * 2020-05-21 2021-11-26 华为技术有限公司 计算设备及其bios更新方法和介质
CN113064643A (zh) * 2021-03-16 2021-07-02 山东英信计算机技术有限公司 一种即时生效的修改bios设定值的方法、***及介质
CN113360257A (zh) * 2021-04-16 2021-09-07 山东英信计算机技术有限公司 一种基于bios的信息操作方法、装置、存储介质及设备
CN115756616A (zh) * 2022-11-07 2023-03-07 超聚变数字技术有限公司 基本输入输出***bios配置项的配置方法及服务器

Also Published As

Publication number Publication date
CN115756616A (zh) 2023-03-07

Similar Documents

Publication Publication Date Title
TWI610167B (zh) 改善平台管理的計算裝置建置方法、保持電腦可執行指令之非暫存媒體及配置為提供強化管理資訊之計算裝置
KR101245442B1 (ko) 오퍼레이팅 시스템에 독립적인 네트워크 이벤트 핸들링
JP5497923B2 (ja) システム管理モードにおけるプロセッサ間割り込みの再方向付け
US20180113764A1 (en) Hypervisor Based Watchdog Timer
WO2024098914A1 (zh) 基本输入输出***bios配置项的配置方法及服务器
US7584374B2 (en) Driver/variable cache and batch reading system and method for fast resume
WO2023115999A1 (zh) 设备状态监控方法、装置、设备及计算机可读存储介质
US9262178B2 (en) Method for reducing platform boot times by providing lazy input/output abstractions
EP3319283B1 (en) Server data port learning at data switch
US20030208687A1 (en) Antivirus stand-alone network or internet appliance and methods therefor
US10924350B1 (en) Software sensor for reporting controller metrics
TW200426571A (en) Policy-based response to system errors occurring during os runtime
CN111737064A (zh) 一种bmc***控制方法、装置、存储介质和计算机设备
TW202042062A (zh) 提供系統資料之方法、系統及伺服器
US11907153B2 (en) System and method for distributed subscription management
US11520648B2 (en) Firmware emulated watchdog timer controlled using native CPU operations
US20060143209A1 (en) Remote management of a computer system
US20120096253A1 (en) Method for automatically setting up system
WO2019169582A1 (zh) 处理中断的方法和装置
CN107704399B (zh) 一种存储数据的方法和装置
US20230214245A1 (en) Online Migration Method and System for Bare Metal Server
US11048522B2 (en) Method for controlling setup configuration and related computer system
US20240248791A1 (en) Methods and apparatus for datacenter monitoring
CN118132111A (zh) 一种基板管理控制器bmc的软件升级方法、bmc及计算设备
CN115373874A (zh) 跨进程事件处理方法、装置、电子设备、存储介质及车辆

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23887608

Country of ref document: EP

Kind code of ref document: A1