CN102117113B - Computer system and method of power supply management for central processing unit thereof - Google Patents

Computer system and method of power supply management for central processing unit thereof Download PDF

Info

Publication number
CN102117113B
CN102117113B CN200910244446.8A CN200910244446A CN102117113B CN 102117113 B CN102117113 B CN 102117113B CN 200910244446 A CN200910244446 A CN 200910244446A CN 102117113 B CN102117113 B CN 102117113B
Authority
CN
China
Prior art keywords
power management
operating system
vcpu
client operating
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200910244446.8A
Other languages
Chinese (zh)
Other versions
CN102117113A (en
Inventor
周振生
河野诚一
邱雨
彭刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN200910244446.8A priority Critical patent/CN102117113B/en
Publication of CN102117113A publication Critical patent/CN102117113A/en
Application granted granted Critical
Publication of CN102117113B publication Critical patent/CN102117113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a computer system and a method of power supply management for a central processing unit thereof. A power supply management state supportable to a VCPU (virtual central processing unit) of a guest operating system is configured, and resource for the VCPU in the guest operating system to perform power supply management (Cx, Px) is opened, so that, during operation of the guest operating system, power supply management operations for a physical CPU can be performed according to power supply management policies (the highest performance, the longest battery service life) set by users, the power supply management of the guest operating system is facilitated, experience of users in using a virtual machine system is consistent with that in using a non-virtual machine system, and the experience of users in using the virtual machine system is improved.

Description

The method of the power management of computer system and central processing unit thereof
Technical field
The present invention relates to the technical field of power management of virtual machine, be specifically related to a kind of method of computer system and the wherein power management of central processing unit (CPU, Central Processing Unit).
Background technology
In the specification of prior art, cpu power management defines the power management states comprising Cx state (as C1, C2 ..., C7) and Px state.Wherein, Cx refers to CPU low power consumpting state, under Cx state, CPU by the sleep (Sleep) of different depth to save power consumption.Px refers to performance state (performancestate), under Px state, by changing CPU voltage/frequency control CPU power consumption.
At present, normally virtual machine manager (VMM in dummy machine system, Virtual Machine Monitor) be responsible for the power management of physical cpu, VMM can according to the service condition of current C PU, formulate certain strategy, make CPU enter Cx state or Px state, therefore prior art only can could adjust its power management policy at VMM control desk.And under client operating system (Guest OS), when user carries out the power management of CPU by the power management policy that Guest OS carries, can not carry out power management operations to physical cpu, the power management operations namely under client operating system is invalid.
Summary of the invention
Embodiment of the present invention technical matters to be solved is to provide the method for the power management of a kind of computer system and CPU thereof, makes client operating system can carry out real power management operations to physical cpu.
For solving the problems of the technologies described above, the embodiment of the present invention provides scheme as follows:
A method for cpu power management in computer system, comprising:
Be the first client operating system simulation virtual center processor VCPU;
According to the power management demand of predetermined described VCPU, configure the power management states that described VCPU supports, and the process resource relevant to the open described power management states of described first client operating system;
In the start-up course of described first client operating system, report the power management states of described VCPU support to described first client operating system;
In the operational process of described first client operating system, according to the first power management policy of described first client operating system current setting, by performing corresponding power management to described VCPU, control the current power supervisor status of the physical cpu of described computer system.
Preferably, in said method, the described power management demand according to predetermined described VCPU, configures the power management states that described VCPU supports, comprising:
Configure the first low power consumpting state that described VCPU supports, identical with the second low power consumpting state that the physical cpu of described computer system is supported;
Configure the first performance management function that described VCPU supports, to report the second performance management function supported identical with the CPUID of described physical cpu.
Preferably, in said method, the described power management demand according to predetermined described VCPU, configures the power management states that described VCPU supports, comprising:
According to the first low power consumpting state that predetermined VCPU supports, the relevant MSR of the list item relevant to low power consumpting state and virtual described first low power consumpting state in the ACPI table of virtual described first client operating system, makes the ACPI of described first client operating system show and described relevant MSR indicates described VCPU to support described first low power consumpting state;
According to the first performance management function that predetermined VCPU supports, the CPUID of amendment VCPU reports, and the CPUID of described VCPU is reported and supports described first performance management function.
Preferably, in said method, the described associated processing resources to the open described power management states of described first client operating system, comprising: the access module configuring the first hardware that described power management states relates to is direct hardware access DHA pattern;
The corresponding power management of described execution, control the current power state of the physical cpu of described computer system, comprise: according to the first power management policy of described first client operating system current setting, directly described first hardware is conducted interviews by DHA mode, corresponding power management operations is performed to physical cpu, controls the current power state of described physical cpu.
Preferably, in said method, the described associated processing resources to the open described power management states of described first client operating system, comprising: register the handling procedure that described power management states relates to;
The corresponding cpu power management of described execution, control the current power state of the physical cpu of described computer system, comprise: tackle the power management operations of described first client operating system for described VCPU, and call described handling procedure on physical cpu, perform described power management operations, control the current power state of described physical cpu.
Preferably, in said method, the handling procedure that the described power management states of described registration relates to, comprising:
Register the first handling procedure that described first low power consumpting state relates to; And/or,
Register the second handling procedure that performance state corresponding to described first performance management function relates to.
Preferably, in said method, in the corresponding cpu power management of described execution, after controlling the current power supervisor status of the physical cpu of described computer system, described method also comprises:
Control the power management policy of other client operating system display in described computer system, consistent with described first power management policy.
The embodiment of the present invention additionally provides a kind of computer system, comprising:
Hardware platform, described hardware platform at least comprises physical cpu;
Operate in the virtual machine manager on described hardware platform; And,
Operate in the first client operating system on described virtual machine manager;
Described computer system also comprises:
Analog module, for being described first client operating system simulation virtual center processor VCPU;
State configuration module, for the power management demand according to predetermined described VCPU, configures the power management states that described VCPU supports, and the process resource relevant to the open described power management states of described first client operating system;
Reporting module, in described first client operating system start-up course, reports the power management states of described VCPU support to described first client operating system;
Power management module, for in the operational process of described first client operating system, according to the first power management policy of described first client operating system current setting, by performing corresponding power management to described VCPU, control the current power supervisor status of the physical cpu of described computer system.
Preferably, in above-mentioned computer system,
Described state configuration module comprises:
First configuration module is for configuring the first low power consumpting state that described VCPU supports, identical with the second low power consumpting state that the physical cpu of described computer system is supported;
The first performance management function that second configuration module is supported for configuring described VCPU, to report the second performance management function supported identical with the CPUID of described physical cpu.
Preferably, in above-mentioned computer system, described state configuration module comprises:
3rd configuration module, for the first low power consumpting state supported according to predetermined VCPU, the relevant MSR of the list item relevant to low power consumpting state and virtual described first low power consumpting state in the ACPI table of virtual described first client operating system, makes the ACPI of described first client operating system show and described relevant MSR indicates described VCPU to support described first low power consumpting state;
4th configuration module, for the first performance management function supported according to predetermined VCPU, the CPUID of amendment VCPU reports, and the CPUID of described VCPU is reported and supports described first performance management function.
Preferably, in above-mentioned computer system, described state configuration module also comprises:
Access module configuration module, for before described first client operating system of startup, the access module configuring the first hardware that described power management states relates to is direct hardware access DHA pattern;
Described power management module comprises:
Direct access modules, for directly being conducted interviews to described first hardware by DHA mode, being performed power management operations to physical cpu, controlling the current power state of described physical cpu.
Preferably, in above-mentioned computer system, described state configuration module also comprises:
Registering modules, for registering the handling procedure that described power management states relates to;
Described power management module comprises:
Blocking module, for tackling the power management operations of described first client operating system for described VCPU;
Calling module, performing described power management operations for calling described handling procedure, controlling the current power state of described physical cpu on physical cpu.
Preferably, in above-mentioned computer system, also comprise:
Except other client operating system except described first client operating system;
State synchronized module, for controlling the power management policy of other client operating system display in described computer system, consistent with described first power management policy.
As can be seen from the above, the method of the power management of the computer system that the embodiment of the present invention provides and CPU thereof, by the power management states that the VCPU configuring client operating system supports, in the start-up course of client operating system, by the power management states that scanning VCPU supports, obtain the power management states (Cx that it is supported, Px), thus in client operating system operational process, can according to the power management policy of current setting, real power management operations is carried out to physical cpu, facilitate the power management of client operating system, user is made to use the experience of dummy machine system consistent with using the experience of non-virtual machine system, thus improve the experience that user uses dummy machine system.Further, the embodiment of the present invention additionally provides DHA and directly accesses and tackle two kinds of modes with virtual machine manager, realizes power management operations.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for cpu power management in computer system described in the embodiment of the present invention;
Fig. 2 is the process flow diagram of the method for cpu power management in computer system described in the embodiment of the present invention 1;
Fig. 3 is the process flow diagram of the method for cpu power management in computer system described in the embodiment of the present invention 2;
Fig. 4 is the structural representation of computer system described in the embodiment of the present invention 3.
Embodiment
As shown in Figure 1, the method for cpu power management in computer system described in the embodiment of the present invention, comprises the following steps:
Step 11, in virtual machine activation process, is the first client operating system simulation virtual center processor (VCPU, Virtual CPU).
Step 12, according to the power management demand of predetermined described VCPU, configures the power management states that described VCPU supports, and the process resource relevant to the open described power management states of described first client operating system.Here, described related resource is that under the first client operating system, described VCPU carries out the resource that the power management relevant to described power management states use.
Step 13, in the start-up course of described first client operating system, reports the power management states of described VCPU support to described first client operating system.
Step 14, in the operational process of described first client operating system, according to the first power management policy of described first client operating system current setting, by performing corresponding power management to described VCPU, control the current power supervisor status of the physical cpu of described computer system.That is, according to the first power management policy, corresponding power management is performed to described VCPU, and then by performing corresponding power management to described VCPU, control the current power supervisor status of the physical cpu of described computer system.
As can be seen from the above, the embodiment of the present invention in the start-up course of VMM, the power management states supported of virtual cpu (VCPU, Virtual CPU) of configuration client operating system, and opened associated processing resources, in the start-up course of client operating system, the power management states of VCPU support is reported to client operating system, client operating system is made to obtain the power management states of VCPU support, thus when client operating system carries out power management, such as, according to the power management policy (peak performance of user's setting, most long battery life etc.), when power management is performed to VCPU, the process resource relevant due to line related supervisor status is open to this client operating system, therefore, this client operating system is when carrying out power management to VCPU, just can carry out real power management operations to physical cpu, thus the experience that user uses dummy machine system can be improved.Below with reference to accompanying drawing, by specific embodiment, the present invention is further illustrated.
< embodiment 1>
Adopt interception mode to intercept and capture the power management operations of client operating system in the present embodiment, and then be converted to the power management operations of true CPU.
Please refer to Fig. 2, the method for cpu power management in computer system described in the present embodiment, comprises the following steps:
Step 21, in virtual machine activation process, is client operating system simulation virtual center processor VCPU by virtual machine manager.
Here, after the power-up, conventionally identical Booting sequence starts computer system.First computer system physics BIOS module starts, and carries out a series of hardware device detection and initial configuration work to computer system; After the work of computer system physics BIOS module is finished, give bootstrap loader module by Systematical control power.The configuration file of what bootstrap loader module loading pre-established comprise client operating system hardware information, and guide virtual machine manager to start; Virtual machine manager is that client operating system creates virtual machine (VM, Virtual Machine), is client operating system generating virtual hardware platform, comprising simulating virtual CPU, i.e. a VCPU for client operating system.
Step 22, according to the power management demand of predetermined described VCPU, configures the power management states that described VCPU supports, and registers the handling procedure that described power management states relates to.
Here, the present embodiment has pre-established the power management demand of client operating system and has preserved in computer systems, which.Virtual machine manager, according to this power management demand, configures the power management states that VCPU supports.In the present embodiment, suppose that this power management demand wishes that the low power consumpting state that VCPU supports is all identical with physical cpu with performance state, now configure the power management states that VCPU supports, comprising:
(1) the first low power consumpting state that described VCPU supports is configured, identical with the second low power consumpting state that the physical cpu of described computer system is supported, concrete configuration mode can be: at the ACPI (ACPI of virtual client operating system, Advanced Configuration and Power Interface) when showing, use the physics Basic Input or Output System (BIOS) (BIOS of computer system, Basic Input OutputSystem) list item relevant to low power consumpting state in the ACPI table that provides of module, as the list item that the ACPI table of client operating system is corresponding, and, MSR relevant to described first low power consumpting state (comprising the C4 ~ C7 etc. in low power consumpting state) in the special module register (MSR, Model-Specific Register) of virtual described client operating system.Because ACPI shows the fixing ACPI description list (FADT that specifies, Fixed ACPI Description Table) in include the information of low power consumpting state (comprising C2, C3) that CPU supports, therefore, client operating system is shown identical ACPI by use with the ACPI that physics BIOS provides and is shown and virtual relevant MSR, thus the low power consumpting state that VCPU is supported is identical with physical cpu.Here, also reported by amendment CPUID, make VCPU support mwait instruction, thus make client operating system by mwait instruction, to make VCPU enter corresponding Cx state.
(2) the first performance management function that described VCPU supports is configured, to report the second performance management function supported identical with the CPUID of described physical cpu, concrete configuration mode can be: according to described second performance management function, the CPUID of amendment VCPU reports, the CPUID of described VCPU is made to report the first performance management function supported, identical with the second performance management function.CPUID reports and is used for returning CPU attribute, comprising the performance management function that CPU supports, as enhancement mode Intel SpeedStep technology (EIST, Enhanced Intel SpeedStep Technology).The performance state Px of CPU is realized by EIST technology.
In above-mentioned steps 22, the application program that also will be related to by the power management states supported to virtual machine manager registration VCPU, in order to the process resource relevant to the open described power management states of described first client operating system, is specifically comprised:
(1) register the first handling procedure that described first low power consumpting state Cx relates to, described first handling procedure comprises the handling procedure reading I/O port and mwait instruction processing unit that described first low power consumpting state Cx uses.
For different operating system, the handling procedure that its low power consumpting state relates to is different.Such as, for Windows Windows XP, the handling procedure that its low power consumpting state relates to is the handling procedure reading I/O port, and Windows XP operating system reads the method for I/O port by using, control CPU enters corresponding low power consumpting state (Cx state).Corresponding Vista, Win7 operating system, uses mwait instruction processing unit usually, and control CPU enters corresponding low power consumpting state (Cx state).
(2) the second handling procedure that performance state Px corresponding to described first performance management function relates to is registered, described second handling procedure comprises special module register (MSR, the Model-Specific Register) read-write program that performance state Px corresponding to described first performance management function uses.Operating system can pass through MSR read-write program usually, the performance state of reading or control CPU.
Step 23, starts described client operating system, and in described client operating system start-up course, the power management states that described client operating system is supported by scanning VCPU; Virtual machine responds this scanning, reports the power management states of described VCPU support to client operating system, thus client operating system is obtained the power management states that described VCPU supports.Here, scanning comprise read MSR, send out cpuid instruction, read ACPI table etc.
Here, after virtual machine manager has started, guide client operating system to start.In the present embodiment, client operating system in start-up course, conventionally identical processing mode, scanning obtains the power management states that described VCPU supports, comprising:
Client operating system, in start-up course, reads the ACPI table of client operating system and the MSR that is correlated with, therefrom obtains the first low power consumpting state that VCPU supports; And client operating system is in start-up course, send cpuid instruction, and then the CPUID reading VCPU reports, thus report according to the CPUID of VCPU, obtain the first performance management function that VCPU supports, obtain the first performance state that VCPU supports.After the first low power consumpting state obtaining VCPU support and the first performance state, namely get the power management policy that client operating system is supported, that is, which power management instruction client operating system can support, carries out which power management operations.
Step 24, in the operational process of described client operating system, described client operating system (can be the power management policy of acquiescence according to the first power management policy of current setting, also can be the power management policy that user is arranged), corresponding power management operations is performed to described VCPU; Virtual machine manager tackles the power management operations of described client operating system for described VCPU, and calls described handling procedure on physical cpu, perform described power management operations, and then controls the current power state of described physical cpu.
Here, client operating system knows in start-up course which power management operations self can support, so in its operational process, can carry out corresponding power management operations according to the strategy of current setting.Virtual machine manager is responsible for tackling the power management operations of client operating system for described VCPU, and call the handling procedure of registration in advance, corresponding power management operations is performed to physical cpu, thus controls low power consumpting state and/or the performance state of physical cpu, specifically comprise:
(1), when virtual machine manager intercepts MSR read-write operation corresponding to performance state that client operating system sends, directly corresponding read-write operation is carried out to physical cpu, read or control the performance state of physical cpu;
(2) when virtual machine manager intercepts the low power consumpting state I/O port read operation that client operating system sends, directly carry out the read operation of I/O port to physical cpu, all cores controlling physical cpu all enter corresponding low power consumpting state;
(3) virtual machine manager is when intercepting the mwait instruction that client operating system sends, this mwait instruction transformation is become the read command of I/O port, carry out the read operation of I/O port to physical cpu, all cores controlling physical cpu all enter corresponding low power consumpting state.
In the present embodiment, when described computer system also includes other client operating system, at first power management policy of a client operating system according to current setting, after performing the management of corresponding cpu power, the power management policy of the display of other client operating system described in described computer system can also be controlled, consistent with described first power management policy.Such as, front-end driven can be adopted, mode that rear end drives carries out the synchronous of power management between each client operating system.
As can be seen from the above, the method for cpu power management in computer system described in the present embodiment, the power management states supported by the VCPU of pre-configured client operating system, makes client operating system can support corresponding power management operations; And, by tackling the power management operations of client operating system, this power management operations is performed on real physical cpu, make client operating system can realize power management operations truly, facilitate the power management of client operating system, improve the experience that user uses dummy machine system.
< embodiment 2>
In the present embodiment, client operating system adopts the mode of direct hardware access (DHA, Direct HardwareAccess), carries out power management operations to physical cpu.
Please refer to Fig. 3, the method for cpu power management in computer system described in the present embodiment, comprises the following steps:
Step 31, in virtual machine activation process, is client operating system simulation virtual center processor VCPU by virtual machine manager.
Here, step 31 is similar with the step 21 of embodiment 1.
Step 32, according to the power management demand of predetermined described VCPU, configure the power management states that described VCPU supports, and the access module configuring the first hardware that described power management states relates to is DHA pattern.
Here, the first low power consumpting state can supported according to predetermined described VCPU, the relevant MSR of the list item relevant to low power consumpting state and described first low power consumpting state in the ACPI table of virtual described client operating system, makes the ACPI of described client operating system show and described relevant MSR indicates described VCPU to support described first low power consumpting state; And/or according to the first performance management function that predetermined VCPU supports, the CPUID of amendment VCPU reports, and makes the CPUID of described VCPU report and supports described first performance management function.
The described first hardware supported DHA pattern of the present embodiment configuration, thus client operating system can directly operate the first hardware.Described first hardware specifically comprises: the hardware that the physical cpu I/O port that the first low power consumpting state (Cx state) relates to, mwait instruction relate to and the MSR that the first performance state (Px state) relates to.First performance state refers to the performance state that the first performance management function is corresponding.
Step 33, starts described client operating system, and in start-up course, described client operating system scanning obtains the power management states that described VCPU supports.
Here, step 33 is similar with the step 23 of embodiment 1.
Step 34, in the operational process of described client operating system, described client operating system is according to the first power management policy of current setting, directly described first hardware is conducted interviews by DHA mode, corresponding power management operations is performed to physical cpu, controls the current power state of described physical cpu.
Here, the DHA access module due to described first hardware configuration, therefore client operating system is when carrying out corresponding power management to VCPU, is directly to be conducted interviews to described first hardware by DHA mode, thus directly performs corresponding power management operations to physical cpu.That is, client operating system can directly conduct interviews to physical cpu I/O port, relevant MSR, realizes corresponding power management operations.
In the present embodiment, when described computer system also includes other client operating system, after above-mentioned steps 34, the power management policy of other client operating system display in the described computer system of further control, consistent with described first power management policy, to make the power management states of all client operating system displays in computer system all identical.
< embodiment 3>
Based on the method for cpu power management in the computer system that each embodiment above-mentioned provides, the present embodiment also accordingly provides a kind of computer system.As shown in Figure 4, this computer system comprises:
Hardware platform, described hardware platform at least comprises physical cpu;
Operate in the virtual machine manager on described hardware platform; And,
Operate in the first client operating system on described virtual machine manager, certainly, also may include the second client operating system, or more client operating system;
Described computer system also comprises:
Analog module, in described virtual machine manager start-up course, is described first client operating system simulation virtual center processor VCPU;
State configuration module, for the power management demand according to predetermined described VCPU, configures the power management states that described VCPU supports, and the process resource relevant to the open described power management states of described first client operating system;
Reporting module, in described first client operating system start-up course, reports the power management states of described VCPU support to described first client operating system;
Power management module, for in the operational process of described first client operating system, according to the first power management policy of described first client operating system current setting, by performing corresponding power management to described VCPU, control the current power supervisor status of the physical cpu of described computer system.
Above-mentioned power management module both can be arranged in the first client operating system, also can be arranged in virtual machine manager.
Corresponding to above-described embodiment 1, in the computer system described in the present embodiment, described state configuration module comprises:
First configuration module is for configuring the first low power consumpting state that described VCPU supports, identical with the second low power consumpting state that the physical cpu of described computer system is supported;
The first performance management function that second configuration module is supported for configuring described VCPU, to report the second performance management function supported identical with the CPUID of described physical cpu.
Corresponding to above-described embodiment 2, in the computer system described in the present embodiment, described state configuration module comprises:
3rd configuration module, for the first low power consumpting state supported according to predetermined VCPU, the relevant MSR of the list item relevant to low power consumpting state and virtual described first low power consumpting state in the ACPI table of virtual described first client operating system, makes the ACPI of described first client operating system show and described relevant MSR indicates described VCPU to support described first low power consumpting state;
4th configuration module, for the first performance management function supported according to predetermined VCPU, the CPUID of amendment VCPU reports, and the CPUID of described VCPU is reported and supports described first performance management function.
Corresponding to above-described embodiment 2, in the computer system described in the present embodiment, described state configuration module also comprises:
Access module configuration module, for before described first client operating system of startup, the access module configuring the first hardware that described power management states relates to is direct hardware access DHA pattern;
Described power management module comprises:
Direct access modules, for directly being conducted interviews to described first hardware by DHA mode, being performed power management operations to physical cpu, controlling the current power state of described physical cpu.
Corresponding to above-described embodiment 1, in the computer system described in the present embodiment, described state configuration module also comprises:
Registering modules, for before described first client operating system of startup, registers the handling procedure that described power management states relates to;
Described power management module comprises:
Blocking module, for tackling the power management operations of described first client operating system for described VCPU;
Calling module, performing described power management operations for calling described handling procedure, controlling the current power state of described physical cpu on physical cpu.
In computer system described in the present embodiment, also comprise:
Except other client operating system except described first client operating system;
State synchronized module, for controlling the power management policy of other client operating system display in described computer system, consistent with described first power management policy.
The above is only embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (11)

1. a method for cpu power management in computer system, is characterized in that, comprising:
Be the first client operating system simulation virtual center processor VCPU;
According to the power management demand of predetermined described VCPU, configure the power management states that described VCPU supports, comprising: configure the first low power consumpting state that described VCPU supports, identical with the second low power consumpting state that the physical cpu of described computer system is supported; Configure the first performance management function that described VCPU supports, to report the second performance management function supported identical with the CPUID of described physical cpu;
And the process resource relevant to the open described power management states of described first client operating system;
In the start-up course of described first client operating system, report the power management states of described VCPU support to described first client operating system;
In the operational process of described first client operating system, according to the first power management policy of described first client operating system current setting, by performing corresponding power management to described VCPU, control the current power supervisor status of the physical cpu of described computer system.
2. the method for claim 1, is characterized in that, the described power management demand according to predetermined described VCPU, configures the power management states that described VCPU supports, comprising:
According to the first low power consumpting state that predetermined VCPU supports, the relevant MSR of the list item relevant to low power consumpting state and virtual described first low power consumpting state in the ACPI table of virtual described first client operating system, makes the ACPI of described first client operating system show and described relevant MSR indicates described VCPU to support described first low power consumpting state;
According to the first performance management function that predetermined VCPU supports, the CPUID of amendment VCPU reports, and the CPUID of described VCPU is reported and supports described first performance management function.
3. method as claimed in claim 1 or 2, it is characterized in that, the described associated processing resources to the open described power management states of described first client operating system, comprising: the access module configuring the first hardware that described power management states relates to is direct hardware access DHA pattern;
The corresponding power management of described execution, control the current power state of the physical cpu of described computer system, comprise: according to the first power management policy of described first client operating system current setting, directly described first hardware is conducted interviews by DHA mode, corresponding power management operations is performed to physical cpu, controls the current power state of described physical cpu.
4. method as claimed in claim 1 or 2, is characterized in that,
The described associated processing resources to the open described power management states of described first client operating system, comprising: register the handling procedure that described power management states relates to;
The corresponding cpu power management of described execution, control the current power state of the physical cpu of described computer system, comprise: tackle the power management operations of described first client operating system for described VCPU, and call described handling procedure on physical cpu, perform described power management operations, control the current power state of described physical cpu.
5. method as claimed in claim 4, is characterized in that the handling procedure that the described power management states of described registration relates to comprises:
Register the first handling procedure that described first low power consumpting state relates to; With,
Register the second handling procedure that performance state corresponding to described first performance management function relates to.
6. the method for claim 1, is characterized in that,
In the corresponding cpu power management of described execution, after controlling the current power supervisor status of the physical cpu of described computer system, described method also comprises:
Control the power management policy of other client operating system display in described computer system, consistent with described first power management policy.
7. a computer system, is characterized in that, comprising:
Hardware platform, described hardware platform at least comprises physical cpu;
Operate in the virtual machine manager on described hardware platform; And,
Operate in the first client operating system on described virtual machine manager;
Described computer system also comprises:
Analog module, for being described first client operating system simulation virtual center processor VCPU;
State configuration module, for the power management demand according to predetermined described VCPU, configures the power management states that described VCPU supports, and the process resource relevant to the open described power management states of described first client operating system; Comprise: the first configuration module, for configuring the first low power consumpting state that described VCPU supports, identical with the second low power consumpting state that the physical cpu of described computer system is supported; The first performance management function that second configuration module is supported for configuring described VCPU, to report the second performance management function supported identical with the CPUID of described physical cpu;
Reporting module, in described first client operating system start-up course, reports the power management states of described VCPU support to described first client operating system;
Power management module, for in the operational process of described first client operating system, according to the first power management policy of described first client operating system current setting, by performing corresponding power management to described VCPU, control the current power supervisor status of the physical cpu of described computer system.
8. computer system as claimed in claim 7, is characterized in that,
Described state configuration module comprises:
3rd configuration module, for the first low power consumpting state supported according to predetermined VCPU, the relevant MSR of the list item relevant to low power consumpting state and virtual described first low power consumpting state in the ACPI table of virtual described first client operating system, makes the ACPI of described first client operating system show and described relevant MSR indicates described VCPU to support described first low power consumpting state;
4th configuration module, for the first performance management function supported according to predetermined VCPU, the CPUID of amendment VCPU reports, and the CPUID of described VCPU is reported and supports described first performance management function.
9. computer system as claimed in claim 7 or 8, is characterized in that,
Described state configuration module also comprises:
Access module configuration module, for before described first client operating system of startup, the access module configuring the first hardware that described power management states relates to is direct hardware access DHA pattern;
Described power management module comprises:
Direct access modules, for directly being conducted interviews to described first hardware by DHA mode, being performed power management operations to physical cpu, controlling the current power state of described physical cpu.
10. computer system as claimed in claim 7 or 8, is characterized in that,
Described state configuration module also comprises:
Registering modules, for registering the handling procedure that described power management states relates to;
Described power management module comprises:
Blocking module, for tackling the power management operations of described first client operating system for described VCPU;
Calling module, performing described power management operations for calling described handling procedure, controlling the current power state of described physical cpu on physical cpu.
11. computer systems as claimed in claim 7, is characterized in that, also comprise:
Except other client operating system except described first client operating system;
State synchronized module, for controlling the power management policy of other client operating system display in described computer system, consistent with described first power management policy.
CN200910244446.8A 2009-12-31 2009-12-31 Computer system and method of power supply management for central processing unit thereof Active CN102117113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910244446.8A CN102117113B (en) 2009-12-31 2009-12-31 Computer system and method of power supply management for central processing unit thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910244446.8A CN102117113B (en) 2009-12-31 2009-12-31 Computer system and method of power supply management for central processing unit thereof

Publications (2)

Publication Number Publication Date
CN102117113A CN102117113A (en) 2011-07-06
CN102117113B true CN102117113B (en) 2015-03-04

Family

ID=44215913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910244446.8A Active CN102117113B (en) 2009-12-31 2009-12-31 Computer system and method of power supply management for central processing unit thereof

Country Status (1)

Country Link
CN (1) CN102117113B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708619B (en) * 2015-07-21 2021-01-15 华为技术有限公司 Resource management method and device
CN107077182B (en) 2016-12-27 2020-01-07 深圳前海达闼云端智能科技有限公司 Power management method, device, electronic equipment and computer program product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154130A (en) * 2006-09-30 2008-04-02 联想(北京)有限公司 Virtual machine system and its power supply management method
CN101203834A (en) * 2005-06-30 2008-06-18 英特尔公司 Method, apparatus and system for bi-directional communication between a virtual machine monitor and an ACPI-compliant client operating system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101203834A (en) * 2005-06-30 2008-06-18 英特尔公司 Method, apparatus and system for bi-directional communication between a virtual machine monitor and an ACPI-compliant client operating system
CN101154130A (en) * 2006-09-30 2008-04-02 联想(北京)有限公司 Virtual machine system and its power supply management method

Also Published As

Publication number Publication date
CN102117113A (en) 2011-07-06

Similar Documents

Publication Publication Date Title
Shuja et al. A survey of mobile device virtualization: Taxonomy and state of the art
KR101479590B1 (en) A heterogeneous computer system for executing software
Andrus et al. Cells: a virtual mobile smartphone architecture
CN101526901B (en) Method and device for viewing files in computer
CN102110023B (en) Control method, system and computer for parallel running of multi-user operating system
CN110134446A (en) Start the method for PCIE device scanning
TW201110025A (en) Power management in a virtual machine farm at the local virtual machine platform level by a platform hypervisor extended with farm management server functions
CN104572164A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Feiteng portable computer
CN104572161A (en) UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson portable computer
CN104598309A (en) Multi-mode OS (operating system) based on OS virtualization and creating and switching method thereof
CN102117113B (en) Computer system and method of power supply management for central processing unit thereof
CN102880479B (en) A kind of method of remotely modifying BIOS property parameters and device
US20060143209A1 (en) Remote management of a computer system
CN100437494C (en) Method of dynamic updating resource configuration state
CN103870295B (en) Changing method and electronic equipment
Brown ACPI in Linux
Fornaeus Device hypervisors
Sun et al. Supporting Multiple OSes with OS Switching.
CN102567251A (en) Control method and control device for BIOS (basic input/output system)
US10740131B2 (en) Input-output based virtual CPU halt
CN201867790U (en) Virtual machine monitor and computer
Jung et al. Prototype of light-weight hypervisor for arm server virtualization
Sun et al. 2007 USENIX Annual Technical Conference
CN115981795A (en) Method for realizing system isolation on android device through container
CN104077150A (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant