CN101685404A - Computer and method for dynamically switching equipment in virtual environment - Google Patents

Computer and method for dynamically switching equipment in virtual environment Download PDF

Info

Publication number
CN101685404A
CN101685404A CN 200810223294 CN200810223294A CN101685404A CN 101685404 A CN101685404 A CN 101685404A CN 200810223294 CN200810223294 CN 200810223294 CN 200810223294 A CN200810223294 A CN 200810223294A CN 101685404 A CN101685404 A CN 101685404A
Authority
CN
China
Prior art keywords
hardware device
operating system
operational order
operating
virtual machine
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.)
Granted
Application number
CN 200810223294
Other languages
Chinese (zh)
Other versions
CN101685404B (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 CN 200810223294 priority Critical patent/CN101685404B/en
Publication of CN101685404A publication Critical patent/CN101685404A/en
Application granted granted Critical
Publication of CN101685404B publication Critical patent/CN101685404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a computer and a method for dynamically switching equipment in virtual environment. The computer comprises a hardware platform, a virtual machine manager, a first operating unitand a second operating unit; the hardware platform comprises at least one hardware equipment; the virtual machine manager is arranged on the hardware platform; the first operating unit is provided with a first operating system; when the first operating unit is operated by the user, the hardware equipment can be only used by the first operating unit; and the second operating unit is provided witha second operating system. The computer is characterized by also comprising a processing module which is used for moving out the moving-out command of the hardware equipment according to the requirement and moving the hardware equipment out of the first operating system and placing the hardware equipment in the second operating system so that the hardware equipment can be used only by the second operating system. Due to the adoption of the technical scheme, all the operating systems of the computer can share the hardware equipment independently, thus the performance and the sharing property ofthe hardware equipment are ensured, and the hardware equipment can be switched among different operating systems.

Description

Method for dynamically switching equipment in a kind of computing machine and the virtual environment
Technical field
The present invention relates to virtual machine technique in the computer realm, be meant method for dynamically switching equipment in a kind of computing machine and the virtual environment especially
Background technology
Common virtual machine architecture as shown in Figure 1, comprise hardware platform, be installed in the virtual machine manager (as VMM etc.) on the hardware platform, be installed in a plurality of operating systems on the virtual machine manager, as GuestOS1, Guest OS2 etc., these operating systems are managed by virtual machine manager the use of the equipment in the hardware platform and distribute, can between a plurality of operating systems, share in order to make equipment, virtual machine manager usually is to be the virtual equipment of a certain operating system, as hardware platform a physical network card is installed, if a plurality of operating systems all need to use this physical network card, normally virtual machine manager is respectively these operating systems virtual network interface card respectively, use for this operating system, but to can not show a candle to the performance of direct use physical network card good for the performance of this equipment like this, in order to improve system performance, adopt the mode that operating system exclusively enjoys equipment, but like this when a plurality of operating systems are wanted to use this equipment simultaneously, will cause conflict, perhaps work as previous operating system and using this equipment, when this equipment is not in idle condition, other operating system can't be used this equipment, influences the diversity that other operating systems are used this equipment.
The inventor finds that there are the following problems at least in the present technology in realizing process of the present invention:
In the dummy machine system, during a certain equipment of a plurality of operating systems in using hardware platform, existingly can not satisfy the demand of each operating system, cause the performance of system not high the employment mechanism of equipment.
Summary of the invention
The technical problem to be solved in the present invention provides method for dynamically switching equipment in a kind of computing machine and the virtual environment, make each operating system of computing machine can in certain period, exclusively enjoy this equipment, guaranteed the performance and the sharing of equipment, reached the purpose that hardware device switches between different operating system.
For solving the problems of the technologies described above, embodiments of the invention provide technical scheme as follows:
A kind of computing machine comprises:
Hardware platform comprises at least one hardware device;
Virtual machine manager is installed on the described hardware platform;
First operating unit is equipped with first operating system when the user operates described first operating unit, and described hardware device can only be used by described first operating unit;
Second operating unit is equipped with second operating system; It is characterized in that, also comprise:
Processing module, be used to receive the instruction of shifting out that described hardware device is shifted out in requirement, and shift out instruction described hardware device is moved to described second operating system from described first operating system according to described, described hardware device can only be used by described second operating system.
Preferably, described processing module comprises:
Receiver module is used to receive the instruction of shifting out that described hardware device is shifted out in requirement;
The first operational order generation module is used for shifting out instruction according to described, produces first operational order, and described first operational order is transferred to described first operating system;
The second operational order generation module, be used for according to described first operating system according to the shift out operating result of described first operational order described hardware device, produce second operational order, and described second operational order is transferred to described second operating system by described virtual machine manager;
Described second operating system is carried out described hardware device according to described second operational order and is inserted operation.
Preferably, the described first operational order generation module is specially: first analog module, be used for shifting out instruction according to described, and simulation produces the request event that shifts out in the power management standard, and the described request event that shifts out is transferred to described first operating system;
The described second operational order generation module is specially: second analog module, be used for according to described first operating system according to the described operating result that shifts out that shifts out request event to described hardware device, the equipment that simulation produces in the power management standard inserts incident, and described equipment insertion incident is transferred to described second operating system by described virtual machine manager;
Described second operating system is inserted the event scanning bus according to described equipment, and find described hardware device and load the driver of described hardware device, and the described hardware device of initialization.
Preferably, the described first operational order generation module is specially: the 3rd analog module, be used for shifting out instruction according to described, and simulation produces the power cut-off incident of power management, and the power cut-off incident of described power management is transferred to described first operating system;
The described second operational order generation module is specially: the 4th analog module, be used for placing power supply to be moved out of the operating result of state fully described hardware device according to the power cut-off incident of described power management according to described first operating system, simulate generation equipment wake events, and described equipment wake events is transferred to described second operating system by virtual machine manager;
Described second operating system is waken described hardware device up according to described equipment wake events.
Preferably, described first operating unit comprises:
Power management module is used for according to the described request event that shifts out operation being shifted out in described hardware device execution, and perhaps the power cut-off incident according to described power management places power supply to be moved out of state fully described hardware device.
Preferably, described second operating unit comprises:
Power management module is used for inserting the event scanning bus according to described equipment, finds described hardware device and loads the driver of described hardware device, and the described hardware device of initialization perhaps wakes described hardware device up according to described equipment wake events.
Preferably, described first operational order generation module and the described second operational order generation module are installed in the described virtual machine manager.
Preferably, the aforementioned calculation machine also comprises the 3rd operating unit, the 3rd operating system is installed, and described the 3rd operating system installation is on described virtual machine manager, and described first operational order generation module and the described second operational order generation module are installed in described the 3rd operating unit.
Preferably, described processing module comprises:
First processing sub, be installed in described first operating unit, be used to receive the instruction of shifting out to described hardware device, shift out instruction according to described, unload the driver of described hardware device, control described virtual machine manager described hardware device is shifted out from described first operating system, and described hardware device is inserted into described second operating system;
Second processing sub is installed in described second operating unit, is used to load the driver of described hardware device, and the described hardware device of initialization.
Preferably, described processing module comprises:
The 3rd processing sub, be installed in described first operating unit, be used to receive the instruction of shifting out to described hardware device, shift out instruction according to described, the state that places power supply to be moved out of fully described hardware device, control described virtual machine manager described hardware device is shifted out from described first operating system, and described hardware device is inserted into described second operating system;
The manages submodule everywhere, is installed in described second operating unit, is used for finding and waking up described hardware device.
Embodiments of the invention also provide method for dynamically switching equipment in a kind of virtual environment, comprising:
Receive the instruction of shifting out that hardware device is shifted out in requirement;
According to the described instruction control virtual machine manager that shifts out hardware device is shifted out from first operating system, and described hardware device is inserted into second operating system.
Preferably, hardware device is shifted out from first operating system, and the step that described hardware device is inserted into second operating system is specially according to the described instruction control virtual machine manager that shifts out;
Shift out instruction according to described, simulation produces first operational order, and described first operational order is transferred to described first operating system;
According to the shift out operating result of described first operational order to described hardware device, simulation produces second operational order according to described first operating system;
Described second operational order is transferred to described second operating system by described virtual machine manager.
Preferably, described first operational order is specially the request event that shifts out in the power management standard, and the equipment that described second operational order is specially in the power management standard inserts incident; Perhaps described first operational order is specially the power cut-off incident of device power supply (DPS) management, and described second operational order is specially the equipment wake events.
Preferably, describedly hardware device is shifted out from first operating system, and the step that described hardware device is inserted into second operating system is specially according to the described instruction control virtual machine manager that shifts out:
Shift out instruction according to described, unload the driver of described hardware device, control described virtual machine manager described hardware device is shifted out from described first operating system, and described hardware device is inserted into described second operating system.
Preferably, describedly hardware device is shifted out from first operating system, and the step that described hardware device is inserted into second operating system is specially according to the described instruction control virtual machine manager that shifts out:
Shift out instruction according to described,, control described virtual machine manager described hardware device is shifted out from described first operating system, and described hardware device is inserted into described second operating system the state that described hardware device places power supply to be moved out of fully.
Embodiments of the invention have following beneficial effect:
Such scheme simulates some by the bottom at computing machine and is used for incident that hardware device is shifted out or inserts, perhaps in each operating system, hardware device is operated by application program, make computing machine each operating system in virtual environment can in certain time period, exclusively enjoy certain hardware device, guarantee the performance and the sharing of hardware device, reached the purpose of the dynamic switching of hardware device between different operating system.
Description of drawings
Fig. 1 is existing dummy machine system structural representation;
Fig. 2 is an embodiments of the invention computer organization synoptic diagram;
Fig. 3 is a concrete structure synoptic diagram of computing machine shown in Figure 2;
Fig. 4 is a concrete structure synoptic diagram of computing machine shown in Figure 3;
Fig. 5 is another concrete structure synoptic diagram of computing machine shown in Figure 3;
Fig. 6 is that first processing module of computing machine shown in Figure 3 is installed in the synoptic diagram in the virtual machine manager;
Fig. 7 is that first processing module of computing machine shown in Figure 3 is installed in the synoptic diagram in the 3rd operating unit;
Fig. 8 is another concrete structure synoptic diagram of computing machine shown in Figure 2;
Fig. 9 is the another concrete structure synoptic diagram of computing machine shown in Figure 2;
Figure 10 is a method for dynamically switching equipment schematic flow sheet in the embodiments of the invention virtual environment.
Embodiment
For technical matters, technical scheme and advantage that embodiments of the invention will be solved is clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
Embodiments of the invention are in the existing dummy machine system, during a certain hardware device of a plurality of operating systems in using hardware platform, the problem that existing employment mechanism to hardware device is not being met each operating system provides method for dynamically switching equipment in a kind of computing machine and the virtual environment.
As shown in Figure 2, computing machine comprises hardware platform, and this hardware platform comprises at least one hardware device; Virtual machine manager is installed on the hardware platform; First operating unit is equipped with first operating system, current this hardware device that using of this first operating system; Second operating unit is equipped with second operating system; Processing module is used to receive the instruction of shifting out that hardware device is shifted out in requirement, according to shifting out the instruction control virtual machine manager hardware device is shifted out from first operating system, and described hardware device is switched to second operating system.
In this embodiment, by in computing machine, increasing by a processing module, when hardware device need be from an operating system migration to another operating system, receive the shift out instruction of user to hardware device, and shift out instruction according to this this hardware device is switched to another operating system from an operating system, make each operating system can in certain time period, exclusively enjoy certain hardware device, guarantee the performance and the sharing of hardware device, reached the switching of hardware device between different operating system.
As shown in Figure 3, in an alternative embodiment of the invention, above-mentioned processing module receive the user to hardware device shift out instruction after, need carry out sequence of operations, make this hardware device switch to second operating system from the first current operating system, specifically, processing module comprises:
Receiver module is used to receive the shift out instruction of user to hardware device;
The first operational order generation module is used for the instruction of shifting out to hardware device according to the user, produces first operational order, and this first operational order is transferred to this first operating system;
The second operational order generation module, be used for according to this first operational order hardware device being carried out and shift out the result of operation according to this first operating system, produce second operational order, and this second operational order is transferred to second operating system by virtual machine manager;
Second operating system is carried out hardware device according to this second operational order and is inserted operation.
When customer requirements shifted out this hardware device, this processing module was carried out above-mentioned steps, finishes the dynamic switching of hardware device from first operating system to second operating system like this.
As shown in Figure 4, above-mentioned hardware equipment shifts out from first operating system, and the process that is inserted into second operating system specifically can be realized by following dual mode:
First kind of mode, definition has Notify method (Notification Method) in the ACPI of computer system BIOS, provide equipment that needs dynamic migration and the incident that will support (eject request incident and Buscheck incident), and definition _ EJ0 (hot remove) method, the first operational order generation module is specially: first analog module, be used for according to shifting out instruction, simulation produces the request event that shifts out in the power management standard (ACPI), i.e. simulation produces eject request incident (SCI interruption), and will shift out request event and transfer to first operating system;
The OSPM module of first operating system (being power management module) receives that this shifts out request event, with closing device, closes the file of opening, and unloads the driver of this hardware device, produces to shift out operating result; At this moment, VMM tackles the operating result of the first operating system OSPM to equipment, and virtual machine manager unloads equipment from the virtual pci bus space of first operating system, and joins the virtual pci bus space of second operating system;
The second operational order generation module is specially: second analog module, be used for according to first operating system according to shifting out the shift out operating result of request event hardware device, the equipment that simulation produces in the power management standard inserts the incident incident, and equipment is inserted incident transfers to second operating system by virtual machine manager;
This second operating system also need define Notify method in ACPI BIOS, support the checkbus incident, and define corresponding method; After the OSPM module of second operating system was received this equipment insertion incident, knowing had new equipment to insert, and rescans bus, and the driver of loaded with hardware equipment again, initialization apparatus.
The second way, as shown in Figure 5, adopt the D0 state of ACPI normalized definition and the device power supply (DPS) Managed Solution of D3 state, the D0 state here is the equipment normal operating conditions, the D3 state is that the power supply of hardware device is moved out of fully, and all hardware devices can enter this state.In ACPI BIOS, the corresponding notify incident of define equipment.
The first operational order generation module is specially: the 3rd analog module, be used for the instruction of shifting out to hardware device according to the user, and simulation produces the power cut-off incident of device power supply (DPS) management, i.e. D3 incident, and the power cut-off incident of power management transferred to first operating system; After the OSPM module of first operating system receives the power cut-off incident of this power management, hardware device can be set to the D3 state;
The second operational order generation module is specially: the 4th analog module, be used for placing power supply to be moved out of the operating result of state (being the D3 state) fully hardware device according to the power cut-off incident of power management according to first operating system, generation equipment wake events, the i.e. incident of waking up from D3, and the equipment wake events transferred to second operating system by virtual machine manager; After the OSPM module of second operating system (being power management module) receives this equipment wake events, hardware device is waken up from the D3 state according to this equipment wake events.
In the foregoing description, be by some incident that hardware device is shifted out and inserts in the simulation generation ACPI standard, hardware device to first operating system shifts out operation, and this hardware device is inserted in second operating system, as shown in Figure 6, the above-mentioned first operational order generation module and the second operational order generation module can be installed in the virtual machine manager, realize above-mentioned function, certainly above-mentioned reception requires to shift out the receiver module that shifts out instruction of hardware device, also can be installed in first operating unit, also can be installed in this virtual machine manager, certainly as shown in Figure 7, computing machine also can comprise the 3rd operating unit, the 3rd operating system is installed, the 3rd operating system installation is on virtual machine manager, the first operational order generation module and the second operational order generation module also can be installed in the 3rd operating unit, above-mentioned receiver module can be installed in the 3rd operating unit, also can be installed in first operating unit, this first operational order generation module and the second operational order generation module can certainly be installed in other operating systems or software/hardware platform that can support these module operations.
In the foregoing description, realize the dynamic switching of hardware device by the relevant device Action Events in the first operational order generation module and the second operational order generation module simulation ACPI standard from first operating system to second operating system, certainly, also can adopt other mode to realize the dynamic switching of hardware device from first operating system to second operating system, as adopting the mode of difference set up applications in first operating system and second operating system, shown in Figure 8, processing module can also comprise:
First processing sub, be installed in first operating unit, be used for the instruction of shifting out to hardware device according to the user, the driver of unloading hardware device, and notice virtual machine manager, by virtual machine manager hardware device is shifted out from first operating system, and hardware device is inserted into second operating system; These functions of this first processing sub can be realized by an application program in specific implementation;
Virtual machine manager is notified second operating system, and second operating unit comprises second processing sub, and this second processing sub is used to scan bus, finds new hardware device, the driver of loaded with hardware equipment, and this hardware device of initialization.So just realized the dynamic switching of hardware device from first operating system to second operating system, these functions of this second processing sub also can be realized by an application program.
Equally, for above-mentioned power management scheme, can realize that by the application program in first operating system and second operating system as shown in Figure 9, above-mentioned processing module comprises equally:
The 3rd processing sub, be installed in first operating unit, be used for the instruction of shifting out to hardware device according to the user, call the interface of hardware device, the state that places power supply to be moved out of fully hardware device, i.e. D3 state, this hardware device outage, virtual machine manager shifts out this hardware device from first operating system, and this hardware device is inserted into described second operating system; Virtual machine manager is notified second operating system, has to manage submodule everywhere in second operating unit, and this is managed submodule everywhere and be used to find this hardware device, call the interface of this hardware device, this hardware device is carried out the D0 operation, and wake this hardware device, device power up.
In the foregoing description, first operating system and second operating system are an example, the 3rd operating system and the 4th operating system can be arranged, up to n operating system; Simulate some by virtual machine manager at bottom and be used for shifting out or the insertion incident hardware device, perhaps in each operating system, hardware device shifted out or inserts operation by application program, make computing machine each operating system in virtual environment can in certain time period, exclusively enjoy certain hardware device, the performance and the sharing of hardware device have been guaranteed, when the user need use this hardware device in another operating system, just can be by shifting out instruction, this hardware device is shifted out from current first operating system of using, and be inserted into second operating system that will use this hardware device, reached the purpose of the dynamic switching of hardware device between different operating system.
As shown in figure 10, embodiments of the invention also provide method for dynamically switching equipment in a kind of virtual environment, comprising:
Step S101 receives the instruction of shifting out that hardware device is shifted out in requirement;
Step S102 shifts out hardware device according to shifting out the instruction control virtual machine manager, and this hardware device is inserted into second operating system from first operating system.
Wherein, above-mentioned steps S102 is specially:
According to shifting out instruction, produce first operational order, and first operational order is transferred to first operating system; First operating system shifts out operation according to this first operational order to this hardware device, produces an operating result, shifts out operating result according to this again, produces second operational order;
At this moment, virtual machine manager unloads hardware device from the virtual pci bus space of first operating system, and joins the virtual pci bus space of second operating system;
Second operational order is transferred to second operating system by virtual machine manager, and second operating system is inserted operation according to this second operational order to this hardware device.
Specifically, above-mentioned first operational order is specially and shifts out request event (eject request incident) in the power management standard (ACPI), and second operational order is specially equipment and inserts or the scan bus incident; Perhaps first operational order is specially device power supply (DPS) management D3 incident, and second operational order is specially the equipment wake events, the incident that equipment is waken up from the D3 state.
Above-mentioned steps S102 can also be specially: the application program of first operating system is according to shifting out instruction, the driver of unloading hardware device, the control virtual machine manager shifts out hardware device from first operating system, and this hardware device is inserted into second operating system, this hardware device of the application discovery of second operating system, and load the driver of this hardware device, this hardware device of initialization.
Above-mentioned steps S102 can also be specially: according to the shift out instruction of user to hardware device, the state that the application program of first operating system places power supply to be moved out of fully hardware device, it is the D3 state, the control virtual machine manager shifts out hardware device from first operating system, and this hardware device is inserted into second operating system, second operating system is found this hardware device, wakes this hardware device up, powers on for this hardware device.
Said method embodiment simulates some by the bottom at computing machine and is used for hardware device is shifted out or the insertion incident, perhaps in each operating system, hardware device shifted out or inserts operation by application program, make computing machine each operating system in virtual environment can in certain time period, exclusively enjoy certain hardware device, the performance and the sharing of hardware device have been guaranteed, when the user need use this hardware device in another operating system, just can be by shifting out instruction, this hardware device is shifted out from current first operating system of using, and be inserted into second operating system that will use this hardware device, reached the purpose of the dynamic switching of hardware device between different operating system.
The above is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (15)

1. computing machine comprises:
Hardware platform comprises at least one hardware device;
Virtual machine manager is installed on the described hardware platform;
First operating unit is equipped with first operating system, and when the user operated described first operating unit, described hardware device can only be used by described first operating unit;
Second operating unit is equipped with second operating system; It is characterized in that, also comprise:
Processing module, be used to receive the instruction of shifting out that described hardware device is shifted out in requirement, and shift out instruction described hardware device is moved to described second operating system from described first operating system according to described, described hardware device can only be used by described second operating system.
2. computing machine according to claim 1 is characterized in that, described processing module comprises:
Receiver module is used to receive the instruction of shifting out that described hardware device is shifted out in requirement;
The first operational order generation module is used for shifting out instruction according to described, produces first operational order, and described first operational order is transferred to described first operating system;
The second operational order generation module, be used for according to described first operating system according to the shift out operating result of described first operational order described hardware device, produce second operational order, and described second operational order is transferred to described second operating system by described virtual machine manager;
Described second operating system is carried out described hardware device according to described second operational order and is inserted operation.
3. computing machine according to claim 2, it is characterized in that, the described first operational order generation module is specially: first analog module, be used for shifting out instruction according to described, simulation produces the request event that shifts out in the power management standard, and the described request event that shifts out is transferred to described first operating system;
The described second operational order generation module is specially: second analog module, be used for according to described first operating system according to the described operating result that shifts out that shifts out request event to described hardware device, the equipment that simulation produces in the power management standard inserts incident, and described equipment insertion incident is transferred to described second operating system by described virtual machine manager;
Described second operating system is inserted the event scanning bus according to described equipment, and find described hardware device and load the driver of described hardware device, and the described hardware device of initialization.
4. computing machine according to claim 2, it is characterized in that, the described first operational order generation module is specially: the 3rd analog module, be used for shifting out instruction according to described, simulation produces the power cut-off incident of power management, and the power cut-off incident of described power management is transferred to described first operating system;
The described second operational order generation module is specially: the 4th analog module, be used for placing power supply to be moved out of the operating result of state fully described hardware device according to the power cut-off incident of described power management according to described first operating system, simulate generation equipment wake events, and described equipment wake events is transferred to described second operating system by virtual machine manager;
Described second operating system is waken described hardware device up according to described equipment wake events.
5. according to claim 3 or 4 described computing machines, it is characterized in that described first operating unit comprises:
Power management module is used for according to the described request event that shifts out operation being shifted out in described hardware device execution, and perhaps the power cut-off incident according to described power management places power supply to be moved out of state fully described hardware device.
6. according to claim 3 or 4 described computing machines, it is characterized in that described second operating unit comprises:
Power management module is used for inserting the event scanning bus according to described equipment, finds described hardware device and loads the driver of described hardware device, and the described hardware device of initialization perhaps wakes described hardware device up according to described equipment wake events.
7. computing machine according to claim 2 is characterized in that, described first operational order generation module and the described second operational order generation module are installed in the described virtual machine manager.
8. computing machine according to claim 2, it is characterized in that, also comprise the 3rd operating unit, the 3rd operating system is installed, described the 3rd operating system installation is on described virtual machine manager, and described first operational order generation module and the described second operational order generation module are installed in described the 3rd operating unit.
9. computing machine according to claim 1 is characterized in that, described processing module comprises:
First processing sub, be installed in described first operating unit, be used to receive the instruction of shifting out to described hardware device, shift out instruction according to described, unload the driver of described hardware device, control described virtual machine manager described hardware device is shifted out from described first operating system, and described hardware device is inserted into described second operating system;
Second processing sub is installed in described second operating unit, is used to load the driver of described hardware device, and the described hardware device of initialization.
10. computing machine according to claim 1 is characterized in that, described processing module comprises:
The 3rd processing sub, be installed in described first operating unit, be used to receive the instruction of shifting out to described hardware device, shift out instruction according to described, the state that places power supply to be moved out of fully described hardware device, control described virtual machine manager described hardware device is shifted out from described first operating system, and described hardware device is inserted into described second operating system;
The manages submodule everywhere, is installed in described second operating unit, is used for finding and waking up described hardware device.
11. method for dynamically switching equipment in the virtual environment is characterized in that, comprising:
Receive the instruction of shifting out that hardware device is shifted out in requirement;
According to the described instruction control virtual machine manager that shifts out hardware device is shifted out from first operating system, and described hardware device is inserted into second operating system.
12. method according to claim 11 is characterized in that, according to the described instruction control virtual machine manager that shifts out hardware device is shifted out from first operating system, and the step that described hardware device is inserted into second operating system is specially;
Shift out instruction according to described, simulation produces first operational order, and described first operational order is transferred to described first operating system;
According to the shift out operating result of described first operational order to described hardware device, simulation produces second operational order according to described first operating system;
Described second operational order is transferred to described second operating system by described virtual machine manager.
13. method according to claim 12 is characterized in that, described first operational order is specially the request event that shifts out in the power management standard, and the equipment that described second operational order is specially in the power management standard inserts incident; Perhaps described first operational order is specially the power cut-off incident of device power supply (DPS) management, and described second operational order is specially the equipment wake events.
14. method according to claim 11 is characterized in that, describedly according to the described instruction control virtual machine manager that shifts out hardware device is shifted out from first operating system, and the step that described hardware device is inserted into second operating system is specially:
Shift out instruction according to described, unload the driver of described hardware device, control described virtual machine manager described hardware device is shifted out from described first operating system, and described hardware device is inserted into described second operating system.
15. method according to claim 11 is characterized in that, describedly according to the described instruction control virtual machine manager that shifts out hardware device is shifted out from first operating system, and the step that described hardware device is inserted into second operating system is specially:
Shift out instruction according to described,, control described virtual machine manager described hardware device is shifted out from described first operating system, and described hardware device is inserted into described second operating system the state that described hardware device places power supply to be moved out of fully.
CN 200810223294 2008-09-28 2008-09-28 Device and method for dynamically switching equipment in virtual environment Active CN101685404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810223294 CN101685404B (en) 2008-09-28 2008-09-28 Device and method for dynamically switching equipment in virtual environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810223294 CN101685404B (en) 2008-09-28 2008-09-28 Device and method for dynamically switching equipment in virtual environment

Publications (2)

Publication Number Publication Date
CN101685404A true CN101685404A (en) 2010-03-31
CN101685404B CN101685404B (en) 2013-06-05

Family

ID=42048573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810223294 Active CN101685404B (en) 2008-09-28 2008-09-28 Device and method for dynamically switching equipment in virtual environment

Country Status (1)

Country Link
CN (1) CN101685404B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646080A (en) * 2011-02-22 2012-08-22 鸿富锦精密工业(深圳)有限公司 System and method for configuring USB (universal serial bus) equipment in virtual environment
CN103123612A (en) * 2011-11-21 2013-05-29 联想(北京)有限公司 Control method for shared device and electronic equipment
CN103246342A (en) * 2012-02-10 2013-08-14 联想(北京)有限公司 Electronic device and power management method thereof
CN103927227A (en) * 2014-04-16 2014-07-16 乐视致新电子科技(天津)有限公司 Method and device for switching multiple operating systems and smart television
CN104571964A (en) * 2015-01-15 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Dual system based external storage device mounting method and system
CN105159633A (en) * 2015-07-07 2015-12-16 国鼎网络空间安全技术有限公司 Virtual machine switching display smoothing method and system
CN106201565A (en) * 2015-05-08 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Method, device and the terminal of a kind of multiple operating system terminal carry SD card
CN108401453A (en) * 2017-12-27 2018-08-14 深圳前海达闼云端智能科技有限公司 A kind of method, apparatus and intelligent terminal of control display screen
CN115562765A (en) * 2022-12-05 2023-01-03 北京小米移动软件有限公司 Control method and device of positioning assembly, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100472451C (en) * 2006-04-20 2009-03-25 联想(北京)有限公司 Dummy machine system and its hardware access method
CN100472452C (en) * 2006-06-23 2009-03-25 联想(北京)有限公司 Method for switching a system of virtual machine and hardware devices
CN100489782C (en) * 2006-06-29 2009-05-20 联想(北京)有限公司 Virtual machine system and accessing control method of hardware equipment
CN101154130B (en) * 2006-09-30 2012-07-04 联想(北京)有限公司 Virtual machine system and its power supply management method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646080A (en) * 2011-02-22 2012-08-22 鸿富锦精密工业(深圳)有限公司 System and method for configuring USB (universal serial bus) equipment in virtual environment
CN103123612A (en) * 2011-11-21 2013-05-29 联想(北京)有限公司 Control method for shared device and electronic equipment
CN103246342A (en) * 2012-02-10 2013-08-14 联想(北京)有限公司 Electronic device and power management method thereof
CN103246342B (en) * 2012-02-10 2016-03-02 联想(北京)有限公司 Electronic equipment and method for managing power supply thereof
CN103927227A (en) * 2014-04-16 2014-07-16 乐视致新电子科技(天津)有限公司 Method and device for switching multiple operating systems and smart television
CN104571964A (en) * 2015-01-15 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Dual system based external storage device mounting method and system
CN106201565A (en) * 2015-05-08 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Method, device and the terminal of a kind of multiple operating system terminal carry SD card
CN105159633A (en) * 2015-07-07 2015-12-16 国鼎网络空间安全技术有限公司 Virtual machine switching display smoothing method and system
CN108401453A (en) * 2017-12-27 2018-08-14 深圳前海达闼云端智能科技有限公司 A kind of method, apparatus and intelligent terminal of control display screen
WO2019127082A1 (en) * 2017-12-27 2019-07-04 深圳前海达闼云端智能科技有限公司 Display screen control method and apparatus, and intelligent terminal
CN108401453B (en) * 2017-12-27 2020-01-07 深圳前海达闼云端智能科技有限公司 Method and device for controlling display screen and intelligent terminal
CN115562765A (en) * 2022-12-05 2023-01-03 北京小米移动软件有限公司 Control method and device of positioning assembly, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101685404B (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN101685404B (en) Device and method for dynamically switching equipment in virtual environment
CN102110023B (en) Control method, system and computer for parallel running of multi-user operating system
CN102326132B (en) Power management to maximize reduced power state for virtual machine platforms
Katrinis et al. Rack-scale disaggregated cloud data centers: The dReDBox project vision
KR100866604B1 (en) Power control apparatus and method thereof
CN101819564B (en) Method and device for assisting communication between virtual machines
US8479031B2 (en) System switching unit having a switch to switch on/off a channel for data interaction between a first system and the bus interface of a second system according to the operation state of the second system
US8826052B1 (en) Methods and apparatus for power mode control for PDA with separate communications and applications processors
CN100399273C (en) System of virtual machine, and method for configuring hardware
CN101788845B (en) For performing the method and system of computer task reducing power consumption state
CN102053857A (en) Apparatus for managing a running virtual machine and switching method thereof
US20100110645A1 (en) Telecommuncations chassis having mezzanine card slots
CN102419719A (en) Computer system and method for starting same
US8473460B2 (en) Driver model for replacing core system hardware
CN102063398B (en) Board card equipment-based inter-board seamless data exchange method
CN107220102A (en) The dormancy of virtual machine and awakening method and system
CN101901159A (en) Method and system for loading Linux operating system on multi-core CPU
CN104978233A (en) Method and device for dynamically using memory
CN101553791B (en) Driver model for replacing core system hardware
CN101639780A (en) Shared system and method thereof for basic input-output system of high density server
CN101639814B (en) Input-output system facing to multi-core platform and networking operation system and method thereof
CN101685407A (en) Computer and method for scheduling task in virtual environment
US20070153009A1 (en) Display chip sharing method
CN101452405A (en) Method for time-sharing using fixed t peripheral device for multiple operating systems
CN201867790U (en) Virtual machine monitor and computer

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