CN102346680A - Resource adjusting system and method for virtual machine - Google Patents

Resource adjusting system and method for virtual machine Download PDF

Info

Publication number
CN102346680A
CN102346680A CN201010245032XA CN201010245032A CN102346680A CN 102346680 A CN102346680 A CN 102346680A CN 201010245032X A CN201010245032X A CN 201010245032XA CN 201010245032 A CN201010245032 A CN 201010245032A CN 102346680 A CN102346680 A CN 102346680A
Authority
CN
China
Prior art keywords
virtual machine
physical memory
user
address
resource
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
CN201010245032XA
Other languages
Chinese (zh)
Other versions
CN102346680B (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.)
Institute for Information Industry
Original Assignee
Institute for Information Industry
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 Institute for Information Industry filed Critical Institute for Information Industry
Priority to CN201010245032.XA priority Critical patent/CN102346680B/en
Publication of CN102346680A publication Critical patent/CN102346680A/en
Application granted granted Critical
Publication of CN102346680B publication Critical patent/CN102346680B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a resource adjusting system and method for a virtual machine, which are applied to at least one entity device. The at least one entity device at least comprises an operation system, a processing unit and a memory and is provided with a plurality of resources which can be distributed. According to the resource adjusting system and method for the virtual machine in the embodiment of the invention, resources of corresponding virtual machine can be directly adjusted under the condition without shutting down the virtual machine, so that the inconvenience caused by service interruption can be avoided, relevant resources can be improved, for example, the utilization rates of processing hardware and storage hardware can be improved and the efficiency of the whole electronic device/a hardware host can be improved.

Description

The resource Adjustment System and the method for virtual machine
Technical field
The present invention relates to a kind of resource Adjustment System and method of virtual machine, relate in particular to a kind of resource adjustment that can not need virtual machine shutdown is directly carried out the respective virtual machine, as newly-increased or reduce the system and method for resource.
Background technology
(Virtual Machine is to utilize the software simulation hardware mode VM) to virtual machine, allows the user can see through virtual machine and comes function software.In general, an entity apparatus can have a plurality of resources, and like processing unit and internal memory etc., part or all of resource can be specified to one or more virtual machines and used.In other words, performed all softwares in a particular virtual machine, the resource that all can only use this particular virtual machine to be assigned to.
In some cases, when the inadequate resource of virtual machine when dealing with related needs, the resource of virtual machine then must be adjusted.Existing ground when the inadequate resource of a fully virtualized virtual machine, must carry out the adjustment of resource afterwards with the virtual machine shutdown earlier again.Because the resource of respective virtual machine can't directly be adjusted in open state; Therefore, when this virtual machine must provide the service that does not break, as shutting down for the resource of adjusting virtual machine; With service and the program interrupt that causes, form the inconvenience on using.Or drop to minimum for the inconvenience that allows virtual machine cause because of shutdown; Must consider the time point of virtual machine shutdown; For example select it providing the least busy time point of service to shut down, therefore, often can't provide virtual machine required resource immediately.
In another prior art, half virtualized virtual machine can be adjusted for its resource under situation about need not shut down.Yet in this virtual machine, the operating system in the virtual machine must be consistent with the operating system of hardware main frame, even can only in certain some specific operating system, can implement, thereby makes the application of virtual machine be restricted.
Summary of the invention
In view of this, the present invention provides a kind of resource Adjustment System and method of virtual machine.
The resource Adjustment System of a kind of virtual machine of the embodiment of the invention; Be applicable at least one entity apparatus; Wherein this at least one entity apparatus comprises an operating system at least; One processing unit and an internal memory; And this at least one entity apparatus has a plurality of resources of distributing; One first virtual machine configuration file is to move one first virtual machine; With one second virtual machine configuration file to move one second virtual machine; Wherein this system comprises: a storage element stores one first virtual machine configuration file and one second virtual machine configuration file; With a virtual machine monitor; And a control module, cause this first virtual machine to get into a halted state, wherein, this first virtual machine has one first resource collection and one first virtual machine paging table that mutually should first virtual machine in these resources; Cause this second virtual machine to get into a halted state, wherein, this second virtual machine has one second resource collection and one second virtual machine paging table that mutually should second virtual machine in these resources; By obtain in this first virtual machine paging table mutually should first virtual machine one first user's space address; By obtain in this second virtual machine paging table mutually should second virtual machine one second user's space address, and obtained mutually by a virtual machine monitor should first user's space address and this second user space address one first physical memory address in this at least one entity apparatus and one second physical memory address respectively; Via this virtual machine monitor, so that mutually required this second physical memory address of this first user space address; Cause this first virtual machine to get into an executing state, wherein, this first virtual machine is according to this first virtual machine paging table running; And, stop this second virtual machine.
The resource adjusting method of a kind of virtual machine of the embodiment of the invention; Be applicable at least one entity apparatus; Wherein, This at least one entity apparatus comprises an operating system at least; One processing unit and an internal memory; And this at least one entity apparatus has a plurality of resources of distributing; One first virtual machine configuration file is to move one first virtual machine; With one second virtual machine configuration file to move one second virtual machine; This method comprises the following steps: to cause this first virtual machine to get into a halted state; Wherein, this first virtual machine has one first resource collection and one first virtual machine paging table that mutually should first virtual machine in these resources; Cause this second virtual machine to get into a halted state, wherein, this second virtual machine has one second resource collection and one second virtual machine paging table that mutually should second virtual machine in these resources; By obtain in this first virtual machine paging table mutually should first virtual machine one first user's space address; By obtain in this second virtual machine paging table mutually should second virtual machine one second user's space address, and obtained mutually by a virtual machine monitor should first user's space address and this second user space address one first physical memory address in this at least one entity apparatus and one second physical memory address respectively; Via this virtual machine monitor, so that mutually required this second physical memory address of this first user space address; Cause this first virtual machine to get into an executing state, wherein, this first virtual machine is according to this first virtual machine paging table running; And, stop this second virtual machine.
In certain embodiments; Before being caused time-out at this second virtual machine; More comprise the data in the working storage of at least one processing unit in mutually should this second resource collection of second virtual machine, be recorded to mutually in the internal memory in should this second resource collection of second virtual machine.
In certain embodiments; Before this first virtual machine is caused this halted state of entering; More comprise core with one first virtual machine operating system in mutually should first virtual machine; Be written into the internal memory in this first resource collection, as the kernel spacing in this first virtual machine paging table.
In certain embodiments, have an entity apparatus and first virtual machine and second virtual machine of corresponding control module, operate according to different operating systems.
The resource Adjustment System and the method for the virtual machine of the embodiment of the invention; Can be under situation about not needing with the virtual machine shutdown; And the resource of directly carrying out the respective virtual machine is adjusted; Not only can avoid because the inconvenience that break in service caused; More can promote related resource; Like processing hardware and the utilization rate that stores hardware, and promote the usefulness of whole hardware unit/hardware main frame.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, does not constitute qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the synoptic diagram according to the resource Adjustment System of the virtual machine of the embodiment of the invention;
Fig. 2 shows the synoptic diagram according to the resource adjusting method of the virtual machine of the embodiment of the invention.
Drawing reference numeral:
The resource Adjustment System of 100~virtual machine;
112,114,116~entity apparatus;
112a, 114a, 116a~resource;
120~storage element;
121~virtual machine configuration file;
130~control module;
131~virtual machine monitor;
S210, S220 ..., S270~step.
Embodiment
For make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, hereinafter specially lifts embodiment, and conjunction with figs. describes in detail as follows.
Fig. 1 shows the resource Adjustment System according to the virtual machine of the embodiment of the invention.Resource Adjustment System 100 according to the virtual machine of the embodiment of the invention goes at least one entity apparatus, like server, computer, notebook computer, workstation, with various computing machines etc.What remind is that each entity apparatus comprises an operating system, a processing unit and an internal memory at least.In general, the internal memory in each entity apparatus can be divided into the user space of the kernel spacing and the entity of entity.Internal memory in each entity apparatus is via an entity apparatus paging table, with the corresponding physical memory address of record kernel spacing and user space institute.
Resource Adjustment System 100 according to the virtual machine of the embodiment of the invention can comprise a storage element 120 and a control module 130 at least.The resource Adjustment System 100 of virtual machine can be arranged in the autonomous device; Like independently server, computer, notebook computer, workstation or other calculation element; And be connected to one or more entity apparatus (112,114,116); Also or the resource Adjustment System 100 of virtual machine be a plurality of entity apparatus (112,114,116) one of them, with utilization/distribution resource (112a, 114a, 116a) wherein.Resource can be the related hardware element that can specify in the entity apparatus to virtual machine, like processing unit, internal memory etc.Storage element 120 can comprise the virtual machine configuration file 121 of corresponding different virtual machine at least.Wherein, virtual machine configuration file 121 can define the resource of respective virtual machine at least.For instance, the virtual machine configuration file of a corresponding virtual machine can define a processing unit and the big or small internal memory of 1G that this virtual machine has.
Control module 130 can be carried out a virtual machine monitor (Hypervisor) 131; Should first user's space address and this second user space address one first physical memory address in this at least one entity apparatus and one second physical memory address respectively in order to obtain mutually; And, make mutually required this second physical memory address of this first user space address.It should be noted that in certain embodiments the virtual machine monitor can be produced by operating system or related software, carries out for control module 130.
For instance; When at least one entity apparatus was adjusted the resource of this second virtual machine via the second virtual machine Profile Up, one second virtual machine and plan, resource Adjustment System 100 can be via one first virtual machine Profile Up, one first virtual machine.In this embodiment, this virtual machine monitor 131 can write down mutually should first user's space address and the corresponding relation of this first physical memory address, and mutually should second user's space address and the corresponding relation of this second physical memory address.Then; Virtual machine monitor 131 can make mutually required this second physical memory address of this first user space address; It can revise the corresponding relation of user's space address and physical memory address in this virtual machine monitor 131; With the phase that write down in the corresponding relation originally should first user's space address all or part of of this first physical memory address; Be substituted by this second physical memory address; That is to say after the modification that this virtual machine monitor 131 is that part or all of its of record first user's space address corresponds to the second physical memory address.What remind is that each virtual machine can have a plurality of resources in these resources, for example a virtual machine internal memory and corresponding virtual machine paging table thereof.Similarly, the virtual machine internal memory can also be divided into kernel spacing and user space, and corresponds to the user space of physical memory in the entity apparatus.See through the virtual machine monitor virtual machine paging table of fictitious host computer and the physical memory page table of entity apparatus are changed/correspondence, can find the pairing physical memory of the virtual machine internal memory address of each virtual machine.
Related hardware and the software of control module 130 in can the management entity device.In certain embodiments, control module 130 can management resource 112a, 114a, 116a etc., with according to indivedual corresponding virtual machines of virtual machine Profile Up.It should be noted that; In certain embodiments; Can move according to an operating system respectively in this at least one entity apparatus and the indivedual virtual machines; And individual other operating system can be different; That is the operating system of entity apparatus and dummy activity main frame can be inequality, and the operating system between each virtual machine also can be inequality.Control module 130 can be carried out the resource adjusting method of virtual machine of the present invention, its details will in after describe.Be noted that storage element 120 can be arranged in a specific electronic devices with control module 130.In certain embodiments, specific electronic devices can be one in the aforementioned entity apparatus.In certain embodiments, specific electronic devices can be the device outside being independent of in the aforementioned entity apparatus.
Fig. 2 shows the resource adjusting method according to the virtual machine of the embodiment of the invention.In this embodiment; One second virtual machine in an entity apparatus according to its second virtual machine Profile Up; And one second resource collection of corresponding second virtual machine (that is the resource that is included in this second virtual machine configuration file; Like processing unit, internal memory) will be adjusted; Wherein, second virtual machine has one second virtual machine paging table.What remind is, second resource collection can be that in the resource of distribution at least one can be provided in this at least one entity apparatus.In general, second virtual machine has one second virtual machine operating system, and in order to produce the second virtual machine paging table, in the present embodiment, the second virtual machine operating system can be different with the operating system of entity apparatus.
Resource Adjustment System 100 can be via above-mentioned entity apparatus (entity apparatus of second virtual machine) or another entity apparatus; And one first virtual machine configuration file; Move one first virtual machine; Has one first resource collection; The resource that this first resource collection is had; Promptly be the resource after desire is adjusted second virtual machine, for example increase or reduce specific resources.First virtual machine has one first virtual machine operating system, and in order to produce the first virtual machine paging table, in the present embodiment, the first virtual machine operating system can be different with the second virtual machine operating system, entity apparatus operating system.
Like step S210, control module causes first virtual machine to get into a halted state.What remind is in certain embodiments, to move first virtual machine and can carry out an initialization operation for first virtual machine earlier before.It should be noted that; In certain embodiments, the process of initial first virtual machine can be with the core of one first virtual machine operating system in mutually should first virtual machine; Be written into the internal memory in this first resource collection, as the kernel spacing in this first virtual machine paging table.After the core of corresponding first virtual machine is written into internal memory, cause first virtual machine to get into halted state again.
Like step S220, control module causes second virtual machine to get into a halted state.In certain embodiments, when causing before second virtual machine suspends, can be with data of the working storage of processing unit in second resource collection of second virtual machine, record in the internal memory in second resource collection of second virtual machine.
Like step S230, can write down the corresponding relation of the first user's space address and the first physical memory address by a virtual machine monitor, and the corresponding relation of the second user's space address and the second physical memory address.In the time of further, the virtual machine monitor can be obtained the pairing first physical memory address of first user's space address via the entity apparatus paging table of entity apparatus, and the pairing second physical memory address of second user's space address.It should be noted that in certain embodiments step S230 also can omit.
Like step S240; Control module is by in the first virtual machine paging table; Obtain first user's space address of first virtual machine; In the second virtual machine paging table; Obtain one second user's space address of second virtual machine; Obtain the first physical memory address of first user's space address in entity apparatus by the virtual machine monitor then, and the second physical memory address of second user's space address in entity apparatus.In certain embodiments, the virtual machine monitor can be inquired about via the entity apparatus page table of entity apparatus and obtain the first physical memory address and the second physical memory address in the entity apparatus.What remind is as previously mentioned, can comprise a kernel spacing and a user space in the virtual machine internal memory of corresponding second virtual machine.Step S240 mainly is the kernel spacing user space in addition of finding out corresponding second virtual machine.
Then, like step S250,, make the mutually required second physical memory address of first user's space address via the virtual machine monitor.In the embodiment that does not omit step S230; The virtual machine monitor can be revised this corresponding relation in this virtual machine monitor; With the phase that will be write down in this corresponding relation should first user's space address all or part of of this first physical memory address, be substituted by this second physical memory address.
It should be noted that; In certain embodiments; When first resource collection of first virtual machine is less than the specific resources in second resource collection of second virtual machine; For example adjusting the second virtual machine resource is in order to reduce the internal memory of second virtual machine; Can find out already used one the 3rd physical memory address in the corresponding second physical memory address according to the second virtual machine paging table; Then via the virtual machine monitor, so that mutually required the 3rd physical memory address of first user's space address.In the embodiment that does not omit step S230; The virtual machine monitor can be revised the corresponding relation in the virtual machine monitor; All or part of with the first physical memory address of the corresponding first user's space address of write down is substituted by the 3rd physical memory address.
Like step S260, control module causes first virtual machine to get into an executing state, to operate according to the first virtual machine paging table.Afterwards, like step S270, control module stops second virtual machine.In the time of further, after second virtual machine stops, can discharging the resource in second resource collection.Therefore this case can obtain the physical memory address of virtual machine user space address and entity apparatus through the virtual machine monitor; Allow the physical memory address of the mutually required old virtual machine of user's space address of new virtual machine then; Make the state of old virtual machine can be transferred to new virtual machine, and be used as accomplishing adjusted resource with the corresponding resource collection of new virtual machine.
Next, takeing an example describes.The resource of supposing one second virtual machine (old virtual machine) comprises a processing unit and the internal memory that 1G is big or small.When desire is adjusted into the internal memory of two processing units and a 2G size with the resource of second virtual machine; Can produce one first virtual machine configuration file of corresponding one first virtual machine (new virtual machine) earlier; Wherein, the internal memory of two processing units of definition and a 2G size in the first virtual machine configuration file.Then; According to the first virtual machine Profile Up, first virtual machine; First virtual machine and second virtual machine are suspended; And all or part of with the first physical memory address of first user's space address of first virtual machine that writes down in the corresponding relation in the virtual machine monitor is substituted by the second physical memory address of second user's space address of corresponding second virtual machine.In the virtual machine monitor, first virtual machine can access to the related data of original second virtual machine, other user space then is the space after expanding in the first virtual machine paging table.Afterwards, cause first virtual machine to get into executing state, with normal operation.At last, the handling procedure of corresponding second virtual machine is ended, also can further be discharged the resource of second virtual machine.
Therefore, the resource Adjustment System and the method that see through the virtual machine of this case can not need under the situation that virtual machine is shut down, and directly carry out the resource adjustment of respective virtual machine.Through the method and system of this case, not only can avoid because inconvenience that break in service caused more can promote related resource, like processing hardware and the utilization rate that stores hardware, and promote the usefulness of whole electronic device/hardware main frame.
Method of the present invention, or specific kenel or its part can exist with the kenel of procedure code.Procedure code can be contained in tangible media; Like floppy disk, CD-RW discsCD-RW, hard disk or any other electronic equipment or machine-readable (getting) Storage Media like computer-readable; Also or be not limited to the computer program product of external form; Wherein, When procedure code by machine; When being written into and carrying out like computer, this machine becomes in order to participating in device of the present invention or system, and can carry out method step of the present invention.Procedure code also can see through some transfer mediums; Transmit like electric wire or cable, optical fiber or any transmission kenel, wherein, when procedure code by electronic equipment or machine; Like the computer reception, when being written into and carrying out, this machine becomes in order to participate in system of the present invention or device.When the general service processing unit is done in fact, procedure code combines processing unit to provide a class of operation to be similar to the unique apparatus of using particular logic circuit.
Though the present invention discloses as above with preferred embodiment; Right its is not that any those skilled in the art are not breaking away from the spirit and scope of the present invention in order to qualification the present invention; When can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking the claim scope person of defining.

Claims (18)

1. the resource Adjustment System of a virtual machine; It is characterized in that; Described resource Adjustment System is applicable at least one entity apparatus; Said at least one entity apparatus comprises an operating system, a processing unit and an internal memory at least; And said at least one entity apparatus has a plurality of resources of distributing, one first virtual machine configuration file to move one first virtual machine; With one second virtual machine configuration file to move one second virtual machine, wherein said system comprises:
One storage element stores one first virtual machine configuration file and one second virtual machine configuration file; And
One control module causes said first virtual machine to get into a halted state, and wherein, said first virtual machine has one first resource collection and the one first virtual machine paging table of corresponding said first virtual machine in the said resource; Cause said second virtual machine to get into a halted state; Wherein, Said second virtual machine has one second resource collection and the one second virtual machine paging table of corresponding said second virtual machine in the said resource; Wherein, said first virtual machine and said second virtual machine are moved by one in said at least one entity apparatus; By the one first user's space address that obtains corresponding said first virtual machine in the said first virtual machine paging table; By the one second user's space address that obtains corresponding said second virtual machine in the said second virtual machine paging table, and obtain corresponding said first user's space address and said second user's space address one first physical memory address in said at least one entity apparatus and one second physical memory address respectively by a virtual machine monitor; Via said virtual machine monitor, so that the mutually required said second physical memory address of said first user's space address; Cause said first virtual machine to get into an executing state, wherein, said first virtual machine is according to said first virtual machine paging table running; And, stop said second virtual machine.
2. the resource Adjustment System of virtual machine as claimed in claim 1; Wherein, Said virtual machine monitor more writes down the corresponding relation of corresponding said first user's space address and the said first physical memory address, with the corresponding relation of corresponding said second user's space address and the said second physical memory address; And; Via said virtual machine monitor so that the mutually required said second physical memory address of said first user's space address; It is the said corresponding relation of revising in the said virtual machine monitor; With the said first physical memory address of the corresponding said first user's space address that will be write down in the said corresponding relation all or part of, be substituted by the said second physical memory address.
3. the resource Adjustment System of virtual machine as claimed in claim 2; Wherein, Said virtual machine monitor writes down said corresponding relation; It is an entity apparatus paging table via said at least one entity apparatus; Obtain the pairing said first physical memory address of said first user's space address, with the pairing said second physical memory address of said second user's space address.
4. the resource Adjustment System of virtual machine as claimed in claim 1; Wherein, Obtaining corresponding said first user's space address and said second user's space address one first physical memory address in said at least one entity apparatus and one second physical memory address respectively by said virtual machine monitor, is that said virtual machine monitor is inquired about and obtained via an entity apparatus page table of said at least one entity apparatus.
5. the resource Adjustment System of virtual machine as claimed in claim 1; Wherein, Before being caused time-out at said second virtual machine; Said control module more comprises the data in the working storage of at least one processing unit in said second resource collection of corresponding said second virtual machine, is recorded in the internal memory in said second resource collection of corresponding said second virtual machine.
6. the resource Adjustment System of virtual machine as claimed in claim 1; Wherein, Before said first virtual machine is caused the said halted state of entering; Said control module more comprises the core with one first virtual machine operating system in corresponding said first virtual machine; Be written into the internal memory in said first resource collection, as the kernel spacing in the said first virtual machine paging table.
7. the resource Adjustment System of virtual machine as claimed in claim 1, wherein, said resource comprises a processing unit or an internal memory at least.
8. the resource Adjustment System of virtual machine as claimed in claim 1, wherein, said control module more comprises according to the said second virtual machine paging table finds out already used one the 3rd physical memory address in the said second physical memory address; And, via said virtual machine monitor, so that mutually required said the 3rd physical memory address of said first user's space address.
9. the resource Adjustment System of virtual machine as claimed in claim 8; Wherein, Said virtual machine monitor writes down the corresponding relation of corresponding said first user's space address and the said first physical memory address, with the corresponding relation of corresponding said second user's space address and the said second physical memory address; And; Via said virtual machine monitor so that the mutually required said second physical memory address of said first user's space address; Be that said virtual machine monitor is revised the said corresponding relation in the said virtual machine monitor; With the said first physical memory address of the corresponding said first user's space address that will be write down in the said corresponding relation all or part of, be substituted by said the 3rd physical memory address.
10. the resource adjusting method of a virtual machine; It is characterized in that; Described resource adjusting method is applicable at least one entity apparatus; Said at least one entity apparatus comprises an operating system, a processing unit and an internal memory at least; And said at least one entity apparatus has a plurality of resources of distributing, one first virtual machine configuration file to move one first virtual machine; With one second virtual machine configuration file to move one second virtual machine, said method comprises the following steps:
Cause said first virtual machine to get into a halted state; Wherein, Said first virtual machine has one first resource collection and the one first virtual machine paging table of corresponding said first virtual machine in the said resource, and said first virtual machine is moved by one in said at least one entity apparatus;
Cause said second virtual machine to get into a halted state; Wherein, Said second virtual machine has one second resource collection and the one second virtual machine paging table of corresponding said second virtual machine in the said resource, and said second virtual machine is moved by one in said at least one entity apparatus;
By the one first user's space address that obtains corresponding said first virtual machine in the said first virtual machine paging table; By the one second user's space address that obtains corresponding said second virtual machine in the said second virtual machine paging table, and obtain corresponding said first user's space address and said second user's space address one first physical memory address in said at least one entity apparatus and one second physical memory address respectively by a virtual machine monitor;
Via said virtual machine monitor, so that the mutually required said second physical memory address of said first user's space address;
Cause said first virtual machine to get into an executing state, wherein, said first virtual machine is according to said first virtual machine paging table running; And
Stop said second virtual machine.
11. the resource adjusting method of virtual machine as claimed in claim 10; It is characterized in that; Said virtual machine monitor more writes down the corresponding relation of corresponding said first user's space address and the said first physical memory address, with the corresponding relation of corresponding said second user's space address and the said second physical memory address; And; Via said virtual machine monitor so that the mutually required said second physical memory address of said first user's space address; Revise the said corresponding relation in the said virtual machine monitor; With the said first physical memory address of the corresponding said first user's space address that will be write down in the said corresponding relation all or part of, be substituted by the said second physical memory address.
12. the resource adjusting method of virtual machine as claimed in claim 11; It is characterized in that; Said virtual machine monitor writes down said corresponding relation; It is an entity apparatus paging table via said at least one entity apparatus; Obtain the pairing said first physical memory address of said first user's space address, with the pairing said second physical memory address of said second user's space address.
13. the resource adjusting method of virtual machine as claimed in claim 10; It is characterized in that; Obtaining corresponding said first user's space address and said second user's space address one first physical memory address in said at least one entity apparatus and one second physical memory address respectively by said virtual machine monitor, is that said virtual machine monitor is inquired about and obtained via an entity apparatus page table of said at least one entity apparatus.
14. the resource adjusting method of virtual machine as claimed in claim 10; It is characterized in that; Before being caused time-out at said second virtual machine; More comprise the data in the working storage of at least one processing unit in said second resource collection of corresponding said second virtual machine, be recorded in the internal memory in said second resource collection of corresponding said second virtual machine.
15. the resource adjusting method of virtual machine as claimed in claim 10; It is characterized in that; Before said first virtual machine is caused the said halted state of entering; More comprise core with one first virtual machine operating system in corresponding said first virtual machine; Be written into the internal memory in said first resource collection, as the kernel spacing in the said first virtual machine paging table.
16. the resource adjusting method of virtual machine as claimed in claim 10 is characterized in that, said resource comprises a processing unit or an internal memory at least.
17. the resource adjusting method of virtual machine as claimed in claim 10 is characterized in that, described resource adjusting method more comprises the following steps:
Find out already used one the 3rd physical memory address in the said second physical memory address according to the said second virtual machine paging table; And
Via said virtual machine monitor, so that mutually required said the 3rd physical memory address of said first user's space address.
18. the resource adjusting method of virtual machine as claimed in claim 17; It is characterized in that; Said virtual machine monitor writes down the corresponding relation of corresponding said first user's space address and the said first physical memory address, with the corresponding relation of corresponding said second user's space address and the said second physical memory address; And; Via said virtual machine monitor so that the mutually required said second physical memory address of said first user's space address; Said virtual machine monitor is the said corresponding relation of revising in the said virtual machine monitor; With the said first physical memory address of the corresponding said first user's space address that will be write down in the said corresponding relation all or part of, be substituted by said the 3rd physical memory address.
CN201010245032.XA 2010-08-02 2010-08-02 Resource adjusting system and method for virtual machine Expired - Fee Related CN102346680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010245032.XA CN102346680B (en) 2010-08-02 2010-08-02 Resource adjusting system and method for virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010245032.XA CN102346680B (en) 2010-08-02 2010-08-02 Resource adjusting system and method for virtual machine

Publications (2)

Publication Number Publication Date
CN102346680A true CN102346680A (en) 2012-02-08
CN102346680B CN102346680B (en) 2014-04-09

Family

ID=45545383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010245032.XA Expired - Fee Related CN102346680B (en) 2010-08-02 2010-08-02 Resource adjusting system and method for virtual machine

Country Status (1)

Country Link
CN (1) CN102346680B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657082A (en) * 2013-11-18 2015-05-27 英业达科技有限公司 Computer device and memorizer management method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7203944B1 (en) * 2003-07-09 2007-04-10 Veritas Operating Corporation Migrating virtual machines among computer systems to balance load caused by virtual machines
CN101135997A (en) * 2006-08-29 2008-03-05 联想(北京)有限公司 Virtual machine system and hardware equipment interrupt handling method thereof
US20080086729A1 (en) * 2006-10-10 2008-04-10 Yuki Kondoh Data processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7203944B1 (en) * 2003-07-09 2007-04-10 Veritas Operating Corporation Migrating virtual machines among computer systems to balance load caused by virtual machines
CN101135997A (en) * 2006-08-29 2008-03-05 联想(北京)有限公司 Virtual machine system and hardware equipment interrupt handling method thereof
US20080086729A1 (en) * 2006-10-10 2008-04-10 Yuki Kondoh Data processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657082A (en) * 2013-11-18 2015-05-27 英业达科技有限公司 Computer device and memorizer management method

Also Published As

Publication number Publication date
CN102346680B (en) 2014-04-09

Similar Documents

Publication Publication Date Title
CN103064795B (en) A kind of control method of memory device and relevant apparatus
US10372639B2 (en) System and method to avoid SMBus address conflicts via a baseboard management controller
CN101120317A (en) Method, apparatus and system for dynamically reassigning memory from one virtual machine to another
US10048886B2 (en) Method and system providing file system for an electronic device comprising a composite memory device
US11327869B2 (en) Distributed architecture for determining performance parameters
US10289472B2 (en) Resource leak detection method, apparatus, and system
CN103399781A (en) Cloud server and virtual machine management method thereof
US20120036345A1 (en) Embedded device and file change notification method of the embedded device
CN110427284A (en) Data processing method, distributed system, computer system and medium
CN103309721A (en) Virtual machine monitor management system and method
CN103403689A (en) Resource failure management method, device and system
CN105446657A (en) Method for monitoring RAID card
US10831539B2 (en) Hardware thread switching for scheduling policy in a processor
CN103309833A (en) Equipment integrating method, terminal device and distributed multi-terminal device system
CN103559124A (en) Fast fault detection method and device
CN104424122A (en) Electronic equipment and memory dividing method
CN102799465A (en) Virtual interrupt management method and device of distributed virtual system
CN104111867A (en) Virtual machine transfer device and method
CN102419753A (en) Information processing equipment, information processing method and information processing system
US20150200807A1 (en) Dynamic server to server configuration and initialization
CN104517067A (en) Method, device and system for data access
US20140237017A1 (en) Extending distributed computing systems to legacy programs
CN105045727A (en) Method and equipment for accessing shared memories
CN102521102A (en) Monitoring management method of physical multi-partition computer system based on Non Uniform Memory Access (NUMA)
CN102346680B (en) Resource adjusting system and method for virtual machine

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140409