CN101751283A - Virtual machine monitor, virtual machine system and client operation system state acquiring method - Google Patents
Virtual machine monitor, virtual machine system and client operation system state acquiring method Download PDFInfo
- Publication number
- CN101751283A CN101751283A CN200810240173A CN200810240173A CN101751283A CN 101751283 A CN101751283 A CN 101751283A CN 200810240173 A CN200810240173 A CN 200810240173A CN 200810240173 A CN200810240173 A CN 200810240173A CN 101751283 A CN101751283 A CN 101751283A
- Authority
- CN
- China
- Prior art keywords
- operating system
- data message
- client operating
- virtual machine
- 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.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides a virtual machine monitor, a virtual machine system and a client operation system state acquiring method. The virtual machine monitor comprises a memory module, an acquiring module, a first client operation system and a first data information reading module, wherein the memory module is used for storing one correspondence relationship and can acquire the actual physical memory information used by a client operation system; the acquiring module is used for determining the first actual physical memory corresponding to the first client operation system indicated in state acquiring instructions according to the correspondence relationship after receiving the state acquiring instructions, the first client operation system is one system of the client operation systems, and the first data information reading module is used for reading the first data information in the first actual physical memory. The acquisition of the actual physical memory information used by GOS under the virtual state becomes possible by utilizing the invention.
Description
Technical field
The present invention relates to the virtual technology field, particularly a kind of virtual machine monitor, dummy machine system and client operation system state acquiring method.
Background technology
In computing machine, operating system stable extremely important.But phenomenons such as stable again operating system also may be collapsed, blue screen, blank screen, this can cause all application programs under the operating system can't continue to carry out, and can only restart computing machine.
In order to find out the reason that operating system goes wrong, in the prior art, collapse in operating system, during phenomenon such as blue screen, blank screen, system can generate a DUMP file automatically, write down the content in the internal memory of the computer system when operating system goes wrong in this DUMP file, why user or Debugger (debugger) can go wrong according to this DUMP file analysis operating system.
In existing dummy machine system,, and fictionalize the environment that moves for GOS by VMM (Virtual Machine Monitor, virtual machine monitor) all hardware resources of unified management.
The inventor finds that there is following shortcoming at least in prior art in the process that realizes the embodiment of the invention:
In existing dummy machine system, because the singularity that hardware resource distributes, so GOS is in just often, obtain current system state if desired, then executing state is obtained operation, be the situation in the virtual memory of its distribution but can only obtain data this moment at VMM, and can't obtain the data cases of the real actual physics internal memory that uses of GOS;
In case and collapse, blue screen, blank screen, application program appear in GOS when fault such as makeing mistakes, data message that might virtual memory also can't obtain.
So no matter normally whether the state of GOS, existing dummy machine system at most also can only obtain the data cases in the virtual virtual memory of VMM, this is unfavorable for carrying out slap-up system operation situation analysis.
Summary of the invention
The purpose of the embodiment of the invention provides a kind of virtual machine monitor, and dummy machine system and client operation system state acquiring method make under the virtual environment, and GOS can obtain the relevant information of actual physics internal memory.
To achieve these goals, the embodiment of the invention provides a kind of virtual machine monitor, comprising:
Preserve module, be used to preserve a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
Acquisition module is used for after the state of receiving obtains instruction, according to described corresponding relation, determines to obtain the first corresponding actual physics internal memory of first client operating system of indicating in the instruction with described state; Described first client operating system is in the described client operating system;
The first data message read through model is used for reading first data message of the described first actual physics internal memory.
Above-mentioned virtual machine monitor wherein, also comprises:
The first data message writing module is used for first data message is write true I/O equipment with file mode.
Above-mentioned virtual machine monitor wherein, also comprises:
The second data message read through model is used for reading second data message of the register of central processing unit;
The second data message writing module is used for described second data message is write described true I/O equipment.
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 systems with second client operating system that the described state of transmission obtains instruction.
Above-mentioned virtual machine monitor, wherein, the operating system that transmit status is obtained instruction is master operating system.
To achieve these goals, the embodiment of the invention also provides a kind of dummy machine system, comprises client operating system and virtual machine monitor, and described virtual machine monitor comprises:
Preserve module, be used to preserve a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
Acquisition module is used for after the state of receiving obtains instruction, according to described corresponding relation, determines to obtain the first corresponding actual physics internal memory of first client operating system of indicating in the instruction with described state; Described first client operating system is in the described client operating system;
The first data message read through model is used for reading first data message of the described first actual physics internal memory.
Above-mentioned dummy machine system wherein, also comprises:
The first data message writing module is used for first data message is write true I/O equipment with file mode.
Above-mentioned dummy machine system, wherein, described virtual machine monitor also comprises:
The second data message read through model is used for reading second data message of the register of central processing unit;
The second data message writing module is used for described second data message is write described true I/O equipment.
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 systems with second client operating system that the described state of transmission obtains instruction.
Above-mentioned dummy machine system, wherein, the operating system that transmit status is obtained instruction is master operating system.
To achieve these goals, the embodiment of the invention also provides a kind of client operation system state acquiring method, comprising:
Preserve a corresponding relation in advance, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
After the state of receiving obtains instruction,, determine to obtain the first corresponding actual physics internal memory of first client operating system of indicating in the instruction with described state according to described corresponding relation; Described first client operating system is in the described client operating system; Read first data message in the described first actual physics internal memory.
Above-mentioned method wherein, also comprises:
Described first data message is write true I/O equipment with file mode.
Above-mentioned method wherein, also comprises:
Read second data message in the register of physics central processing unit;
Described second data message is write described true I/O equipment.
Above-mentioned method, wherein, described first client operating system is different client operating systems with second client operating system that the described state of transmission obtains instruction.
Above-mentioned method, wherein, sending the operating system that described state obtains instruction is master operating system.
The embodiment of the invention has following beneficial effect:
The virtual machine monitor of the embodiment of the invention, in dummy machine system and the client operation system state acquiring method, in the process of creating GOS, VMM is recorded as the virtual memory that GOS distributes, and the corresponding relation between virtual memory and the actual physics internal memory, when needs obtain the state of GOS, according to the corresponding relation between virtual memory and the actual physics internal memory, obtain the related data that writes down in the physical memory, therefore under virtual environment, GOS also can obtain the relevant information of actual physics internal memory, is convenient to fault analysis.
Simultaneously, when a GOS broke down, the embodiment of the invention also can be obtained data in the employed actual physics internal memory of this fault GOS by other normal GOS.
Description of drawings
Fig. 1 is the structural representation of the VMM of the embodiment of the invention;
Fig. 2 is the schematic flow sheet of the method for the embodiment of the invention.
Embodiment
The virtual machine monitor of the embodiment of the invention, in dummy machine system and the client operation system state acquiring method, in the process of creating GOS, VMM is recorded as the virtual memory that GOS distributes, and the corresponding relation between virtual memory and the actual physics internal memory, when needs obtain the state of GOS, according to the corresponding relation between virtual memory and the actual physics internal memory, obtain the related data that writes down in the physical memory, be saved in the DUMP file.
The embodiments of the invention dummy machine system comprises physical hardware, VMM and GOS, wherein:
As shown in Figure 1, described VMM comprises:
Distribution module is used to client operating system to distribute virtual memory;
Mapping block is used to set up the mapping relations between described virtual memory and the actual physics internal memory;
Preserve module, be used for corresponding sign and described mapping relations of preserving described client operating system;
First acquisition module is used for after the state of receiving obtains instruction, according to the sign of the client operating system in the described instruction, determines to identify the first corresponding mapping relations with described client operating system in the described preservation module;
Second acquisition module is used for obtaining the first actual physics internal memory that described first mapping relations write down;
The first data message read through model is used for reading first data message of the described first actual physics internal memory;
The first data message writing module is used for first data message of the described first actual physics internal memory is write true I/O equipment.
Certainly, this data message writing module is unnecessary in some cases, only utilizes first data message to carry out subsequent analysis at needs and uses just needs.
Certainly, more simply be, preserve the directly corresponding sign of described client operating system and the actual physics internal memory of the actual use of this client operating system (just preserving the corresponding relation between the actual physics internal memory of client operating system and its actual use) preserved of module, first acquisition module and second acquisition module unite two into one, and the first actual physics internal memory that directly obtains client operating system gets final product.
Comprehensive two kinds of above-mentioned implementations can be found, preserve and have preserved a corresponding relation in the module, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses; And acquisition module can be determined to obtain the first corresponding actual physics internal memory of first client operating system of indicating in the instruction with described state according to this corresponding relation.
Two kinds of forms of expression of this corresponding relation are as follows:
The actual physics internal memory of client operating system ID to should client operating system using; Or
The virtual memory of client operating system ID to should client operating system using, the corresponding actual physics internal memory of this virtual memory.
Can both determine the actual physics internal memory that client operating system uses by any one corresponding relation.
Below above-mentioned VMM is elaborated.
VMM is responsible for the management work of all GOS, suppose when GOS A starts, save as 256M in the physical vlan of distribution module for GOS A distribution, and the physical vlan internal memory can not make the real operation of GOS A, the operation of GOS A need be based upon on the basis of actual physical internal memory, therefore, VMM need arrive the actual physics internal memory with the physical vlan memory-mapped of distributing, this moment is by setting up this physical vlan memory-mapped to the actual physics internal memory the mapping relations between the two, by such processing, though what GOS A saw may be continuous 256 MB of memory, what GOS A used in operational process is the actual physics internal memory corresponding with this 256M virtual memory.
After by above-mentioned processing, need be for the mapping relations between this GOS A preservation physical vlan internal memory and the actual physics internal memory, so that follow-up analysis.
In some periods, GOS (can be GOS A, also can be other GOS) need obtain the system state of GOS A, and send a state to VMM and obtain instruction this moment, and state obtains the sign that comprises GOS A in the instruction.
VMM is according to the sign of the GOS A in the instruction, obtain and the physical vlan internal memory of the corresponding preservation of the sign of GOS A and the mapping relations between the actual physics internal memory, obtain the actual physics internal memory that writes down in the mapping relations, the actual physics internal memory that obtain this moment is exactly the actual use of a GOS A physical memory, it can be one section internal memory, as the 0-256M in the physical memory of main frame, also may be that the multistage physical memory is formed, as these two sections of 0-128M and 256-384M.
After obtaining the physical memory of the actual use of GOS A, read through model just can read the data message in the physical memory of the actual use of this GOS A, and utilizes writing module to be written to actual I/O equipment (but as hard disk imprinting disk, USB flash disk, portable hard drive etc.).
In case GOS breaks down, the reason of bringing fault might be the data self in the physical memory, also might be the distribution situation of data in physical memory, only can obtain data self in the prior art, and can't obtain the distribution of data in the actual physics internal memory, so its limitation is arranged in the fault analysis current political situation, and utilize the embodiment of the invention, not only can obtain data, can also obtain the distribution of data in the actual physics internal memory, therefore help fault analysis more.
Simultaneously, for prior art, the generation of DUMP file needs DUMP device drives spin lock to open, and needs to load the DUMP device drives, otherwise can't produce the DUMP file, in case and GOS breaks down, when above-mentioned condition is false, just can't obtain the DUMP file, and for the embodiment of the invention, can utilize other normal GOS to send instruction, comprise in this instruction that the sign of fault GOS gets final product, so the situation of DUMP file can not occur to generate to VMM.
Simultaneously and since cancelled in the embodiment of the invention to GOS whether loading equipemtn drive in time restriction, the time of obtaining internal memory can be faster.
The dummy machine system of the embodiment of the invention comprises client operating system, virtual machine monitor, wherein:
Be provided with state in the described client operating system and obtain instruction sending module, be used for sending the state that comprises the client operating system sign and obtain instruction to VMM;
Comprise among the described VMM:
Distribution module is used to described client operating system to distribute virtual memory;
Mapping block is used to set up the mapping relations between described virtual memory and the actual physics internal memory;
Preserve module, be used for corresponding sign and described mapping relations of preserving described client operating system;
First acquisition module is used for obtaining according to described state the described client operating system sign of instruction, obtain first corresponding in the described preservation module mapping relations with described client operating system sign after;
Second acquisition module is used for obtaining the first actual physics internal memory that described first mapping relations write down;
The first data message read through model is used for reading first data message of the described first actual physics internal memory;
The first data message writing module is used for first data message of the described first actual physics internal memory is write true I/O equipment.
Certainly, more simply be, preserve the directly corresponding sign of described client operating system and the actual physics internal memory of the actual use of this client operating system preserved of module, first acquisition module and second acquisition module unite two into one, and the first actual physics internal memory that directly obtains client operating system gets final product.
Certainly, in order further to obtain more information analysis, also comprise among the VMM of the embodiment of the invention:
The second data message read through model is used for reading second data message of the register of physical cpu;
The second data message writing module is used for described second data message is write true I/O equipment.
In specific embodiments of the invention, because GOS need be mutual with the CR3 register when starting, so VMM is by intercepting and capturing the start-up course that the CR3 register monitors GOS.
The method of the embodiment of the invention comprises as shown in Figure 2:
Certainly, for the ease of carrying out fault analysis more accurately, this method also comprises:
Read second data message in the register 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 also can be sent by master operating system (as SOS of service operations system 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 invention, in dummy machine system and the client operation system state acquiring method, in the process of creating GOS, VMM is recorded as the virtual memory that GOS distributes, and the corresponding relation between virtual memory and the actual physics internal memory, when needs obtain the state of GOS, according to the corresponding relation between virtual memory and the actual physics internal memory, obtain the related data that writes down in the physical memory, therefore under virtual environment, GOS also can obtain the relevant information of actual physics internal memory, is convenient to fault analysis.
Simultaneously, when a GOS broke down, the embodiment of the invention also can be obtained data in the employed actual physics internal memory of this fault GOS by other normal GOS.
The above only 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 the principle 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 (17)
1. a virtual machine monitor is characterized in that, comprising:
Preserve module, be used to preserve a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
Acquisition module is used for after the state of receiving obtains instruction, according to described corresponding relation, determines to obtain the first corresponding actual physics internal memory of first client operating system of indicating in the instruction with described state; Described first client operating system is in the described client operating system;
The first data message read through model is used for reading first data message of the described first actual physics internal memory.
2. virtual machine monitor according to claim 1 is characterized in that, also comprises:
The first data message writing module is used for described first data message is write true I/O equipment with file mode.
3. virtual machine monitor according to claim 1 is characterized in that, also comprises:
The second data message read through model is used for reading second data message of the register of physics central processing unit;
The second data message writing module is used for described second data message is write described true I/O equipment.
4. virtual machine monitor according to claim 3 is characterized in that, described true I/O equipment is physical storage device.
5. according to claim 1,2,3 or 4 described virtual machine monitors, it is characterized in that,
Described first client operating system is different client operating systems with second client operating system that the described state of transmission obtains instruction.
6. according to claim 1,2,3 or 4 described virtual machine monitors, it is characterized in that sending the operating system that described state obtains instruction is master operating system.
7. a dummy machine system comprises client operating system and virtual machine monitor, it is characterized in that, described virtual machine monitor comprises:
Preserve module, be used to preserve a corresponding relation, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
Acquisition module is used for after the state of receiving obtains instruction, according to described corresponding relation, determines to obtain the first corresponding actual physics internal memory of first client operating system of indicating in the instruction with described state; Described first client operating system is in the described client operating system;
The first data message read through model is used for reading first data message of the described first actual physics internal memory.
8. dummy machine system according to claim 7 is characterized in that, also comprises:
The first data message writing module is used for described first data message is write true I/O equipment with file mode.
9. dummy machine system according to claim 7 is characterized in that, described virtual machine monitor also comprises:
The second data message read through model is used for reading second data message of the register of physics central processing unit;
The second data message writing module is used for described second data message is write described true I/O equipment.
10. dummy machine system according to claim 9 is characterized in that, described true I/O equipment is physical storage device.
11., it is characterized in that described first client operating system is different client operating systems with second client operating system that the described state of transmission obtains instruction according to claim 7,8,9 or 10 described dummy machine systems.
12., it is characterized in that sending the operating system that described state obtains instruction is master operating system according to claim 7,8,9 or 10 described dummy machine systems.
13. a client operation system state acquiring method is characterized in that, comprising:
Preserve a corresponding relation in advance, utilize described corresponding relation can obtain the actual physics memory information that client operating system uses;
After the state of receiving obtains instruction,, determine to obtain the first corresponding actual physics internal memory of first client operating system of indicating in the instruction with described state according to described corresponding relation; Described first client operating system is in the described client operating system;
Read first data message in the described first actual physics internal memory.
14. method according to claim 13 is characterized in that, also comprises:
Described first data message is write true I/O equipment with file mode.
15. method according to claim 13 is characterized in that, also comprises:
Read second data message in the register of physics central processing unit;
Described second data message is write described true I/O equipment.
16., it is characterized in that described first client operating system is different client operating systems with second client operating system that the described state of transmission obtains instruction according to claim 13,14 or 15 described methods.
17., it is characterized in that sending the operating system that described state obtains instruction is master operating system according to claim 13,14 or 15 described methods.
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 true CN101751283A (en) | 2010-06-23 |
CN101751283B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101986284A (en) * | 2010-11-04 | 2011-03-16 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN103080912A (en) * | 2010-08-26 | 2013-05-01 | 飞思卡尔半导体公司 | Memory management unit for a microprocessor system, microprocessor system and method for managing memory |
CN104166624A (en) * | 2013-05-15 | 2014-11-26 | 上海贝尔股份有限公司 | Memory optimization method and device based on physical memory under virtual environment |
CN107608508A (en) * | 2012-12-19 | 2018-01-19 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100428164C (en) * | 2006-01-23 | 2008-10-22 | 联想(北京)有限公司 | Virtual machine system and device access method thereof |
CN100472451C (en) * | 2006-04-20 | 2009-03-25 | 联想(北京)有限公司 | Dummy machine system and its hardware access method |
CN101241445B (en) * | 2007-02-08 | 2011-07-27 | 联想(北京)有限公司 | Virtual machine system and its method for accessing display card |
-
2008
- 2008-12-18 CN CN200810240173.5A patent/CN101751283B/en active Active
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103080912A (en) * | 2010-08-26 | 2013-05-01 | 飞思卡尔半导体公司 | Memory management unit for a microprocessor system, microprocessor system and method for managing memory |
CN103080912B (en) * | 2010-08-26 | 2015-11-25 | 飞思卡尔半导体公司 | Microprocessor system and by Memory Management Unit thereon and management method |
CN101986284A (en) * | 2010-11-04 | 2011-03-16 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN101986284B (en) * | 2010-11-04 | 2012-05-23 | 华中科技大学 | Dynamic recovery system for waste space of virtual machine image file |
CN107608508A (en) * | 2012-12-19 | 2018-01-19 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN104166624A (en) * | 2013-05-15 | 2014-11-26 | 上海贝尔股份有限公司 | Memory optimization method and device based on physical memory under virtual environment |
CN104166624B (en) * | 2013-05-15 | 2017-07-07 | 上海贝尔股份有限公司 | Memory Optimize Method and device based on physical memory under virtual environment |
Also Published As
Publication number | Publication date |
---|---|
CN101751283B (en) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2016540268A (en) | Technology to track wake clock usage | |
CN100472468C (en) | Computer system, computer network and method | |
US20140188829A1 (en) | Technologies for providing deferred error records to an error handler | |
US20120036345A1 (en) | Embedded device and file change notification method of the embedded device | |
CN106569904A (en) | Information storage method and device and server | |
WO2021072880A1 (en) | Method for asynchronously creating internal snapshot of virtual machine, apparatus, system and storage medium | |
CN101334751B (en) | Method and device for virtual machine monitor recognizing client operating system progress | |
CN106598796A (en) | Method for testing hardware information stability in reboot | |
CN110633190B (en) | Application program memory monitoring method, device, equipment and storage medium | |
CN103955441A (en) | Equipment management system, equipment management method and IO (Input/Output) expansion interface | |
CN114765051A (en) | Memory test method and device, readable storage medium and electronic equipment | |
CN108205482B (en) | File mount restoration methods | |
US10157005B2 (en) | Utilization of non-volatile random access memory for information storage in response to error conditions | |
CN106095528A (en) | A kind of method detecting virtual machine drive | |
WO2023092942A1 (en) | Data storage method and apparatus, and electronic device and readable storage medium | |
US20180307684A1 (en) | Method and Device for Reading and Writing Video Data in NAS Device | |
CN101751283A (en) | Virtual machine monitor, virtual machine system and client operation system state acquiring method | |
CN104239121A (en) | Display card redirection system and method for realizing graphic display by using system | |
CN101739284B (en) | Computer and information processing method | |
CN106030544B (en) | Method for detecting memory of computer equipment and computer equipment | |
CN111240898A (en) | Hypervisor-based black box implementation method and system | |
CN107741868B (en) | Setting method and device for Basic Input Output System (BIOS) | |
CN114281570B (en) | Embedded control circuit, control method, device and chip | |
EP0982664A3 (en) | Coupling host processor to memory subsystem | |
CN107766385B (en) | Method and equipment for converting file format of virtual disk |
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 |