CN109739668A - A kind of method of data transmission between virtual machines, system and equipment - Google Patents
A kind of method of data transmission between virtual machines, system and equipment Download PDFInfo
- Publication number
- CN109739668A CN109739668A CN201910027178.8A CN201910027178A CN109739668A CN 109739668 A CN109739668 A CN 109739668A CN 201910027178 A CN201910027178 A CN 201910027178A CN 109739668 A CN109739668 A CN 109739668A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- data
- host
- shared drive
- transmitted
- 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.)
- Withdrawn
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 77
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000012546 transfer Methods 0.000 claims abstract description 22
- 238000013507 mapping Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 238000000151 deposition Methods 0.000 claims 1
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 7
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 239000011800 void material Substances 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 101150071434 BAR1 gene Proteins 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 101100378536 Ovis aries ADRB1 gene Proteins 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
Abstract
This application discloses a kind of methods of data transmission between virtual machines, comprising: determines virtual machine attribute according to virtual machine creating order;Host virtual machine is created according to virtual machine attribute and from virtual machine, host side shared drive is mapped to host virtual machine, and host side shared drive is divided into each memory space according to preset rules, is then mapped to respectively respectively from virtual machine;When receiving data transfer command, data to be transmitted and transmission ID number are determined according to data transfer command, data to be transmitted is then transmitted to the corresponding memory space from virtual machine.Technical solution provided herein, which realizes, is directed to host side shared drive, the only accessible all areas of host virtual machine, and can only see certain a part being assigned in shared drive region from virtual machine, therefore reduce the possibility of leaking data, improve safety.The application additionally provides the system, equipment and computer readable storage medium of a kind of data transmission between virtual machines simultaneously, has above-mentioned beneficial effect.
Description
Technical field
This application involves virtual machine field, in particular to a kind of method of data transmission between virtual machines, system, equipment and meter
Calculation machine readable storage medium storing program for executing.
Background technique
Currently, cloud computing is with features such as its low cost, portability, scalability height, it is big data, internet, artificial intelligence
The development of energy provides practical technical guarantee, is already the inexorable trend of Information base development.More and more application migrations
Into cloud environment, as network address translation NAT (Network Address Translation), firewall and
The application such as MapReduce, these applications have a common trait, that is, there is a data collector Manager, receiving
External data be distributed in the worker Worker of multiple responsible data processings.Necessarily refer among these Manager and
Data transmission between Worker virtual machine, and the handling capacity of data transmission and delay have important shadow to the performance of application
It rings.
The data transmission and lower delay of higher throughput, the virtual machine that preferably application is related between realization virtual machine
It is deployed on the same physical host, is transmitted for the data that are present on same physical host between virtual machine, efficiency is most at present
High transmission mode is to implement thinking based on shared drive are as follows: applies for one piece of shared drive at the end physical host Host
Region, and by this block shared drive area maps to a virtual PCI device vPCI, each virtual machine includes in creation
Above-mentioned virtual PCI device vPCI, then in virtual machine internal shared drive region can be read and write by operation vPCI.One virtual
Machine can directly be seen that there is no the similar expenses such as data copy to the modification that shared drive region is made by another virtual machine.
However, there are safeties to ask for the above-mentioned mode based on shared drive for the Distributed Application of current cloud deployment
Topic, because host side shared drive region can be accessed by all virtual machines, if one of virtual machine malicious access, there are numbers
According to the possibility of leakage.
Therefore, how to improve the safety of data transmission between virtual machines is the skill that those skilled in the art need to solve at present
Art problem.
Summary of the invention
The purpose of the application is to provide the methods of data transmission between virtual machines a kind of, system, equipment and computer-readable deposits
Storage media, for improving the safety of data transmission between virtual machines.
In order to solve the above technical problems, the application provides a kind of method of data transmission between virtual machines, this method comprises:
Receive the virtual machine creating order of input;
Virtual machine attribute is determined according to the virtual machine creating order;Wherein, the virtual machine attribute includes that host side is total
Enjoy memory, each virtual machine ID number, from virtual machine quantity;
Host virtual machine is created according to the virtual machine attribute and from virtual machine, the host side shared drive is mapped to institute
Host virtual machine is stated, and the host side shared drive is divided into each memory space according to preset rules, is then mapped to respectively
Each virtual machine;
When the host virtual machine receives data transfer command, data to be transmitted is determined according to the data transfer command
And transmission ID number, the data to be transmitted is then transmitted to the corresponding memory space from virtual machine of the transmission ID number.
It is optionally, described that the host side shared drive is divided into each memory space according to preset rules, comprising:
The host side shared drive is averagely divided into each memory space.
Optionally, when the virtual machine attribute includes the path unix-socket, further includes:
Receive the newly-built order of slave virtual machine of input;
The memory space newly distributed from virtual machine and ID number are determined from the newly-built order of virtual machine according to described;
It executes described newly-built from virtual machine and corresponding using the path unix-socket from the newly-built order of virtual machine
The memory space and ID number newly distributed from virtual machine is sent to the host virtual machine by unix-socket.
Optionally, by the data to be transmitted be transmitted to the corresponding memory space from virtual machine of the transmission ID number it
Afterwards, further includes:
Notify the transmission ID number corresponding from virtual using the corresponding unix-socket in the path unix-socket
Machine is read out the data to be transmitted.
The application also provides a kind of system of data transmission between virtual machines, which includes:
First receiving module, virtual machine creating order for receiving input;
Read module, for determining virtual machine attribute according to the virtual machine creating order;Wherein, the virtual machine attribute
Including host side shared drive, each virtual machine ID number, from virtual machine quantity;
Creation and mapping block, for creating host virtual machine according to the virtual machine attribute and from virtual machine, by the master
Generator terminal shared drive is mapped to the host virtual machine, and the host side shared drive is divided into each storage according to preset rules
Then space is mapped to each virtual machine respectively;
Transmission module, for when the host virtual machine receives data transfer command, according to the data transfer command
It determines data to be transmitted and transmission ID number, it is corresponding from virtual machine that the data to be transmitted is then transmitted to the transmission ID number
Memory space.
Optionally, the creation and mapping block include:
Submodule is divided, for the host side shared drive to be averagely divided into each memory space.
Optionally, when the virtual machine attribute includes the path unix-socket, further includes:
Second receiving module, it is for receiving input from the newly-built order of virtual machine;
Determining module, for according to it is described from the newly-built order of virtual machine determine the memory space newly distributed from virtual machine and
ID number;
Execution module, it is described newly-built from virtual machine from the newly-built order of virtual machine for executing, and utilize the unix-
The memory space and ID number newly distributed from virtual machine is sent to the master by the corresponding unix-socket in the path socket
Virtual machine.
Optionally, further includes:
Notification module, for notifying the transmission ID number using the corresponding unix-socket in the path unix-socket
It is corresponding that the data to be transmitted is read out from virtual machine.
The application also provides a kind of data transmission between virtual machines equipment, which includes:
Memory, for storing computer program;
Processor, realizing the data transmission between virtual machines as described in any of the above-described when for executing the computer program
The step of method.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium
Machine program realizes the method for the data transmission between virtual machines as described in any of the above-described when the computer program is executed by processor
The step of.
The method of data transmission between virtual machines provided herein, comprising: receive the virtual machine creating order of input;According to
Virtual machine creating order determines virtual machine attribute;Wherein, virtual machine attribute include host side shared drive, each virtual machine ID number,
From virtual machine quantity;Host virtual machine is created according to virtual machine attribute and from virtual machine, host side shared drive is mapped to main void
Quasi- machine, and host side shared drive is divided into each memory space according to preset rules, it is then mapped to respectively respectively from virtual machine;
When host virtual machine receives data transfer command, data to be transmitted and transmission ID number are determined according to data transfer command, then
Data to be transmitted is transmitted to the corresponding memory space from virtual machine of transmission ID number.
Technical solution provided herein first passes through virtual machine creating when receiving the virtual machine creating order of input
It orders and determines virtual machine attribute, create host virtual machine further according to virtual machine attribute and from virtual machine, host side shared drive is reflected
It penetrates to host virtual machine, and host side shared drive is divided into each memory space according to preset rules, be then mapped to respectively each
From virtual machine, when host virtual machine receives data transfer command, data to be transmitted and transmission are determined according to data transfer command
Then data to be transmitted is transmitted to the corresponding memory space from virtual machine of transmission ID number, so that being directed to host side by ID number
The accessible all areas of shared drive, only host virtual machine, and can only see in shared drive region and be assigned from virtual machine
Certain a part, therefore reduce the possibility of leaking data, improve safety.The application additionally provides a kind of virtual machine simultaneously
Between data transmit system, equipment and computer readable storage medium, have above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the method for data transmission between virtual machines provided by the embodiment of the present application;
Fig. 2 is a kind of integrated stand composition of virtual machine system provided by the embodiment of the present application;
Fig. 3 is the flow chart of the method for another kind data transmission between virtual machines provided by the embodiment of the present application;
Fig. 4 is a kind of structure chart of the system of data transmission between virtual machines provided by the embodiment of the present application;
Fig. 5 is the structure chart of the system of another kind data transmission between virtual machines provided by the embodiment of the present application;
Fig. 6 is a kind of structure chart of data transmission between virtual machines equipment provided by the embodiment of the present application.
Specific embodiment
The core of the application is to provide the methods of data transmission between virtual machines a kind of, system, equipment and computer-readable deposits
Storage media, for improving the safety of data transmission between virtual machines.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of process of the method for data transmission between virtual machines provided by the embodiment of the present application
Figure.
It specifically comprises the following steps:
S101: the virtual machine creating order of input is received;
For the Distributed Application of current cloud deployment, it is existing based on the mode of shared drive there are safety issue,
Because host side shared drive region can be accessed by all virtual machines, if one of virtual machine malicious access, there are data
The possibility of leakage, therefore this application provides a kind of methods of data transmission between virtual machines, for solving the above problems;
Virtual machine creating order mentioned herein, input mode are specifically as follows user and are manually entered or import, can also
Think and automatically entered after system is connected to triggering command, preset virtual machine creating order can also be passed through into wired or nothing for cloud
Line communication mode is transmitted in system, and the application is not specifically limited the input mode of virtual machine creating order.
S102: virtual machine attribute is determined according to virtual machine creating order;
Virtual machine attribute mentioned herein includes host side shared drive, each virtual machine ID number, from virtual machine quantity, wherein
Host side shared drive is shared drive region provided by physical host where virtual machine, and each virtual machine ID number is will
The ID number of the host virtual machine of creation and respectively from the ID number of virtual machine;
Optionally, when receiving virtual machine attribute modification order before creating virtual machine, modification life can also be performed
Order modifies to virtual machine attribute.
S103: host virtual machine is created according to virtual machine attribute and from virtual machine, host side shared drive is mapped to main void
Quasi- machine, and host side shared drive is divided into each memory space according to preset rules, it is then mapped to respectively respectively from virtual machine;
In the prior art, each virtual machine can access whole host side shared drives, therefore there is higher
The possibility of leaking data, and create host virtual machine in the application and from virtual machine, only host virtual machine is allowed to access whole hosts
Shared drive is held, and can only each access that a part of memory space for distributing to oneself from virtual machine, it is in this case, empty
Quasi- machine is caused the possibility of leaking data to substantially reduce by malicious access;
For example, as shown in Fig. 2, Fig. 2 be the embodiment of the present application provided by a kind of integrated stand composition of virtual machine system,
In include three virtual machines, from virtual machine, ID is respectively 0,1 and 2 by 1 host virtual machine and 2.Lower half, which is shown, in figure is
In the shared drive region that host side is opened up, this shared drive region is mapped to the space BAR1 of virtual PCI device vPCI
In, only the space equipment BAR1 vPCI of host virtual machine includes the whole in shared drive region, and from the vPCI equipment of virtual machine
The space Bar1 only has mapped a portion;
Optionally, mentioned herein, host side shared drive is divided into each memory space according to preset rules, it is specific
Can be not limit the size of each memory space, directly by host side shared drive be divided into from virtual machine quantity
Equal each memory space;
Further, for in Distributed Application scene, usually each from the occupied shared drive size of virtual machine
Be it is the same, therefore mentioned herein, host side shared drive is divided into each memory space according to preset rules, specifically may be used
With are as follows:
Host side shared drive is averagely divided into each memory space;
Wherein, the size of each memory space is the total host side shared drive size Size/ virtual machine of slice_size=
Number is exactly each Si=shared drive region first address+(from void from the shared drive region first address that virtual machine is assigned
Quasi- machine ID number × slice_size);So only since the Si of address, the shared drive region that size is slice_size is distributed
To i-th of virtual machine, then can be achieved with the isolation in shared drive region between virtual machine, safety is improved.
S104: when host virtual machine receives data transfer command, according to data transfer command determine data to be transmitted and
ID number is transmitted, data to be transmitted is then transmitted to the corresponding memory space from virtual machine of transmission ID number.
Based on the above-mentioned technical proposal, the method for a kind of data transmission between virtual machines provided herein is inputted receiving
Virtual machine creating order when, first pass through virtual machine creating order and determine virtual machine attribute, further according to virtual machine attribute create lead
Host side shared drive is mapped to host virtual machine by virtual machine and from virtual machine, and according to preset rules by host side it is shared in
It deposits and is divided into each memory space, be then mapped to respectively respectively from virtual machine, when host virtual machine receives data transfer command, root
According to data transfer command determine data to be transmitted and transmission ID number, then by data to be transmitted be transmitted to transmission ID number it is corresponding from
The memory space of virtual machine, so that be directed to host side shared drive, only accessible all areas of host virtual machine, and from void
Quasi- machine can only see certain a part being assigned in shared drive region, therefore reduce the possibility of leaking data, improve peace
Quan Xing.
In the prior art, it in order to avoid virtual machine is simultaneously written and read shared drive region, introduces between virtual machine
Event notification mechanism notifies another virtual machine to be read out after the completion of an i.e. virtual machine pending data write-in.It is above-mentioned to support
Event notification mechanism has additionally run a case distribution program eventfd_server, whenever a void on physical host
It will be communicated with eventfd_server when quasi- machine creation, eventfd_server can be empty for the distribution of newly created virtual machine
Whether quasi- machine ID number and an eventfd, this eventfd are notified to reach by virtual machine for listening to have.eventfd_server
Also the virtual machine ID number being previously created and its corresponding eventfd can be informed newly created virtual machine, so as to new virtual function
Notify the virtual machine being previously created.Certainly, eventfd_server can also inform newly created virtual machine ID number and eventfd
The virtual machine being previously created, then the virtual machine being previously created also can photos and sending messages notify newly created virtual machine.
However, a centralization eventfd_server is relied on, when worker quantity is larger, then eventfd_
Server just becomes a bottleneck, need to mutually transmit a large amount of ID and eventfd information, this will necessarily extend using starting
Time.
Based on this, this application provides the methods of another data transmission between virtual machines, when virtual machine attribute includes unix-
When the path socket, step as shown in Figure 3 can also be performed, be illustrated below with reference to Fig. 3.
Referring to FIG. 3, Fig. 3 is the process of the method for another kind data transmission between virtual machines provided by the embodiment of the present application
Figure.
Itself specifically includes the following steps:
S301: the newly-built order of slave virtual machine of input is received;
S302: the memory space newly distributed from virtual machine and ID number are determined according to from the newly-built order of virtual machine;
S303: it executes newly-built from virtual machine and corresponding using the path unix-socket from the newly-built order of virtual machine
The memory space and ID number that are newly distributed from virtual machine are sent to host virtual machine by unix-socket.
Optionally, it on the basis of the embodiment of the present application, in the above-described embodiments after step S104, can also utilize
The corresponding unix-socket notification transmission ID number in the path unix-socket is corresponding to read data to be transmitted from virtual machine
It takes.
Based in the prior art, when establishing new virtual machine, need new virtual machine by self ID and shared drive size
It is sent to remaining all virtual machine, and that self ID and shared drive size are also sent to this is new virtual for each virtual machine
Machine does so the pressure for increasing information transmission, while each virtual machine relies on a centralization eventfd_server and mutually passes
Information is passed, the time using starting will necessarily be extended.
Therefore the embodiment of the present application enable host virtual machine and from virtual machine by virtual machine attribute specify unix-socket into
Row communication newly only needs newly to be distributed from virtual machine using the path unix-socket corresponding unix-socket from virtual machine
Memory space and ID number are sent to host virtual machine, without sending information to other virtual machines, eliminate concentration point
Hair mechanism was shortened using the starting time.
Referring to FIG. 4, Fig. 4 is a kind of structure of the system of data transmission between virtual machines provided by the embodiment of the present application
Figure.
The system may include:
First receiving module 100, virtual machine creating order for receiving input;
Read module 200, for determining virtual machine attribute according to virtual machine creating order;Wherein, virtual machine attribute includes
Host side shared drive, each virtual machine ID number, from virtual machine quantity;
Creation and mapping block 300, for creating host virtual machine according to virtual machine attribute and from virtual machine, host side being total to
It enjoys memory and is mapped to host virtual machine, and host side shared drive is divided into each memory space according to preset rules, then distinguish
It is mapped to respectively from virtual machine;
Transmission module 400, for when host virtual machine receives data transfer command, according to data transfer command determine to
Data and transmission ID number are transmitted, data to be transmitted is then transmitted to the corresponding memory space from virtual machine of transmission ID number.
Referring to FIG. 5, Fig. 5 is the structure of the system of another kind data transmission between virtual machines provided by the embodiment of the present application
Figure.
The creation and mapping block 300 may include:
Submodule is divided, for host side shared drive to be averagely divided into each memory space.
When virtual machine attribute includes the path unix-socket, which can also include:
Second receiving module, it is for receiving input from the newly-built order of virtual machine;
Determining module, for determining the memory space and ID that are newly distributed from virtual machine according to from the newly-built order of virtual machine
Number;
Execution module, it is newly-built from virtual machine from the newly-built order of virtual machine for executing, and utilize the path pair unix-socket
The memory space and ID number that are newly distributed from virtual machine are sent to host virtual machine by the unix-socket answered.
The system can also include:
Notification module, for using the corresponding unix-socket notification transmission ID number in the path unix-socket it is corresponding from
Virtual machine is read out data to be transmitted.
Each component part in system above can be applied in embodiment below:
First receiving module receives the virtual machine creating order of input;Read module 200, for being ordered according to virtual machine creating
It enables and determines virtual machine attribute;Creation and mapping block are according to virtual machine attribute creation host virtual machine and from virtual machine, by host side
Shared drive is mapped to host virtual machine, and host side shared drive is divided into each memory space according to preset rules, then divides
It is not mapped to respectively from virtual machine;Transmission module is true according to data transfer command when host virtual machine receives data transfer command
Determine data to be transmitted and transmission ID number, it is empty that data to be transmitted is then transmitted to the corresponding storage from virtual machine of transmission ID number
Between;Notification module is treated using the corresponding unix-socket notification transmission ID number in the path unix-socket is corresponding from virtual machine
Transmission data are read out;
Second receiving module receives the newly-built order of slave virtual machine of input;Determining module is according to true from the newly-built order of virtual machine
The fixed memory space newly distributed from virtual machine and ID number;Execution module, which is executed, to be created from the newly-built order of virtual machine from virtual machine,
And the memory space and ID number that are newly distributed from virtual machine are sent using the corresponding unix-socket in the path unix-socket
To host virtual machine.
Referring to FIG. 6, Fig. 6 is a kind of structure chart of data transmission between virtual machines equipment provided by the embodiment of the present application.
The data transmission between virtual machines equipment 600 can generate bigger difference because configuration or performance are different, can wrap
One or more processors (central processing units, CPU) 622 is included (for example, at one or more
Manage device) and memory 632, one or more store storage medium 630 (such as one of application programs 642 or data 644
Or more than one mass memory unit).Wherein, memory 632 and storage medium 630 can be of short duration storage or persistent storage.
The program for being stored in storage medium 630 may include one or more modules (diagram does not mark), and each module can wrap
It includes to the series of instructions operation in device.Further, central processing unit 622 can be set to logical with storage medium 630
Letter executes the series of instructions operation in storage medium 630 in data transmission between virtual machines equipment 600.
Data transmission between virtual machines equipment 600 can also include one or more power supplys 626, one or more
Wired or wireless network interface 650, one or more input/output interfaces 658, and/or, one or more operations
System 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in the method for data transmission between virtual machines described in above-mentioned Fig. 1 to Fig. 5 is by data transmission between virtual machines
Equipment is based on the structure shown in fig. 6 and realizes.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of module,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be with
In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or module or
Communication connection can be electrical property, mechanical or other forms.
Module may or may not be physically separated as illustrated by the separation member, show as module
Component may or may not be physical module, it can and it is in one place, or may be distributed over multiple networks
In module.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
If integrated module is realized and when sold or used as an independent product in the form of software function module, can
To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application
Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
Above to a kind of method of data transmission between virtual machines provided herein, system, equipment and computer-readable
Storage medium is described in detail.Specific case used herein explains the principle and embodiment of the application
It states, the description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for this skill
For the those of ordinary skill in art field, under the premise of not departing from the application principle, several change can also be carried out to the application
Into and modification, these improvement and modification also fall into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or equipment for including element.
Claims (10)
1. a kind of method of data transmission between virtual machines characterized by comprising
Receive the virtual machine creating order of input;
Virtual machine attribute is determined according to the virtual machine creating order;Wherein, the virtual machine attribute includes in host side is shared
Deposit, each virtual machine ID number, from virtual machine quantity;
Host virtual machine is created according to the virtual machine attribute and from virtual machine, the host side shared drive is mapped to the master
Virtual machine, and the host side shared drive is divided into each memory space according to preset rules, it is then mapped to each institute respectively
State virtual machine;
When the host virtual machine receives data transfer command, data to be transmitted and biography are determined according to the data transfer command
Then the data to be transmitted is transmitted to the corresponding memory space from virtual machine of the transmission ID number by defeated ID number.
2. the method according to claim 1, wherein it is described according to preset rules by the host side shared drive
It is divided into each memory space, comprising:
The host side shared drive is averagely divided into each memory space.
3. the method according to claim 1, wherein when the virtual machine attribute includes the path unix-socket
When, further includes:
Receive the newly-built order of slave virtual machine of input;
The memory space newly distributed from virtual machine and ID number are determined from the newly-built order of virtual machine according to described;
It is newly-built from virtual machine from the newly-built order of virtual machine described in executing, and utilize the corresponding unix- in the path unix-socket
The memory space and ID number newly distributed from virtual machine is sent to the host virtual machine by socket.
4. according to the method described in claim 3, it is characterized in that, the data to be transmitted is transmitted to the transmission ID number
After the corresponding memory space from virtual machine, further includes:
Notify the transmission ID number corresponding from virtual machine pair using the corresponding unix-socket in the path unix-socket
The data to be transmitted is read out.
5. a kind of system of data transmission between virtual machines characterized by comprising
First receiving module, virtual machine creating order for receiving input;
Read module, for determining virtual machine attribute according to the virtual machine creating order;Wherein, the virtual machine attribute includes
Host side shared drive, each virtual machine ID number, from virtual machine quantity;
Creation and mapping block, for creating host virtual machine according to the virtual machine attribute and from virtual machine, by the host side
Shared drive is mapped to the host virtual machine, and the host side shared drive is divided into each storage sky according to preset rules
Between, it is then mapped to each virtual machine respectively;
Transmission module, for being determined according to the data transfer command when the host virtual machine receives data transfer command
Data to be transmitted and transmission ID number, are then transmitted to corresponding the depositing from virtual machine of the transmission ID number for the data to be transmitted
Store up space.
6. system according to claim 5, which is characterized in that the creation and mapping block include:
Submodule is divided, for the host side shared drive to be averagely divided into each memory space.
7. system according to claim 5, which is characterized in that when the virtual machine attribute includes the path unix-socket
When, further includes:
Second receiving module, it is for receiving input from the newly-built order of virtual machine;
Determining module, for determining the memory space and ID that are newly distributed from virtual machine from the newly-built order of virtual machine according to described
Number;
Execution module, it is described newly-built from virtual machine from the newly-built order of virtual machine for executing, and utilize the road unix-socket
The memory space and ID number newly distributed from virtual machine is sent to the host virtual machine by the corresponding unix-socket of diameter.
8. system according to claim 7, which is characterized in that further include:
Notification module, for notifying that the transmission ID number is corresponding using the corresponding unix-socket in the path unix-socket
Slave virtual machine the data to be transmitted is read out.
9. a kind of data transmission between virtual machines equipment characterized by comprising
Memory, for storing computer program;
Processor, data pass between the virtual machine as described in any one of Claims 1-4 is realized when for executing the computer program
The step of defeated method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the data transmission between virtual machines as described in any one of Claims 1-4 when the computer program is executed by processor
Method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910027178.8A CN109739668A (en) | 2019-01-11 | 2019-01-11 | A kind of method of data transmission between virtual machines, system and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910027178.8A CN109739668A (en) | 2019-01-11 | 2019-01-11 | A kind of method of data transmission between virtual machines, system and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109739668A true CN109739668A (en) | 2019-05-10 |
Family
ID=66364507
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910027178.8A Withdrawn CN109739668A (en) | 2019-01-11 | 2019-01-11 | A kind of method of data transmission between virtual machines, system and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739668A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569042A (en) * | 2019-08-19 | 2019-12-13 | 苏州浪潮智能科技有限公司 | system, method, equipment and storage medium for supporting function of updating FPGA in virtual machine |
CN111988230A (en) * | 2020-08-19 | 2020-11-24 | 海光信息技术有限公司 | Virtual machine communication method, device and system and electronic equipment |
CN112181682A (en) * | 2020-09-23 | 2021-01-05 | 上海爱数信息技术股份有限公司 | Data transmission control system and method under multi-task concurrent scene |
CN112241307A (en) * | 2020-10-21 | 2021-01-19 | 海光信息技术股份有限公司 | Virtual machine creation method and device and related equipment |
CN112416829A (en) * | 2020-11-25 | 2021-02-26 | 福州富昌维控电子科技有限公司 | Method for transmitting data to HMI (human machine interface) and USB HID (Universal Serial bus) equipment |
CN112804202A (en) * | 2020-12-30 | 2021-05-14 | 平安证券股份有限公司 | Multi-internetwork data security interaction method and device, server and storage medium |
CN114338672A (en) * | 2021-12-29 | 2022-04-12 | 安天科技集团股份有限公司 | Data transmission method and data transmission system |
CN114564724A (en) * | 2021-12-30 | 2022-05-31 | 海光信息技术股份有限公司 | Method and device for protecting memory integrity of virtual machine, electronic equipment and storage medium |
-
2019
- 2019-01-11 CN CN201910027178.8A patent/CN109739668A/en not_active Withdrawn
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569042B (en) * | 2019-08-19 | 2022-11-11 | 苏州浪潮智能科技有限公司 | System, method, equipment and storage medium for supporting function of updating FPGA in virtual machine |
CN110569042A (en) * | 2019-08-19 | 2019-12-13 | 苏州浪潮智能科技有限公司 | system, method, equipment and storage medium for supporting function of updating FPGA in virtual machine |
CN111988230A (en) * | 2020-08-19 | 2020-11-24 | 海光信息技术有限公司 | Virtual machine communication method, device and system and electronic equipment |
CN111988230B (en) * | 2020-08-19 | 2023-04-07 | 海光信息技术股份有限公司 | Virtual machine communication method, device and system and electronic equipment |
CN112181682A (en) * | 2020-09-23 | 2021-01-05 | 上海爱数信息技术股份有限公司 | Data transmission control system and method under multi-task concurrent scene |
CN112181682B (en) * | 2020-09-23 | 2023-03-31 | 上海爱数信息技术股份有限公司 | Data transmission control system and method under multi-task concurrent scene |
CN112241307A (en) * | 2020-10-21 | 2021-01-19 | 海光信息技术股份有限公司 | Virtual machine creation method and device and related equipment |
CN112416829A (en) * | 2020-11-25 | 2021-02-26 | 福州富昌维控电子科技有限公司 | Method for transmitting data to HMI (human machine interface) and USB HID (Universal Serial bus) equipment |
CN112804202A (en) * | 2020-12-30 | 2021-05-14 | 平安证券股份有限公司 | Multi-internetwork data security interaction method and device, server and storage medium |
CN112804202B (en) * | 2020-12-30 | 2023-04-11 | 平安证券股份有限公司 | Multi-internetwork data security interaction method and device, server and storage medium |
CN114338672A (en) * | 2021-12-29 | 2022-04-12 | 安天科技集团股份有限公司 | Data transmission method and data transmission system |
CN114338672B (en) * | 2021-12-29 | 2023-10-27 | 安天科技集团股份有限公司 | Data transmission method and data transmission system |
CN114564724A (en) * | 2021-12-30 | 2022-05-31 | 海光信息技术股份有限公司 | Method and device for protecting memory integrity of virtual machine, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109739668A (en) | A kind of method of data transmission between virtual machines, system and equipment | |
US11121971B2 (en) | Method and apparatus for switching data between virtual machines, and communications system | |
CN106301859B (en) | Method, device and system for managing network card | |
US20150127880A1 (en) | Efficient implementations for mapreduce systems | |
CN102316043B (en) | Port virtualization method, switch and communication system | |
CN109981493B (en) | Method and device for configuring virtual machine network | |
CN111367615B (en) | Method, device, equipment and storage medium for facilitating container instance scheduling | |
CN106031116A (en) | Method, apparatus and system for associating NS with VNF | |
EP3739440A1 (en) | Distributed storage system, data processing method and storage node | |
CN106598692A (en) | Method for creating mirror image file in logical volume and starting virtual machine, and server | |
CN102857578A (en) | File uploading method and file uploading system of network drive and network drive client | |
CN110830574B (en) | Method for realizing intranet load balance based on docker container | |
CN107544864A (en) | A kind of virtual-machine data copy method and virtual-machine data copy system | |
CN104883302A (en) | Method, device and system for forwarding data packet | |
CN108512782A (en) | Accesses control list is grouped method of adjustment, the network equipment and system | |
CN109324908A (en) | The vessel isolation method and device of Netlink resource | |
US20240205292A1 (en) | Data processing method and apparatus, computer device, and computer-readable storage medium | |
CN107608806A (en) | The system and method for quick access transport data between a kind of virtual machine | |
EP3631639B1 (en) | Communications for field programmable gate array device | |
CN106557280A (en) | Date storage method, storage array and host server | |
CN103678163A (en) | Method, device and system for switching of data stream | |
CN109032753A (en) | A kind of isomery virtual hard disk trustship method, system, storage medium and Nova platform | |
CN107643938A (en) | Data transmission method, device and storage medium | |
CN108829340B (en) | Storage processing method, device, storage medium and processor | |
CN105283864A (en) | Governing bare metal guests |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190510 |