Monitoring method for host operating system, and electronic device

By using the shared memory mechanism in the ARM server, the monitoring of the host operating system and fault memory image dump are realized, which solves the problem of the ARM server being unable to trigger NMI, reduces the difficulty of operation and maintenance, and improves security.

WO2024174891A1PCT designated stage expired Publication Date: 2024-08-29ZTE CORP

Patent Information

Application Number
PCT/CN2024/076248
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2024-02-06
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Due to the lack of non-maskable interrupt (NMI) pins on ARM servers, the operating system cannot safely and reliably monitor system operation and perform fault memory image dumps, resulting in difficulty in operation and maintenance. The out-of-band management system is independent of the host operating system to obtain operating status. Information requires special hardware connections, which poses security risks.

Method used

By allocating the first shared memory to the out-of-band management module in the ARM server, and allocating the second shared memory to the host, the host obtains the operating system status information and writes it into the second shared memory, and the trusted firmware is synchronized to the first shared memory, out-of-band The management module reads status information to monitor the host operating system and dump fault memory images.

Benefits of technology

Without adding hardware, it realizes the monitoring of ARM server host operating system and fault memory image dump, which reduces the difficulty of operation and maintenance, avoids the direct connection between the out-of-band management system and the host, and improves security. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024076248_29082024_PF_FP_ABST
    Figure CN2024076248_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a monitoring method for a host operating system, and an electronic device and a computer-readable medium. The monitoring method for a host operating system is applied to a server incapable of triggering a non-maskable interrupt, and comprises: trusted firmware allocating a first shared memory to an out-of-band management module, and allocating a second shared memory to a host; the host acquiring running state information of a host operating system, and writing the running state information of the host operating system into the second shared memory; the trusted firmware synchronizing the running state information of the host operating system in the second shared memory to the first shared memory; and the out-of-band management module reading the running state information of the host operating system in the first shared memory.
Need to check novelty before this filing date? Find Prior Art

Description

Host operating system monitoring method and electronic equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese Patent Application No. 202310189608.2 filed on February 21, 2023, the contents of which are incorporated herein by reference in their entirety. Technical Field

[0003] The embodiments of the present application relate to the field of communication technology, and in particular to a host operating system monitoring method and electronic equipment. Background Art

[0004] Currently, server processors on the market primarily use two types of processor chips: X86 and Advanced RISC Machine (ARM). X86 processor chips have a non-maskable interrupt (NMI). After the operating system has been running for a while, the central processing unit (CPU) notifies the operating system (OS) to check system health. Alternatively, the hardware can proactively trigger an NMI upon detecting an anomaly. Upon receiving the NMI, the OS confirms system health with the highest priority. When a fault is detected, the NMI can also be triggered to dump the memory image for troubleshooting. However, ARM processor chips lack an NMI pin, making it impossible to trigger the NMI. This prevents the operating system from safely and reliably monitoring the system and effectively dumping the faulty memory image. This poses significant challenges to the operation and maintenance of ARM servers.

[0005] An out-of-band management system is a dedicated, small management system completely independent of the host operating system. It's used to deploy, diagnose, or manage the host operating system's core components, providing out-of-band autonomous monitoring, event logging, and recovery control. Currently, most popular out-of-band management systems are implemented using a baseboard management controller (BMC). Furthermore, because out-of-band management systems are typically independent of the host operating system, obtaining operational status information from the in-band host operating system, such as CPU utilization, memory utilization, and network transmission rates, requires specialized hardware to establish an in-band and out-of-band connection, posing a significant security risk to the host operating system.

[0006] Summary of the Invention

[0007] Embodiments of the present application provide a host operating system monitoring method and electronic device.

[0008] In a first aspect, an embodiment of the present application provides a host operating system monitoring method, which is applied to a server that cannot trigger a non-maskable interrupt, the method comprising: the trusted firmware allocates a first shared memory to an out-of-band management module and allocates a second shared memory to the host; the host obtains the running status information of the host operating system and writes the running status information of the host operating system into the second shared memory; the trusted firmware synchronizes the running status information of the host operating system in the second shared memory to the first shared memory; the out-of-band management module reads the running status information of the host operating system in the first shared memory.

[0009] In a second aspect, an embodiment of the present application provides an electronic device comprising: at least one processor; a memory, wherein at least one program is stored in the memory, and when the at least one program is executed by the at least one processor, any of the above-mentioned host operating system monitoring methods is implemented.

[0010] In a third aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the following steps: obtaining the running status information of the host operating system, and writing the running status information of the host operating system into a second shared memory allocated by the trusted firmware; or, reading the running status information of the host operating system in the first shared memory allocated by the trusted firmware. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] FIG1 is a flowchart of a host operating system monitoring method provided by one embodiment of the present application;

[0012] FIG2 is a flowchart of a host operating system monitoring method provided by an example of an embodiment of the present application;

[0013] FIG3 is a block diagram of the composition of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0014] In order to enable those skilled in the art to better understand the technical solution of the present application, the host operating system monitoring method and electronic device provided by the present application are described in detail below with reference to the accompanying drawings.

[0015] Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete and will fully convey the scope of this application to those skilled in the art.

[0016] In the absence of conflict, the various embodiments of the present application and the various features therein may be combined with each other.

[0017] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.

[0018] The terms used herein are used only to describe specific embodiments and are not intended to limit this application. As used herein, the singular forms "a," "an," and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements, and / or components is specified, but the presence or addition of at least one other feature, whole, step, operation, element, component, and / or group thereof is not excluded.

[0019] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless expressly defined as such herein.

[0020] FIG1 is a flowchart of a host operating system monitoring method provided by one embodiment of the present application.

[0021] In a first aspect, referring to FIG1 , an embodiment of the present application provides a host operating system monitoring method, which is applied to a server that cannot trigger a non-maskable interrupt. The server that cannot trigger a non-maskable interrupt may be, for example, an ARM server, that is, a server using an ARM processor chip. The method includes the following steps 100 to 103.

[0022] In step 100, the trusted firmware allocates a first shared memory to the out-of-band management module and allocates a second shared memory to the host.

[0023] In some exemplary embodiments, the host, out-of-band management module, and trusted firmware are all components of the server.

[0024] In some exemplary embodiments, for an ARM server, the trusted firmware may be ARM Trusted Firmware (ATF).

[0025] In some exemplary embodiments, the first shared memory and the second shared memory are isolated from each other, that is, the address range of the first shared memory and the address range of the second shared memory are completely different (no overlap).

[0026] In some exemplary embodiments, the out-of-band management module can only read data from the first shared memory, and the host can only write data to the second shared memory.

[0027] In some exemplary embodiments, during the initialization process after the trusted firmware is powered on, a first shared memory may be allocated to the out-of-band management module, and a second shared memory may be allocated to the host.

[0028] In step 101, the host obtains the running status information of the host operating system and writes the running status information of the host operating system into the second shared memory.

[0029] In some exemplary embodiments, a first driver submodule may be added to the host, and all functions implemented by the host in the embodiments of the present application may be implemented by the first driver submodule. For example, the first driver submodule may obtain the running status information of the host operating system and write the running status information of the host operating system to the second shared memory.

[0030] In some exemplary embodiments, the first driver submodule may be registered with the trusted firmware during an initialization process after the host is powered on.

[0031] In some exemplary embodiments, the running status information of the host operating system includes at least one of the following: memory information, CPU information, process information, input and output (IO) information, network information, etc.

[0032] In some exemplary embodiments, the memory information includes at least one of the following: information indicating whether the memory is exhausted, memory utilization, etc.

[0033] In some exemplary embodiments, the CPU information includes: CPU utilization, etc.

[0034] In some exemplary embodiments, the process information includes information indicating whether a dead loop occurs in the process.

[0035] In some exemplary embodiments, the IO information includes information indicating whether the IO is hung, etc.

[0036] In some exemplary embodiments, the network information includes information indicating whether the network delay is serious, etc.

[0037] In some exemplary embodiments, when the host receives a monitoring event or a Software Delegated Exception Interface (SDEI) event sent by the trusted firmware, the host obtains the running status information of the host operating system and writes the running status information of the host operating system to the second shared memory. For example, when the first driver submodule receives a monitoring event or an SDEI event sent by the trusted firmware, the first driver submodule obtains the running status information of the host operating system and writes the running status information of the host operating system to the second shared memory.

[0038] In some exemplary embodiments, the trusted firmware may periodically send monitoring events or SDEI events to the host.

[0039] In some exemplary embodiments, when the trusted firmware detects that a fatal error occurs in the host, an SDEI event is sent to the host.

[0040] In some exemplary embodiments, fatal errors include at least one of the following: a dead loop occurs in the process currently running on the CPU; other processes except the currently running process cannot be scheduled on the CPU; a serious memory leak occurs; the remaining available memory is less than or equal to a preset threshold; the file system data is corrupted and a consistency failure occurs; the clock interrupt cannot be responded to, etc.

[0041] In some exemplary embodiments, when the trusted firmware detects a hardware anomaly in the host, an SDEI event is sent to the host.

[0042] In some exemplary embodiments, the host hardware abnormality may be, for example, a CPU failure in executing instructions.

[0043] In some exemplary embodiments, the SDEI event is an exclusive mechanism that can preempt other exceptions and has the highest priority. The trusted firmware can transmit special system events to the host through the SDEI event.

[0044] In step 102, the trusted firmware synchronizes the running status information of the host operating system in the second shared memory to the first shared memory.

[0045] In step 103, the out-of-band management module reads the running status information of the host operating system in the first shared memory.

[0046] In some exemplary embodiments, a second driver submodule may be added to the out-of-band management module, and all functions implemented by the out-of-band management module mentioned in the embodiments of the present application may be implemented by the second driver submodule. For example, the second driver submodule may read the running status information of the host operating system in the first shared memory.

[0047] In some exemplary embodiments, the second driver sub-module may be registered with the trusted firmware after the out-of-band management module is powered on.

[0048] In some exemplary embodiments, before the host obtains the running status information of the host operating system, the method further includes: the out-of-band management module obtains the address of the first shared memory from the trusted firmware; and the host obtains the address of the second shared memory from the trusted firmware.

[0049] Writing the running status information of the host operating system into the second shared memory includes: writing the running status information of the host operating system into the second shared memory according to the address of the second shared memory.

[0050] The out-of-band management module reading the running status information of the host operating system in the first shared memory includes: the out-of-band management module reading the running status information of the host operating system in the first shared memory according to the address of the first shared memory.

[0051] In some exemplary embodiments, the address of the first shared memory can be obtained from the trusted firmware during the initialization process after the out-of-band management module is powered on. For example, the second driver submodule obtains the address of the first shared memory from the trusted firmware.

[0052] In some exemplary embodiments, the address of the second shared memory may be obtained from the trusted firmware during the initialization process after the host is powered on. For example, the first driver submodule obtains the address of the second shared memory from the trusted firmware.

[0053] In some exemplary embodiments, writing the running status information of the host operating system into the second shared memory includes: the host sends a write request to the trusted firmware; the trusted firmware authenticates the host, and if the authentication is passed, writes the running status information of the host operating system into the second shared memory.

[0054] The out-of-band management module reads the running status information of the host operating system in the first shared memory, including: the out-of-band management module sends a read request to the trusted firmware; the trusted firmware authenticates the out-of-band management module, and if the authentication is passed, sends the running status information of the host operating system in the first shared memory to the out-of-band management module.

[0055] In some exemplary embodiments, before the host obtains the running status information of the host operating system, the method further includes: the trusted firmware pre-storing the fingerprint information of the host.

[0056] Correspondingly, the write request includes: fingerprint information of the host; the trusted firmware authenticates the host including: the trusted firmware authenticates the host according to pre-stored fingerprint information of the host and the fingerprint information of the host in the write request.

[0057] Before the host obtains the running status information of the host operating system, the method further includes: the trusted firmware pre-storing the fingerprint information of the out-of-band management module.

[0058] The read request includes: fingerprint information of the out-of-band management module; the trusted firmware authenticates the out-of-band management module including: the trusted firmware authenticates the out-of-band management module according to the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request.

[0059] In some exemplary embodiments, the fingerprint information of the host can be sent to the trusted firmware for storage during the initialization process after the host is powered on. For example, the first driver submodule sends the fingerprint information of the host to the trusted firmware for storage.

[0060] In some exemplary embodiments, the fingerprint information of the out-of-band management module can be sent to the trusted firmware for storage during the initialization process after the out-of-band management module is powered on. For example, the second driver submodule sends the fingerprint information of the out-of-band management module to the trusted firmware for storage.

[0061] In some exemplary embodiments, if the trusted firmware fails to authenticate the host, the trusted firmware discards the running state of the host operating system.

[0062] In some exemplary embodiments, if the trusted firmware fails to authenticate the out-of-band management module, the trusted firmware does not respond to the read request or returns a read failure message.

[0063] In some exemplary embodiments, the trusted firmware authenticates the host based on pre-stored fingerprint information of the host and the fingerprint information of the host in the write request, including: the trusted firmware compares the pre-stored fingerprint information of the host with the fingerprint information of the host in the write request, and when the pre-stored fingerprint information of the host and the fingerprint information of the host in the write request are the same, the authentication is passed; when the pre-stored fingerprint information of the host and the fingerprint information of the host in the write request are different, the authentication fails.

[0064] In some exemplary embodiments, the trusted firmware authenticates the host based on the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request, including: the trusted firmware compares the pre-stored fingerprint information of the out-of-band management module with the fingerprint information of the out-of-band management module in the read request, and when the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request are the same, the authentication is passed; when the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request are different, the authentication fails.

[0065] In some exemplary embodiments, after the host sends a write request to the trusted firmware, before the trusted firmware writes the running status information of the host operating system into the second shared memory, the method further includes: the trusted firmware encrypting the running status information of the host operating system.

[0066] The trusted firmware writing the running status information of the host operating system into the second shared memory includes: the trusted firmware writing the encrypted running status information of the host operating system into the second shared memory.

[0067] After the out-of-band management module sends a read request to the trusted firmware, before the trusted firmware sends the running status information of the host operating system in the first shared memory to the out-of-band management module, the method further includes: the trusted firmware decrypting the running status information of the host operating system in the first shared memory.

[0068] The trusted firmware sending the running status information of the host operating system in the first shared memory to the out-of-band management module includes: the trusted firmware sending the decrypted running status information of the host operating system to the out-of-band management module.

[0069] In some exemplary embodiments, when the trusted firmware successfully authenticates the host, before writing the running status information of the host operating system into the second shared memory, the method further includes: encrypting the running status information of the host operating system.

[0070] Writing the running status information of the host operating system into the second shared memory includes: writing the encrypted running status information of the host operating system into the second shared memory.

[0071] When the trusted firmware authenticates the out-of-band management module, before sending the running status information of the host operating system in the first shared memory to the out-of-band management module, the method further includes: decrypting the running status information of the host operating system in the first shared memory.

[0072] Sending the running status information of the host operating system in the first shared memory to the out-of-band management module includes: sending the decrypted running status information of the host operating system to the out-of-band management module.

[0073] In some exemplary embodiments, the write request further includes: a write address; when the trusted firmware authenticates the host and the write address is within the address range of the second shared memory, writing the running status information of the host operating system into the second shared memory.

[0074] The read request also includes: a read address; when the trusted firmware authenticates the out-of-band management module and the read address is within the address range of the first shared memory, the running status information of the host operating system in the first shared memory is sent to the out-of-band management module.

[0075] In some exemplary embodiments, when the written address is not within the address range of the second shared memory, the trusted firmware discards the running state information of the host operating system.

[0076] In some exemplary embodiments, if the read address is not within the address range of the first shared memory, the trusted firmware does not respond to the read request or returns a read failure message.

[0077] In some exemplary embodiments, after the out-of-band management module reads the running status information of the host operating system in the first shared memory, the method further includes: the out-of-band management module displays the running status information of the host operating system.

[0078] In some exemplary embodiments, the method further includes: when a fatal error occurs in the host, the host dumps the faulty memory image.

[0079] In some exemplary embodiments, the host performing dumping of the faulty memory image includes: the host jumping to the second kernel to perform dumping of the faulty memory image.

[0080] The host operating system monitoring method provided in the embodiment of the present application can obtain the operating status information of the host operating system by the out-of-band management module without adding hardware and without connecting the out-of-band management module and the host, thereby realizing out-of-band monitoring and providing great convenience for operation and maintenance operations in scenarios such as large-scale cloud computing and server clusters.

[0081] In order to more completely present the specific implementation process of the host operating system monitoring method of the embodiment of the present application, examples are listed below for detailed description. The listed examples are not used to limit the protection scope of the embodiment of the present application.

[0082] Example

[0083] As shown in FIG2 , the host operating system monitoring method according to an example embodiment of the present application includes the following steps 200 to 214 .

[0084] In step 200, after being powered on, the trusted firmware allocates a first shared memory to the out-of-band management module and allocates a second shared memory to the host.

[0085] In step 201 , the out-of-band management module registers the second driver submodule with the trusted firmware after being powered on, and the host registers the first driver submodule with the trusted firmware after being powered on.

[0086] In step 202, the out-of-band management module obtains the address of the first shared memory from the trusted firmware and sends the fingerprint information of the out-of-band management module to the trusted firmware for storage; the host obtains the address of the second shared memory from the trusted firmware and sends the fingerprint information of the host to the trusted firmware for storage.

[0087] In step 203, the trusted firmware periodically sends SDEI events to the host.

[0088] In step 204, the host receives the SDEI event and obtains the running status information of the host operating system.

[0089] In step 205, the host sends a write request to the trusted firmware; wherein the write request includes: a write address, operating status information of the host operating system, and fingerprint information of the host.

[0090] In step 206, the trusted firmware authenticates the host based on the pre-stored fingerprint information of the host and the fingerprint information of the host in the write request. If the authentication is successful, step 207 is executed; if the authentication fails, the running status information of the host operating system is discarded.

[0091] In step 207, the trusted firmware determines whether the write address in the write request is within the address range of the second shared memory. If yes, step 208 is executed; if not, the trusted firmware discards the running status information of the host operating system.

[0092] In step 208, the trusted firmware encrypts the running status information of the host operating system and writes the encrypted running status information of the host operating system into the second shared memory.

[0093] In step 209 , the trusted firmware synchronizes the encrypted running state information of the host operating system in the second shared memory to the first shared memory.

[0094] In step 210, the out-of-band management module sends a read request to the trusted firmware; wherein the read request includes: a read address and fingerprint information of the out-of-band management module.

[0095] In step 211, the trusted firmware authenticates the out-of-band management module based on the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request. If the authentication is successful, step 212 is executed; if the authentication fails, the read request is not responded to.

[0096] In step 212 , the trusted firmware determines whether the read address is within the address range of the first shared memory. If so, step 213 is executed; if not, the read request is not responded to.

[0097] In step 213, the trusted firmware decrypts the encrypted running status information of the host operating system to obtain the running status information of the host operating system, and sends the running status information of the host operating system to the out-of-band management module.

[0098] In step 214 , the out-of-band management module displays the operating status information of the host operating system.

[0099] In a second aspect, referring to FIG. 3 , another embodiment of the present application provides an electronic device, including: an out-of-band management module 301 , a host 302 , and trusted firmware 303 .

[0100] The trusted firmware 303 is configured to allocate a first shared memory for the out-of-band management module and a second shared memory for the host;

[0101] The host 302 includes: at least one first processor 3021; ​​a first memory 3022, on which at least one first program is stored. When the at least one first program is executed by the at least one first processor 3021, the following steps are implemented: obtaining the running status information of the host operating system, and writing the running status information of the host operating system into the second shared memory.

[0102] The trusted firmware is further configured to synchronize the running status information of the host operating system in the second shared memory to the first shared memory.

[0103] Among them, the out-of-band management module 301 includes: at least one second processor 3011; a second memory 3012, and at least one second program is stored on the second memory 3012. When the at least one second program is executed by the at least one second processor 3011, the following steps are implemented: reading the running status information of the host operating system in the first shared memory.

[0104] In some exemplary embodiments, the host 302 further includes: one or more first I / O interfaces 3023 connected between the first processor 3021 and the first memory 3022 , and configured to implement information exchange between the first processor 3021 and the first memory 3022 .

[0105] In some exemplary embodiments, the out-of-band management module 301 further includes: one or more second I / O interfaces 3013 connected between the second processor 3011 and the second memory 3012 , and configured to implement information interaction between the second processor 3011 and the second memory 3012 .

[0106] Among them, the first processor 3021 or the second processor 3011 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the first storage 3022 or the second memory 3012 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the first I / O interface (read-write interface) 3023 is connected between the first processor 3021 and the first memory 3022, and can realize information interaction between the first processor 3021 and the first memory 3022; the second I / O interface (read-write interface) 3013 is connected between the second processor 3011 and the second memory 3012, and can realize information interaction between the second processor 3011 and the second memory 3012; the first I / O interface 3023 or the second I / O interface 3013 includes but is not limited to a data bus (Bus), etc.

[0107] In some exemplary embodiments, the electronic device is a server that cannot trigger a non-maskable interrupt or is included in the server. The server may be an ARM server, for example.

[0108] In some exemplary embodiments, for an ARM server, the trusted firmware may be ATF.

[0109] In some exemplary embodiments, the first shared memory and the second shared memory are isolated from each other, that is, the address range of the first shared memory and the address range of the second shared memory are completely different.

[0110] In some exemplary embodiments, the out-of-band management module 301 can only read data from the first shared memory, and the host 302 can only write data to the second shared memory.

[0111] In some exemplary embodiments, the trusted firmware 303 is further configured to: allocate a first shared memory to the out-of-band management module and allocate a second shared memory to the host during an initialization process after the trusted firmware 303 is powered on.

[0112] In some exemplary embodiments, a first driver submodule may be added to the host. The first driver submodule is part of the first program, and all functions implemented by the host in the embodiments of the present application may be implemented by the first driver submodule. For example, the first driver submodule obtains the running status information of the host operating system and writes the running status information of the host operating system to the second shared memory.

[0113] In some exemplary embodiments, when the at least one first program is executed by the at least one first processor 3021 , the following steps are further implemented: registering the first driver submodule with the trusted firmware during the initialization process after the host is powered on.

[0114] In some exemplary embodiments, the running status information of the host operating system includes at least one of the following: memory information, CPU information, process information, input and output (IO) information, network information, etc.

[0115] In some exemplary embodiments, the memory information includes at least one of the following: information indicating whether the memory is exhausted, memory utilization, etc.

[0116] In some exemplary embodiments, the CPU information includes: CPU utilization, etc.

[0117] In some exemplary embodiments, the process information includes information indicating whether a dead loop occurs in the process.

[0118] In some exemplary embodiments, the IO information includes information indicating whether the IO is hung, etc.

[0119] In some exemplary embodiments, the network information includes information indicating whether the network delay is serious, etc.

[0120] In some exemplary embodiments, when at least one first program is executed by at least one first processor 3021, the following steps are also implemented: upon receiving a monitoring event or a software delegated exception interface (SDEI) event sent by the trusted firmware, the running status information of the host operating system is obtained, and the running status information of the host operating system is written into the second shared memory.

[0121] In some exemplary embodiments, the trusted firmware 303 may periodically send monitoring events or SDEI events to the host.

[0122] In some exemplary embodiments, when the trusted firmware 303 detects that a fatal error occurs in the host, the trusted firmware 303 sends an SDEI event to the host.

[0123] In some exemplary embodiments, fatal errors include at least one of the following: a dead loop occurs in the process currently running on the CPU; other processes except the currently running process cannot be scheduled on the CPU; a serious memory leak occurs; the remaining available memory is less than or equal to a preset threshold; the file system data is corrupted and a consistency failure occurs; the clock interrupt cannot be responded to, etc.

[0124] In some exemplary embodiments, when the trusted firmware 303 detects a hardware abnormality of the host, the trusted firmware 303 sends an SDEI event to the host.

[0125] In some exemplary embodiments, the host hardware abnormality may be, for example, a CPU failure in executing instructions.

[0126] In some exemplary embodiments, the SDEI event is an exclusive mechanism that can preempt other exceptions and has the highest priority. The trusted firmware can transmit special system events to the host through the SDEI event.

[0127] In some exemplary embodiments, a second driver submodule may be added to the out-of-band management module 301. The second driver submodule is part of the second program, and all functions implemented by the out-of-band management module mentioned in the embodiments of the present application may be implemented by the second driver submodule. For example, the second driver submodule may read the operating status information of the host operating system in the first shared memory.

[0128] In some exemplary embodiments, when the at least one second program is executed by the at least one second processor 3011 , the following steps are further implemented: registering the second driver submodule with the trusted firmware after the out-of-band management module is powered on.

[0129] In some exemplary embodiments, when at least one second program is executed by at least one second processor 3011, the following steps are also implemented: obtaining the address of the first shared memory from the trusted firmware; and reading the running status information of the host operating system in the first shared memory according to the address of the first shared memory.

[0130] When at least one first program is executed by at least one first processor 3021, the following steps are also implemented: obtaining the address of the second shared memory from the trusted firmware; and writing the running status information of the host operating system into the second shared memory according to the address of the second shared memory.

[0131] In some exemplary embodiments, when the at least one second program is executed by the at least one second processor 3011 , the following steps are further implemented: obtaining the address of the first shared memory from the trusted firmware during the initialization process after the out-of-band management module is powered on.

[0132] In some exemplary embodiments, when the at least one first program is executed by the at least one first processor 3021 , the following steps are further implemented: obtaining the address of the second shared memory from the trusted firmware during the initialization process after the host is powered on.

[0133] In some exemplary embodiments, when at least one first program is executed by at least one first processor 3021 , the running status information of the host operating system is written into the second shared memory in the following manner: a write request is sent to the trusted firmware.

[0134] The trusted firmware 303 is further configured to authenticate the host, and write the running status information of the host operating system into the second shared memory if the authentication passes.

[0135] When the at least one second program is executed by the at least one second processor 3011, the running status information of the host operating system in the first shared memory is read in the following manner: the out-of-band management module sends a read request to the trusted firmware.

[0136] The trusted firmware 303 is further configured to authenticate the out-of-band management module, and if the authentication is successful, send the running status information of the host operating system in the first shared memory to the out-of-band management module.

[0137] In some exemplary embodiments, the trusted firmware 303 pre-stores fingerprint information of the host.

[0138] Accordingly, the write request includes: fingerprint information of the host.

[0139] The trusted firmware 303 is configured to authenticate the host in the following manner: authenticating the host according to pre-stored fingerprint information of the host and the fingerprint information of the host in the write request.

[0140] The trusted firmware 303 pre-stores the fingerprint information of the out-of-band management module.

[0141] The read request includes: fingerprint information of the out-of-band management module.

[0142] The trusted firmware 303 is configured to authenticate the out-of-band management module in the following manner: authenticating the out-of-band management module according to pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request.

[0143] In some exemplary embodiments, when at least one first program is executed by at least one first processor 3021, the following steps are further implemented: sending the fingerprint information of the host to the trusted firmware for storage during the initialization process after the host is powered on.

[0144] When the at least one second program is executed by the at least one second processor 3011 , the following steps are further implemented: the fingerprint information of the out-of-band management module can be sent to the trusted firmware for storage during the initialization process after the out-of-band management module is powered on.

[0145] In some exemplary embodiments, when the trusted firmware 303 fails to authenticate the host, the trusted firmware 303 discards the running state of the host operating system.

[0146] The trusted firmware 303 is further configured to: not respond to the read request, or return a read failure message, if the out-of-band management module fails to be authenticated.

[0147] In some exemplary embodiments, the trusted firmware 303 is configured to implement authentication of the host based on the pre-stored fingerprint information of the host and the fingerprint information of the host in the write request in the following manner: the pre-stored fingerprint information of the host and the fingerprint information of the host in the write request are compared; if the pre-stored fingerprint information of the host and the fingerprint information of the host in the write request are the same, the authentication is passed; if the pre-stored fingerprint information of the host and the fingerprint information of the host in the write request are different, the authentication fails.

[0148] In some exemplary embodiments, the trusted firmware 303 is configured to implement authentication of the host based on the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request in the following manner: the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request are compared; if the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request are the same, the authentication is passed; if the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request are different, the authentication fails.

[0149] In some exemplary embodiments, when at least one first program is executed by at least one first processor 3021 , the running status information of the host operating system is written into the second shared memory in the following manner: a write request is sent to the trusted firmware.

[0150] The trusted firmware 303 is further configured to write the running status information of the host operating system into the second shared memory.

[0151] When the at least one second program is executed by the at least one second processor 3011, the running status information of the host operating system in the first shared memory is read in the following manner: the out-of-band management module sends a read request to the trusted firmware.

[0152] The trusted firmware 303 is further configured to send the running status information of the host operating system in the first shared memory to the out-of-band management module.

[0153] In some exemplary embodiments, the trusted firmware 303 is further configured to: encrypt the running status information of the host operating system in the trusted firmware 303 when the trusted firmware 303 passes the host authentication; and write the encrypted running status information of the host operating system into the second shared memory.

[0154] The trusted firmware 303 is further configured to: decrypt the host operating system's running status information in the first shared memory when the trusted firmware 303 successfully authenticates the out-of-band management module; and send the decrypted host operating system's running status information to the out-of-band management module.

[0155] In some exemplary embodiments, the write request also includes: the address to be written; the trusted firmware 303 is also configured to: when the trusted firmware 303 passes the host authentication and the address to be written is within the address range of the second shared memory, the trusted firmware 303 writes the running status information of the host operating system into the second shared memory.

[0156] The read request also includes: the read address; the trusted firmware 303 is also configured to: when the trusted firmware 303 authenticates the out-of-band management module and the read address is within the address range of the first shared memory, send the running status information of the host operating system in the first shared memory to the out-of-band management module.

[0157] In some exemplary embodiments, the trusted firmware 303 is further configured to discard the running status information of the host operating system if the written address is not within the address range of the second shared memory.

[0158] In some exemplary embodiments, the trusted firmware 303 is further configured to: not respond to the read request, or return a read failure message, if the read address is not within the address range of the first shared memory.

[0159] In some exemplary embodiments, when the at least one second program is executed by the at least one second processor 3011 , the following steps are further implemented: displaying the running status information of the host operating system.

[0160] In some exemplary embodiments, when the at least one first program is executed by the at least one first processor 3021 , the following steps are further implemented: when a fatal error occurs in the host, a failed memory image is dumped.

[0161] In some exemplary embodiments, when at least one first program is executed by at least one first processor 3021, dumping of the faulty memory image is specifically implemented in the following manner: jumping to the second kernel to dump the faulty memory image.

[0162] In some embodiments, the first processor 3021 , the first memory 3022 , and the first I / O interface 3023 are connected to each other via a first bus 3024 , and further connected to other components of the computing device.

[0163] In some embodiments, the second processor 3011 , the second memory 3012 , and the second I / O interface 3013 are interconnected via a second bus 3014 , and further connected to other components of the computing device.

[0164] In the third aspect, another embodiment of the present application provides a computer-readable medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining the running status information of the host operating system, and writing the running status information of the host operating system into the second shared memory allocated by the trusted firmware; or, reading the running status information of the host operating system in the first shared memory allocated by the trusted firmware.

[0165] In some exemplary embodiments, the first shared memory and the second shared memory are isolated from each other, that is, the address range of the first shared memory and the address range of the second shared memory are completely different.

[0166] In some exemplary embodiments, the running status information of the host operating system includes at least one of the following: memory information, CPU information, process information, IO information, network information, etc.

[0167] In some exemplary embodiments, the memory information includes at least one of the following: information indicating whether the memory is exhausted, memory utilization, etc.

[0168] In some exemplary embodiments, the CPU information includes: CPU utilization, etc.

[0169] In some exemplary embodiments, the process information includes information indicating whether a dead loop occurs in the process.

[0170] In some exemplary embodiments, the IO information includes information indicating whether the IO is hung, etc.

[0171] In some exemplary embodiments, the network information includes information indicating whether the network delay is serious, etc.

[0172] In some exemplary embodiments, when the computer program is executed by the processor, the following method is specifically used to obtain the running status information of the host operating system: when a monitoring event or SDEI event sent by the trusted firmware is received, the running status information of the host operating system is obtained, and the running status information of the host operating system is written into the second shared memory.

[0173] In some exemplary embodiments, when the computer program is executed by the processor, the following steps are further implemented: obtaining the address of the first shared memory from the trusted firmware; when the computer program is executed by the processor, the following method is specifically used to implement reading the running status information of the host operating system in the first shared memory: the out-of-band management module reads the running status information of the host operating system in the first shared memory according to the address of the first shared memory.

[0174] In some exemplary embodiments, when the computer program is executed by the processor, the following steps are further implemented: obtaining the address of the second shared memory from the trusted firmware; when the computer program is executed by the processor, the running status information of the host operating system is written into the second shared memory in the following specific manner: writing the running status information of the host operating system into the second shared memory according to the address of the second shared memory.

[0175] In some exemplary embodiments, when the computer program is executed by the processor, the running status information of the host operating system is written into the second shared memory in the following manner: a write request is sent to the trusted firmware.

[0176] In some exemplary embodiments, the write request includes fingerprint information of the host.

[0177] In some exemplary embodiments, when the computer program is executed by the processor, the running status information of the host operating system in the first shared memory is read in the following manner: sending a read request to the trusted firmware; receiving the running status information of the host operating system in the first shared memory sent by the trusted firmware.

[0178] In some exemplary embodiments, the read request includes fingerprint information of the out-of-band management module.

[0179] The specific implementation process of the computer-readable medium of the present application is the same as the specific implementation process of the host operating system monitoring method of the aforementioned embodiment, and will not be repeated here.

[0180] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0181] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly indicated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the scope of the present application as set forth in the appended claims.

Claims

1. A host operating system monitoring method, applied to a server that cannot trigger a non-maskable interrupt, the method include: The trusted firmware allocates a first shared memory to the out-of-band management module and allocates a second shared memory to the host; The host obtains the running status information of the host operating system, and writes the running status information of the host operating system into the second shared memory; The trusted firmware synchronizes the running status information of the host operating system in the second shared memory to the first shared memory; The out-of-band management module reads the running status information of the host operating system in the first shared memory.

2. The host operating system monitoring method according to claim 1, in, Before the host obtains the running status information of the host operating system, the method further includes: the out-of-band management module obtains the address of the first shared memory from the trusted firmware; the host obtains the address of the second shared memory from the trusted firmware; Writing the running status information of the host operating system into the second shared memory comprises: writing the running status information of the host operating system into the second shared memory according to the address of the second shared memory; The out-of-band management module reading the running status information of the host operating system in the first shared memory includes: the out-of-band management module reading the running status information of the host operating system in the first shared memory according to the address of the first shared memory.

3. The host operating system monitoring method according to claim 1, in, Writing the running status information of the host operating system into the second shared memory comprises: the host sends a write request to the trusted firmware; the trusted firmware authenticates the host, and writes the running status information of the host operating system into the second shared memory if the authentication passes; The out-of-band management module reads the running status information of the host operating system in the first shared memory, including: the out-of-band management module sends a read request to the trusted firmware; the trusted firmware authenticates the out-of-band management module, and if the authentication is passed, sends the running status information of the host operating system in the first shared memory to the out-of-band management module.

4. The host operating system monitoring method according to claim 3, in, In the case that the trusted firmware fails to authenticate the host, the method further includes: the trusted firmware discarding the running state of the host operating system; In the case that the trusted firmware fails to authenticate the out-of-band management module, the method further includes: the trusted firmware does not respond to the read request, or returns a read failure message.

5. The host operating system monitoring method according to claim 3, in, Before the host obtains the running status information of the host operating system, the method further includes: the trusted firmware pre-storing the fingerprint information of the host; wherein the write request includes: the fingerprint information of the host; the trusted firmware The trusted firmware authenticates the host, including: the trusted firmware authenticates the host according to the pre-stored fingerprint information of the host and the fingerprint information of the host in the write request; Before the host obtains the running status information of the host operating system, the method also includes: the trusted firmware pre-stores the fingerprint information of the out-of-band management module; wherein the read request includes: the fingerprint information of the out-of-band management module; the trusted firmware authenticates the out-of-band management module including: the trusted firmware authenticates the out-of-band management module according to the pre-stored fingerprint information of the out-of-band management module and the fingerprint information of the out-of-band management module in the read request.

6. The host operating system monitoring method according to claim 3, in, In the case where the trusted firmware authenticates the host, before writing the running status information of the host operating system into the second shared memory, the method further includes: encrypting the running status information of the host operating system; and writing the running status information of the host operating system into the second shared memory includes: writing the encrypted running status information of the host operating system into the second shared memory; In a case where the trusted firmware authenticates the out-of-band management module, before sending the running status information of the host operating system in the first shared memory to the out-of-band management module, the method further includes: decrypting the running status information of the host operating system in the first shared memory; and sending the running status information of the host operating system in the first shared memory to the out-of-band management module includes: sending the decrypted running status information of the host operating system to the out-of-band management module.

7. The host operating system monitoring method according to claim 3, in, The write request further includes: a written address; when the trusted firmware authenticates the host and the written address is within the address range of the second shared memory, writing the running status information of the host operating system into the second shared memory; The read request also includes: a read address; when the trusted firmware authenticates the out-of-band management module and the read address is within the address range of the first shared memory, the running status information of the host operating system in the first shared memory is sent to the out-of-band management module.

8. The host operating system monitoring method according to any one of claims 1 to 7, wherein the method further comprises: include: In the event of a fatal error in the host, the host performs a dump of the failed memory image.

9. An electronic device, include: An out-of-band management module, a host, and trusted firmware, wherein: The trusted firmware is configured to allocate a first shared memory to the out-of-band management module and a second shared memory to the host; The host comprises: at least one first processor; a first memory, wherein at least one first program is stored in the first memory, and when the at least one first program is executed by the at least one first processor, the following steps are implemented: obtaining the running status information of the host operating system, and writing the running status information of the host operating system into the second shared memory; The trusted firmware is further configured to: synchronize the running status information of the host operating system in the second shared memory to the first shared memory; The out-of-band management module includes: at least one second processor; a second memory, wherein at least one second program is stored in the second memory, and when the at least one second program is executed by the at least one second processor, the following is achieved: Step: Read the running status information of the host operating system in the first shared memory.

10. A computer readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented: Acquire the running status information of the host operating system, and write the running status information of the host operating system into the second shared memory allocated by the trusted firmware; Alternatively, the running status information of the host operating system in the first shared memory allocated by the trusted firmware is read.

Citation Information

Patent Citations

  • Firmware-based trusted platform module for arm processor architectures and trustzone security extensions

    CN103748594A

  • Server and method for data exchange between BMC and BIOS

    CN111190749A

  • ARM-based uefi and uboot sharing method and terminal

    CN114064059A

  • Method for switching execution environment and related equipment thereof

    CN114490448A

  • Virtualization implementation method and device, electronic equipment, medium and ARM (Advanced RISC Machines) platform

    CN114625484A

Cited By

  • Apparatus and method for independent reset and configuration recovery of bmc dual-core heterogeneous system

    CN122963856A