CN102122268A - Virtual machine memory allocation access method, device and system - Google Patents

Virtual machine memory allocation access method, device and system Download PDF

Info

Publication number
CN102122268A
CN102122268A CN 201010042719 CN201010042719A CN102122268A CN 102122268 A CN102122268 A CN 102122268A CN 201010042719 CN201010042719 CN 201010042719 CN 201010042719 A CN201010042719 A CN 201010042719A CN 102122268 A CN102122268 A CN 102122268A
Authority
CN
China
Prior art keywords
continuous page
operating system
client operating
request
space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201010042719
Other languages
Chinese (zh)
Other versions
CN102122268B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 201010042719 priority Critical patent/CN102122268B/en
Publication of CN102122268A publication Critical patent/CN102122268A/en
Application granted granted Critical
Publication of CN102122268B publication Critical patent/CN102122268B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a virtual machine memory allocation access method which comprises the steps of: receiving a continuous page access request sent by a user operation system, wherein the continuous page access request contains the lengths of the requested continuous pages; allocating a continuous page space reserved in a physical internal memory to the user operation system according to the lengths of the requested continuous pages, and sending the information of the continuous page space allocated to the user operation system to the user operation system so that the user operation system can conveniently access the continuous page space allocated to the user operation system according to the allocated information of the continuous page space; when the user operation system needs to access the continuous page space, obtaining the information of the continuous page space directly from continuous internal memory pages allocated when a VMM (Virtual Machine Manager) is started without generation of the continuous pages, thus the running efficiency of the virtual machine is improved.

Description

A kind of virutal machine memory assigns access methods, devices and systems
Technical field
The present invention relates to the communications field, be specifically related to a kind of virutal machine memory assigns access methods, devices and systems.
Background technology
In the prior art, (Guest OS GOS) is also referred to as virtual opetrating system to client operating system, by virtual machine monitor (Virtual Machine Monitor, VMM) realize virtual unit, as virtual sound card, the visit of virtual video card etc. saves as virtual memory in the virtual unit of client operating system visit, and to the visit of actual physical internal memory, then need by server OS (Service OS, SOS) or host operating system (Host OS HOS) carries out.In the real physical memory, the least unit of internal memory is a page or leaf.Program visits memory headroom by the mode of using one or more pages.
DMA (Direct Memory Access, direct memory access) is a kind of without central processing unit (CPU, Center Processing Unit) and directly from the data exchange mode of memory access data.CPU need only assign instruction to dma controller, allow dma controller come the transmission of deal with data, Data Transfer Done is given CPU information feedback again, DMA transmission is actually a device's memory district is copied to another one device's memory district, and the physical memory page that therefore requires to carry out the DMA transmission must be continuous.
Because the physical memory space of Guest OS, behind executive routine, generally be discontinuous, and dma operation is to be based upon on the basis of contiguous memory, as carrying out the DMA transmission, operating system at first searches for whether have the memory pages size that satisfies condition in the prior art in the available internal memory page, if any then directly distributing.Otherwise, then, the page in the mode of exchange or by using the less page to access the mode that internal memory is sent into the exchange area of disk, being produced continuous qualified continuous page by the mode of page frame replacement, reallocation is carried out the transmission of data to DMA.That is to say that when the physical memory space of Guest OS was discontinuous, continuous physical memory need produce by page exchange or the mode that discharges, and will take a large amount of time, has reduced the transfer efficiency of DMA.
Summary of the invention
In view of this, the invention provides a kind of virutal machine memory assigns access methods, devices and systems, solved when the physical memory space of Guest OS is discontinuous, visit is the low problem of page or leaf space efficiency continuously.
A kind of virutal machine memory assigns access method comprises, receives the continuous page request of access that client operating system sends, and comprises the continuous page length of request in the continuous page request of access; Give client operating system according to continuous page length with the continuous page allocation of space of reserving in the physical memory, and the information that will distribute to the continuous page space of client operating system sends to client operating system, so that client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the continuous page space that is assigned to.
A kind of virutal machine memory assigns access method comprises, sends the continuous page request of access to virtual machine monitor, comprises the continuous page length of request in the continuous page request of access; The information in the continuous page space of reserving in the physical memory of sink virtual machine monitor according to the continuous page length allocation is so that conduct interviews to the continuous page space of distributing to client operating system according to the information in the continuous page space that is assigned to.
A kind of virtual machine monitor comprises, receiver module is used to receive the continuous page request of access that client operating system sends, and comprises the continuous page length of request in the continuous page request of access; Distribution module is used for giving client operating system according to the continuous page allocation of space that continuous page length is reserved physical memory; Sending module: the information that is used for distributing to the continuous page space of client operating system sends to client operating system, so that the information in the continuous page space that the client operating system basis is assigned to conducts interviews to the continuous page space of distributing to client operating system.
A kind of client operating system comprises, sending module is used for sending the continuous page request of access to virtual machine monitor, comprises the continuous page length of request in the continuous page request of access; Receiver module, the information that is used for the continuous page space that the sink virtual machine monitor reserves according to the physical memory of continuous page length allocation is so that conduct interviews to the continuous page space of distributing to client operating system according to the information in the continuous page space that is assigned to.
A kind of virutal machine memory allocation access system comprises, client operating system is used for sending the continuous page request of access to virtual machine monitor, comprises the continuous page length of request in the continuous page request of access; The information in the continuous page space of reserving in the physical memory of virtual machine monitor according to the continuous page length allocation is so that conduct interviews to the continuous page space of distributing to client operating system according to the information in the continuous page space that is assigned to.Virtual machine monitor is used to receive the continuous page request of access that client operating system sends, and comprises the continuous page length of request in the continuous page request of access; Give client operating system according to continuous page length with the continuous page allocation of space of reserving in the physical memory, and the information that will distribute to the continuous page space of client operating system sends to client operating system, so that client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the continuous page space that is assigned to.
The embodiment of the invention comprises the continuous page length of request by receiving the continuous page request of access that client operating system sends in the described continuous page request of access; Give described client operating system according to described continuous page length with the continuous page allocation of space of reserving in the physical memory, so that described client operating system conducts interviews to the continuous page space that is assigned to, when client operating system need be visited the continuous page space, need not to carry out the generation operation of continuous page, but obtain the contiguous memory page of directly when VMM starts, distributing, thereby improved the operational efficiency of virtual machine.
Description of drawings
The basic flow sheet of a kind of virutal machine memory assigns access method that Fig. 1 provides for the embodiment of the invention;
The basic flow sheet of the another kind of virutal machine memory assigns access method that Fig. 2 provides for the embodiment of the invention;
A kind of virtual machine monitor fundamental block diagram that Fig. 3 provides for the embodiment of the invention;
A kind of client operating system fundamental block diagram that Fig. 4 provides for the embodiment of the invention;
A kind of virutal machine memory allocation access system fundamental block diagram that Fig. 5 provides for the embodiment of the invention;
The specific implementation process flow diagram of a kind of DMA transmission method that Fig. 6 provides for the embodiment of the invention;
Embodiment
In order to make those skilled in the art better understand content of the present invention, content of the present invention is specified below in conjunction with accompanying drawing and specific embodiment.
The basic procedure of a kind of virutal machine memory assigns access method of the embodiment of the invention can mainly comprise step with reference to figure 1:
A1, receive the continuous page request of access that client operating system sends, comprise the continuous page length of request in the described continuous page request of access.
VMM receives the continuous page request of access that client operating system sends, and as the DMA transmission requests, comprise the continuous page length of request in this request, as the continuous page length that requires is 20M.
A2, give described client operating system with the continuous page allocation of space reserved in the physical memory according to described continuous page length, and the information that will distribute to the continuous page space of client operating system sends to described client operating system, so that described client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.
Virtual machine monitor VMM is the continuous page space of reserved part in physical memory in advance.Reserve the big I of continuous page and decide, in actual business, generally reserve 10% of whole memory headroom, and can the page space that this is continuous be divided into plurality of small blocks continuous page space according to actual conditions.Under the little situation of the continuous page length difference that each virtual opetrating system requires, can be average to the continuous page space dividing of reserving, as continuous page space, can be divided into the continuous page space of 2 50M to 100M; Under the bigger situation of continuous page length difference that each virtual opetrating system requires, can be by the actual conditions branch, the continuous page space as to the 100M that reserves can be divided into 40M, 30M, 20M, the page space of 10M.When carrying out the DMA transmission, the continuous page space of request is 15M as GOS, and at the situation that the continuous page space of reserving is averaged distribution, VMM then distributes to GOS with the page space of 50M; As GOS request be 35M continuous page space, at the situation of the continuous page space of reserving being carried out divide by actual conditions, VMM then distributes to GOS with the page space of 40M.And each client operating system can only carry out the distribution of internal memory from the virutal machine memory space after starting, and can not take the continuous page space.
VMM is after receiving continuous page request of access DMA transmission requests, and whether inquiry has corresponding continuous page space in the continuous page space of reserving.As do not have, then return failure response; If any, with corresponding continuous page address designation for using, and the success response message that will comprise available continuous page address information returns to client operating system, client operating system is after receiving success response message, described available continuous page address information is added in the page table that client computer can use, and return the interpolation success response to VMM.
The embodiment of the invention comprises the continuous page length of request by receiving the continuous page request of access that client operating system sends in the described continuous page request of access; Give described client operating system according to described continuous page length with the continuous page allocation of space of reserving in the physical memory, and the information that will distribute to the continuous page space of client operating system sends to described client operating system, so that described client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.When client operating system need be visited the continuous page space, need not to carry out the generation operation of continuous page, but obtain the contiguous memory page of directly when VMM starts, distributing, thereby improved the operational efficiency of virtual machine.
The basic procedure of a kind of DMA transmission method of the embodiment of the invention can mainly comprise step with reference to figure 2:
B1, send the continuous page request of access, comprise the continuous page length of request in the described continuous page request of access to virtual machine monitor;
Client operating system receives the continuous page visit application that client applications sends, and as DMA transmission application, sends DMA transmission application as program A to WINDOWS operating system; The continuous page length that requires is 20M, client operating system is after receiving the continuous page visit application that client applications sends, whether determine has satisfactory continuous page in the page space of local internal memory, the continuous page in the local internal memory is visited if any then directly carrying out; As do not have, then sending the continuous page request of access to VMM, the continuous page length of carrying requirement in the described continuous page request of access is 20M.
The information in the continuous page space of reserving in B2, the physical memory of sink virtual machine monitor according to described continuous page length allocation is so that conduct interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.
VMM receives the continuous page request of access that client operating system sends, and whether inquiry has corresponding continuous page space in the continuous page space of reserving.As do not have, then return failure response; If any, with corresponding continuous page address designation for using, and the success response message that will comprise available continuous page address information returns to client operating system, client operating system is after receiving the success response message that VMM returns, continuous page address information available in the described success response message is added in the page table of client operating system, and return the interpolation success response to VMM.
Client operating system carries out the continuous page visit, transmits as DMA.After visit finishes, client operating system is in the page table of oneself, search and whether have the available continuous page address information of having added, as do not have, then continuous page is not applied in expression, if any, continuous page has been applied in expression, then client operating system sends continuous page release request to VMM, this continuous page discharges and carries the available continuous page address information that client operating system adds in the request, after VMM received that continuous page discharges request, VMM found corresponding continuous page and corresponding continuous page is labeled as the free time in the VMM page table, return acknowledge message; After client operating system was received the affirmation message that VMM returns, client operating system discharged respective page, and revised the client operating system page table, and sent the client operating system page table modification to VMM and finish message.
The embodiment of the invention comprises the continuous page length of described request by sending the continuous page request of access to virtual machine monitor in the described continuous page request of access; The information in the continuous page space of reserving in the physical memory of sink virtual machine monitor according to described continuous page length allocation, so that the information according to the described continuous page space that is assigned to conducts interviews to the continuous page space of distributing to client operating system, when client operating system need carry out the continuous page visit, need not to carry out the generation operation of continuous page, but obtain the contiguous memory page of directly when VMM starts, distributing, thereby improved the operational efficiency of virtual machine.
A kind of virtual machine monitor fundamental block diagram of the embodiment of the invention can mainly comprise with reference to figure 3,
Receiver module 301 is used to receive the continuous page request of access that client operating system sends, and comprises the continuous page length of request in the described continuous page request of access; Receiver module 301 receives the continuous page request of access that client operating system sends, and as the DMA transmission requests, comprise request continuous page length in this request, as the continuous page length that requires is 20M;
Distribution module 302 is used for giving described client operating system according to the continuous page allocation of space that described continuous page length is reserved physical memory; Virtual machine monitor VMM reserves continuous page space in advance in physical memory, but specifically how to distribute reference example 1, and VMM is after receiving the continuous page request of access, and whether VMM inquiry in the continuous page space of reserving has corresponding continuous page space.As do not have, then return failure response; If any, for using, and the success response message that will comprise available continuous page address information returns to client operating system with corresponding continuous page address designation.
Sending module 303: the information that is used for distributing to the continuous page space of client operating system sends to described client operating system, so that described client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.Client operating system adds described available continuous page address information in the page table that client computer can use to after receiving success response message, and returns the interpolation success response to VMM.
Further, virtual machine monitor comprises memory allocating module 304, is used to client operating system to distribute physical memory.
Further, virtual machine monitor comprises identification module 305, is used to receive the continuous page that client operating system sends and discharges request, and the continuous page address designation of described continuous page space correspondence be the free time.
The embodiment of the invention receives the continuous page request of access that client operating system sends by receiver module 301, comprises the continuous page length of request in the described continuous page request of access; Distribution module 302 is given described client operating system according to described continuous page length with the continuous page allocation of space of reserving in the physical memory; The information that sending module 303 will be distributed to the continuous page space of client operating system sends to described client operating system, so that described client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to, when client operating system need be visited the continuous page space, need not to carry out the generation operation of continuous page, but obtain the contiguous memory page of directly when VMM starts, distributing, thereby improved the operational efficiency of virtual machine.
A kind of client operating system fundamental block diagram of the embodiment of the invention can mainly comprise with reference to figure 4:
Sending module 401 is used for sending the continuous page request of access to virtual machine monitor, comprises the continuous page length of described request in the described continuous page request of access; Client operating system is after receiving the continuous page visit application that client applications sends, whether search has satisfactory continuous page in the memory pages space of oneself, visits if any then carrying out continuous page, as does not have, then send the continuous page request of access, as the DMA transmission requests to VMM.
Receiver module 402, the information that is used for the continuous page space that the sink virtual machine monitor reserves according to the physical memory of described continuous page length allocation, so that the information according to the described continuous page space that is assigned to conducts interviews to the continuous page space of distributing to client operating system, but detailed process reference example 2 step B2.
Described client operating system further comprises, determination module 403, be used to receive the continuous page visit application that client applications sends, comprise request continuous page length in the described continuous page visit application, and determine not exist in the local internal memory continuous page of the continuous page length that meets described request.
The embodiment of the invention sends the continuous page request of access by sending module 401 to virtual machine monitor, the continuous page length that comprises described request in the described continuous page request of access, the information in the continuous page space of reserving in the physical memory of receiver module 402 sink virtual machine monitors according to described continuous page length allocation, so that the information according to the described continuous page space that is assigned to conducts interviews to the continuous page space of distributing to client operating system, when client operating system need carry out the DMA transmission, need not to carry out the generation operation of continuous page, but obtain the contiguous memory page of directly when VMM starts, distributing, thereby improved the operational efficiency of virtual machine.
A kind of virutal machine memory allocation access system fundamental block diagram of the embodiment of the invention can mainly comprise with reference to figure 5,
Client operating system 501 is used for sending the continuous page request of access to virtual machine monitor, comprises the continuous page length of described request in the described continuous page request of access; The information in the continuous page space of reserving in the physical memory of virtual machine monitor according to described continuous page length allocation, so that the information according to the described continuous page space that is assigned to conducts interviews to the continuous page space of distributing to client operating system, client operating system receives the continuous page visit application that client applications sends, and sends DMA transmission application as program A to WINDOWS operating system; Client operating system is after receiving the continuous page visit application that client applications sends, whether search has satisfactory continuous page in the memory pages space of oneself, if any then carrying out the continuous page visit, as do not have, then send continuous page request of access .VMM to VMM and receive the continuous page request of access that client operating system sends, whether inquiry has corresponding continuous page space in the continuous page space of reserving.As do not have, then return failure response; If any, with corresponding continuous page address designation for using, and the success response message that will comprise available continuous page address information returns to client operating system, client operating system is after receiving success response message, described available continuous page address information is added in the page table that client computer can use, and return the interpolation success response to VMM.Next, client operating system carries out the continuous page visit, after end of transmission (EOT), the memory size that client operating system VMM when starting reserves is judged with existing spendable memory size, judge whether to have applied for continuous page, the internal memory of reserving greater than client operating system VMM when starting as existing spendable internal memory, then continuous page has been applied in expression, then client operating system sends continuous page release request to VMM, carry the respective page address information that is used for the continuous page visit in this message, after VMM receives that continuous page discharges request, VMM finds corresponding continuous page and corresponding continuous page is labeled as the free time in the VMM page table, return acknowledge message; After client operating system was received the affirmation message that VMM returns, client operating system discharged respective page, and revised the client operating system page table, and next, client operating system sends the client operating system page table modification to VMM and finishes message.
Virtual machine monitor 502 is used to receive the continuous page request of access that client operating system sends, and comprises the continuous page length of request in the described continuous page request of access; Give described client operating system according to described continuous page length with the continuous page allocation of space of reserving in the physical memory, and the information that will distribute to the continuous page space of client operating system sends to described client operating system, so that described client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to, VMM receives the continuous page request of access that client operating system sends, and whether inquiry has corresponding continuous page space in the continuous page space of reserving.As do not have, then return failure response; If any, with corresponding continuous page address designation for using, and the success response message that will comprise available continuous page address information returns to client operating system, client operating system is after receiving success response message, described available continuous page address information is added in the page table that client computer can use, and return the interpolation success response to VMM.
Further, the virutal machine memory allocation access system further comprises client applications 503, is used for sending continuous page visit application to client operating system 501;
The embodiment of the invention sends the continuous page request of access by client operating system 501 to virtual machine monitor 502, comprises the continuous page length of described request in the described continuous page request of access; The continuous page space of reserving in the physical memory of sink virtual machine monitor 502 according to described continuous page length allocation, so that the continuous page space to described distribution conducts interviews, when client operating system need carry out the DMA transmission, need not to carry out the generation operation of continuous page, but obtain the contiguous memory page of directly when VMM starts, distributing, thereby improved the operational efficiency of virtual machine.
For better understanding the foregoing description, be that example describes below in conjunction with an a kind of concrete implementation of DMA transmission method, schematic flow sheet is as shown in Figure 5, comprise client applications, client operating system GOS, virtual machine monitor VMM, idiographic flow is as follows:
601. it is continuous page visit application that client applications proposes DMA transmission application to GOS, comprises request continuous page length in the described continuous page visit application;
Client applications is a recreation A, and GOS is a WINDOWS operating system, in operating process, need carry out the transmission of file by DMA, and the A that then plays proposes DMA transmission application to GOS; The continuous page length that comprises needs in this application.
602.GOS whether search has the continuous page that meets the continuous page length requirement in the memory pages space of oneself;
If there is not satisfactory continuous page, then change step 603 over to; If satisfactory continuous page is arranged, then change step 607 over to.
603.GOS proposing the DMA transmission requests to VMM is the continuous page request of access; The continuous page length that comprises request in this continuous page request of access;
604.VMM return the transmission requests response to GOS, comprise the continuous page address information of the continuous page space correspondence of distributing to client operating system in this response;
After VMM receives the DMA transmission requests that GOS proposes, according to the continuous page length in the transmission requests, in the continuous page space of reserving inquiry whether have satisfy continuous page length the continuous page space.As do not have, then return failure response; Otherwise, earlier with the continuous page address designation of corresponding continuous page space correspondence for using, return transmission requests to GOS and respond, comprise the continuous page address information of corresponding continuous page space correspondence in this response;
605.GOS the continuous page address information of returning the continuous page space correspondence of distributing to client operating system of coming from VMM is added to the local spendable page table;
Optionally, if VMM returns is failure response, GOS produces continuous page by page exchange and the mode that swaps out.As producing, then change step 607 over to; Otherwise, then return the information of DMA bust this to client applications;
606.VMM return the success response of modification VMM page table to GOS;
After VMM receives that GOS adds the response finish, the respective page address information is added in the page table among the VMM, and returns the modification successful information.
607.GOS carry out the DMA transmission after receiving the modification successful information that VMM returns;
608.DMA after the end of transmission (EOT), GOS proposes the request of DMA end of transmission (EOT) to VMM, and provides the respective page address information that is used for the DMA transmission;
GOS is in the page table of oneself, search and whether have the respective page address information that is used for the DMA transmission of having added, as do not have, then continuous page is not applied in expression, if any, continuous page has been applied in expression, and then client operating system sends the request of DMA end of transmission (EOT) to VMM, carries the respective page address information that is used for the DMA transmission in this DMA end of transmission (EOT) request
609.VMM after receiving the DMA end of transmission (EOT) request of GOS transmission, in the VMM page table, find corresponding continuous page, return acknowledge message.
610.GOS after receiving the affirmation message that VMM returns, GOS discharges respective page, revises the GOS page table, and sends the GOS page table modification to VMM and finish message;
611.VMM after receiving that the GOS page table modification is finished response, revise the VMM page table, and corresponding continuous page be labeled as the free time;
The embodiment of the invention receives the DMA transmission application that client applications sends by GOS; GOS determines not exist in the local internal memory continuous page that meets the DMA transmission, sends the DMA transmission requests to virtual machine monitor; The continuous page space of its reservation that reception VMM returns, so that carry out the DMA transmission, when client operating system need carry out the DMA transmission, need not to carry out the generation operation of continuous page, but obtain the contiguous memory page of directly when VMM starts, distributing, thereby improved the operational efficiency of virtual machine.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
More than to the mthods, systems and devices of the limiting call of calling user that the embodiment of the invention provided, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (17)

1. a virutal machine memory assigns access method is characterized in that, described method comprises,
Receive the continuous page request of access that client operating system sends, comprise the continuous page length of request in the described continuous page request of access;
Give described client operating system according to described continuous page length with the continuous page allocation of space of reserving in the physical memory, and the information that will distribute to the continuous page space of client operating system sends to described client operating system, so that described client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.
2. the method for claim 1, it is characterized in that, the described information of distributing to the continuous page space of client operating system is to distribute to the continuous page address information of the continuous page space correspondence of client operating system, and this method comprises that further the continuous page address designation of the continuous page space correspondence of distributing to client operating system in the change physical memory is for using.
3. the method for claim 1 is characterized in that, described method further comprises,
Receive the continuous page release request that client operating system sends, described continuous page discharges the continuous page address information of carrying the continuous page space correspondence of distributing to client operating system in the request, discharge according to continuous page continuous page space correspondence described in the request change physical memory the continuous page address be designated the free time.
4. a virutal machine memory assigns access method is characterized in that, described method comprises,
Send the continuous page request of access to virtual machine monitor, comprise the continuous page length of request in the described continuous page request of access;
The information in the continuous page space of reserving in the physical memory of sink virtual machine monitor according to described continuous page length allocation is so that conduct interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.
5. method as claimed in claim 4 is characterized in that, the described information of distributing to the continuous page space of client operating system is to distribute to the continuous page address information of the continuous page space correspondence of client operating system, and this method further comprises:
And described continuous page address information added in the local page table.
6. the method for claim 1 is characterized in that, before virtual machine monitor sends the continuous page request of access, this method further comprises step:
Receive the continuous page visit application that client applications sends, comprise the continuous page length of request in the described continuous page visit application, and determine not exist in the local internal memory continuous page space of the continuous page length that meets described request.
7. the method for claim 1 is characterized in that, described method further comprises,
Send continuous page to virtual machine monitor and discharge request, described continuous page discharges the continuous page address information of carrying the continuous page space correspondence of distributing to client operating system in the request, so that virtual machine monitor is according to the free time that is designated of the continuous page address of continuous page space correspondence described in the described continuous page address information change physical memory.
8. a virtual machine monitor is characterized in that, described virtual machine monitor comprises,
Receiver module is used to receive the continuous page request of access that client operating system sends, and comprises the continuous page length of request in the described continuous page request of access;
Distribution module is used for giving described client operating system according to the continuous page allocation of space that described continuous page length is reserved physical memory;
Sending module: the information that is used for distributing to the continuous page space of client operating system sends to described client operating system, so that described client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.
9. virtual machine monitor as claimed in claim 7 is characterized in that, described virtual machine monitor further comprises,
Identification module is used for changing physical memory and distributes to the continuous page address designation of continuous page space correspondence of client operating system for using.
10. virtual machine monitor as claimed in claim 9, it is characterized in that, described receiver module is further used for receiving the continuous page release request that client operating system sends, and described continuous page discharges the continuous page address information of carrying the continuous page space correspondence of distributing to client operating system in the request;
Described identification module is further used for the free time that is designated according to the continuous page address of continuous page space correspondence described in the continuous page release request change physical memory.。
11. a client operating system is characterized in that, described client operating system comprises,
Sending module is used for sending the continuous page request of access to virtual machine monitor, comprises the continuous page length of described request in the described continuous page request of access;
Receiver module, the information that is used for the continuous page space that the sink virtual machine monitor reserves according to the physical memory of described continuous page length allocation is so that conduct interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.
12. client operating system as claimed in claim 10 is characterized in that, described receiver module is further used for,
Receive the continuous page visit application that client applications sends, comprise request continuous page length in the described continuous page visit application, and determine not exist in the local internal memory continuous page of the continuous page length that meets described request;
Described sending module is used for sending the continuous page request of access according to the continuous page length of described continuous page visit application.
13. client operating system as claimed in claim 10, it is characterized in that, described sending module is further used for: send continuous page to virtual machine monitor and discharge request, described continuous page discharges the continuous page address information of carrying the continuous page space correspondence of distributing to client operating system in the request, so that virtual machine monitor is according to the free time that is designated of the continuous page address of continuous page space correspondence described in the described continuous page address information change physical memory.
14. a virutal machine memory allocation access system is characterized in that, comprises,
Client operating system is used for sending the continuous page request of access to virtual machine monitor, comprises the continuous page length of described request in the described continuous page request of access; The information in the continuous page space of reserving in the physical memory of virtual machine monitor according to described continuous page length allocation is so that conduct interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.
Virtual machine monitor is used to receive the continuous page request of access that client operating system sends, and comprises the continuous page length of request in the described continuous page request of access; Give described client operating system according to described continuous page length with the continuous page allocation of space of reserving in the physical memory, and the information that will distribute to the continuous page space of client operating system sends to described client operating system, so that described client operating system conducts interviews to the continuous page space of distributing to client operating system according to the information in the described continuous page space that is assigned to.
15. virutal machine memory allocation access system as claimed in claim 14 is characterized in that, described client operating system further comprises,
Client applications is used for sending continuous page visit application to client operating system, comprises the continuous page length of request in the described continuous page visit application.
16. virutal machine memory allocation access system as claimed in claim 15, it is characterized in that, described client operating system is further used for, and according to the continuous page length that comprises request in the continuous page visit application, determines not exist in the local internal memory continuous page that meets request continuous page length.
17. virutal machine memory allocation access system as claimed in claim 14, it is characterized in that, described client operating system is further used for, send continuous page to virtual machine monitor and discharge request, described continuous page discharges the continuous page address information of carrying the continuous page space correspondence of distributing to client operating system in the request, so that virtual machine monitor is according to the free time that is designated of the continuous page address of continuous page space correspondence described in the described continuous page address information change physical memory.
CN 201010042719 2010-01-07 2010-01-07 Virtual machine memory allocation access method, device and system Expired - Fee Related CN102122268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010042719 CN102122268B (en) 2010-01-07 2010-01-07 Virtual machine memory allocation access method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010042719 CN102122268B (en) 2010-01-07 2010-01-07 Virtual machine memory allocation access method, device and system

Publications (2)

Publication Number Publication Date
CN102122268A true CN102122268A (en) 2011-07-13
CN102122268B CN102122268B (en) 2013-01-23

Family

ID=44250830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010042719 Expired - Fee Related CN102122268B (en) 2010-01-07 2010-01-07 Virtual machine memory allocation access method, device and system

Country Status (1)

Country Link
CN (1) CN102122268B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708065A (en) * 2011-03-07 2012-10-03 微软公司 Pagefile reservations
CN103186462A (en) * 2011-12-30 2013-07-03 百度在线网络技术(北京)有限公司 Android operation system detection method and system
WO2016019566A1 (en) * 2014-08-08 2016-02-11 华为技术有限公司 Memory management method, device and system and network-on-chip
CN107818054A (en) * 2016-09-12 2018-03-20 联发科技股份有限公司 Distribute method and system of the continuous physical memory space to equipment
CN111078587A (en) * 2019-12-10 2020-04-28 Oppo(重庆)智能科技有限公司 Memory allocation method and device, storage medium and electronic equipment
CN111344667A (en) * 2017-12-01 2020-06-26 华为技术有限公司 System and method for compiling and executing code within virtual memory sub-pages of one or more virtual memory pages

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7356665B2 (en) * 2003-12-17 2008-04-08 International Business Machines Corporation Method and system for machine memory power and availability management in a processing system supporting multiple virtual machines

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708065A (en) * 2011-03-07 2012-10-03 微软公司 Pagefile reservations
CN102708065B (en) * 2011-03-07 2016-12-07 微软技术许可有限责任公司 A kind of method of reserved pagefile and computer system
CN103186462A (en) * 2011-12-30 2013-07-03 百度在线网络技术(北京)有限公司 Android operation system detection method and system
WO2016019566A1 (en) * 2014-08-08 2016-02-11 华为技术有限公司 Memory management method, device and system and network-on-chip
CN105518631A (en) * 2014-08-08 2016-04-20 华为技术有限公司 Memory management method, device and system and network-on-chip
CN105518631B (en) * 2014-08-08 2019-04-12 华为技术有限公司 EMS memory management process, device and system and network-on-chip
CN107818054A (en) * 2016-09-12 2018-03-20 联发科技股份有限公司 Distribute method and system of the continuous physical memory space to equipment
CN111344667A (en) * 2017-12-01 2020-06-26 华为技术有限公司 System and method for compiling and executing code within virtual memory sub-pages of one or more virtual memory pages
CN111344667B (en) * 2017-12-01 2021-10-15 华为技术有限公司 System and method for compiling and executing code within virtual memory sub-pages of one or more virtual memory pages
CN111078587A (en) * 2019-12-10 2020-04-28 Oppo(重庆)智能科技有限公司 Memory allocation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN102122268B (en) 2013-01-23

Similar Documents

Publication Publication Date Title
EP3073374B1 (en) Thread creation method, service request processing method and related device
WO2018149221A1 (en) Device management method and network management system
CN102122268B (en) Virtual machine memory allocation access method, device and system
CN109451051B (en) Service request processing method and device, electronic equipment and storage medium
CN109154917A (en) Storage system and solid state hard disk
CN1812345A (en) Virtual network storing system and network storing equipment thereof
CN103078965B (en) The IP address management method of virtual machine
CN111585887B (en) Communication method and device based on multiple networks, electronic equipment and storage medium
CN103414657A (en) Cross-data-center resource scheduling method, super scheduling center and system
CN113419846A (en) Resource allocation method and device, electronic equipment and computer readable storage medium
CN102255926A (en) Task distribution method in map reduce (MR) system, system and apparatus thereof
CN112099728B (en) Method and device for executing write operation and read operation
CN114389955B (en) Method for managing heterogeneous resource pool of embedded platform
WO2016095524A1 (en) Resource allocation method and apparatus
CN113051195A (en) Memory, GPU and electronic equipment
CN104301257A (en) Resource distribution method, device and equipment
CN104714845B (en) Resource dynamic regulation method, device and more kernel operating systems
CN111274022B (en) Server resource allocation method and system
CN114640630B (en) Flow control method, device, equipment and readable storage medium
US11093291B2 (en) Resource assignment using CDA protocol in distributed processing environment based on task bid and resource cost
CN104750614B (en) Method and apparatus for managing memory
CN109005071B (en) Decision deployment method and scheduling equipment
KR20130028554A (en) Large capacity distributed processing apparatus using a message bus and the method thereof
JP2007102332A (en) Load balancing system and load balancing method
CN117478722B (en) P2P identifier allocation method, system, 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130123

Termination date: 20180107

CF01 Termination of patent right due to non-payment of annual fee