CN109753341A - The creation method and device of virtual interface - Google Patents

The creation method and device of virtual interface Download PDF

Info

Publication number
CN109753341A
CN109753341A CN201711100866.XA CN201711100866A CN109753341A CN 109753341 A CN109753341 A CN 109753341A CN 201711100866 A CN201711100866 A CN 201711100866A CN 109753341 A CN109753341 A CN 109753341A
Authority
CN
China
Prior art keywords
interface
virtual
hardware
machine
physical machine
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.)
Pending
Application number
CN201711100866.XA
Other languages
Chinese (zh)
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.)
Loongson Technology Corp Ltd
Original Assignee
Loongson Technology Corp 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 Loongson Technology Corp Ltd filed Critical Loongson Technology Corp Ltd
Priority to CN201711100866.XA priority Critical patent/CN109753341A/en
Publication of CN109753341A publication Critical patent/CN109753341A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides the creation method and device of a kind of virtual interface.The creation method of the virtual interface comprises determining that the hardware interface in physical machine;The corresponding virtual interface of the hardware interface is created in the virtual machine in the physical machine.The virtualization process of local device is simplified so that the access to virtual interface can be converted into the access to hardware interface by creating corresponding virtual interface for hardware interface.The creation method and device of virtual interface provided by the invention are versatile, realize that cost is low, have wide applicability.

Description

The creation method and device of virtual interface
Technical field
The present invention relates to virtual machine technique more particularly to the creation methods and device of a kind of virtual interface.
Background technique
Virtual machine (Virtual Machine, VM) refer to by the method for software fictionalized in physical machine come calculating Machine.Virtual machine usually has different instruction set, is equipped with different operating system, can run different compared with physical machine Software.Therefore, the software that the operating system in physical machine is not supported can be installed, virtual machine in the operating system of virtual machine It is widely used in the compatibility of software.
But VME operating system is only capable of hardware device virtual on access virtual machine at runtime, and can not access The hardware device (referred to as local device) installed in physical machine, for example, installed in physical machine printer, movable memory equipment, Earphone, microphone etc..
To solve this technical problem, usually first in virtual machine, it will be used in virtual opetrating system originally to all Ground equipment is virtualized to obtain virtual unit, then virtual unit addressable in virtual machine is mapped with local device, So that VME operating system is at runtime, local device may have access to.But virtual unit is in virtualization process, it can Can there are problems that technical data can not virtualize comprehensively, and the mapping of virtual unit and local device is extremely complex, it is difficult to It realizes.
Summary of the invention
The present invention provides the creation method and device of a kind of virtual interface, is virtualizing for solving existing virtual unit Cheng Zhong, it is understood that there may be technical data can not virtualize comprehensively and the mapping of virtual unit and local device is extremely complex, difficult The problem of to realize.
On the one hand the embodiment of the present invention provides a kind of creation method of virtual interface, which comprises
Determine the hardware interface in physical machine;
The corresponding virtual interface of the hardware interface is created in the virtual machine in the physical machine.
By creating corresponding virtual interface for hardware interface, hardware is connect so that can be converted into the access of virtual interface The access of mouth, simplifies the virtualization process of local device.The creation method of virtual interface provided by the invention is versatile, real Modern valence is low, has wide applicability.
In one possible implementation, the determination be connected to the local device in physical machine hardware interface it Afterwards, the method also includes:
Using the virtual interface as the local device the corresponding virtual unit in virtual machine, by the virtual unit It is registered in the equipment manager of the virtual machine.
In one possible implementation, the hardware interface includes at least one in following:
Port space interface, memory space interface, direct memory access interface, interrupt interface.
In one possible implementation, the method also includes:
When the operating system of the virtual machine executes the access request to the virtual interface, the access request is reflected It penetrates as the access request to the hardware interface;And/or
The direct memory access operation of the local device is received in the operating system of the virtual machine and/or interrupts behaviour When making, the direct memory access operation and/or interrupt operation of the local device are mapped as the direct interior of the virtual unit Deposit accessing operation and/or interrupt operation.
In one possible implementation, the hardware interface in the determining physical machine, comprising:
Determine the hardware interface that local device is connected in physical machine;Alternatively,
Determine all hardware interfaces in physical machine.
It can avoid just being this when using local device by creating corresponding virtual interface for all hardware interface Ground equipment creates corresponding virtual interface, response time longer problem.
In one possible implementation, the hardware interface of local device is connected in the determining physical machine, comprising:
In virtual machine starting, according to the scan mechanism of the hardware interface in the physical machine, in the physical machine All hardware interface is scanned;
According to scanning result, the hardware interface that local device is connected in the physical machine is determined.
By when virtual machine starts each time, scanning the hardware interface of physical machine according to scan mechanism, determination is connected to Local device in physical machine realizes the automation of the creation of virtual interface.
The embodiment of the present invention also provides a kind of creating device of virtual interface, to execute the creation of above-mentioned virtual interface Method, technical characteristic having the same and technical effect, the present invention repeat no more this.
On the other hand the embodiment of the present invention provides a kind of creating device of virtual interface, comprising:
Hardware interface detection module, for determining the hardware interface in physical machine;
Virtual machine interface creation module, it is corresponding for creating the hardware interface in the virtual machine in the physical machine Virtual interface.
In one possible implementation, described device further include:
Registration module is used for the corresponding virtual unit in virtual machine using the virtual interface as the local device, The virtual unit is registered in the equipment manager of the virtual machine.
In one possible implementation, the hardware interface includes at least one in following:
Port space interface, memory space interface, direct memory access interface, interrupt interface.
In one possible implementation, described device further include:
Mapping block, for inciting somebody to action when the operating system of the virtual machine executes the access request to the virtual interface The access request is mapped as the access request to the hardware interface;And/or
The direct memory access operation of the local device is received in the operating system of the virtual machine and/or interrupts behaviour When making, the direct memory access operation and/or interrupt operation of the local device are mapped as the direct interior of the virtual unit Deposit accessing operation and/or interrupt operation.
In one possible implementation, the hardware interface detection module is specifically used for, and determines and connects in physical machine There is the hardware interface of local device;Alternatively, determining all hardware interfaces in physical machine.
In one possible implementation, it is connected in physical machine when the hardware interface detection module is specifically used for determining When having the hardware interface of local device;The hardware interface detection module includes:
Scanning element is used in virtual machine starting, according to the scan mechanism of the hardware interface in the physical machine, to institute The all hardware interface stated in physical machine is scanned;
Hardware interface detection unit, for determining and being connected with the hard of local device in the physical machine according to scanning result Part interface.
The creation method and device of virtual interface provided in an embodiment of the present invention, comprising: determine and be connected with this in physical machine The hardware interface of ground equipment;The corresponding virtual interface of hardware interface is created in virtual machine in physical machine.By being connect for hardware Mouth creates corresponding virtual interface and simplifies local so that the access to virtual interface can be converted into the access to hardware interface The virtualization process of equipment.The creation method of virtual interface provided by the invention is versatile, realizes that cost is low, has extensive Applicability.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, 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 this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram for computer that the embodiment of the present invention may be applicable in;
Fig. 2 is the flow diagram of the creation method for the virtual interface that one embodiment of the invention provides;
Fig. 3 be another embodiment of the present invention provides virtual interface creation method flow diagram;
Fig. 4 is the structural schematic diagram of the creating device for the virtual interface that one embodiment of the invention provides;
Fig. 5 is the structural schematic diagram of the creating device for the virtual interface that yet another embodiment of the invention provides;
Fig. 6 be another embodiment of the present invention provides virtual interface creating device structural schematic diagram;
Fig. 7 is the structural schematic diagram of the creating device for the virtual interface that further embodiment of this invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of structural schematic diagram for computer that the embodiment of the present invention may be applicable in.Computer structure as shown in Figure 1 In structure, what it is positioned at the bottom is true physical machine, referred to as " Host ".Operating system is installed, referred to as local behaviour in physical machine Make system (Host OS).In the native operating sys-tern of physical machine, pass through the method for software (or being aided with a small amount of hardware supported) A computer, referred to as virtual machine (Guest) are fictionalized, the operating system run on virtual machine is known as Guest OS.Virtually Machine usually has different instruction set from physical machine, therefore virtual machine and physical machine are commonly installed different operating system.Pass through Different operating system is installed, so that the software suitable for different operating system can be compatible on a computer.
But the local device for installing in physical machine, VME operating system can not but access, and affect user's It uses.The prior art usually writes the corresponding virtual unit with complete function of local device on a virtual machine, and will be local Equipment is mapped with virtual unit, and virtual machine is functional by calling corresponding physical machine function come real by the institute of virtual unit It is existing, so that using local device in virtual opetrating system.It, can but when writing the corresponding virtual unit of local device Can there are problems that technical data is not comprehensive and can not virtualize, and the mapping of virtual unit and local device is extremely complex, it is difficult To realize.
To solve the above problems, the present invention provides a kind of virtual machine method for building up with reference to specific embodiments to this hair The virtual machine method for building up of bright offer is described in detail.
Fig. 2 is the flow diagram of the creation method for the virtual interface that one embodiment of the invention provides.The execution of this method Main body is that virtual machine establishes device, which can be by software or hardware realization.As shown in Fig. 2, the creation method of virtual interface Include:
S201, hardware interface in physical machine is determined.
Illustratively, to avoid establishing the completely corresponding virtual unit of function for each local device, it is contemplated that local to set The standby communication with physical machine passes through hardware interface, it may be determined that the hardware interface in physical machine.Hardware interface is illustrative, can wrap Include port space interface, memory space interface, direct memory access (Direct Memory Access, DMA) interface and interruption Any one of interface.Certain hardware interface can also include that other are used for the interface that local device is communicated with physical machine.
Optionally, it determines the hardware interface in physical machine, the hard of local device can be connected in physical machine only to determine Part interface.Illustratively, after the local device connected on determining physical machine, only determine that the hardware for being connected with local device connects Mouthful.
Optionally, it determines the hardware interface in physical machine, can be all hardware interfaces in determining physical machine.Example Property, when creating virtual machine, physical machine is scanned, determines all hardware interface in physical machine.
The corresponding virtual interface of hardware interface is created in S202, the virtual machine in physical machine.
Illustratively, the corresponding virtual interface of hardware interface is created in virtual machine.Illustratively, the hardware of local device Interface is usually port space interface, memory space interface, direct memory access interface and the interrupt interface using unified standard At least one of in, therefore those skilled in the art can fast and accurately create the corresponding virtual interface of each hardware interface.By building The corresponding virtual machine mouth of each hardware interface is found, so that any operation for virtual interface in virtual opetrating system, can map For the operation for true hardware interface, pass through access of the VME operating system to local device to realize.
It is corresponding, it can be only physics when creating the corresponding virtual interface of hardware interface in the virtual machine in physical machine The hardware interface that local device is connected on machine creates corresponding virtual interface.It illustratively, can also be the institute in physical machine There is hardware interface to create corresponding virtual interface.When local device is connect by user with the hardware interface in physical machine, because For there are the corresponding virtual interfaces of each hardware interface in virtual machine, therefore, user can access local device by virtual machine.
The present invention provides a kind of creation method of virtual interface, comprising: determines the hardware interface in physical machine;In physical machine On virtual machine in the corresponding virtual interface of creation hardware interface.By creating corresponding virtual interface for hardware interface, so that Access to hardware interface can be converted into the access of virtual interface, simplify the virtualization process of local device.The present invention mentions The creation method of the virtual interface of confession is versatile, realizes that cost is low, has wide applicability.
Further, it by creating corresponding virtual interface for all hardware interface, can avoid when using local device Just corresponding virtual interface, response time longer problem are created for local device.
Further, on the basis of embodiment shown in Fig. 2, the present invention also provides a kind of creation methods of virtual interface. Fig. 3 be another embodiment of the present invention provides virtual interface creation method flow diagram, what is involved is true for the present embodiment Determine the specific method that the hardware interface of local device is connected in physical machine.As shown in figure 3, the creation method packet of virtual interface It includes:
S301, in virtual machine starting, according to the scan mechanism of the hardware interface in physical machine, to all in physical machine Hardware interface is scanned.
Illustratively, when virtual machine starts, according to the scan mechanism of the hardware interface in physical machine, all hardware is scanned Interface, it is determined whether there are local devices to be connected in physical machine by hardware interface.Illustratively, hardware interface can be USB interface, PCIE interface, MIC interface, PS/2 interface, RJ45 interface etc..
S302, according to scanning result, determine the hardware that local device is connected in physical machine.
Illustratively, according to scanning result, the local device being connected on external interface is determined.
Optionally, after local device has been determined, virtual machine method for building up further include: set using virtual interface as local Standby virtual unit corresponding in virtual machine, virtual unit is registered in the equipment manager of virtual machine.
Illustratively, by registering virtual unit in the equipment manager of virtual machine, so that the operating system of virtual machine After starting, the operating system of virtual machine finds virtual unit in starting scanning process.Illustratively, it is created in virtual machine Virtual unit do not have the function of corresponding local device, be only used for indicating to the user that the local connected in physical machine is set It is standby.
The corresponding virtual interface of hardware interface is created in S303, the virtual machine in physical machine.
Wherein, S303 is identical as the S202 in embodiment illustrated in fig. 2, and the application repeats no more this.
The present embodiment provides a kind of creation methods of virtual interface, in virtual machine starting, according to the hardware in physical machine The scan mechanism of interface, is scanned hardware interface, determines the local device being connected on hardware interface.By in virtual machine When starting each time, the hardware interface of physical machine is scanned according to scan mechanism, determines the local device being connected in physical machine, it is real The automation of the creation of virtual interface is showed.
Further, based on any of the above embodiments, the operating system of virtual machine is being received to virtual interface Access request when, access request is mapped as the access request to hardware interface;
The operating system of virtual machine incite somebody to action this in the direct memory access operation and/or interrupt operation that receive local device The direct memory access of ground equipment operates and/or interrupt operation be mapped as virtual unit direct memory access operation and/or in Disconnected operation.
Illustratively, Guest OS accesses virtual unit by port space interface and memory space interface, and virtual machine will This access movement is mapped directly to the access to local device.For example, Guest OS to the reading of the port space of virtual unit, It writes, is mapped as the reading and writing to local device corresponding port space;Reading and writing of the Guest OS to the memory space of virtual unit, reflect It penetrates as the reading and writing to local device respective stored space.
Illustratively, when local device has dma operation (i.e. local device directly accesses the data in memory), it locally sets The variation of standby DMA interface meeting generating state.Virtual machine modifies the corresponding of virtual unit when detecting the state change The state of DMA interface, the state of the virtual dma interface is arranged to it is identical with the state of the DMA interface of local device, in this way Guest OS can detect that there are dma operations on local device by the DMA interface state of virtual unit.
Illustratively, when local device has interrupt operation, interrupt event is presented as and is virtually set by the mapping of virtual machine The interrupt operation that preparation goes out, the terminal operation that Guest OS sends virtual unit respond.
Illustratively, the Host machine in any of the above-described embodiment can be the microprocessor of no inner interlocked pipelining-stage The platform of (Microprocessor without interlocked piped stages, MIPS) instruction set, it is corresponding, Host OS is the (SuSE) Linux OS based on MIPS instruction set.Illustratively, Guest is X86 virtual machine, corresponding, Guest OS is Windows.Local device illustratively can be the printer being connected in physical machine by USB interface.
The another aspect of the embodiment of the present invention also provides a kind of creating device of virtual interface, to execute in above-described embodiment Virtual interface creation method, technical characteristic having the same and technical effect, the present invention repeat no more this.
Another aspect of the invention also provides a kind of creating device of virtual interface, and Fig. 4 is what one embodiment of the invention provided The structural schematic diagram of the creating device of virtual interface creates virtual interface for the hardware interface in physical machine in the present embodiment.Such as Shown in Fig. 4, the creating device of virtual interface includes:
Hardware interface detection module 401, for determining the hardware interface in physical machine;
Virtual machine interface creation module 402, for creating the hardware interface pair in the virtual machine in the physical machine The virtual interface answered.
Further, on the basis of the above embodiments, another aspect of the invention also provides a kind of creation of virtual interface Device, Fig. 5 are the structural schematic diagram of the creating device for the virtual interface that yet another embodiment of the invention provides.As shown in figure 5, virtual The creating device of interface includes:
Hardware interface detection module 401, for determining the hardware interface in physical machine;
Virtual machine interface creation module 402, for creating the hardware interface pair in the virtual machine in the physical machine The virtual interface answered;
Registration module 403, for virtually being set using the virtual interface as the local device is corresponding in virtual machine It is standby, the virtual unit is registered in the equipment manager of the virtual machine.
Optionally, on the basis of upper any embodiment, the hardware interface includes at least one in following:
Port space interface, memory space interface, direct memory access interface, interrupt interface.
Further, on the basis of the above embodiments, another aspect of the invention also provides a kind of creation of virtual interface Device, Fig. 6 be another embodiment of the present invention provides virtual interface creating device structural schematic diagram.As shown in fig. 6, virtual The creating device of interface includes:
Hardware interface detection module 401, for determining the hardware interface in physical machine;
Virtual machine interface creation module 402, for creating the hardware interface pair in the virtual machine in the physical machine The virtual interface answered;
Registration module 403, for virtually being set using the virtual interface as the local device is corresponding in virtual machine It is standby, the virtual unit is registered in the equipment manager of the virtual machine.
Mapping block 404, for when the operating system of the virtual machine is executed to the access request of the virtual interface, The access request is mapped as the access request to the hardware interface;And/or
The direct memory access operation of the local device is received in the operating system of the virtual machine and/or interrupts behaviour When making, the direct memory access operation and/or interrupt operation of the local device are mapped as the direct interior of the virtual unit Deposit accessing operation and/or interrupt operation.
Optionally, based on any of the above embodiments, hardware interface detection module 401 is specifically used for, and determines physics The hardware interface of local device is connected on machine;Alternatively,
Determine all hardware interfaces in physical machine.
Further, on the basis of above-mentioned Fig. 6 embodiment, another aspect of the invention also provides a kind of wound of virtual interface Device is built, Fig. 7 is the structural schematic diagram of the creating device for the virtual interface that further embodiment of this invention provides.As shown in fig. 7, working as When hardware interface detection module 401 is specifically used for being connected with the hardware interface of local device in determining physical machine;Hardware interface inspection Surveying module 401 includes:
Scanning element 4011, in virtual machine starting, according to the scan mechanism of the hardware interface in the physical machine, All hardware interface in the physical machine is scanned;
Hardware interface detection unit 4012, for determining and being connected with local device in the physical machine according to scanning result Hardware interface.
The creating device of virtual interface provided in an embodiment of the present invention, comprising: hardware interface detection module, for determining object Hardware interface on reason machine;Virtual machine interface creation module, for creating the hardware in the virtual machine in the physical machine The corresponding virtual interface of interface.By creating corresponding virtual interface for hardware interface, so that can turn to the access of virtual interface The access to hardware interface is turned to, the virtualization process of local device is simplified.The creation side of virtual interface provided by the invention Method is versatile, realizes that cost is low, has wide applicability.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Relevant portion can be referred to mutually between the application each method embodiment;Device provided by each Installation practice is used In the method provided by corresponding embodiment of the method that executes, therefore each Installation practice can be with reference in relevant embodiment of the method Relevant portion is understood.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
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 unit, 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 systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of creation method of virtual interface, which is characterized in that the described method includes:
Determine the hardware interface in physical machine;
The corresponding virtual interface of the hardware interface is created in the virtual machine in the physical machine.
2. the method according to claim 1, wherein the determination is connected to the hard of the local device in physical machine After part interface, the method also includes:
Using the virtual interface as the local device the corresponding virtual unit in virtual machine, the virtual unit is registered In the equipment manager of the virtual machine.
3. according to the method described in claim 2, it is characterized in that, the hardware interface includes at least one in following:
Port space interface, memory space interface, direct memory access interface, interrupt interface.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When the operating system of the virtual machine executes the access request to the virtual interface, the access request is mapped as To the access request of the hardware interface;And/or
The direct memory access operation and/or interrupt operation of the local device are received in the operating system of the virtual machine When, the direct memory access operation and/or interrupt operation of the local device are mapped as to the direct memory of the virtual unit Accessing operation and/or interrupt operation.
5. method according to any of claims 1-4, which is characterized in that the hardware in the determining physical machine connects Mouthful, comprising:
Determine the hardware interface that local device is connected in physical machine;Alternatively,
Determine all hardware interfaces in physical machine.
6. according to the method described in claim 5, it is characterized in that, being connected with the hardware of local device in the determining physical machine Interface, comprising:
In virtual machine starting, according to the scan mechanism of the hardware interface in the physical machine, to all in the physical machine Hardware interface is scanned;
According to scanning result, the hardware interface that local device is connected in the physical machine is determined.
7. a kind of creating device of virtual interface characterized by comprising
Hardware interface detection module, for determining the hardware interface in physical machine;
Virtual machine interface creation module, it is corresponding virtual for creating the hardware interface in the virtual machine in the physical machine Interface.
8. device according to claim 7, which is characterized in that described device further include:
Registration module is used for the corresponding virtual unit in virtual machine using the virtual interface as the local device, by institute Virtual unit is stated to be registered in the equipment manager of the virtual machine.
9. device according to claim 8, which is characterized in that the hardware interface includes at least one in following:
Port space interface, memory space interface, direct memory access interface, interrupt interface.
10. device according to claim 9, which is characterized in that described device further include:
Mapping block will be described for when the operating system of the virtual machine is executed to the access request of the virtual interface Access request is mapped as the access request to the hardware interface;And/or
The direct memory access operation and/or interrupt operation of the local device are received in the operating system of the virtual machine When, the direct memory access operation and/or interrupt operation of the local device are mapped as to the direct memory of the virtual unit Accessing operation and/or interrupt operation.
11. according to the described in any item devices of claim 7-10, which is characterized in that the hardware interface detection module is specifically used In determining the hardware interface for being connected with local device in physical machine;Alternatively, determining all hardware interfaces in physical machine.
12. device according to claim 11, which is characterized in that when the hardware interface detection module is specifically used for determining When being connected with the hardware interface of local device in physical machine;The hardware interface detection module includes:
Scanning element is used in virtual machine starting, according to the scan mechanism of the hardware interface in the physical machine, to the object All hardware interface on reason machine is scanned;
Hardware interface detection unit, for determining that the hardware for being connected with local device in the physical machine connects according to scanning result Mouthful.
CN201711100866.XA 2017-11-07 2017-11-07 The creation method and device of virtual interface Pending CN109753341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711100866.XA CN109753341A (en) 2017-11-07 2017-11-07 The creation method and device of virtual interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711100866.XA CN109753341A (en) 2017-11-07 2017-11-07 The creation method and device of virtual interface

Publications (1)

Publication Number Publication Date
CN109753341A true CN109753341A (en) 2019-05-14

Family

ID=66401651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711100866.XA Pending CN109753341A (en) 2017-11-07 2017-11-07 The creation method and device of virtual interface

Country Status (1)

Country Link
CN (1) CN109753341A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704161A (en) * 2019-09-27 2020-01-17 联想(北京)有限公司 Virtual machine creation method and device and computer equipment
CN112148360A (en) * 2020-08-20 2020-12-29 深圳英飞拓智能技术有限公司 Cross-platform embedded software virtual interface implementation method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102105871A (en) * 2008-07-28 2011-06-22 Arm有限公司 Interrupt control for virtual processing apparatus
CN102594660A (en) * 2012-01-19 2012-07-18 华为技术有限公司 Virtual interface exchange method, device and system
CN102915285A (en) * 2011-09-14 2013-02-06 微软公司 Application acceleration in a virtualized environment
CN104731635A (en) * 2014-12-17 2015-06-24 华为技术有限公司 Virtual machine access control method and virtual machine access control system
US20160170786A1 (en) * 2014-12-15 2016-06-16 Vmware, Inc. Dynamically managing a serial port interface of virtualization software
US9602334B2 (en) * 2013-01-22 2017-03-21 International Business Machines Corporation Independent network interfaces for virtual network environments

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102105871A (en) * 2008-07-28 2011-06-22 Arm有限公司 Interrupt control for virtual processing apparatus
CN102915285A (en) * 2011-09-14 2013-02-06 微软公司 Application acceleration in a virtualized environment
CN102594660A (en) * 2012-01-19 2012-07-18 华为技术有限公司 Virtual interface exchange method, device and system
US9602334B2 (en) * 2013-01-22 2017-03-21 International Business Machines Corporation Independent network interfaces for virtual network environments
US20160170786A1 (en) * 2014-12-15 2016-06-16 Vmware, Inc. Dynamically managing a serial port interface of virtualization software
CN104731635A (en) * 2014-12-17 2015-06-24 华为技术有限公司 Virtual machine access control method and virtual machine access control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704161A (en) * 2019-09-27 2020-01-17 联想(北京)有限公司 Virtual machine creation method and device and computer equipment
CN112148360A (en) * 2020-08-20 2020-12-29 深圳英飞拓智能技术有限公司 Cross-platform embedded software virtual interface implementation method and system

Similar Documents

Publication Publication Date Title
CN107209681B (en) Storage device access method, device and system
CN108124475B (en) Virtual system Bluetooth communication method and device, virtual system, storage medium and electronic equipment
US8707305B2 (en) Failure management for a virtualized computing environment
US8881150B2 (en) Virtual machine, virtual machine system and method for controlling virtual machine
US9286246B2 (en) System for managing task that is for processing to computer system and that is based on user operation and method for displaying information related to task of that type
JP5541117B2 (en) Virtual machine migration system, virtual machine migration program, and virtual machine migration method
US9858102B2 (en) Data path failover method for SR-IOV capable ethernet controller
US8266395B2 (en) Detecting attempts to change memory
US8468524B2 (en) Inter-virtual machine time profiling of I/O transactions
US10067777B2 (en) Supporting multiple operating system environments in computing device without contents conversion
US20130219090A1 (en) System and method for virtualizing the peripherals in a terminal device to enable remote management via removable portable media with processing capability
CN103262034B (en) By data partition to virtual machine
US20070011444A1 (en) Method, apparatus and system for bundling virtualized and non-virtualized components in a single binary
CN104636076A (en) Distributed block device driving method and system for cloud storage
CN108885572B (en) Secure driver platform
CN106095528B (en) A method of detection virtual machine drive
JP2021532495A (en) Secure access to virtual machine memory
CN109753341A (en) The creation method and device of virtual interface
US20100242039A1 (en) Computer system provided with hypervisor
EP2835743A1 (en) I/o device sharing system and i/o device sharing method
CN113312141B (en) Computer system, storage medium and method for offloading serial port simulation
JP2011221634A (en) Computer system, logic section management method and logic division processing program
CN106610878B (en) Fault debugging method of double-controller system
CN113111025B (en) PCI equipment mapping method, device, equipment and storage medium
CN116069584A (en) Extending monitoring services into trusted cloud operator domains

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Applicant after: Loongson Zhongke Technology Co.,Ltd.

Address before: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Applicant before: LOONGSON TECHNOLOGY Corp.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190514