Host partition management method and framework
By dividing BMC into management partitions and connecting the host and BMC with logical processing units, the problems of waste of resources and complexity in server partition management are solved, and efficient target equipment management is achieved, reducing costs and production cycles.
Patent Information
- Application Number
- CN202510897231.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2045-06-30
AI Technical Summary
In the prior art, the server partition management solution has problems such as waste of BMC resources, high hardware complexity, high cost and long production cycle, especially in multiple host partition scenarios, it is difficult to effectively manage target devices.
Divide the BMC into multiple management partitions, correspond to the server's host partition, and connect the host and BMC through logical processing units to achieve interface expansion, reduce hardware complexity and cost, and improve management efficiency.
Through the intervention of the logical processing unit, the target device management of multiple host partitions is realized, which reduces hardware complexity, cost and resource waste, shortens production cycles, and improves management accuracy and efficiency.
Smart Images

Figure CN120407495A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method and architecture for host partition management. Background Art
[0002] Servers usually need to process a large amount of data. To improve their processing capabilities, servers can be partitioned physically. Each partition has complete components such as computing, storage, networking, and cooling support, and these components need to be managed through a Baseboard Management Controller (BMC).
[0003] In related technologies, there are two system architectures to implement the management of each partition component by the BMC. In the first solution, a BMC is equipped for each partition, which has high hardware complexity and cost, and there is waste of BMC resources. In the second solution, one BMC is configured for one or more partitions, or even all partitions share one BMC, which will result in high design complexity, long production cycle, and high cost of the BMC. Summary of the Invention
[0004] This application provides a method and architecture for host partition management to at least solve the problems of high complexity, high cost, waste of BMC resources, and long production cycle in related technologies.
[0005] This application provides a method for host partition management, which is applied to a host partition management architecture. The host partition management architecture includes: a host, a logical processing unit, and a management unit; the host includes multiple host partitions, and the management unit includes multiple management partitions; the method includes:
[0006] The logical processing unit receives a first management command sent by the management partition, and parses the command identifier and the host partition identifier of the first management command. The host partition identifier corresponds to the host partition of the management partition;
[0007] The logical processing unit determines the target device memory address corresponding to the first management command according to the command identifier and the host partition identifier;
[0008] The logical processing unit generates a second management command according to the target device memory address and sends it to the target device of the host partition for execution.
[0009] This application also provides a host partition management architecture. The host partition management architecture includes: a host, a logical processing unit, and a management unit; the host includes multiple host partitions, and the management unit includes multiple management partitions; the logical processing unit is used to execute the foregoing host partition management method.
[0010] Through the present application, the management unit is also divided into multiple management partitions, corresponding to the host partitions of the server, and connected between the host and the management unit through a logic processing unit. The logic processing unit accurately locates the target device according to the command identifier and the host partition identifier in the first management command of the management partition, and generates a second management command executable by the target device, so that the target device can accurately execute the second management command according to the target device memory address in the second management command. In this way, interface expansion can be achieved through the logic processing unit to provide sufficient interfaces for the target devices of multiple host partitions of the host, meeting the requirements of the target devices of multiple host partitions. In addition, the present application only requires one management unit to implement host partition management, thereby reducing the hardware complexity, cost, and resource waste. In addition, the logic processing unit of the present application can implement logic processing, and the management partition does not need to perform complex logic processing, thereby reducing the design complexity of the management partition, shortening its production cycle, and reducing its cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present application, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0012] Figure 1 It is a schematic diagram of a host partition management architecture provided by an embodiment of the present application;
[0013] Figure 2 It is a schematic flowchart of a host partition management method provided by an embodiment of the present application;
[0014] Figure 3 It is a schematic diagram of the format of a first management command provided by an embodiment of the present application;
[0015] Figure 4 It is a schematic diagram of the format of a second management command as a write command provided by an embodiment of the present application;
[0016] Figure 5 It is a schematic diagram of the format of a second management command as a read command provided by an embodiment of the present application;
[0017] Figure 6 It is a schematic diagram of the format of a response message provided by an embodiment of the present application;
[0018] Figure 7 It is a schematic diagram of the format of a channel application command provided by an embodiment of the present application;
[0019] Figure 8It is a schematic diagram of data flow in the target device management process provided by an embodiment of the present application. Detailed implementation manners
[0020] Next, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0021] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0022] In recent years, with the rapid development of the semiconductor industry and integrated circuit technology, as the core device in the fields of cloud computing, artificial intelligence, big data, etc., servers are widely used in various data processing scenarios. To improve its processing capacity, the server can be partitioned in hardware, and each partition can independently run a set of host systems to independently carry services and provide services. Each partition needs to be supported by complete target devices such as computing, storage, network drivers, and radiators, and the management of these target devices depends on the BMC. As the number of partitions increases, the number of target devices of the server will increase significantly compared with the traditional non-partitioned server system. This poses a greater challenge to the BMC of the server because the controller resources provided by the current general BMC are limited and cannot provide enough interfaces to manage the target devices of multiple host partitions, making it difficult to meet the growing device management requirements.
[0023] To achieve larger-scale target device management in scenarios with multiple host partitions, one possible solution is to equip each partition with an independent BMC. However, this solution results in each BMC serving only one partition, leaving residual BMC resources and causing waste of BMC resources. Moreover, a server requires more BMCs, increasing the server cost and hardware complexity. Another possible solution is to use a higher-specification BMC, which usually integrates more interface resources, enabling one BMC to provide management to multiple partitions simultaneously. However, this solution still has some problems: First, when upgrading the interface resources of the BMC, its overall architecture needs to be reconstructed, which not only significantly increases the design complexity but also causes a substantial increase in the BMC cost. Second, the design, tape-out, manufacturing, and debugging of the BMC take a long time, resulting in a long production cycle and high cost, which is not conducive to rapid implementation and wide application.
[0024] To solve the above technical problems, in this application, the BMC is also divided into multiple partitions, called management partitions, corresponding to the host partitions of the server, and connected between the host and the BMC through a logic processing unit. The logic processing unit is responsible for data interaction between the host and the BMC. In this way, interface expansion can be achieved through the logic processing unit to provide sufficient interfaces for the target devices in multiple host partitions of the host, meeting the target device requirements of multiple host partitions. In addition, this application only requires one BMC to achieve management, thus reducing the hardware complexity, cost, and resource waste. Moreover, the management partitions of this application interact with the host partitions through routing components, and the BMC does not need to perform complex logic processing. The complex logic processing can be executed by the routing components, thereby reducing the design complexity of the BMC, shortening its production cycle, and reducing its cost. On this basis, the logic processing unit can parse the management command to obtain the command identifier and the host partition identifier to determine the target device register address. In this way, the target device can accurately achieve management according to the target device register address.
[0025] Figure 1 is a schematic diagram of a host partition management architecture provided by an embodiment of this application. Refer to Figure 1As shown in the figure, the host partition management architecture includes a host, a logic processing unit, and a management unit. Here, the management unit can be the aforementioned BMC, and the logic processing unit is respectively connected to the host and the BMC. The host includes multiple host partitions, the logic processing unit includes a first transmission component, a routing component, and a second transmission component connected in sequence, and the BMC includes multiple management partitions. The logic processing unit can be implemented by any integrated circuit with logic processing capabilities. For example, common circuits can be CPLD (Complex Programmable Logic Device), FPGA (Field Programmable Gate Array), and ASIC (Application Specific Integrated Circuits).
[0026] Among them, a target device is set in each of the above host partitions, and the target devices are all connected to the second transmission component, realizing the connection between the host partition and the logic processing unit. The above management partition and the first transmission component realize the connection between the BMC and the logic processing unit.
[0027] Further, referring to Figure 1 As shown in the figure, the second transmission component may include one or more second service processing interfaces for transmitting data between the routing component and the target device. Each second service processing interface can be connected to one or more target devices, and all the second service processing interfaces of the logic processing unit are connected to the routing component.
[0028] A management partition includes one or more service management interfaces and a first channel management interface. Correspondingly, the first transmission component may include one or more first service processing interfaces and a second channel management interface. The first service processing interface is used to transmit management commands or response data for the target device between the routing component and the service management interface, and one first service processing interface is connected to one service management interface. The second channel management interface and the first channel management interface are used to manage the connection channel between the service management interface and the first service processing interface, and the second channel management interface is connected to the first channel management interfaces of all management partitions.
[0029] Figure 1 Exemplarily, two host partitions HA1 and HA2, two management partitions MA1 and MA2 are given. There is one target device, two second service processing interfaces, and two first service processing interfaces in each host partition. The number of management partitions is the same as the number of host partitions. The management partition MA1 is used to manage the target device in the host partition HA1, and the management partition MA2 is used to manage the target device in the host partition MA2.
[0030] It can be understood that in practical applications, the number of host partitions, the number of management partitions, the number of first service processing interfaces, the number of second service processing interfaces, and the number of service management interfaces can all be flexibly set according to the actual scenario requirements. The above target device can be any device required for the operation of the host, for example, a network card, a hard disk, a GPU (Graph Processing Unit, graphics processing unit), a temperature sensor, etc.
[0031] Based on Figure 1 In the structure shown, when the management partition manages the target device, the management command can reach the target device via the service management interface, the first service processing interface, the routing component, and the second service processing interface of the management partition, while the response data can reach the service management interface of the management partition via the target device, the second service processing interface, the routing component, and the first service processing interface.
[0032] When expanding the interface through the logic processing circuit, more second service processing interfaces need to be provided, and the total number of second service processing interfaces of the logic processing unit may be greater than the total number of service management interfaces of each management partition in the management unit. In this way, when the service management interfaces provided by the management unit are limited, more second service processing interfaces obtained through expansion can still achieve the connection of the target devices of multiple host partitions and meet the management requirements of the target devices of multiple host partitions.
[0033] Of course, it should be noted that the above routing component does not simply transmit data, but needs to parse the data, and the specific functions can be referred to the corresponding description of the host management partition management method in the figure.
[0034] Finally, it should be noted that the above first channel management interface, service management interface, first service processing interface, second channel management interface, and second service processing interface in the embodiments of the present application can be I2C (Inter-Integrated Circuit, integrated circuit bus) interfaces, so the target device can be called an I2C device.
[0035] In order to enable those skilled in the art of this technology to better understand the solution of the present application, the following further elaborates the present application in conjunction with the accompanying drawings and specific implementation manners.
[0036] Based on Figure 1 the host partition management architecture shown, Figure 2 is a schematic flow chart of the host partition management method provided by the embodiments of the present application. As Figure 2 shown, the embodiments of the present application provide a host partition management method, and the method is described in detail as follows:
[0037] S201: The logic processing unit receives the first management command sent by the management partition, and parses the command identifier and the host partition identifier of the first management command. The host partition identifier corresponds to the host partition of the management partition.
[0038] When the logic processing unit includes the first transmission component, the routing component, and the second transmission component as shown in Figure 1 the above-mentioned logic processing unit receives the first management command sent by the management partition, and parses the command identifier and the host partition identifier of the first management command, including: the first transmission component receives the first management command sent by the management partition, and the first transmission component sends the first management command to the routing component, and the routing component parses the command identifier and the host partition identifier of the first management command.
[0039] In some embodiments, the above-mentioned first transmission component includes one or more first service processing interfaces, each first service processing interface is connected to the routing component, and the first service processing interface is used to transmit the first management command and the response data for the first management command. Therefore, the above-mentioned first transmission component receives the first management command sent by the management partition, and the first transmission component sends the first management command to the routing component, and the routing component parses the command identifier and the host partition identifier of the first management command, including:
[0040] The first service processing interface receives the first management command and parses the slave address of the first management command; when the slave address of the first management command corresponds to the first service processing interface, the first service processing interface sends the first management command to the routing component of the logic processing unit; the routing component parses the command identifier and the host partition identifier of the first management command. In this way, it is possible to avoid the first service processing interface from processing incorrect commands, and improve the processing accuracy of the first management command.
[0041] The routing component can extract the slave address from the first management command. When the slave address of the first management command corresponds to the first service processing interface, it means that the first management command is a command sent to the first service processing interface, and the first service processing interface will send the first management command to the routing component for further processing; when the slave address of the first management command does not correspond to the first service processing interface, it means that the first management command is not a command sent to the first service processing interface, so the first service processing interface will not forward the first management command to the routing component for processing.
[0042] Among them, the first management command is a command for the management partition to manage the target device, including but not limited to: write command, read command, modify command, etc. The first management command is generated and sent by a management partition of the management unit, and is used to manage the target device in the host partition corresponding to the management partition. For example, when Figure 1When the management partition MA1 in it needs to manage the target device in the corresponding host partition HA1, it determines the command identifier and the host partition identifier according to the management requirements, and generates a first management command according to the command representation and the host partition identifier.
[0043] The above command identifier is used to indicate the specific management operation of the first management command and is the unique identifier of a management operation. It can include the target device identifier targeted by the management operation and the management operation identifier of the management operation. In this way, the first management command can be accurately represented according to the command identifier, and then the target device can be accurately managed. For example, it can be the concatenation result of the target device identifier and the management operation identifier, or other mapping relationships. Among them, the target device identifier is used to indicate the target device managed by the first management command, and the management operation identifier is used to indicate the specific management operation content of the first management command.
[0044] Table 1 is a mapping relationship table of a command identifier, a target device identifier, a management operation identifier, and a target device register address provided by an embodiment of the present application. The command identifier in Table 1 is the concatenation result of the target device identifier and the management operation identifier.
[0045]
[0046] Table 1
[0047] It can be seen from Table 1 that the target device identifier 100 corresponds to the hard disk, the target device identifier 101 corresponds to the network card, the target device identifier 110 corresponds to the GPU acceleration card, and 111 corresponds to the temperature sensor. Different target device identifiers correspond to different target devices. For the hard disk, network card, and temperature sensor, there is no need to divide multiple read contents. Therefore, the management operation identifier 00 corresponds to the read operation. For the GPU acceleration card, it has multiple readable contents. Therefore, the management operation identifiers 00 and 01 correspond to reading the acceleration card identifier and the manufacturer identifier respectively.
[0048] The above host partition identifier is used to indicate the host partition managed by the first management command and is the unique identifier of the host partition. There is a certain mapping relationship between the host partition identifier and the management partition identifier, which is used to indicate the relationship between the host partition and the management partition. In some simplest implementation manners, the host partition and the management partition can establish a corresponding relationship through identifiers. That is to say, the management partition is used to manage the host partition with the same identifier as it.
[0049] Figure 3 It is a schematic diagram of the format of a first management command provided by an embodiment of the present application. Refer to Figure 3As shown, the first management command sequentially includes a start signal S, slave addresses A6 to A0, a read / write flag 0, target command identifiers B7 to B5, host partition identifiers B4 to B2, management operation identifiers B1 and B0, command parameters D6 to D0, and an end signal P. During the process of the management partition sending the above first management command to the logic processing unit, the logic processing unit will reply to the management partition with a response signal for the first management command to determine that the first management command has been successfully received. The above response signal includes: an acknowledgement signal A.
[0050] Specifically refer to Figure 3 As shown, after the management partition sends the start signal S, seven-bit slave addresses A6 to A0, and the read / write flag 0 to the logic processing unit, the logic processing unit replies to the management partition with the acknowledgement signal A, indicating that it has received the start signal S, seven-bit slave addresses A6 to A0, and the read / write flag 0. The above read / write flag 0 sent by the management partition is used to indicate that the management partition will subsequently write the target command identifiers B7 to B5, host partition identifiers B4 to B2, and management operation identifiers B1 and B0 to the main line. The main line is the main line connecting the management partition and the logic processing unit, that is, the connection channel corresponding to the service management interface for sending the first management command.
[0051] The management partition continues to send the target command identifiers B7 to B5, host partition identifiers B4 to B2, and management operation identifiers B1 and B0 to the logic processing unit, and after receiving the acknowledgement signal A replied by the logic processing unit, continues to send the command parameters D6 to D0 to send the data to be written by the first management command to the logic processing unit through the command parameters D6 to D0. When the first management command is a read command, Figure 3 the command parameters in
[0052] can be invalid data or not transmitted.
[0053] S202: The logic processing unit determines the target device memory address corresponding to the first management command according to the command identifier and the host partition identifier.
[0054] When the logic processing unit includes as Figure 1When the first transmission component, the routing component, and the second transmission component shown above are involved, the above-mentioned logic processing unit determines the target device memory address corresponding to the first management command according to the command identifier and the host partition identifier, including: the routing component determines the target device memory address corresponding to the first management command according to the command identifier and the host partition identifier. The target device memory address is the address used to store the target device-related parameters and is also the address to be accessed by the first management command address, including: reading the target device-related parameters from the target device memory address, and / or writing the target device-related parameters to the target device memory address.
[0055] Among them, the target device memory address is the memory address in the target device managed by the first management command. The first management command is used to write data to and / or read data from this memory address to achieve the management of the target device.
[0056] In some embodiments, the above-mentioned routing component determines the target device memory address corresponding to the first management command according to the command identifier and the host partition identifier, including: the routing component searches for the target device memory address from the preset mapping relationship according to the command identifier and the host partition identifier. In this way, the routing component can quickly and accurately determine the target device memory address according to the locally stored preset mapping relationship, thereby ensuring the accuracy and speed of generating the second management command, and ultimately improving the accuracy and speed of target device management.
[0057] Among them, the preset mapping relationship is used to indicate the mapping relationship between the command identifier, the host partition identifier, and the target device memory address. The preset mapping relationship can be a mapping table, which stores multiple mapping records, and each mapping record is used to indicate the mapping relationship between a command identifier, a host partition identifier, and a target device memory.
[0058] As can be seen from the above preset mapping relationship, the parameter information accessed by different commands in different host partitions is different. For the same device or different devices in different host partitions, due to different host partition identifiers, even if the command identifiers are the same, their corresponding target device memory addresses are different. For different target devices in the same host partition, due to different target device identifiers, the command identifiers are different, and thus their corresponding target device memory addresses are also different. For example, referring to Table 1, the target device register addresses for reading the hard disk temperature, network card temperature, and temperature sensor temperature are all different, which are ADD1, ADD2, and ADD5 respectively. For the same target device in the same host partition, even if the host partition identifier and the target device identifier are the same, but the management operation identifier is different, the command identifier is different, and thus their corresponding target device memory addresses are also different. For example, referring to Table 1, the target device memory addresses for reading the GPU acceleration card identifier and reading the GPU acceleration card manufacturer identifier are also different, which are ADD3 and ADD4 respectively.
[0059] S203: The logic processing unit generates a second management command according to the target device memory address and sends it to the target device in the host partition for execution.
[0060] Among them, the second management command is the command sent by the logic processing unit to the target device and is a management command generated according to the first management command. The second management command carries at least the target device memory address.
[0061] In a possible implementation manner, the above-mentioned logic processing unit generates a second management command according to the target device memory address and sends it to the target device in the host partition for execution, including: The routing component determines the target format of the second management command according to the command identifier; the routing component parses the command parameters from the first management command; the routing component generates the second management command in the target format according to the target device memory address and the command parameters. After that, the routing component sends the second management command in the target format to the target device in the host partition for execution. In this way, the embodiment of the present application can further limit the management operation of the target device in combination with the command parameters, which can improve the accuracy of the management operation. In addition, the present application can also identify the type of the second management command according to the command identifier, and then generate a command in the corresponding format, which can implement the execution of various types of commands and make the management of the target device diversified.
[0062] It can be understood that different commands can correspond to different target formats. Here, the target formats mainly include read command formats and write command formats. That is to say, the formats of the second management command being a read command and the second management command being a write command are different. For example, their lengths and / or the included contents are different. The length of the write command may be greater than the length of the read command, and the write command may also include the command parameters to be written.
[0063] In a possible implementation, determining the target format of the second management command according to the command identifier includes: parsing the command identifier to obtain a management operation identifier, and determining whether the first management command is a write command or a read command according to the management operation identifier. The second management command has the same type as the first management command, and the specific corresponding relationship can be referred to as shown in Table 1. After determining that the type of the second management command is a read command or a write command, the target format of the second management type can be determined according to the type of the second management command, and the mapping relationship between the target format and the type of the second management command can be preset in advance.
[0064] Figure 4 It is a schematic diagram of the format when the second management command provided by the embodiment of the present application is a write command. Refer to Figure 4 As shown, the second management command sequentially includes a start signal S, seven-bit slave address A6 to A0, read / write flag 0, target device memory address B7 to B0, command parameters D6 to D0, and an end signal P. During the process of the logic processing unit sending the above second management command to the host partition, the host partition will send a response signal to the logic processing unit for the second management command to determine that the second management command has been successfully received. The above response signal includes: an acknowledgment signal A.
[0065] Specifically refer to Figure 4 As shown, after the logic processing unit sends the start signal S, seven-bit slave address A6 to A0, and read / write flag 0 to the target device of the host partition, the target device sends an acknowledgment signal to the logic processing unit, indicating that it has received the start signal S, seven-bit slave address A6 to A0, and read / write flag 0. The above read / write flag 0 sent by the logic processing unit is used to indicate that the logic processing unit will subsequently write the target device memory address B7 to B0 to the main line, which is the main line connecting the target device and the logic processing unit, that is, the connection channel corresponding to the second service processing interface for sending the second management command.
[0066] The logic processing unit continues to send the target device register address B7 to B0 to the target device, and after receiving the acknowledgment signal A replied by the target device, continues to send the command parameters D6 to D0 to send the data to be written by the second management command to the target device through the command parameters D6 to D0.
[0067] When the logic processing unit receives the acknowledgment signal A replied by the target device for the command parameters D6 to D0, it then sends the end signal P to the target device, indicating that the second management command has been sent.
[0068] Figure 5 It is a schematic diagram of the format when the second management command provided by the embodiment of the present application is a read command. Refer to Figure 5As shown, the second management command sequentially includes a start signal S, slave addresses A6 to A0, a read / write flag 0, a target device memory address B7 to B0, slave addresses A6 to A0, a read / write flag 1, an acknowledgement signal, and an end signal P. During the process of the logic processing unit sending the above second management command to the host partition, the host partition will reply to the logic processing unit with a response signal for the second management command. The above response signal includes: an acknowledgement signal A, response data D7 to D0.
[0069] After the logic processing unit sends the start signal S, slave addresses A6 to A0, and the read / write flag 0 to the target device of the host partition, the target device replies to the logic processing unit with an acknowledgement signal A, indicating that it has received the start signal S, the seven-bit slave addresses A6 to A0, and the read / write flag 0. The above read / write flag sent by the logic processing unit being 0 is used to indicate that the logic processing unit will subsequently write the target device memory address B7 to B0 to the main line, which is the main line connecting the target device and the logic processing unit, that is, the connection channel corresponding to the second service processing interface for sending the second management command.
[0070] The logic processing unit continues to send the target device register address B7 to B0 to the target device, and after receiving the acknowledgement signal A replied by the target device, continues to send the slave addresses A6 to A0 and the read / write flag 1. Here, the read / write flag 1 is used to indicate that the logic processing unit will subsequently read the response data from the main line, which is the main line connecting the target device and the logic processing unit, that is, the connection channel corresponding to the second service processing interface for sending the second management command.
[0071] After the target device replies with an acknowledgement signal A for the slave addresses A6 to A0, it then sends the response data D7 to D0 to the logic processing unit.
[0072] After the logic processing unit sends an acknowledgement signal A for the response data to the target device, it sends the end signal P, representing that the second management command has been sent.
[0073] It can be understood that when it is determined that the second management command is a write command, the second management command can be generated according to the Figure 4 shown target format. When it is determined that the second management command is a read command, the second management command can be generated according to the Figure 5 shown target format. In this way, when the target device receives the Figure 4 or Figure 5 shown second management command, it can determine whether the command is a read command or a write command according to the format, and then correctly execute the above second management command.
[0074] Among them, the command parameter is the data content written to the memory address of the target device. Therefore, when the second management command is a read command, the second management command does not include the command parameter. When the second management command is a write command, the second management command includes the command parameter. The command parameter is parsed from the first management command.
[0075] In some possible implementation manners, the routing component sends the second management command to the target device of the host partition for execution, including: the routing component parses the command identifier to obtain the target device identifier, and sends the second management command to the target device of the host partition for execution through the second service processing interface corresponding to the host partition identifier and the target device identifier. Among them, the second service processing interface is the interface to which the target device managed by the first management command is connected. Different target devices of different host partitions are connected to different second service processing interfaces. The embodiment of the present application determines the second service processing interface according to the host partition identifier and the target device identifier to ensure that the second management command is sent to the target device of the corresponding host partition, avoid incorrect sending of the second management command, and improve the management accuracy of the target device.
[0076] Refer to Figure 3 As shown, the routing component can extract the target device identifier from the format of the first management command, and extract the second service processing interface from the device interface mapping relationship stored locally in the routing component. The device interface mapping relationship here includes the mapping relationship between the host partition identifier, the target device identifier, and the second service processing interface.
[0077] In some implementation manners, the routing component generates a second management command in a target format according to the target device memory address and the command parameter, including: the routing component determines the slave address of the second management command according to the target device identifier; the routing component generates a second management command in a target format according to the slave address of the second management command, the target device storage address, and the command parameter. Correspondingly, when the target device of the host partition receives the second management command, it parses the slave address of the second management command; when the slave address of the second management command corresponds to the target device, it executes the second management command; when the slave address of the second management command does not correspond to the target device, it does not execute the second management command. The embodiment of the present application can verify the second management command according to the slave address of the second management command, avoid incorrect sending of the second management command, and help improve the management accuracy.
[0078] Among them, the slave address of the second management command is used to indicate the target device that receives the second management command, and can be the address of the target device or the target device identifier. The relationship between the target device identifier and the address of the target device can be pre-stored in the routing component.
[0079] After the routing component determines the slave address, the target device storage address, and the command parameter of the second management command above, in accordance withFigure 4 or Figure 5 generate a corresponding second management command in the target format shown.
[0080] It can be understood that when the above first management command and the above second management command are write commands, after the target device executes the above second management command, it does not need to return response data to the logical processing device. However, when the first management command and the above second management command are read commands, after the target device executes the above second management command, it needs to return response data to the logical processing device. The response data can be generated and transmitted through the following steps:
[0081] First, after the routing component generates the second management command according to the first management command, the routing component can record the command mapping relationship between the first management command and the second management command for subsequent generation of response messages. Then, the second service processing interface receives the response data sent by the target device and forwards it to the routing component. Finally, the routing component generates a response message based on the command mapping relationship and the response data, and sends the response message to the management partition through the first service processing interface of the logical processing unit. In this way, the response message can include the same content as the first management command, so that after the management partition receives the response message, it can establish the relationship between the first management command and the response message to perform subsequent processing on the response message, improving the subsequent processing accuracy of the response data.
[0082] Among them, the response data here is Figure 5 the response data shown, and the routing component can generate a response message according to the Figure 6 format shown. That is to say, the routing component needs to determine the first management command corresponding to the second management command from the command mapping relationship, and then add the response data of the second management command, the command identifier, and the host partition identifier in the first management command to the response message according to the Figure 6 format shown.
[0083] In some embodiments, the routing component generates a response message according to the command mapping relationship and the response data, including: the routing component determines the corresponding first management command from the command mapping relationship according to the second management command corresponding to the response data; then, the routing component extracts the command identifier and the host partition identifier in the first management command, and generates a response message according to the command identifier, the host partition identifier, and the response data. After the management partition receives the response message, it can establish the mapping relationship between the response message and the first management command according to the command identifier and the host partition identifier therein, so that the management partition can perform subsequent processing on the response data in the response message in the software interface for calling the first management command. In this way, accurate processing of the response data can be ensured, and the management accuracy of the target device can be improved.
[0084] It can be understood that the second management command and response data are transmitted between the routing component and the target device in the format shown by Figure 5 After the routing component sequentially sends the start signal, slave address, read / write flag, target device memory address, slave address, and read / write flag to the target device, the routing component waits for the response data for this second management command.
[0085] In some possible implementation manners, a response message is generated according to the command identifier, host partition identifier, and response data, including: the routing component determines the slave address of the response message according to the first channel identifier; the routing component generates the response message according to the slave address, command identifier, host partition identifier, and response data of the response message. In this way, the management partition can be indicated by the slave address of the response data, ensuring the accurate sending and processing of the response data.
[0086] It can be understood that the routing component can add the slave address, command identifier, host partition identifier, and response data of the response message to the response data in the format shown by Figure 6 Figure 10 shows the format schematic diagram of the response message provided by the embodiment of the present application. Referring to
[0087] Figure 6 Figure 11 shows that the response message sequentially includes a start signal S, slave addresses A6 to A0, a read / write flag 0, target command identifiers B7 to B5, host partition identifiers B4 to B2, management operation identifiers B1 and B0, response data D7 to D0, an acknowledgment signal A, and an end signal P. During the process of the logic processing unit sending the above second management command to the management partition, the management partition will reply to the logic processing unit with a response signal for the response message to determine that the response message has been successfully received. The above response signal includes: an acknowledgment signal A. Figure 6 After the logic processing unit sends the start signal S, slave addresses A6 to A0, and read / write flag 0 to the management partition, the management partition replies to the logic processing unit with an acknowledgment signal A, indicating that it has received the start signal S, seven-bit slave addresses A6 to A0, and read / write flag 0. The above read / write flag sent by the logic processing unit is 0, which is used to indicate that the logic processing unit will subsequently write the target command identifiers B7 to B5, host partition identifiers B4 to B2, and management operation identifiers B1 and B0 to the main line. The main line is the main line connecting the logic processing unit and the management partition, that is, the connection channel corresponding to the first service processing interface for sending the response message.
[0088] The logic processing unit continues to send the target command identifiers B7 to B5, host partition identifiers B4 to B2, and management operation identifiers B1 and B0 to the management partition, and continues to send the response data D7 to D0 after receiving the acknowledgment signal A replied by the management partition.
[0089] The logic processing unit continues to send the target command identifiers B7 to B5, host partition identifiers B4 to B2, and management operation identifiers B1 and B0 to the management partition, and continues to send the response data D7 to D0 after receiving the acknowledgment signal A replied by the management partition.
[0090] After the management partition replies with an acknowledgment signal A for the response data D7 to D0, the logic processing unit then sends an end signal, indicating that the response message has been sent.
[0091] Before the above routing component sends the above response message to the management partition, the routing component also needs to apply for a channel from the management partition. Specifically, the routing component generates a response message according to the command mapping relationship and the response data, and sends the response message to the management partition through the first service processing interface of the logic processing unit, including:
[0092] The second channel management interface of the logic processing unit sends a second channel request command to the first channel management interface of the management partition; the second channel management interface receives the first channel identifier sent by the first channel management interface and forwards it to the routing component; the routing component generates a response message according to the command mapping relationship and the response data, and sends the response message to the management partition through the first service processing interface corresponding to the first channel identifier. In this way, an idle channel can be selected as much as possible to transmit the response message, which helps to improve the transmission success rate of the response message.
[0093] Among them, the second channel request command is used to apply for a transmission channel for the response data, and the transmission channel for the response data is the connection channel from the first service processing interface in the logic processing unit to the service management interface of the management partition. There are multiple first service processing interfaces in the logic processing unit, and there are multiple service management interfaces in the management partition. Each first service processing interface is connected to a service management interface to form a connection channel. Therefore, there are multiple connection channels between the logic processing unit and the management partition, and the first channel identifier is used to indicate one of the connection channels.
[0094] After the first channel management interface generates the above first channel identifier, the corresponding first service processing interface can be determined, and there is a mapping relationship among the first channel identifier, the first service processing interface, and the service management interface in the routing component.
[0095] In some embodiments, the second channel management interface of the above logic processing unit sends a second channel request command to the first channel management interface of the management partition, including: the second channel management interface of the logic processing unit determines the first channel management interface identifier of the corresponding management partition according to the host partition identifier as the slave address of the second channel request command; the second channel management interface generates a second channel request command according to the slave address of the second channel request command and the channel request command identifier; the second channel management interface sends the second channel request command to the first channel management interface of the management partition. In this way, the first channel management interface can identify the second channel request command according to the slave address and the channel request command identifier in the second channel request command, and then accurately execute the second channel request command, which helps to ensure the accuracy of channel allocation.
[0096] Specifically, the mapping relationship between the above host partition identifier and the first channel management interface identifier of the management partition is pre-determined and stored in the second channel management interface.
[0097] In some possible implementation manners, before the second channel management interface receives the first channel identifier sent by the first channel management interface, the first channel management interface may generate the first channel identifier through the following process: The first channel management interface parses the slave address in the second channel request command; when the slave address in the second channel request command corresponds to the first channel management interface, the first channel management interface parses the command identifier of the second channel request command; when the command identifier of the second channel request command is the channel request command identifier, the first channel management interface generates the first channel identifier and sends it to the second channel management interface. In this way, when the first channel management interface determines that the second channel request command is correct, it allocates the first channel identifier, which can ensure the accuracy of channel allocation, avoid applying for and allocating channels for abnormal channels, and ensure the full and effective utilization of channels.
[0098] It can be understood that when the slave address in the second channel request command corresponds to the first channel management interface, it means that the second channel request command is a command sent to the first channel management interface. Further, when the command identifier of the second channel request command is the channel request command identifier, it means that the second channel request command is a command for requesting a channel. At this time, the first channel management interface generates the first channel identifier. Of course, if the slave address in the second channel request command does not correspond to the first channel management interface, and / or the command identifier of the second channel request command is not the channel request command identifier, the first channel management interface considers that the second channel request command is an abnormal command and does not process it.
[0099] Figure 7 It is a schematic diagram of the format of a channel application command provided by an embodiment of the present application. Refer to Figure 7 As shown, when Figure 7 the channel request shown is the second channel request command, the second channel request command sequentially includes a start signal S, slave addresses A6 to A0, a read / write flag 0, channel request command identifiers B7 to B0, slave addresses A6 to A0, a read / write flag 1, an acknowledgment signal A, and an end signal P. During the process of the second channel management interface sending the above second channel request command to the first channel management interface, the first channel management interface will send a response signal to the second channel management interface for the second channel request command. The above response signal includes: an acknowledgment signal A and channel identifiers D7 to D0, corresponding to the second channel request command, and here the channel identifier is the first channel identifier.
[0100] Specifically refer to Figure 7As shown, after the second channel management interface sends the start signal S, the seven-bit slave address A6 to A0, and the read / write flag 0 to the first channel management interface, the first channel management interface replies to the second channel management interface with an acknowledgement signal A, indicating that it has received the start signal S, the seven-bit slave address A6 to A0, and the read / write flag 0. The above-mentioned read / write flag 0 sent by the second channel management interface is used to indicate that the second channel management interface will subsequently write the channel request command identifier B7 to B0 to the main line, which is the main line connecting the second channel management interface and the first channel management interface.
[0101] The second channel management interface continues to send the channel request command identifier B7 to B0 to the first channel management interface, and after receiving the acknowledgement signal A replied by the first channel management interface, continues to send the slave address A6 to A0 and the read / write flag 1. The read / write flag 1 is used to indicate that the second channel management interface will read the channel identifier on the main line.
[0102] After replying to the second channel management interface with the acknowledgement signal A, the first channel management interface sends the first channel identifier to the second channel management interface.
[0103] After receiving the first channel identifier, the second channel management interface will reply to the first channel management interface with an acknowledgement signal A and an end signal P to represent that the second channel request command has been sent.
[0104] In some embodiments, the first channel management interface generates the first channel identifier, including: the first channel management interface obtains the channel status between the management partition where it is located and the logical processing unit, and the channel status includes the channel identifier and the number of commands to be processed; then, the first channel management interface uses the channel identifier with the smallest number of commands to be processed as the first channel identifier. This can minimize the latency of sending response messages as much as possible and improve management efficiency.
[0105] Among them, the first channel management interface of a management partition can obtain the channel status of all connection channels between this management partition and the logical processing unit, that is, the connection channel status between the service management interface in this management partition and the first service processing interface in the logical processing unit. A service management interface is connected to a first service processing interface to form a connection channel. The channel identifier is used to uniquely represent a connection channel, that is to say, one channel identifier corresponds to one first service processing interface and one service management interface.
[0106] In a scenario with a large volume of traffic, the connection channels between the logical processing unit and the management partition may be busy, and each connection channel corresponds to a queue of commands to be processed, and the queue of commands to be processed includes the response messages of this connection channel. Therefore, in order to minimize the sending latency of the response messages as much as possible, the channel identifier with the smallest number of commands to be processed can be selected as the first channel identifier.
[0107] It is understandable that when there are multiple channel identifiers with the smallest number of commands to be processed, one channel identifier can be randomly selected from these multiple channel identifiers as the first channel identifier.
[0108] In some possible implementation manners, when the service management interface of the management partition receives a response message, it parses the slave address of the response message; when the slave address of the response message corresponds to the service management interface, it means that the response message is a response message sent to the service management interface. At this time, the service management interface processes the response message; when the slave address of the response message does not correspond to the service management interface, it means that the response message is not a response message sent to the service management interface. At this time, the service management interface does not process the response message. In this way, the correct reception and processing of response data can be ensured as much as possible, thereby ensuring the management accuracy of the target device.
[0109] The processing of the response data received by the service management interface may include: reading the host partition identifier, command identifier, and response data from the response message, determining the corresponding first management command according to the host partition identifier and command identifier, and finally returning the response data to the software interface that initiated the first management command for subsequent processing of the response data.
[0110] In some possible implementation manners, before the logic processing unit receives the first management command sent by the management partition, the management partition needs to apply for a channel from the logic processing unit. The management partition is provided with a first channel management interface, and the logic processing unit is provided with a second channel management interface. The first channel management interface is connected to the second channel management interface. Based on the connection relationship between the first channel management interface and the second channel management interface, the process of the management partition applying for a channel includes the following steps: First, the first channel management interface of the management partition sends a first channel request command to the second channel management interface of the logic processing unit; then, the first channel management interface receives the second channel identifier sent by the second channel management interface; finally, the management partition sends the first management command to the logic processing unit through the service management interface corresponding to the second channel identifier. In this way, it can be ensured that the first management command is transmitted through the idle service management interface, which helps to improve the transmission success rate of the first management command, and further improves the management success rate of the target device.
[0111] Among them, the second channel identifier is the channel identifier allocated by the first channel management interface for the first channel request command. The connection channel corresponding to the second channel identifier is used to transmit the first management command from the service management interface of the management partition to the first service processing interface in the logic processing unit. The identifier of the service management interface, the identifier of the first service processing interface, and the second channel identifier correspond one by one. Therefore, after determining the second channel identifier, the service management interface for transmitting the first management command can be determined.
[0112] It should be noted that the slave address in the first management command corresponds to the first business processing interface corresponding to the second channel identifier in the logical processing unit. Therefore, when the first business interface receives the first management command, it can determine whether it is the first management command sent to itself based on the slave address, thereby ensuring the successful reception of the first management command.
[0113] In some possible implementations, before the first channel management interface receives the second channel identifier sent by the second channel management interface, the second channel management interface can generate the second channel identifier through the following process: the second channel management interface parses the slave address in the first channel request command; and when the slave address of the first channel request command corresponds to the second channel management interface, the second channel management interface parses the command identifier of the first channel request command; when the command identifier of the first channel request command is a channel request command identifier, the second channel management interface generates the second channel identifier and sends it to the first channel management interface. In this way, when the second channel management interface determines that the first channel request command is correct, it assigns the second channel identifier, which can ensure the accuracy of channel allocation, avoid applying for channel allocation for abnormal channels, and ensure the full and effective utilization of the channel.
[0114] It is understandable that when the slave address of the first channel request command corresponds to the second channel management interface, it represents that the first channel request command is a command sent to the second channel management interface. Furthermore, when the command identifier of the first channel request command is a channel request command identifier, it represents that the first channel request command is a command for requesting a channel. At this time, the second channel management interface generates a second channel identifier. Of course, if the slave address of the first channel request command does not correspond to the second channel management interface, and / or the command identifier of the first channel request command is not a channel request command identifier, the second channel management interface deems the first channel request command to be an abnormal command and does not process it.
[0115] In some possible implementations, the second channel management interface generates the second channel identifier, including: the second channel management interface parsing the management partition identifier of the first channel request command and determining the second channel identifier based on the management partition identifier. In this way, the second channel management interface can allocate the connection channel between the logical processing unit and the management partition that initiated the first channel request command to the management partition that initiated the first channel request command based on the management partition identifier carried in the first channel request command, thereby avoiding channel allocation errors that could lead to transmission failure of the first management command, ensuring successful transmission of the first management command, and thereby improving the success rate of target device management.
[0116] When the first-channel management interfaces of multiple management partitions are connected to the same second-channel management interface, if the first-channel management interface of a management partition needs to send a first-channel request command to the logic processing unit, the first-channel management interface of this management partition needs to add its own management partition identifier to the first-channel request, so that the second-channel management interface of the logic processing unit can allocate the connection channel between this management partition and the logic processing unit according to the management partition identifier, avoiding incorrect channel allocation.
[0117] Refer to Figure 7 As shown, when Figure 7 the channel request shown is a first-channel request command, the first-channel request command sequentially includes a start signal S, slave addresses A6 to A0, a read / write flag 0, a channel request command identifier B7 to B0, slave addresses A6 to A0, a read / write flag 1, an acknowledgment signal A, and an end signal P. During the process of the first-channel management interface sending the above first-channel request command to the second-channel management interface, the second-channel management interface will send a response signal to the first-channel management interface for the first-channel request command. The above response signal includes: an acknowledgment signal A and a channel identifier D7 to D0. Corresponding to the first-channel request command, the channel identifier here is the second-channel identifier.
[0118] Specifically refer to Figure 7 As shown, after the first-channel management interface sends the start signal S, the seven-bit slave addresses A6 to A0, and the read / write flag 0 to the second-channel management interface, the second-channel management interface sends an acknowledgment signal A to the first-channel management interface, indicating that it has received the start signal S, the seven-bit slave addresses A6 to A0, and the read / write flag 0. The above read / write flag 0 sent by the first-channel management interface is used to indicate that the first-channel management interface will subsequently write the channel request command identifier B7 to B0 to the main line, which is the main line connecting the first-channel management interface and the second-channel management interface.
[0119] The first-channel management interface continues to send the channel request command identifier B7 to B0 to the second-channel management interface, and after receiving the acknowledgment signal A replied by the second-channel management interface, continues to send the slave addresses A6 to A0 and the read / write flag 1. The read / write flag 1 is used to indicate that the first-channel management interface will read the second-channel identifier from the main line.
[0120] After the second-channel management interface sends an acknowledgment signal A to the first-channel management interface, it sends the second-channel identifier to the first-channel management interface.
[0121] After the first-channel management interface receives the second-channel identifier, it will send an acknowledgment signal and an end signal to the second-channel management interface to represent that the first-channel request command has been sent.
[0122] In some possible implementations, the above-mentioned second channel management interface determines the second channel identifier according to the management partition identifier, including: First, the second channel management interface obtains the channel status between the management partition corresponding to the management partition identifier and the logical processing unit, and the channel status includes the channel identifier and the number of commands to be processed; Then, the second channel management interface uses the channel identifier with the smallest number of commands to be processed as the second channel identifier. In this way, the latency of sending the first management command can be minimized as much as possible, and the management efficiency can be improved.
[0123] Among them, the second channel management interface can obtain the channel status of all connection channels between the logical processing unit and the management partition corresponding to the management partition identifier, that is, the connection channel status from the first service processing interface to the service management interface in the logical processing unit. A first service processing interface is connected to a service management interface to form a connection channel. The channel identifier is used to uniquely represent a connection channel, that is to say, one channel identifier corresponds to a first service processing interface and a service management interface.
[0124] In a scenario with a large business volume, the connection channels between the management partition and the logical processing unit may be in a busy state, and each connection channel corresponds to a queue of commands to be processed, and the queue of commands to be processed includes the commands to be processed for the connection channel. Therefore, in order to minimize the sending latency of the first management command as much as possible, the channel identifier with the smallest number of commands to be processed can be selected as the second channel identifier.
[0125] It can be understood that when there are multiple channel identifiers with the smallest number of commands to be processed, one channel identifier can be randomly selected from these multiple channel identifiers as the second channel identifier.
[0126] Figure 8 is a schematic diagram of data flow in the target device management process provided by an embodiment of the present application. Refer to Figure 8 As shown, in the target device management process, the data flow process includes the following steps:
[0127] S301: The first channel management interface of the management partition sends a first channel request command to the second channel management interface of the logical processing unit.
[0128] S302: The first channel management interface receives the second channel identifier sent by the second channel management interface.
[0129] S303: The service management interface corresponding to the second channel identifier sends a first management command to the first service processing interface.
[0130] S304: The first service processing interface forwards the first management command to the routing component.
[0131] S305: The routing component sends the second management command mapped from the first management command to the second service processing interface.
[0132] S306: The second service processing interface sends the second management command to the target device in the host partition.
[0133] S307: The target device sends the response data of the second management command to the second service processing interface.
[0134] S308: The second service processing interface sends the response data to the routing component.
[0135] S309: The routing component sends a second channel request command to the first channel management interface through the second channel management interface.
[0136] S309: The first channel management interface sends the first channel identifier to the routing component through the second channel management interface.
[0137] S310: The routing component sends the response message corresponding to the response data to the service management interface through the first service processing interface corresponding to the first channel identifier.
[0138] Corresponding to the above method, the present application further provides a host partition management architecture, which includes: a host, a logic processing unit, and a management unit; the host includes multiple host partitions, and the management unit includes multiple management partitions; the logic processing unit is used for:
[0139] Receiving the first management command sent by the management partition, and parsing the command identifier and the host partition identifier of the first management command, where the host partition identifier corresponds to the host partition of the management partition; determining the target device memory address corresponding to the first management command according to the command identifier and the host partition identifier; generating a second management command according to the target device memory address, and sending it to the target device in the host partition for execution.
[0140] In some possible implementation manners, the first service processing interface of the logic processing unit is used for:
[0141] Receiving the first management command, and parsing the slave address of the first management command, and when the slave address of the first management command corresponds to the first service processing interface, sending the first management command to the routing component of the logic processing unit; the routing component is used for parsing the command identifier and the host partition identifier of the first management command.
[0142] In some possible implementation manners, the routing component is further used for:
[0143] Find the target device memory address from the preset mapping relationship according to the command identifier and the host partition identifier, where the preset mapping relationship is used to indicate the mapping relationship among the command identifier, the host partition identifier, and the target device memory address.
[0144] In some possible implementation manners, the routing component is further configured to:
[0145] Determine the target format of the second management command according to the command identifier; parse command parameters from the first management command; generate the second management command in the target format according to the target device memory address and the command parameters, and send it to the target device in the host partition for execution.
[0146] In some possible implementation manners, the routing component is further configured to:
[0147] Parse the command identifier to obtain the target device identifier, and send the second management command to the target device in the host partition for execution through the second service processing interface corresponding to the host partition identifier and the target device identifier.
[0148] In some possible implementation manners, the routing component is further configured to:
[0149] Determine the slave address of the second management command according to the target device identifier; generate the second management command in the target format according to the slave address of the second management command, the target device storage address, and the command parameters;
[0150] The target device in the host partition is configured to: when receiving the second management command, parse the slave address of the second management command; and execute the second management command when the slave address corresponds to the target device.
[0151] In some possible implementation manners, the routing component is further configured to:
[0152] Record the command mapping relationship between the first management command and the second management command; the second service processing interface receives the response data sent by the target device and forwards it to the routing component; generate a response message according to the command mapping relationship and the response data, and send the response message to the management partition through the first service processing interface of the logic processing unit.
[0153] In some possible implementation manners, the second channel management interface of the logic processing unit is further configured to:
[0154] Send a second channel request command to the first channel management interface of the management partition; receive the first channel identifier sent by the first channel management interface and forward it to the routing component;
[0155] The routing component generates a response message according to the command mapping relationship and the response data, and sends the response message to the management partition through the first service processing interface corresponding to the first channel identifier.
[0156] In some possible implementations, the routing component is further configured to:
[0157] Determine a corresponding first management command from the command mapping relationship according to the second management command corresponding to the response data; extract the command identifier and the host partition identifier in the first management command, and generate a response message according to the command identifier, the host partition identifier, and the response data.
[0158] In some possible implementations, the routing component is further configured to:
[0159] Determine the slave address of the response message according to the first channel identifier; generate a response message according to the slave address, the command identifier, the host partition identifier, and the response data of the response message.
[0160] In some possible implementations, the second channel management interface of the logic processing unit is further configured to:
[0161] Determine the first channel management interface identifier of the corresponding management partition according to the host partition identifier as the slave address of the second channel request command; generate a second channel request command according to the slave address of the second channel request command and the channel request command identifier; send the second channel request command to the first channel management interface of the management partition.
[0162] In some possible implementations, the first channel management interface is further configured to:
[0163] Before the second channel management interface receives the first channel identifier sent by the first channel management interface, parse the slave address in the second channel request command; when the slave address of the second channel request command corresponds to the first channel management interface, parse the command identifier of the second channel request command; when the command identifier of the second channel request command is the channel request command identifier, generate a first channel identifier and send it to the second channel management interface.
[0164] In some possible implementations, the first channel management interface is further configured to:
[0165] Obtain the channel status between the management partition where it is located and the logic processing unit, where the channel status includes the channel identifier and the number of commands to be processed; use the channel identifier with the smallest number of commands to be processed as the first channel identifier.
[0166] In some possible implementations, the service management interface of the management partition is further configured to:
[0167] When receiving a response message, parse the slave address of the response message; when the slave address of the response message corresponds to the service management interface, process the response data.
[0168] In some possible implementations, the first channel management interface for managing partitions is further configured to:
[0169] Before the logical processing unit receives the first management command sent by the management partition, send a first channel request command to the second channel management interface of the logical processing unit; receive the second channel identifier sent by the second channel management interface;
[0170] The management partition is further configured to send the first management command to the logical processing unit through the service management interface corresponding to the second channel identifier, and the slave address in the first management command corresponds to the first service processing interface corresponding to the second channel identifier in the logical processing unit.
[0171] In some possible implementations, the second channel management interface is further configured to:
[0172] Before the first channel management interface receives the second channel identifier sent by the second channel management interface, parse the slave address in the first channel request command; when the slave address of the first channel request command corresponds to the second channel management interface, parse the command identifier of the first channel request command; when the command identifier of the first channel request command is the channel request command identifier, generate a second channel identifier and send it to the first channel management interface.
[0173] In some possible implementations, the second channel management interface is further configured to:
[0174] Parse the management partition identifier of the first channel request command and determine the second channel identifier according to the management partition identifier.
[0175] In some possible implementations, the second channel management interface is further configured to:
[0176] Obtain the channel status between the management partition corresponding to the management partition identifier and the logical processing unit, where the channel status includes the channel identifier and the number of commands to be processed; use the channel identifier with the smallest number of commands to be processed as the second channel identifier.
[0177] In some possible implementations, the command identifier includes: the target device identifier and the management operation identifier.
[0178] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation.
[0179] Those skilled in the art may further realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.
[0180] The above has introduced in detail a host partition management method and architecture provided by this application. Specific examples are used herein to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of this application, several improvements and modifications can still be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A mainframe partition management method, characterized in that, Applied to a host partition management architecture, the host partition management architecture includes: a host, a logical processing unit, and a management unit; the host includes multiple host partitions, and the management unit includes multiple management partitions; the method includes: The logical processing unit receives a first management command sent by the management partition, and parses the command identifier and the host partition identifier of the first management command, where the host partition identifier corresponds to the host partition of the management partition; The logical processing unit determines the target device memory address corresponding to the first management command according to the command identifier and the host partition identifier; The logical processing unit generates a second management command according to the target device memory address and sends it to the target device of the host partition for execution.
2. The method according to claim 1, wherein The logical processing unit receives a first management command sent by the management partition, and parses the command identifier and the host partition identifier of the first management command, including: The first service processing interface of the logical processing unit receives the first management command and parses the slave address of the first management command; When the slave address of the first management command corresponds to the first service processing interface, the first service processing interface sends the first management command to the routing component of the logical processing unit; The routing component parses the command identifier and the host partition identifier of the first management command.
3. The method according to claim 2, characterized in that The logical processing unit determines the target device memory address corresponding to the first management command according to the command identifier and the host partition identifier, including: The routing component looks up the target device memory address from a preset mapping relationship according to the command identifier and the host partition identifier, and the preset mapping relationship is used to indicate the mapping relationship between the command identifier, the host partition identifier, and the target device memory address.
4. The method according to claim 3, wherein The logical processing unit generates a second management command according to the target device memory address and sends it to the target device of the host partition for execution, including: The routing component determines the target format of the second management command according to the command identifier; The routing component parses command parameters from the first management command; The routing component generates the second management command in the target format according to the target device memory address and the command parameters and sends it to the target device of the host partition for execution.
5. The method according to claim 4, characterized in that The sending to the target device of the host partition for execution includes: The routing component parses the command identifier to obtain the target device identifier, and sends the second management command to the target device of the host partition for execution through the second service processing interface corresponding to the host partition identifier and the target device identifier.
6. The method according to claim 5, characterized in that, The routing component generates the second management command in the target format according to the target device memory address and the command parameters, including: The routing component determines the slave address of the second management command according to the target device identifier; The routing component generates the second management command in the target format according to the slave address of the second management command, the target device storage address, and the command parameters; The method further includes: When the target device of the host partition receives the second management command, it parses the slave address of the second management command; When the slave address of the second management command corresponds to the target device, the second management command is executed.
7. The method according to claim 6, characterized in that, The method further includes: The routing component records the command mapping relationship between the first management command and the second management command; The second service processing interface receives the response data sent by the target device and forwards it to the routing component; The routing component generates a response message according to the command mapping relationship and the response data, and sends the response message to the management partition through the first service processing interface of the logic processing unit.
8. The method according to claim 7, wherein The routing component generates a response message according to the command mapping relationship and the response data, and sends the response message to the management partition through the first service processing interface of the logic processing unit, including: The second channel management interface of the logic processing unit sends a second channel request command to the first channel management interface of the management partition; The second channel management interface receives the first channel identifier sent by the first channel management interface and forwards it to the routing component; The routing component generates the response message according to the command mapping relationship and the response data, and sends the response message to the management partition through the first service processing interface corresponding to the first channel identifier.
9. The method according to claim 8, wherein The routing component generates the response message according to the command mapping relationship and the response data, including: The routing component determines the corresponding first management command from the command mapping relationship according to the second management command corresponding to the response data; The routing component extracts the command identifier and the host partition identifier in the first management command, and generates the response message according to the command identifier, the host partition identifier and the response data.
10. The method according to claim 9, wherein Generating the response message according to the command identifier, the host partition identifier and the response data includes: The routing component determines the slave address of the response message according to the first channel identifier; The routing component generates the response message according to the slave address of the response message, the command identifier, the host partition identifier and the response data.
11. The method according to claim 9, wherein The second channel management interface of the logic processing unit sends a second channel request command to the first channel management interface of the management partition, including: The second channel management interface of the logic processing unit determines the first channel management interface identifier of the corresponding management partition according to the host partition identifier as the slave address of the second channel request command; The second channel management interface generates the second channel request command according to the slave address of the second channel request command and the channel request command identifier; The second channel management interface sends the second channel request command to the first channel management interface of the management partition.
12. The method according to claim 11, wherein Before the second channel management interface receives the first channel identifier sent by the first channel management interface, it further includes: The first channel management interface parses the slave address in the second channel request command; When the slave address of the second-channel request command corresponds to the first-channel management interface, the first-channel management interface parses the command identifier of the second-channel request command; When the command identifier of the second-channel request command is the channel request command identifier, the first-channel management interface generates the first-channel identifier and sends it to the second-channel management interface.
13. The method according to claim 12, wherein The first-channel management interface generating the first-channel identifier includes: The first-channel management interface obtains the channel status between the management partition where it is located and the logical processing unit, and the channel status includes a channel identifier and the number of commands to be processed; The first-channel management interface uses the channel identifier with the smallest number of commands to be processed as the first-channel identifier.
14. The method according to claim 10, wherein It further includes: When the service management interface of the management partition receives the response message, it parses the slave address of the response message; When the slave address of the response message corresponds to the service management interface, the service management interface processes the response data.
15. The method according to claim 1, characterized in that, Before the logical processing unit receives the first management command sent by the management partition, it further includes: The first-channel management interface of the management partition sends a first-channel request command to the second-channel management interface of the logical processing unit; The first-channel management interface receives the second-channel identifier sent by the second-channel management interface; The management partition sends the first management command to the logical processing unit through the service management interface corresponding to the second-channel identifier, and the slave address in the first management command corresponds to the first service processing interface corresponding to the second-channel identifier in the logical processing unit.
16. The method according to claim 15, wherein Before the first-channel management interface receives the second-channel identifier sent by the second-channel management interface, the method further includes: The second-channel management interface parses the slave address in the first-channel request command; When the slave address of the first-channel request command corresponds to the second-channel management interface, the second-channel management interface parses the command identifier of the first-channel request command; When the command identifier of the first-channel request command is the channel request command identifier, the second-channel management interface generates the second-channel identifier and sends it to the first-channel management interface.
17. The method according to claim 15, wherein The second-channel management interface generating the second-channel identifier includes: The second-channel management interface parses the management partition identifier of the first-channel request command and determines the second-channel identifier according to the management partition identifier.
18. The method according to claim 17, wherein The determining the second-channel identifier according to the management partition identifier includes: Obtaining the channel status between the management partition corresponding to the management partition identifier and the logical processing unit, and the channel status includes a channel identifier and the number of commands to be processed; Using the channel identifier with the smallest number of commands to be processed as the second-channel identifier.
19. The method according to claim 1, characterized in that The command identifier includes: a target device identifier and a management operation identifier.
20. A host partition management architecture, the host partition management architecture comprising: A host, a logical processing unit, and a management unit; the host includes a plurality of host partitions, and the management unit includes a plurality of management partitions; The logical processing unit is used to execute the method according to any one of claims 1 to 19.
Citation Information
Patent Citations
Method and device for monitoring hardware partition of server host system
CN116719700A
Server management method, equipment and device, storage medium and electronic equipment
CN117032812A
Data processing method and device, and non-volatile storage medium
CN119766813A
Method and apparatus for monitoring hardware partition of server host system
WO2025030986A1
Communication control method and apparatus based on hardware partition system, and server
WO2025077202A1