CN101751283B - Virtual machine monitor, dummy machine system and client operation system state acquiring method - Google Patents
Virtual machine monitor, dummy machine system and client operation system state acquiring method Download PDFInfo
- Publication number
- CN101751283B CN101751283B CN200810240173.5A CN200810240173A CN101751283B CN 101751283 B CN101751283 B CN 101751283B CN 200810240173 A CN200810240173 A CN 200810240173A CN 101751283 B CN101751283 B CN 101751283B
- Authority
- CN
- China
- Prior art keywords
- operating system
- data message
- client operating
- instruction
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention provides virtual machine monitor, dummy machine system and client operation system state acquiring method, this virtual machine monitor, including: preserve module, for preserving a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses; Acquisition module, for after the state that receives obtains instruction, according to described corresponding relation, it is determined that obtain, with described state, the first actual physics internal memory that in instruction, the first client operating system of instruction is corresponding; Described first client operating system is one in described client operating system; First data message read through model, for reading the first data message in described first actual physics internal memory. Utilize the present invention, make the information obtaining the GOS actual physics internal memory used under virtual state be possibly realized.
Description
Technical field
The present invention relates to virtual technology field, particularly a kind of virtual machine monitor, dummy machine system and client operation system state acquiring method.
Background technology
In a computer, the stability of operating system is extremely important. But, more stable operating system be likely to can collapse, the phenomenon such as blue screen, blank screen, this can cause that all application programs under operating system cannot continue executing with, and can only restart computer.
In order to find out the reason that operating system goes wrong, in prior art, collapse in operating system, the phenomenon such as blue screen, blank screen time, system can automatically generate a DUMP file, this DUMP file have recorded, why the content in the internal memory of computer system when operating system goes wrong, user or Debugger (debugger) can go wrong according to this DUMP file analysis operating system.
In existing dummy machine system, by VMM (VirtualMachineMonitor, virtual machine monitor) all of hardware resource of unified management, and fictionalize for the GOS environment run.
Inventor is in the process realizing the embodiment of the present invention, it has been found that prior art at least has the disadvantage in that
In existing dummy machine system, particularity due to hardware resource distribution, so when GOS is in normal, if needing to obtain current system conditions, the state that then performs obtains operation, but now can only obtain data situation in the virtual memory that VMM is its distribution, and the data cases of the GOS actual physics internal memory really used cannot be obtained;
And occurring that collapse, blue screen, blank screen, application program such as are made mistakes at the fault once GOS, it is possible to the data message of virtual memory also cannot obtain.
So, whether normal the state regardless of GOS is, and existing dummy machine system at most also can only obtain the data cases in the virtual virtual memory of VMM, and this is unfavorable for carrying out fully and completely system operation situation analysis.
Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of virtual machine monitor, dummy machine system and client operation system state acquiring method, makes under virtual environment, and GOS can obtain the relevant information of actual physics internal memory.
To achieve these goals, embodiments provide a kind of virtual machine monitor, including:
Preserve module, be used for preserving a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
Acquisition module, for after the state that receives obtains instruction, according to described corresponding relation, it is determined that obtain, with described state, the first actual physics internal memory that in instruction, the first client operating system of instruction is corresponding; Described first client operating system is one in described client operating system;
First data message read through model, for reading the first data message in described first actual physics internal memory.
Above-mentioned virtual machine monitor, wherein, also includes:
First data message writing module, for writing true I/O equipment by the first data message with file mode.
Above-mentioned virtual machine monitor, wherein, also includes:
Second data message read through model, is used for the second data message reading in the depositor of central processing unit;
Second data message writing module, for writing described true I/O equipment by described second data message.
Above-mentioned virtual machine monitor, wherein, described true I/O equipment is physical storage device.
Above-mentioned virtual machine monitor, wherein,
Described first client operating system is different client operating system from the second client operating system sending described state and obtaining instruction.
Above-mentioned virtual machine monitor, wherein, it is master operating system that transmission state obtains the operating system of instruction.
To achieve these goals, the embodiment of the present invention additionally provides a kind of dummy machine system, and including client operating system and virtual machine monitor, described virtual machine monitor includes:
Preserve module, be used for preserving a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
Acquisition module, for after the state that receives obtains instruction, according to described corresponding relation, it is determined that obtain, with described state, the first actual physics internal memory that in instruction, the first client operating system of instruction is corresponding; Described first client operating system is one in described client operating system;
First data message read through model, for reading the first data message in described first actual physics internal memory.
Above-mentioned dummy machine system, wherein, also includes:
First data message writing module, for writing true I/O equipment by the first data message with file mode.
Above-mentioned dummy machine system, wherein, described virtual machine monitor also includes:
Second data message read through model, is used for the second data message reading in the depositor of central processing unit;
Second data message writing module, for writing described true I/O equipment by described second data message.
Above-mentioned dummy machine system, wherein, described true I/O equipment is physical storage device.
Above-mentioned dummy machine system, wherein, described first client operating system is different client operating system from the second client operating system sending described state and obtaining instruction.
Above-mentioned dummy machine system, wherein, it is master operating system that transmission state obtains the operating system of instruction.
To achieve these goals, the embodiment of the present invention additionally provides a kind of client operation system state acquiring method, including:
Pre-save a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
After the state that receives obtains instruction, according to described corresponding relation, it is determined that obtain, with described state, the first actual physics internal memory that in instruction, the first client operating system of instruction is corresponding; Described first client operating system is one in described client operating system; Read the first data message in described first actual physics internal memory.
Above-mentioned method, wherein, also includes:
Described first data message is write true I/O equipment with file mode.
Above-mentioned method, wherein, also includes:
Read the second data message in the depositor of physical central processor;
Described second data message is write described true I/O equipment.
Above-mentioned method, wherein, described first client operating system is different client operating system from the second client operating system sending described state and obtaining instruction.
Above-mentioned method, wherein, the operating system sending the acquisition instruction of described state is master operating system.
The embodiment of the present invention has following beneficial effect:
The virtual machine monitor of the embodiment of the present invention, in dummy machine system and client operation system state acquiring method, in the process creating GOS, VMM is recorded as the virtual memory of GOS distribution, and the corresponding relation between virtual memory and actual physics internal memory, when needing the state obtaining GOS, according to the corresponding relation between virtual memory and actual physics internal memory, obtain the related data of record in physical memory, therefore under virtual environment, GOS also is able to obtain the relevant information of actual physics internal memory, it is simple to accident analysis.
Meanwhile, when a GOS breaks down, the embodiment of the present invention also is able to by other normal GOS to the data in the actual physics internal memory obtaining this fault GOS and using.
Accompanying drawing explanation
Fig. 1 is the structural representation of the VMM of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for the embodiment of the present invention.
Detailed description of the invention
The virtual machine monitor of the embodiment of the present invention, in dummy machine system and client operation system state acquiring method, in the process creating GOS, VMM is recorded as the virtual memory of GOS distribution, and the corresponding relation between virtual memory and actual physics internal memory, when needing the state obtaining GOS, according to the corresponding relation between virtual memory and actual physics internal memory, obtain the related data of record in physical memory, be saved in DUMP file.
Embodiments of the invention dummy machine system includes physical hardware, VMM and GOS, wherein:
As it is shown in figure 1, described VMM includes:
Distribution module, for distributing virtual memory for client operating system;
Mapping block, for setting up the mapping relations between described virtual memory and actual physics internal memory;
Preserve module, preserve the mark of described client operating system and described mapping relations for correspondence;
First acquisition module, for, after the state that receives obtains instruction, identifying according to the client operating system in described instruction, it is determined that the first mapping relations corresponding with described client operating system mark in described preservation module;
Second acquisition module, for obtaining the first actual physics internal memory of record in described first mapping relations;
First data message read through model, for reading the first data message in described first actual physics internal memory;
First data message writing module, for writing true I/O equipment by the first data message in described first actual physics internal memory.
Certainly, this data message writing module is unnecessary in some cases, only utilizes the first data message to carry out subsequent analysis at needs and uses just needs.
Certainly, simpler is, preserve the mark of the module directly described client operating system of corresponding preservation and the actual physics internal memory (namely preserving the corresponding relation between client operating system and its actually used actual physics internal memory) that this client operating system is actually used, first acquisition module and the second acquisition module unite two into one, and directly obtain the first actual physics internal memory of client operating system.
Two kinds of implementations of summary, it is found that preserve in module and save a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses; And acquisition module can determine according to this corresponding relation and obtains, with described state, the first actual physics internal memory that in instruction, the first client operating system of instruction is corresponding.
Two kinds of forms of expression of this corresponding relation are as follows:
Client operating system ID to should client operating system use actual physics internal memory; Or
Client operating system ID to should client operating system use virtual memory, this virtual memory correspondence actual physics internal memory.
The actual physics internal memory that client operating system uses can be determined by any one corresponding relation.
Below above-mentioned VMM is described in detail.
VMM is responsible for the management work of all GOS, assuming that when GOSA starts, distribution module is save as 256M in the GOSA physical vlan distributed, and physical vlan internal memory can not make GOSA really behave, GOSA runs on the basis needing to be based upon the physical memory of reality, therefore, VMM needs the physical vlan internal memory of distribution is mapped to actual physics internal memory, mapping relations therebetween are set up now by being mapped on actual physics internal memory by this physical vlan internal memory, by such process, although what GOSA saw is probably continuous print 256 MB of memory, but GOSA uses the actual physics internal memory corresponding with this 256M virtual memory in running.
After by above-mentioned process, it is necessary to preserve the mapping relations between physical vlan internal memory and actual physics internal memory for this GOSA, in order to follow-up analysis.
In some period, GOS (can be GOSA, it is also possible to be other GOS) needs to obtain the system mode of GOSA, now sends a state to VMM and obtains instruction, and state obtains the mark that instruction includes GOSA.
The VMM mark according to the GOSA in instruction, obtain the mapping relations between the physical vlan internal memory and the actual physics internal memory that identify corresponding preservation of GOSA, obtain the actual physics internal memory of record in mapping relations, the actual physics internal memory now obtained is exactly the actually used physical memory of GOSA, it can be one section of internal memory, 0-256M in the physical memory of main frame, it is also possible to multistage physical memory forms, such as 0-128M and 256-384M these two sections.
After obtaining the actually used physical memory of GOSA, read through model just can read the data message in the actually used physical memory of this GOSA, and utilize writing module be written to reality I/O equipment (as hard disk, can imprinting disk, USB flash disk, portable hard drive etc.).
Once GOS breaks down, the reason bringing fault is likely to be the data in physical memory self, it could also be possible that the distribution situation that data are in physical memory, prior art is only capable of obtain data self, and data distribution in actual physics internal memory cannot be obtained, so having its limitation in the accident analysis current political situation, and utilize the embodiment of the present invention, not only can obtain data, it is also possible to obtain data distribution in actual physics internal memory, therefore advantageously in accident analysis.
Simultaneously, for prior art, the generation of DUMP file needs DUMP device drives spin lock to open, and needs to load DUMP device drives, otherwise cannot produce DUMP file, and once GOS breaks down, when above-mentioned condition is false, DUMP file just cannot be obtained, and for the embodiment of the present invention, the normal GOS that can utilize other sends instruction to VMM, and this instruction includes the mark of fault GOS, so not havinging the situation that cannot generate DUMP file.
Simultaneously as eliminate in the embodiment of the present invention GOS, whether loading equipemtn drives restriction in time, and the time obtaining internal memory can be faster.
The dummy machine system of the embodiment of the present invention includes client operating system, virtual machine monitor, wherein:
The state that is provided with in described client operating system obtains instruction sending module, obtains instruction for sending the state including client operating system mark to VMM;
Described VMM includes:
Distribution module, for distributing virtual memory for described client operating system;
Mapping block, for setting up the mapping relations between described virtual memory and actual physics internal memory;
Preserve module, preserve the mark of described client operating system and described mapping relations for correspondence;
First acquisition module, for obtaining the described client operating system mark in instruction, after obtaining the first mapping relations corresponding with described client operating system mark in described preservation module according to described state;
Second acquisition module, for obtaining the first actual physics internal memory of record in described first mapping relations;
First data message read through model, for reading the first data message in described first actual physics internal memory;
First data message writing module, for writing true I/O equipment by the first data message in described first actual physics internal memory.
Certainly, simpler is, preserving the mark of the module directly described client operating system of corresponding preservation and the actual physics internal memory that this client operating system is actually used, the first acquisition module and the second acquisition module unite two into one, and directly obtain the first actual physics internal memory of client operating system.
Certainly, it is analyzed to obtain more information further, the VMM of the embodiment of the present invention also includes:
Second data message read through model, is used for the second data message reading in the depositor of physical cpu;
Second data message writing module, for writing true I/O equipment by described second data message.
In a particular embodiment of the present invention, owing to GOS needs mutual with CR3 depositor when starting, so VMM monitors the start-up course of GOS by intercepting and capturing CR3 depositor.
The method of the embodiment of the present invention is as in figure 2 it is shown, include:
Step 21, when the first client operating system starts, for described first client operating system distribution virtual memory;
Step 22, sets up the mapping relations between described virtual memory and actual physics internal memory;
Step 23, the corresponding mark preserving described first client operating system and described mapping relations;
Step 24, the state from the second client operating system that receives obtains instruction, and obtains the client operating system mark that described state obtains in instruction;
Step 25, obtains the first mapping relations corresponding to client operating system mark that described state obtains in instruction;
Step 26, reads the data message in the first actual physics internal memory of record in described first mapping relations;
Step 27, writes true I/O equipment by the data message in described first actual physics internal memory.
Certainly, for the ease of carrying out accident analysis more accurately, the method also includes:
Read the second data message in the depositor of physical cpu; With
Described second data message is write described true I/O equipment.
In the above-described embodiment, state obtains instruction and is sent by client operating system, and certainly, state obtains instruction and can also be sent by master operating system (such as service operating system SOS or host operating system HOS), its processing procedure is identical, is not described in detail at this.
The virtual machine monitor of the embodiment of the present invention, in dummy machine system and client operation system state acquiring method, in the process creating GOS, VMM is recorded as the virtual memory of GOS distribution, and the corresponding relation between virtual memory and actual physics internal memory, when needing the state obtaining GOS, according to the corresponding relation between virtual memory and actual physics internal memory, obtain the related data of record in physical memory, therefore under virtual environment, GOS also is able to obtain the relevant information of actual physics internal memory, it is simple to accident analysis.
Meanwhile, when a GOS breaks down, the embodiment of the present invention also is able to by other normal GOS to the data in the actual physics internal memory obtaining this fault GOS and using.
The above is only the preferred embodiment 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 making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (14)
1. a virtual machine monitor, it is characterised in that including:
Preserve module, be used for preserving a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
Acquisition module, for after the state that receives obtains instruction, according to described corresponding relation, it is determined that obtain, with described state, the first actual physics internal memory that in instruction, the first client operating system of instruction is corresponding; Described first client operating system is one in described client operating system;
First data message read through model, for reading the first data message in described first actual physics internal memory;
First data message writing module, for writing true I/O equipment by described first data message with file mode.
2. virtual machine monitor according to claim 1, it is characterised in that also include:
Second data message read through model, is used for the second data message reading in the depositor of physical central processor;
Second data message writing module, for writing described true I/O equipment by described second data message.
3. virtual machine monitor according to claim 2, it is characterised in that described true I/O equipment is physical storage device.
4. the virtual machine monitor according to claim 1,2 or 3, it is characterised in that
Described first client operating system is different client operating system from the second client operating system sending described state and obtaining instruction.
5. the virtual machine monitor according to claim 1,2 or 3, it is characterised in that the operating system sending the acquisition instruction of described state is master operating system.
6. a dummy machine system, including client operating system and virtual machine monitor, it is characterised in that described virtual machine monitor includes:
Preserve module, be used for preserving a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
Acquisition module, for after the state that receives obtains instruction, according to described corresponding relation, it is determined that obtain, with described state, the first actual physics internal memory that in instruction, the first client operating system of instruction is corresponding; Described first client operating system is one in described client operating system;
First data message read through model, for reading the first data message in described first actual physics internal memory;
First data message writing module, for writing true I/O equipment by described first data message with file mode.
7. dummy machine system according to claim 6, it is characterised in that described virtual machine monitor also includes:
Second data message read through model, is used for the second data message reading in the depositor of physical central processor;
Second data message writing module, for writing described true I/O equipment by described second data message.
8. dummy machine system according to claim 7, it is characterised in that described true I/O equipment is physical storage device.
9. the dummy machine system according to claim 6,7 or 8, it is characterised in that described first client operating system is different client operating system from the second client operating system sending described state and obtaining instruction.
10. the dummy machine system according to claim 6,7 or 8, it is characterised in that the operating system sending the acquisition instruction of described state is master operating system.
11. a client operation system state acquiring method, it is characterised in that including:
Pre-save a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
After the state that receives obtains instruction, according to described corresponding relation, it is determined that obtain, with described state, the first actual physics internal memory that in instruction, the first client operating system of instruction is corresponding; Described first client operating system is one in described client operating system;
Read the first data message in described first actual physics internal memory;
Described first data message is write true I/O equipment with file mode.
12. method according to claim 11, it is characterised in that also include:
Read the second data message in the depositor of physical central processor;
Described second data message is write described true I/O equipment.
13. the method according to claim 11 or 12, it is characterised in that described first client operating system is different client operating system from the second client operating system sending described state and obtaining instruction.
14. the method according to claim 11 or 12, it is characterised in that the operating system sending the acquisition instruction of described state is master operating system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810240173.5A CN101751283B (en) | 2008-12-18 | 2008-12-18 | Virtual machine monitor, dummy machine system and client operation system state acquiring method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810240173.5A CN101751283B (en) | 2008-12-18 | 2008-12-18 | Virtual machine monitor, dummy machine system and client operation system state acquiring method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101751283A CN101751283A (en) | 2010-06-23 |
CN101751283B true CN101751283B (en) | 2016-06-01 |
Family
ID=42478297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810240173.5A Active CN101751283B (en) | 2008-12-18 | 2008-12-18 | Virtual machine monitor, dummy machine system and client operation system state acquiring method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101751283B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103080912B (en) * | 2010-08-26 | 2015-11-25 | 飞思卡尔半导体公司 | Microprocessor system and by Memory Management Unit thereon and management method |
CN101986284B (en) * | 2010-11-04 | 2012-05-23 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN107608508B (en) * | 2012-12-19 | 2021-07-16 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104166624B (en) * | 2013-05-15 | 2017-07-07 | 上海贝尔股份有限公司 | Memory Optimize Method and device based on physical memory under virtual environment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101008903A (en) * | 2006-01-23 | 2007-08-01 | 联想(北京)有限公司 | Virtual machine system and device access method thereof |
CN101059761A (en) * | 2006-04-20 | 2007-10-24 | 联想(北京)有限公司 | Dummy machine system and its hardware access method |
CN101241445A (en) * | 2007-02-08 | 2008-08-13 | 联想(北京)有限公司 | Virtual machine system and its method for accessing display card |
-
2008
- 2008-12-18 CN CN200810240173.5A patent/CN101751283B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101008903A (en) * | 2006-01-23 | 2007-08-01 | 联想(北京)有限公司 | Virtual machine system and device access method thereof |
CN101059761A (en) * | 2006-04-20 | 2007-10-24 | 联想(北京)有限公司 | Dummy machine system and its hardware access method |
CN101241445A (en) * | 2007-02-08 | 2008-08-13 | 联想(北京)有限公司 | Virtual machine system and its method for accessing display card |
Also Published As
Publication number | Publication date |
---|---|
CN101751283A (en) | 2010-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9158661B2 (en) | Enhanced debugging for embedded devices | |
US11520681B2 (en) | System log collection method | |
CN106598796A (en) | Method for testing hardware information stability in reboot | |
CN104317709A (en) | Method and system for testing performance of software | |
US20140173357A1 (en) | Salvaging event trace information in power loss interruption scenarios | |
CN101131662A (en) | Computer automatic tour inspection system and method thereof | |
CN101751283B (en) | Virtual machine monitor, dummy machine system and client operation system state acquiring method | |
WO2019085466A1 (en) | Association test method and system, application server, and computer readable storage medium | |
CN114765051A (en) | Memory test method and device, readable storage medium and electronic equipment | |
WO2023092942A1 (en) | Data storage method and apparatus, and electronic device and readable storage medium | |
CN108205482B (en) | File mount restoration methods | |
US10514972B2 (en) | Embedding forensic and triage data in memory dumps | |
CN106095528A (en) | A kind of method detecting virtual machine drive | |
US20070294430A1 (en) | Generating a device address persistent across different instantiations of an electronic device | |
CN107908490A (en) | GPU registers reliability verification method and system in a kind of server DC tests | |
CN101551772A (en) | Method and apparatus for recording abnormal information of embedded communications equipment | |
CN107590017A (en) | The detection method and device of a kind of electronic equipment | |
CN104750600A (en) | Equipment state recording method and equipment state recording system | |
US11226755B1 (en) | Core dump in a storage device | |
WO2015198600A1 (en) | Analysis device, analysis method, and storage medium in which analysis program is recorded | |
CN107247505A (en) | A kind of Cloud Server power supply blackbox design methods for being easy to check | |
CN111464377A (en) | Network card inspection method, device, equipment and storage medium | |
CN110308861B (en) | Storage data storage method, device, electronic equipment and readable storage medium | |
CN107436826B (en) | A kind of cold data processing method and terminal | |
CN110008105A (en) | A kind of BMC time reservation method, device and electronic equipment and storage medium |
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 |