Method and device for controlling power state in virtualization environment and storage medium

The virtual machine monitor arbitration mechanism controls the power supply state under the virtualized environment, solves the problem of system functional disorders caused by the power supply state at the same time, and realizes the effective control of the power status and the improvement of the stability and safety of the system.

CN119356799APending Publication Date: 2025-01-24CHINA AUTOMOTIVE INNOVATION CORP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411443434.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In a virtualized environment, when multiple virtual machines are simultaneously controlling power state through the SCMI module, it may cause system dysfunction, such as sudden power supply is turned off or voltage is reduced while the virtual machine is running.

Method used

Through the arbitration mechanism of the virtual machine monitor, the current operating request message sent by the current virtual machine is received. If the message is updated for the power status, obtain the message type results and target power status information, and determine the message predictive results in combination with the virtual power status information. If the prediction results are executable messages, send the power supply state to the controller to update the request, and update the power supply state of the power domain.

Benefits of technology

It achieves effective control of the power state in a virtualized environment, avoids conflicts caused by multiple virtual machines requesting to change the power state at the same time, and improves the stability and security of the vehicle virtualization system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356799A_ABST
    Figure CN119356799A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for controlling a power state in a virtualization environment and a storage medium. The method comprises the following steps: receiving a current operation request message sent by a current virtual machine; if the current operation request message is a power supply state updating message, obtaining a message type result corresponding to the current operation request message and target power supply state information; acquiring virtual power supply state information of a power supply domain corresponding to the current virtual machine; determining a message prediction result according to the message type result and the virtual power supply state information; if the message prediction result is a first message prediction result, sending a power supply state updating request to a controller; and the controller updates the power supply state of the power supply domain to a target power supply state corresponding to the target power supply state information according to the power supply state updating request. According to the invention, effective control of the power supply state in the virtualization environment is realized, and the stability and safety of the vehicle-mounted virtualization system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automotive electronic technology, and in particular to a method, device and storage medium for controlling power supply status in a virtualized environment. Background Art

[0002] In recent years, artificial intelligence technology has been widely used in the field of automotive electronics. Traditional automotive embedded real-time operating systems are mainly oriented to the control field, and have poor support for graphical interfaces and human-computer interaction. The mainstream complex embedded operating systems used in electronic products, such as Android, cannot meet the performance requirements of real-time, accuracy, and stability of automotive control systems. In order to meet the needs of real-time control and human-computer interaction of vehicle-mounted platforms, virtualization technology (Hypervisor) came into being, which allows multiple operating systems to run on the same hardware.

[0003] As a set of system management software interfaces, the SCMI module mainly includes power domain management, performance management, clock management, sensor management, voltage domain management, reset management, etc. SCMI mainly stipulates two aspects: one is the protocol, which stipulates the messages supported by components; the other is the transport, which regulates the way messages are transmitted between components.

[0004] The overall block diagram of SCMI is as follows: Figure 1 As shown in the figure, when a device, operating system, etc. (generally referred to as an Agent) sends an SCMI message, it is passed to the microcontroller Platform Controller through the transport layer, and the microcontroller drives the hardware to the appropriate power or performance state. There is at least one dedicated channel for communication between a single Agent and the Platform Controller, and the channel is unidirectional. On the A2P (Agent to Platform) channel, the Agent is the initiator; on the P2A (Platform toAgent) channel, the Platform is the initiator. The communication between the Agent and the Platform Controller can utilize the interrupt mechanism. For example, on the P2A channel, when the Agent has processed the message from the Platform Controller, it can send an interrupt, indicating that the channel is currently in an idle state and can continue to receive new messages.

[0005] Each message will have an 8-bit message header (also called protocol ID, protocol_id) to identify different types of operation requests, focusing on Figure 2For messages on standard channels, the message header has 32 bits, starting from the lowest bit: 8-bit message_id; 2-bit message_type; 8-bit protocol_id; 10-bit token; 4-bit reserved bits. The message_type of commands (synchronous and asynchronous) is 0; the message_type of delayed responses is 1; and the message_type of notifications is 2.

[0006] In a virtualization scenario, there are situations where multiple virtual machines send different control information to the same module (such as a power module) at the same time. For example, the Agent in virtual machine 1 sends an SCMI message to set the power state to on, and then the Agent in virtual machine 2 sends an SCMI message to set the power state to off. If there is no control, the power state is determined by the latest SCMI message, and the function of virtual machine 1 will not work properly. It can be seen that since each virtual machine is independent, when multiple virtual machines control the power state through the SCMI module at the same time, it will cause system function disorder. It may happen that when virtual machine 1 is running, the power is suddenly turned off or the voltage is reduced (performance is affected). This is because other virtual machines are performing power management or voltage adjustment. Summary of the invention

[0007] The present application provides a method, device and storage medium for controlling the power state in a virtualized environment, which can achieve effective control of the power state in a virtualized environment and improve the stability and security of the vehicle-mounted virtualization system.

[0008] On the one hand, the present application provides a method for controlling a power state in a virtualized environment, the method comprising:

[0009] Receive a current operation request message sent by the current virtual machine;

[0010] If the current operation request message is a power state update message, obtain a message type result corresponding to the current operation request message and target power state information;

[0011] Acquire virtual power state information of the power domain corresponding to the current virtual machine;

[0012] Determine a message prediction result according to the message type result and the virtual power state information;

[0013] If the message prediction result is the first message prediction result, a power status update request is sent to the controller; so that the controller updates the power status of the power domain to a target power status corresponding to the target power status information according to the power status update request; the first message prediction result indicates that the current operation request message is an executable message; and the power status update request carries the target power status information.

[0014] In an exemplary embodiment, if the current operation request message is a power state update message, before obtaining the message type result corresponding to the current operation request message and the target power state information, the method further includes:

[0015] Parsing the header message of the current operation request message to obtain a first identifier and a second identifier corresponding to the current operation request message; the first identifier represents the protocol type of the current operation request message; the second identifier represents the operation type of the current operation request message;

[0016] If the first identifier is a power domain protocol identifier, and the second identifier is a version number acquisition identifier, determining that the current operation request message is a version number acquisition message;

[0017] If the first identifier is the power domain protocol identifier and the second identifier is a power state update identifier, it is determined that the current operation request message is the power state update message; the power state update identifier is any one of a power-on identifier and a power-off identifier.

[0018] In an exemplary implementation, if the current operation request message is a power state update message, obtaining a message type result corresponding to the current operation request message and target power state information includes:

[0019] If the first identifier is the power domain protocol identifier, and the second identifier is the power-on identifier, determine a first message type result and first target power state information; the first message type result is that the current operation request message is used to control the power domain corresponding to the current virtual machine to power on; the first target power state information indicates that the target power state of the power domain is a power-on state;

[0020] If the first identifier is the power domain protocol identifier and the second identifier is the power-off identifier, determine the second message type result and the second target power state information; the second message type result is the current operation request message used to control the power-off of the power domain corresponding to the current virtual machine; the second target power state information indicates that the target power state of the power domain is a power-off state.

[0021] In an exemplary embodiment, determining a message prediction result according to the message type result and the virtual power state information includes:

[0022] When the message type result is the first message type result and the virtual power state information indicates that the power domain is in a power-off state, determining that the message prediction result is the first message prediction result;

[0023] When the message type result is the first message type result and the virtual power state information indicates that the power domain is in a powered-on state, the message prediction result is determined to be a second message prediction result; the second message prediction result indicates that the current operation request message is an abnormal message.

[0024] In an exemplary embodiment, the power domain includes a virtual machine cluster; the virtual machine cluster includes at least one virtual machine; the determining the message prediction result according to the message type result and the virtual power state information further includes:

[0025] When the message type result is the second message type result and the virtual power state information indicates that all virtual machines in the virtual machine cluster are in a powered-off state, determining that the message prediction result is the first message prediction result;

[0026] When the message type result is the second message type result and the virtual power state information indicates that at least one virtual machine in the virtual machine cluster is in a powered-on state, it is determined that the message prediction result is the second message prediction result.

[0027] In an exemplary embodiment, if the message prediction result is the first message prediction result, after sending a power state update request to the controller, the method further includes:

[0028] receiving a first processing result sent by the controller; the first processing result is that the request content corresponding to the current operation request message has been executed;

[0029] Get the virtual machine number corresponding to the current structure;

[0030] Sending the first processing result to the virtual machine corresponding to the virtual machine number;

[0031] The current structure is deleted to release memory.

[0032] In an exemplary embodiment, after determining the message prediction result according to the message type result and the virtual power state information, the method further includes:

[0033] If the message prediction result is the second message prediction result, a second processing result is generated; the second processing result indicates that the current operation request message is an abnormal message;

[0034] Obtaining a virtual machine number corresponding to the current structure;

[0035] Sending the second processing result to the virtual machine corresponding to the virtual machine number;

[0036] The current structure is deleted to release memory.

[0037] In an exemplary embodiment, before obtaining the virtual machine number corresponding to the current structure, the method further includes:

[0038] Obtaining an identification structure relationship library; the identification structure relationship library includes a mapping relationship between preset identifications and preset structures; the preset structure includes a number corresponding to a preset virtual machine;

[0039] Obtaining a current identifier corresponding to the current operation request message;

[0040] The preset structure matching the current identifier is searched in the identifier structure relationship library to obtain the current structure.

[0041] On the other hand, a device for controlling a power state in a virtualized environment is provided, the device comprising:

[0042] A current operation request message acquisition module is used to receive a current operation request message sent by the current virtual machine;

[0043] An acquisition module, configured to obtain a message type result and target power state information corresponding to the current operation request message if the current operation request message is a power state update message;

[0044] A virtual power state information acquisition module, used to acquire virtual power state information of a power domain corresponding to the current virtual machine;

[0045] A message prediction result determination module, used to determine a message prediction result according to the message type result and the virtual power state information;

[0046] A power state control module is used to send a power state update request to the controller if the message prediction result is a first message prediction result; so that the controller updates the power state of the power domain to a target power state corresponding to the target power state information according to the power state update request; the first message prediction result indicates that the current operation request message is an executable message; and the power state update request carries the target power state information.

[0047] On the other hand, an electronic device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the method for controlling the power state in a virtualized environment as described above.

[0048] On the other hand, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored. The at least one instruction or at least one program is loaded and executed by a processor to implement the power state control method in the virtualization environment as described above.

[0049] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the method for controlling the power state in a virtualized environment as described above.

[0050] The present application provides a method, device and storage medium for controlling power status in a virtualized environment, which have the following technical effects: the present application receives a current operation request message sent by a current virtual machine; if the current operation request message is a power status update message, obtains a message type result and target power status information corresponding to the current operation request message; obtains the virtual power status information of the power domain corresponding to the current virtual machine; determines a message prediction result based on the message type result and the virtual power status information; if the message prediction result is a first message prediction result, sends a power status update request to a controller; so that the controller updates the power status of the power domain to a target power status corresponding to the target power status information according to the power status update request; the first message prediction result indicates that the current operation request message is an executable message; and the power status update request carries the target power status information. This application obtains the current operation request message sent by the virtual machine through the virtual machine monitor. When the current operation request message is a power state update message, the message type result and target power state information corresponding to the current operation request message are obtained, and the current operation request message is judged based on the message type result and the virtual power state information of the power domain corresponding to the current virtual machine to determine whether the current operation request message is feasible. When the current operation request message is an executable message, the virtual machine monitor sends the current operation request message to the controller, so that the controller can process it based on the current operation request message. The virtual machine monitor can coordinate resource sharing between multiple virtual machines to ensure that when a power domain is shared by multiple virtual machines, there will be no resource conflicts or improper operations, and realize the effective control of the power state in the virtualized environment, improve resource utilization, and enhance the stability and security of the vehicle virtualization system. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions and advantages of the embodiments of this specification or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 It is an overall framework diagram of the server management interface provided in the embodiments of this specification;

[0053] Figure 2 It is a protocol identifier content description diagram provided in the embodiment of this specification;

[0054] Figure 3 It is a flowchart of a method for controlling power status in a virtualized environment provided by an embodiment of this specification;

[0055] Figure 4 It is a flowchart of a method for controlling power status in a virtualized environment provided by an embodiment of this specification;

[0056] Figure 5 It is a message header format diagram provided in the embodiment of this specification;

[0057] Figure 6 It is a flowchart of a method for controlling power status in a virtualized environment provided by an embodiment of this specification;

[0058] Figure 7 It is a flowchart of a method for controlling power status in a virtualized environment provided by an embodiment of this specification;

[0059] Figure 8 It is a framework diagram of an arbitration mechanism provided by the embodiments of this specification;

[0060] Fig. 9 It is a schematic diagram of a message transmission channel provided in an embodiment of this specification;

[0061] Fig.10 It is a flowchart of a method for controlling power status in a virtualized environment provided by an embodiment of this specification;

[0062] Fig.11 It is a structural diagram of a power state control device in a virtualized environment provided by an embodiment of this specification.

[0063] Fig.12 It is a structural diagram of a server of a method for controlling power status in a virtualized environment provided by an embodiment of the present specification. DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0065] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0066] The following describes a method for controlling power status in a virtualized environment of the present application. Figure 3 It is a flow chart of a method for controlling the power state in a virtualized environment provided in an embodiment of this specification. This specification provides method operation steps as described in the embodiment or flow chart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only execution order. When the actual system or server product is executed, it can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the method shown in the embodiment or the accompanying drawings. Specifically, Figure 3 As shown, the method can be applied to a control unit in a vehicle virtualization system, and the method includes:

[0067] S301: Receive a current operation request message sent by a current virtual machine.

[0068] In the embodiment of this specification, the current operation request message is a server management interface SCMI message sent by the system agent of the current virtual machine to the microcontroller Platform Controller, and the message will first fall into the virtual machine monitor Hypervisor. Among them, the current virtual machine is an operating system instance running on the vehicle-mounted Hypervisor. By introducing an arbitration mechanism based on the SCMI module, the current operation request message is evaluated in the virtual machine monitor, which helps to improve the stability and reliability of the vehicle-mounted virtualization system and enhance the safety performance of the vehicle-mounted virtualization system.

[0069] S303: If the current operation request message is a power state update message, obtain a message type result corresponding to the current operation request message and target power state information.

[0070] In the embodiment of this specification, since the SCMI module can control the power domain, voltage domain, clock and other modules of the virtual machine, it is necessary to determine the type of the current operation request message. By obtaining the message type result of the current operation request message and the target power state information, it is helpful for the vehicle virtualization system to accurately control power management and detect potential conflicts, thereby enhancing the safety performance of the vehicle virtualization system and improving the reliability of the vehicle virtualization system.

[0071] In the embodiment of the present specification, if the current operation request message is a power state update message, before obtaining the message type result corresponding to the current operation request message and the target power state information, as follows Figure 4 As shown, Figure 4 The present invention is a flowchart of a method for controlling a power state in a virtualized environment, wherein the method further comprises:

[0072] S401: Parse the header message of the current operation request message to obtain a first identifier and a second identifier corresponding to the current operation request message; the first identifier represents the protocol type of the current operation request message; the second identifier represents the operation type of the current operation request message.

[0073] In the embodiment of this specification, the header message of the current operation request message, that is, the message header of the current operation request message, has a total of 32 bits, such as Figure 5 As shown, Figure 5 The format of the message header clarifies the meanings of different identifiers. The first identifier obtained by parsing is the 8-bit protocol identifier protocol_id, and the second identifier is the 8-bit message type identifier message_id. Figure 2 As shown, according to Figure 2 It can be seen that when the first identifier is a different id value, it represents a specific protocol type; in specific applications, when the second identifier is a different id value, it represents a different operation type; at the same time, the parsed first identifier and second identifier are filled into the structure corresponding to the current operation request message. By parsing the header message to determine the specific operation request of the current operation request message, the operation process is simplified and the message processing efficiency is improved.

[0074] S402: If the first identifier is a power domain protocol identifier, and the second identifier is a version number acquisition identifier, determine that the current operation request message is a version number acquisition message.

[0075] In the embodiments of this specification, Figure 2As shown, the power domain protocol identifier is 0x11, that is, protocol_id is 0x11. For example, the version number acquisition identifier can be 0x0, that is, message_id is 0x0. At this time, it can be determined that the current operation request message is a message sent to the power management module and is used to obtain the version number of the protocol. Since the message will not affect other virtual machines, the virtual machine monitor Hypervisor will send the message to the microcontroller PlatformController. It can be seen that when determining the current operation request message, it is necessary to combine the first identifier and the second identifier to determine it.

[0076] S403: If the first identifier is the power domain protocol identifier and the second identifier is a power state update identifier, determine that the current operation request message is the power state update message; the power state update identifier is any one of a power-on identifier and a power-off identifier.

[0077] In the embodiments of this specification, Figure 2 As shown, the power domain protocol identifier is 0x11, that is, protocol_id is 0x11, and the power state update identifier can be set according to the actual situation. For example, it can be 0x4 or 0x5, where the power-on identifier is 0x4 and the power-off identifier is 0x5. In this case, the current operation request message is a power state update message. By parsing the header message to accurately identify the destination module to which the message needs to be sent and the specific operation to be performed, it is ensured that the message is correctly routed to the appropriate module to process the request, reducing the possibility of erroneous execution, achieving effective management of resource usage, and helping to achieve effective control of the power state in a virtualized environment. Measures can be taken to avoid conflicts and improve the security of the vehicle-mounted virtualization system.

[0078] In the embodiment of the present specification, if the current operation request message is a power state update message, obtaining a message type result corresponding to the current operation request message and target power state information includes:

[0079] If the first identifier is the power domain protocol identifier, and the second identifier is the power-on identifier, determine a first message type result and first target power state information; the first message type result is that the current operation request message is used to control the power domain corresponding to the current virtual machine to power on; the first target power state information indicates that the target power state of the power domain is a power-on state;

[0080] In the embodiment of the present specification, when the first identifier protocol_id is 0x11 and the second identifier message_id is 0x4, the first message type result is to control the power domain corresponding to the current virtual machine to be powered on, and the first target power state information indicates that the target power state of the power domain is powered on. Since the current operation request message is a message sent to the power management module and is used to control the power domain to be powered on, it is necessary to check the state of the power domain and perform subsequent judgment and processing on the message, which helps to avoid conflicts caused by multiple virtual machines requesting to change the power state at the same time, thereby improving the processing speed.

[0081] If the first identifier is the power domain protocol identifier and the second identifier is the power-off identifier, determine the second message type result and the second target power state information; the second message type result is the current operation request message used to control the power-off of the power domain corresponding to the current virtual machine; the second target power state information indicates that the target power state of the power domain is a power-off state.

[0082] In the embodiment of the present specification, when the first identifier protocol_id is 0x11 and the second identifier message_id is 0x5, the first message type result is to control the power domain corresponding to the current virtual machine to power off, and the first target power state information indicates that the target power state of the power domain is the power-off state. Since the current operation request message is a message sent to the power management module and is used to control the power domain to power off, the status of other virtual machines in the power domain is checked, and subsequent judgment and processing are performed on the message, which helps to avoid conflicts caused by multiple virtual machines requesting to change the power state at the same time, enhances the safety performance of the vehicle virtualization system, and improves the processing speed of the vehicle virtualization system.

[0083] S305: Acquire virtual power state information of the power domain corresponding to the current virtual machine.

[0084] In the embodiments of the present specification, in fact, the power domain corresponding to the current virtual machine also includes a virtual machine cluster, and the current virtual machine is a virtual machine in the power domain corresponding to the current virtual machine. When the current operation request message is obtained, the power domain status or the power status of each virtual machine in the virtual machine cluster is checked according to the message type result, so as to obtain the virtual power status information, so as to determine the actual control strategy in combination with the current operation request message, thereby avoiding the situation where the power is suddenly turned off or the voltage is reduced when other virtual machines are running, thereby improving the stability and reliability of the vehicle virtualization system.

[0085] S307: Determine a message prediction result according to the message type result and the virtual power state information.

[0086] In an embodiment of the present specification, the virtual machine monitor obtains a message type result corresponding to the current operation request message, and obtains the virtual power status information of the power domain. By combining the two to judge whether to execute the operation request corresponding to the current operation request message, conflicts caused by multiple virtual machines simultaneously requesting to change the power status can be effectively prevented, ensuring that the power management operation will not interfere with the normal operation of other virtual machines, enhancing the stability and security of the vehicle virtualization system, and realizing efficient control of the power status in the virtualization environment.

[0087] In the embodiment of the present specification, determining the message prediction result according to the message type result and the virtual power state information includes:

[0088] When the message type result is the first message type result and the virtual power state information indicates that the power domain is in a power-off state, determining that the message prediction result is the first message prediction result;

[0089] In an embodiment of the present specification, when the current operation request message is a message sent to the power management module and is used to control the power-on of the power domain corresponding to the current virtual machine, at this time, the power status of the power domain is checked. When the power domain is in a power-off state, it can be seen that the current operation request message is an executable message, and the power domain needs to be powered on through instructions.

[0090] When the message type result is the first message type result and the virtual power state information indicates that the power domain is in a powered-on state, the message prediction result is determined to be a second message prediction result; the second message prediction result indicates that the current operation request message is an abnormal message.

[0091] In the embodiment of the present specification, when the current operation request message is a message sent to the power management module and is used to control the power on of the power domain corresponding to the current virtual machine, at this time, the power state of the power domain is checked. When the power domain is in the power-on state, it can be seen that the current operation request message is an abnormal message at this time, and the power domain itself is already in the power-on state, and no additional instructions are required for control. Since in a multi-virtual machine environment, multiple virtual machines may request to change the state of the same power domain at the same time, by checking the state of the power domain, redundant power-on operations can be avoided, ensuring that the change of the power state meets the needs of the current system, and can enhance the stability and reliability of the vehicle virtualization system, realize effective management of power resources, and improve the security of the vehicle virtualization system. At the same time, unnecessary processing steps are reduced and the response speed of the vehicle virtualization system is improved.

[0092] In an embodiment of the present specification, the power domain includes a virtual machine cluster; the virtual machine cluster includes at least one virtual machine; the determining the message prediction result according to the message type result and the virtual power state information further includes:

[0093] When the message type result is the second message type result and the virtual power state information indicates that all virtual machines in the virtual machine cluster are in a powered-off state, determining that the message prediction result is the first message prediction result;

[0094] In an embodiment of the present specification, when the current operation request message is a message sent to the power management module and is used to control power off of the power domain corresponding to the current virtual machine, at this time, since there may be virtual machines in the power domain in a working state, the power status of the virtual machine cluster in the power domain is checked. When all the virtual machines in the virtual machine cluster are in a powered-off state, it can be seen that there are no virtual machines in the power domain in a running state, and controlling the power domain to power off will not cause functional disorders of the system. Therefore, the current operation request message is an executable message at this time and can continue to be processed.

[0095] When the message type result is the second message type result and the virtual power state information indicates that at least one virtual machine in the virtual machine cluster is in a powered-on state, it is determined that the message prediction result is the second message prediction result.

[0096] In the embodiment of the present specification, when the current operation request message is a message sent to the power management module and is used to control the power domain corresponding to the current virtual machine to power off, at this time, the power status of the virtual machine cluster in the power domain is checked. When at least one virtual machine in the virtual machine cluster is in the power-on state, it can be seen that there are virtual machines in the power domain that are in the running state. Controlling the power domain to power off will cause system dysfunction. Therefore, the current operation request message is an abnormal message at this time. By using the power status of other virtual machines in the power domain as the basis for judging whether the message is subsequently processed, it is ensured that the power-off operation is performed only when no other virtual machines need the power domain, avoiding functional failure or data loss caused by other virtual machines using the power domain, enhancing the stability and reliability of the vehicle virtualization system, achieving effective control of the power status in the virtualization environment, and improving the response speed of the vehicle virtualization system.

[0097] In the embodiment of this specification, after determining the message prediction result according to the message type result and the virtual power state information, as follows Figure 6 As shown, Figure 6 The present invention is a flowchart of a method for controlling a power state in a virtualized environment, wherein the method further comprises:

[0098] S601: If the message prediction result is the second message prediction result, generate a second processing result; the second processing result indicates that the current operation request message is an abnormal message;

[0099] In an embodiment of the present specification, if the message prediction result is the second message prediction result, the message is no longer executed, and the virtual machine monitor generates a second processing result, which is used to subsequently return to the virtual machine corresponding to the current operation request message. Exemplarily, if the message type result of the current operation request message is the first message type result, and the virtual power state information indicates that the power domain is in the power-on state, the second processing result is that the message is ignored; if the message type result of the current operation request message is the second message type result, and the virtual power state information indicates that at least one virtual machine in the virtual machine cluster is in the power-on state, the second processing result is that the message is ignored.

[0100] S602: Obtain a virtual machine number corresponding to the current structure;

[0101] In an embodiment of the present specification, since a current structure corresponding to the current operation request message is constructed when the current operation request message is sent to the virtual machine monitor, and the number of the current virtual machine and the parsed first identifier and second identifier are filled into the current structure, the virtual machine monitor can directly obtain the virtual machine number through the current structure.

[0102] In the embodiment of this specification, before obtaining the virtual machine number corresponding to the current structure, as Figure 7 As shown, Figure 7 The present invention is a flowchart of a method for controlling a power state in a virtualized environment, wherein the method further comprises:

[0103] S701: Acquire an identification structure relationship library; the identification structure relationship library includes a mapping relationship between preset identifications and preset structures; the preset structure includes a number corresponding to a preset virtual machine;

[0104] In the embodiments of the present specification, the identification structure relationship library can be a table or a formula; when the identification structure relationship library is a table, assuming that there are two virtual machines in a power domain, the identification of the message sent by virtual machine 1 is a, and the structure A corresponding to the identification a is searched in the identification structure relationship library; the identification of the message sent by virtual machine 2 is b, and the structure B corresponding to the identification b is searched in the identification structure relationship library; when the identification structure relationship library is a formula, the identification of the message sent by virtual machine 1 is a, and the identification a is substituted into the identification structure relationship library to obtain the structure A corresponding to the identification a; the identification of the message sent by virtual machine 2 is b, and the identification b is substituted into the identification structure relationship library to obtain the structure B corresponding to the identification b.

[0105] S702: Acquire a current identifier corresponding to the current operation request message;

[0106] In the embodiment of the present specification, it is assumed that the current identifier carried by the current operation request message is a. Since each operation request message carries a corresponding message identifier, it helps the virtual machine monitor to quickly locate the structure corresponding to the message, thereby speeding up the processing speed, simplifying the processing process, and improving the response efficiency of the vehicle virtualization system, ensuring that subsequent processing results are correctly sent back to the virtual machine that issued the request.

[0107] S703: Searching for a preset structure matching the current identifier in the identifier structure relationship library to obtain the current structure.

[0108] In the embodiment of this specification, the current identifier is a, and the current structure A matching the current identifier a is found in the identifier structure relationship library. After determining the current structure, the virtual machine corresponding to the current operation request message can be found, thereby realizing the effective return of the processing result. The message identifier enables the virtual machine monitor to accurately return the processing result to the correct virtual machine, which helps the virtual machine monitor to quickly locate the structure corresponding to the message, thereby speeding up the processing speed, simplifying the processing process, improving the response efficiency of the vehicle virtualization system, and enhancing the reliability of the vehicle virtualization system.

[0109] S603: Send the second processing result to the virtual machine corresponding to the virtual machine number;

[0110] In the embodiment of the present specification, since the current operation request message is an abnormal message, the virtual machine monitor directly sends the current operation request message to the virtual machine corresponding to the virtual machine number, so that the second processing result can be displayed on the receiving virtual machine, that is, the message is ignored.

[0111] S604: Deleting the current structure to release memory.

[0112] In the embodiment of this specification, when the second processing result corresponding to the current operation request message has been returned to the corresponding virtual machine, the current structure is deleted to realize memory recovery and avoid memory leakage. It can be seen that even if the message is ignored, the virtual machine monitor will send the processing result back to the corresponding virtual machine, ensuring the integrity of message processing, increasing the transparency of the vehicle virtualization system, and ensuring the effective use of the vehicle virtualization system resources, simplifying memory management, enhancing the stability of the vehicle virtualization system, and promoting the maintainability of the vehicle virtualization system.

[0113] S309: If the message prediction result is the first message prediction result, send a power status update request to the controller; so that the controller updates the power status of the power domain to the target power status corresponding to the target power status information according to the power status update request; the first message prediction result indicates that the current operation request message is an executable message; the power status update request carries the target power status information.

[0114] In the embodiments of this specification, Figure 8 , Fig. 9 As shown, Figure 8 This is the arbitration mechanism framework diagram. Fig. 9 is a schematic diagram of the message transmission channel, consisting of Fig. 9 It can be seen that on the channel where the device or operating system sends messages to the microcontroller, the system agent of the virtual machine sends an SCMI message to the microcontroller Platform Controller, and the microcontroller Platform Controller returns the processing result to the system agent of the virtual machine. Figure 8It can be seen that the SCMI messages sent by the virtual machine's system agent and the messages sent by the microcontroller Platform Controller are all trapped in the virtual machine monitor Hypervisor, and the virtual machine monitor Hypervisor obtains all the messages and determines whether to send them to the virtual machine's system agent or the microcontroller Platform Controller, that is, the message prediction result is obtained according to the message type result of the current operation request message and the virtual power state information, and arbitration is performed on whether the current operation request message needs to continue to be executed; wherein, the message sent by the virtual machine's system agent to the microcontroller Platform Controller can be sent based on synchronous commands or asynchronous commands. When sending based on synchronous commands, the virtual machine's system agent must wait for the response of the microcontroller Platform Controller after sending the request before continuing to execute subsequent operations; when sending based on asynchronous commands, the virtual machine's system agent does not need to wait for an immediate reply when sending a request, and the microcontroller Platform Controller will process the request at an appropriate time and may notify the agent of the processing result at a later time point. The notification returned by the microcontroller Platform Controller to the system agent of the virtual machine is used to inform the system agent of the virtual machine about the changes of system events or other related information. The delayed response refers to the situation where the microcontroller Platform Controller gives a reply after a period of time after receiving the request of the system agent of the virtual machine. At this time, the message prediction result indicates that the current operation request message is an executable message, so the virtual machine monitor Hypervisor sends the current operation request message to the microcontroller Platform Controller, and the microcontroller Platform Controller updates the state of the power domain to the target power state according to the target power state information carried in the power state update request. It can be seen that the arbitration of the virtual machine monitor ensures the accuracy and effectiveness of message processing, avoids unnecessary operations, improves the stability of the vehicle virtualization system, optimizes resource usage, reduces unnecessary loads, and prevents unauthorized or malicious messages from reaching the microcontroller, thereby enhancing the security performance of the vehicle virtualization system and accelerating the overall response speed.

[0115] In the embodiment of this specification, if the message prediction result is the first message prediction result, after sending a power state update request to the controller, Fig.10 As shown, Fig.10 The present invention is a flowchart of a method for controlling a power state in a virtualized environment, wherein the method further comprises:

[0116] S1001: receiving a first processing result sent by the controller; the first processing result is that the request content corresponding to the current operation request message has been executed;

[0117] In an embodiment of the present specification, after the microcontroller Platform Controller processes the status update of the power domain according to the power status update request, the microcontroller Platform Controller generates a first processing result and sends the first processing result to the virtual machine monitor. Exemplarily, if the message type result is the first message type result, and the virtual power status information indicates that the power domain is in a power-off state, the first processing result is that the power domain is powered on; if the message type result is the second message type result, and the virtual power status information indicates that all virtual machines in the virtual machine cluster are in a power-off state, the first processing result is that the power domain is powered off; if the current operation request message is a version number acquisition message, the first processing result is the version number corresponding to the current protocol.

[0118] S1002: Obtain the virtual machine number corresponding to the current structure;

[0119] In the embodiment of the present specification, the first processing result arrives at the virtual machine monitor. At this time, the virtual machine monitor obtains the current structure according to the message identifier corresponding to the current operation request message, thereby obtaining the virtual machine number in the current structure, which helps to return the processing result to the correct virtual machine.

[0120] S1003: Sending the first processing result to the virtual machine corresponding to the virtual machine number;

[0121] In an embodiment of the present specification, the virtual machine that sends the current operation request message can be determined according to the virtual machine number, so that the first processing result is sent to the corresponding virtual machine, so that the virtual machine can promptly understand the latest processing result of the operation request, thereby improving the transparency of the vehicle virtualization system.

[0122] S1004: Deleting the current structure to release memory.

[0123] In the embodiment of the present specification, after the virtual machine monitor sends the first processing result to the corresponding virtual machine, the current structure is deleted in time to release the memory. Through the interception mechanism of the virtual machine monitor, it is ensured that the result processed by the microcontroller can be accurately returned to the corresponding virtual machine, thereby forming a complete request-to-response cycle, improving the response speed and reliability of the vehicle virtualization system, preventing unauthorized message access or tampering, simplifying the communication path between the virtual machine and the microcontroller, and improving the security and memory usage efficiency of the vehicle virtualization system.

[0124] This specification also provides a control device for power status in a virtualized environment, such as Fig.11 As shown, the device comprises:

[0125] The current operation request message acquisition module 1101 is used to receive the current operation request message sent by the current virtual machine;

[0126] The acquisition module 1102 is used to obtain a message type result and target power state information corresponding to the current operation request message if the current operation request message is a power state update message;

[0127] A virtual power state information acquisition module 1103 is used to acquire virtual power state information of a power domain corresponding to the current virtual machine;

[0128] A message prediction result determination module 1104, configured to determine a message prediction result according to the message type result and the virtual power state information;

[0129] The power state control module 1105 is used to send a power state update request to the controller if the message prediction result is a first message prediction result; so that the controller updates the power state of the power domain to a target power state corresponding to the target power state information according to the power state update request; the first message prediction result indicates that the current operation request message is an executable message; and the power state update request carries the target power state information.

[0130] In some embodiments, the apparatus further comprises:

[0131] A parsing module is used to parse the header message of the current operation request message to obtain a first identifier and a second identifier corresponding to the current operation request message; the first identifier represents the protocol type of the current operation request message; the second identifier represents the operation type of the current operation request message.

[0132] The version number acquisition message module is used to determine that the current operation request message is a version number acquisition message if the first identifier is a power domain protocol identifier and the second identifier is a version number acquisition identifier.

[0133] A power status update message module is used to determine that the current operation request message is the power status update message if the first identifier is the power domain protocol identifier and the second identifier is the power status update identifier; the power status update identifier is any one of the power-on identifier and the power-off identifier.

[0134] In some embodiments, the acquisition module further includes:

[0135] The first acquisition submodule is used to determine a first message type result and a first target power state information if the first identifier is the power domain protocol identifier and the second identifier is the power-on identifier; the first message type result is the current operation request message used to control the power-on of the power domain corresponding to the current virtual machine; the first target power state information represents that the target power state of the power domain is a power-on state.

[0136] The second acquisition submodule is used to determine the second message type result and the second target power state information if the first identifier is the power domain protocol identifier and the second identifier is the power-off identifier; the second message type result is the current operation request message used to control the power-off of the power domain corresponding to the current virtual machine; the second target power state information indicates that the target power state of the power domain is a power-off state.

[0137] In some embodiments, the message prediction result determination module further includes:

[0138] The first prediction result submodule is used to determine that the message prediction result is the first message prediction result when the message type result is the first message type result and the virtual power state information indicates that the power domain is in a power-off state.

[0139] The second prediction result submodule is used to determine that the message prediction result is a second message prediction result when the message type result is the first message type result and the virtual power state information indicates that the power domain is in a powered-on state; the second message prediction result indicates that the current operation request message is an abnormal message.

[0140] In some embodiments, the message prediction result determination module further includes:

[0141] The third prediction result submodule is used to determine that the message prediction result is the first message prediction result when the message type result is the second message type result and the virtual power state information indicates that all virtual machines in the virtual machine cluster are in a powered-off state.

[0142] The fourth prediction result submodule is used to determine that the message prediction result is the second message prediction result when the message type result is the second message type result and the virtual power state information indicates that at least one virtual machine in the virtual machine cluster is in a powered-on state.

[0143] In some embodiments, the apparatus further comprises:

[0144] The first processing result module is used to receive the first processing result sent by the controller; the first processing result is that the request content corresponding to the current operation request message has been executed.

[0145] The first virtual machine number acquisition module is used to acquire the virtual machine number corresponding to the current structure.

[0146] The first processing result sending module is used to send the first processing result to the virtual machine corresponding to the virtual machine number.

[0147] The first deleting module is used to delete the current structure to release memory.

[0148] In some embodiments, the apparatus further comprises:

[0149] The second processing result module is used to generate a second processing result if the message prediction result is the second message prediction result; the second processing result indicates that the current operation request message is an abnormal message.

[0150] The second virtual machine number acquisition module is used to acquire the virtual machine number corresponding to the current structure.

[0151] The second processing result sending module is used to send the second processing result to the virtual machine corresponding to the virtual machine number.

[0152] The second deleting module is used to delete the current structure to release memory.

[0153] In some embodiments, the apparatus further comprises:

[0154] The identification structure relationship library acquisition module is used to acquire the identification structure relationship library; the identification structure relationship library includes a mapping relationship between preset identifications and preset structures; the preset structure includes a number corresponding to a preset virtual machine.

[0155] The current identification acquisition module is used to acquire the current identification corresponding to the current operation request message.

[0156] The current structure acquisition module is used to search the preset structure matching the current identification in the identification structure relationship library to obtain the current structure.

[0157] The device and method embodiments in the described device embodiments are based on the same inventive concept.

[0158] An embodiment of the present specification provides a vehicle electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement a method for controlling the power state in a virtualized environment as provided in the above method embodiment.

[0159] An embodiment of the present application also provides a computer storage medium, which can be set in a terminal to store at least one instruction or at least one program related to a method for controlling the power state in a virtualized environment in a method embodiment. The at least one instruction or at least one program is loaded and executed by the processor to implement the method for controlling the power state in a virtualized environment provided in the above method embodiment.

[0160] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes to implement the power state control method in a virtualized environment provided by the above method embodiment.

[0161] The memory described in the embodiments of this specification can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.

[0162] The power state control method embodiment provided in the embodiment of this specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Fig.12 1 is a hardware structure diagram of a server of a method for controlling power status in a virtualized environment provided by an embodiment of this specification. Fig.12As shown, the server 1200 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1210 (the central processing unit 1210 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1230 for storing data, and one or more storage media 1220 (such as one or more mass storage devices) for storing application programs 1223 or data 1222. Among them, the memory 1230 and the storage medium 1220 can be short-term storage or permanent storage. The program stored in the storage medium 1220 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 1210 can be configured to communicate with the storage medium 1220 and execute a series of instruction operations in the storage medium 1220 on the server 1200. The server 1200 may also include one or more power supplies 1260, one or more wired or wireless network interfaces 1250, one or more input and output interfaces 1240, and / or one or more operating systems 1221, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0163] The input / output interface 1240 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 1200. In one example, the input / output interface 1240 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 1240 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0164] It can be understood by those skilled in the art that Fig.12 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.12 More or fewer components as shown, or with Fig.12 Different configurations shown.

[0165] It can be seen from the embodiments of the power state control method, device and storage medium in the virtualized environment provided by the above-mentioned application that the present application receives the current operation request message sent by the current virtual machine; if the current operation request message is a power state update message, obtain the message type result and target power state information corresponding to the current operation request message; obtain the virtual power state information of the power domain corresponding to the current virtual machine; determine the message prediction result according to the message type result and the virtual power state information; if the message prediction result is the first message prediction result, send a power state update request to the controller; so that the controller updates the power state of the power domain to the target power state corresponding to the target power state information according to the power state update request; the first message prediction result characterizes that the current operation request message is an executable message; the power state update request carries the target power state information. In the virtualization scenario, the present application introduces a virtual machine monitor arbitration mechanism to solve the functional disorder problem that may occur when multiple virtual machines send control information to the same module at the same time. When the virtual machine sends the current operation request message, the virtual machine monitor intercepts these messages and decides whether to pass the message to the microcontroller for processing based on the message type result and the virtual power state information of the power domain corresponding to the current virtual machine. This mechanism ensures that specific power control operations are performed only when the normal operation of other virtual machines is not affected, thus avoiding functional failure or performance degradation due to conflicts. In addition, the virtual machine monitor will also record the number of the virtual machine that sent the current operation request message, and accurately return the result to the corresponding virtual machine after processing, ensuring the closed loop of message processing, and avoiding memory leaks by timely releasing no longer needed memory resources, improving system stability and resource utilization, enhancing the reliability and security of the in-vehicle virtualization system, optimizing resource management, simplifying the communication path, and enabling the in-vehicle virtualization system to maintain efficient operation in a multi-virtual machine environment.

[0166] It should be noted that the above sequence of the embodiments of this specification is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0167] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0168] A person skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0169] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for controlling power status in a virtualized environment, characterized in that: Applied to a virtual machine monitor, the method comprises: Receive a current operation request message sent by the current virtual machine; If the current operation request message is a power state update message, obtain a message type result corresponding to the current operation request message and target power state information; Acquire virtual power state information of the power domain corresponding to the current virtual machine; Determine a message prediction result according to the message type result and the virtual power state information; If the message prediction result is the first message prediction result, a power status update request is sent to the controller; so that the controller updates the power status of the power domain to a target power status corresponding to the target power status information according to the power status update request; the first message prediction result indicates that the current operation request message is an executable message; and the power status update request carries the target power status information.

2. The control method according to claim 1, characterized in that: If the current operation request message is a power state update message, before obtaining the message type result corresponding to the current operation request message and the target power state information, the method further includes: Parsing the header message of the current operation request message to obtain a first identifier and a second identifier corresponding to the current operation request message; the first identifier represents the protocol type of the current operation request message; the second identifier represents the operation type of the current operation request message; If the first identifier is a power domain protocol identifier, and the second identifier is a version number acquisition identifier, determining that the current operation request message is a version number acquisition message; If the first identifier is the power domain protocol identifier and the second identifier is a power state update identifier, it is determined that the current operation request message is the power state update message; the power state update identifier is any one of a power-on identifier and a power-off identifier.

3. The control method according to claim 2, characterized in that: If the current operation request message is a power state update message, obtaining a message type result corresponding to the current operation request message and target power state information includes: If the first identifier is the power domain protocol identifier, and the second identifier is the power-on identifier, determine a first message type result and first target power state information; the first message type result is that the current operation request message is used to control the power domain corresponding to the current virtual machine to power on; the first target power state information indicates that the target power state of the power domain is a power-on state; If the first identifier is the power domain protocol identifier and the second identifier is the power-off identifier, determine the second message type result and the second target power state information; the second message type result is the current operation request message used to control the power-off of the power domain corresponding to the current virtual machine; the second target power state information indicates that the target power state of the power domain is a power-off state.

4. The control method according to claim 3, characterized in that: The determining of the message prediction result according to the message type result and the virtual power state information includes: When the message type result is the first message type result and the virtual power state information indicates that the power domain is in a power-off state, determining that the message prediction result is the first message prediction result; When the message type result is the first message type result and the virtual power state information indicates that the power domain is in a powered-on state, the message prediction result is determined to be a second message prediction result; the second message prediction result indicates that the current operation request message is an abnormal message.

5. The control method according to claim 4, characterized in that: The power domain includes a virtual machine cluster; the virtual machine cluster includes at least one virtual machine; the determining the message prediction result according to the message type result and the virtual power state information further includes: When the message type result is the second message type result and the virtual power state information indicates that all virtual machines in the virtual machine cluster are in a powered-off state, determining that the message prediction result is the first message prediction result; When the message type result is the second message type result and the virtual power state information indicates that at least one virtual machine in the virtual machine cluster is in a powered-on state, it is determined that the message prediction result is the second message prediction result.

6. The control method according to claim 5, characterized in that: If the message prediction result is the first message prediction result, after sending a power state update request to the controller, the method further includes: receiving a first processing result sent by the controller; the first processing result is that the request content corresponding to the current operation request message has been executed; Get the virtual machine number corresponding to the current structure; Sending the first processing result to the virtual machine corresponding to the virtual machine number; The current structure is deleted to release memory.

7. The control method according to claim 6, characterized in that: After determining the message prediction result according to the message type result and the virtual power state information, the method further includes: If the message prediction result is the second message prediction result, a second processing result is generated; the second processing result indicates that the current operation request message is an abnormal message; Obtaining a virtual machine number corresponding to the current structure; Sending the second processing result to the virtual machine corresponding to the virtual machine number; The current structure is deleted to release memory.

8. The control method according to claim 6, characterized in that: Before obtaining the virtual machine number corresponding to the current structure, the method further includes: Obtaining an identification structure relationship library; the identification structure relationship library includes a mapping relationship between preset identifications and preset structures; the preset structure includes a number corresponding to a preset virtual machine; Obtaining a current identifier corresponding to the current operation request message; The preset structure matching the current identifier is searched in the identifier structure relationship library to obtain the current structure.

9. A device for controlling power status in a virtualized environment, characterized in that: The device comprises: A current operation request message acquisition module is used to receive a current operation request message sent by the current virtual machine; An acquisition module, configured to obtain a message type result and target power state information corresponding to the current operation request message if the current operation request message is a power state update message; A virtual power state information acquisition module, used to acquire virtual power state information of a power domain corresponding to the current virtual machine; A message prediction result determination module, used to determine a message prediction result according to the message type result and the virtual power state information; A power state control module is used to send a power state update request to the controller if the message prediction result is a first message prediction result; so that the controller updates the power state of the power domain to a target power state corresponding to the target power state information according to the power state update request; the first message prediction result indicates that the current operation request message is an executable message; and the power state update request carries the target power state information.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the method for controlling the power state in a virtualized environment as described in any one of claims 1-8.

Citation Information

Cited By

  • Performance level coding method, performance level decoding method and system-level chip

    CN121255725A