CN105183674A - USB virtualization network mapping method, USB virtualization network mapping device and USB hub - Google Patents

USB virtualization network mapping method, USB virtualization network mapping device and USB hub Download PDF

Info

Publication number
CN105183674A
CN105183674A CN201510533047.9A CN201510533047A CN105183674A CN 105183674 A CN105183674 A CN 105183674A CN 201510533047 A CN201510533047 A CN 201510533047A CN 105183674 A CN105183674 A CN 105183674A
Authority
CN
China
Prior art keywords
usb
virtual machine
network
mapping
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510533047.9A
Other languages
Chinese (zh)
Other versions
CN105183674B (en
Inventor
李星
方飞
何林春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shenxinfu Electronic Technology Co Ltd
Original Assignee
Shenzhen Shenxinfu Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shenxinfu Electronic Technology Co Ltd filed Critical Shenzhen Shenxinfu Electronic Technology Co Ltd
Priority to CN201510533047.9A priority Critical patent/CN105183674B/en
Publication of CN105183674A publication Critical patent/CN105183674A/en
Application granted granted Critical
Publication of CN105183674B publication Critical patent/CN105183674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The present invention relates to a USB virtualization network mapping method, a USB virtualization network mapping device and a USB hub. The method comprises: receiving a mapping command that designates a virtual machine and a USB port of a local end; according to the mapping command, initiating a network connection request to the virtual machine designated by the mapping command, and enabling the virtual machine to establish a USB data channel with the USB port designated by the local end; receiving a USB instruction request sent by the virtual machine through the USB data channel; according to the USB instruction request, performing an operation by using the USB port designated by the local end; and returning an operation result to the virtual machine by using the USB data channel. According to the USB virtualization network mapping method, the USB virtualization network mapping device and the USB hub, which are provided by the present invention, the virtual machine and a USB physical device do not need to coexist on the same physical server, are simple to operate and are beneficial to popularization and application of a virtualization technology.

Description

The virtual network mapping method of USB, device and usb hub
Technical field
The present invention relates to virtual machine technique field, particularly relate to a kind of virtual network mapping method of USB, device and usb hub.
Background technology
Experiencing an enterprise network reform at present, by virtual for original physical server, specifically physical server built as virtual platform, virtual platform runs virtual machine, virtual machine realizes the function of original server.Such virtual platform is no longer limited to boundary physically, but allow the hardware such as CPU (central processing unit), internal memory, disk, I/O (IO interface) interface become can " resource pool " of dynamic management, thus improve the utilization factor of resource, simplification system manages, realize Server Consolidation, improve the adaptability to business change.
Virtualized server can use USB (UniversalSerialBus, USB (universal serial bus)) physical equipment, such as some runs has the server of process sensitive data to need USB physical equipment to provide safety guarantee, and specifically the server of some operation financial software needs USBkey to carry out application encipher.But, current virtual machine read-write USB physical equipment, needs to coexist on Same Physical server can realize with USB physical equipment, so just needs manually to find the physical server at virtual machine place and connect USB physical equipment, complex operation, limits the application of Intel Virtualization Technology.
Summary of the invention
Based on this, be necessary to coexist in the technical matters that Same Physical server can realize reading and writing USB physical equipment for current virtual machine and USB physical equipment, a kind of virtual network mapping method of USB, device and usb hub are provided.
A kind of virtual network mapping method of USB, described method comprises:
Receive the mapping directive specifying virtual machine and local terminal USB port;
According to described mapping directive, initiate network connecting request to the virtual machine specified by mapping directive, make described virtual machine set up the usb data passage of the USB port of specifying with local terminal;
Receive the USB instruction request that described virtual machine is sent by described usb data passage;
According to described USB instruction request, the USB port of being specified by local terminal is operated;
Operating result is returned to described virtual machine by described usb data passage.
The virtual network mapping device of a kind of USB, described device comprises Configuration Manager, USB service module and virtual machine;
Described Configuration Manager is used for sending to described USB service module the mapping directive specifying virtual machine and USB port;
Described USB service module for receiving described mapping directive, and according to described mapping directive, initiates network connecting request to the virtual machine specified by mapping directive;
Described virtual machine is used for setting up the usb data passage with the USB port of specifying according to described network connecting request;
The USB instruction request that described USB service module is sent by described usb data passage for receiving described virtual machine, according to described USB instruction request, operated by described USB port, and return operating result by described usb data passage to described virtual machine.
The virtual network mapping method and apparatus of above-mentioned USB, when being applied in virtual platform, USB physical equipment can be connected on any physical server, and virtual machine also may operate on any physical server in virtual platform.When local terminal USB port is connected to USB physical equipment, pass through mapping directive, local terminal USB port and virtual machine can be set up network usb data passage, such virtual machine just can be operated the USB physical equipment that local terminal connects by this usb data passage.Virtual machine and USB physical equipment do not need to coexist on Same Physical server, simple to operate, are conducive to applying of Intel Virtualization Technology.
A kind of usb hub, comprises the network port, processor and USB port;
The described network port is connected with virtual platform, for receiving the mapping directive specifying virtual machine and USB port that described virtual platform sends;
Described processor is used for according to described mapping directive, initiates network connecting request by the described network port to the virtual machine in the virtual platform specified by described mapping directive, makes described virtual machine set up the usb data passage with the described USB port of specifying;
The USB instruction request that the described network port is sent by described usb data passage for receiving described virtual machine;
Described processor is also for according to described USB instruction request, and the USB port of being specified by local terminal is operated;
The described network port is also for returning operating result by described usb data passage to described virtual machine.
Above-mentioned usb hub, USB physical equipment can be connected on this usb hub, and virtual machine may operate on any physical server in virtual platform.When the USB port of usb hub is connected to USB physical equipment, pass through mapping directive, the USB port of usb hub and virtual machine can be set up network usb data passage, such virtual machine just can be operated the USB physical equipment that usb hub connects by this usb data passage.Virtual machine and USB physical equipment do not need to coexist on Same Physical server, simple to operate, are conducive to applying of Intel Virtualization Technology.
Accompanying drawing explanation
Fig. 1 is the structural representation of virtual platform in an embodiment;
Fig. 2 is the structured flowchart of the virtual network mapping device of USB in an embodiment;
Fig. 3 is the structured flowchart of the virtual network mapping device of USB in virtual platform in an embodiment;
Fig. 4 is the structured flowchart of the virtual network mapping device of USB in an embodiment;
Fig. 5 is the structured flowchart of the virtual network mapping device of USB in virtual platform in another embodiment;
Fig. 6 is the schematic flow sheet of the virtual network mapping method of USB in an embodiment;
Fig. 7 is the schematic flow sheet of the virtual network mapping method of USB in another embodiment;
Fig. 8 is the structural representation of usb hub in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, in one embodiment, provide a kind of virtual platform 100, comprise one or more physical server, if the physical server 102 (1) in Fig. 1 is to 102 (n), n is more than or equal to 2.Each physical server in virtual platform 100 shares physical resource, such as CPU, internal memory, disk, I/O interface etc.
As shown in Figure 2, in one embodiment, the virtual network mapping device 200 of a kind of USB, comprises Configuration Manager 202, USB service module 204 and virtual machine 206.USB virtual network mapping device 200 is for realizing the virtual network mapping method of USB.Configuration Manager 202, for configuration management operation, such as sends demapping instruction and creates virtual machine process etc.Wherein virtual machine refer to by software simulation have complete hardware system function, the complete computer operated in a completely isolated environment.
Configuration Manager 202 is for sending the mapping directive specifying virtual machine 206 and USB port to USB service module 204.
USB service module 204 for receiving mapping directive, and according to mapping directive, initiates network connecting request to the virtual machine 206 specified by mapping directive.
Virtual machine 206 is for setting up the usb data passage with the USB port of specifying according to network connecting request.
The USB instruction request that USB service module 204 is sent by usb data passage for sink virtual machine 206, according to USB instruction request, is operated by USB port, and returns operating result by usb data passage to virtual machine 206.
The virtual network mapping device 200 of above-mentioned USB, when being applied in virtual platform, USB physical equipment can be connected on any physical server, and virtual machine also may operate on any physical server in virtual platform.When local terminal USB port is connected to USB physical equipment, pass through mapping directive, local terminal USB port and virtual machine can be set up network usb data passage, such virtual machine just can be operated the USB physical equipment that local terminal connects by this usb data passage.Virtual machine and USB physical equipment do not need to coexist on Same Physical server, simple to operate, are conducive to applying of Intel Virtualization Technology.
As shown in Figure 3, in one embodiment, the virtual network mapping device 200 of USB operates on virtual platform 100 as shown in Figure 1, and virtual platform 100 provides virtual level, and virtual level is the software environment running virtual machine.Can load USB driver in virtual platform 100, USB driver is for driving USB physical equipment.
As shown in Figure 4, in one embodiment, the virtual network mapping device 200 of a kind of USB, comprises Configuration Manager 202, USB service module 204, USB network mapping services end 205 and virtual machine 206; USB service module 204 comprises the USB network mapping client corresponding with described USB network mapping services end.
USB network mapping client for receiving mapping directive, and according to mapping directive, initiates network connecting request to the USB network mapping services end 205 corresponding to the virtual machine 206 specified by mapping directive.
USB network mapping services end 205 is for setting up the usb data passage with the USB port of specifying according to network connecting request.
In the present embodiment, each virtual machine, separately to there being corresponding USB network mapping services end, for communicating with Configuration Manager, realizing USB network and mapping.Such virtual platform can create virtual machine and corresponding USB network mapping services end when needed, thus realizes network mapping by USB network mapping services end and USB service module, does not need to increase extra plug-in unit, easy to maintenance.
In one embodiment, USB network mapping services end 205 is also for providing virtual USB device to virtual machine 206.
Virtual machine 206 for loading USB driver, and sends initialization requests to USB network mapping services end 205.
USB network mapping services end 205 is for forwarding initialization requests to USB service module 204.
The USB port initialization of USB service module 204 for being specified by local terminal according to initialization requests, returns initialization result to USB network mapping services end 205.
USB network mapping services end 205 is for feeding back initialization result to virtual machine 206.
In the present embodiment, by USB network mapping services end, virtual machine can carry out initialization to local terminal USB port by control USB service module, thus is that read or write is ready, ensures that read or write can accurately be carried out.
In one embodiment, virtual machine 206 is for sending USB instruction request to USB network mapping services end 205.
USB network mapping services end 205 is for forwarding USB instruction request by usb data passage to USB service module 204;
USB service module 204 is for returning operating result by usb data passage to USB network mapping services end 205.
USB network mapping services end 205 is also for returning operating result to virtual machine 206.
In the present embodiment, the service support providing USB network to map by USB network mapping services end between USB service module and virtual machine, create virtual machine and corresponding USB network mapping services end when needed, just can realize USB network by USB network mapping services end to map, Virtual Machine Manager is very convenient with maintenance.
In one embodiment, USB service module 204 is also for after the virtual machine switching notice receiving virtual machine 206 transmission, virtual machine 206 after switching initiates network connecting request, makes the virtual machine after switching 206 set up the usb data passage with the USB port of specifying.
In the present embodiment, after generation live migration of virtual machine, trigger USB service module and carry out network and reconnect, after network reconnects, local terminal USB port just with switching after virtual machine set up new network mapping.The thermophoresis of such support virtual machine and across a network map, and virtual machine can the former USB physical equipment of carry automatically after migration completes, and automatic management, is convenient to maintenance.
In one embodiment, USB service module 204 is also for after the USB port switching notice receiving virtual machine 206 transmission, initiate network connecting request to the virtual machine 206 of specifying, make the virtual machine of specifying set up the usb data passage of the USB port after switching with local terminal.
As shown in Figure 5, in one embodiment, the virtual network mapping device 200 of USB as shown in Figure 4 operates on virtual platform 100 as shown in Figure 1.Virtual level comprises each self-corresponding USB network mapping services end 205 with each virtual machine 206, USB service module 204 comprises USB manager and USB network mapping client, wherein USB manager can be used for the management to USB network mapping client, and each USB network mapping client of USB service module 204 is corresponding separately with each network mapping service end 205 respectively.
As shown in Figure 6, in one embodiment, provide a kind of virtual network mapping method of USB, the USB service module 204 that the present embodiment is applied in the virtual network mapping device 200 of USB in above-mentioned Fig. 2 and Fig. 3 in this way illustrates.The method specifically comprises the steps:
Step 602, receives the mapping directive specifying virtual machine and local terminal USB port.
Particularly, USB service module receives the mapping directive specifying virtual machine and local terminal USB port that Configuration Manager sends.This mapping directive sets up the network mapping relation of the USB port of specifying and the virtual machine of specifying for triggering.The local terminal of local terminal USB port refers to and in virtual platform 100, refers to the physical server coexisted with USB port in the one end coexisted with USB port.
Step 604, according to mapping directive, initiates network connecting request to the virtual machine specified by mapping directive, makes virtual machine set up the usb data passage of the USB port of specifying with local terminal.
Particularly, USB service module, according to mapping directive, initiates network connecting request to the virtual machine specified by mapping directive, makes virtual machine set up the usb data passage of the USB port of specifying with local terminal according to this network connecting request.The usb data passage of the USB port of specifying with local terminal, refers to the network transmission channels for controlling local terminal USB port, read or write.
Step 606, the USB instruction request that sink virtual machine is sent by usb data passage.USB instruction request comprises the request of reading or writing.
Step 608, according to USB instruction request, the USB port of being specified by local terminal is operated.
Particularly, the USB instruction request sent by usb data passage of USB service module sink virtual machine.If local terminal USB port is connected with USB physical equipment, then this USB physical equipment is operated, produce simultaneously and comprise and read or write successful operating result; If local terminal USB port does not connect USB physical equipment, then can produce the operating result reading or writing and make mistakes.
Step 610, returns operating result by usb data passage to virtual machine.
Particularly, USB service module returns to above-mentioned virtual machine of specifying the operating result that read or write produces by usb data passage.
The virtual network mapping method of above-mentioned USB, when being applied in virtual platform, USB physical equipment can be connected on any physical server, and virtual machine also may operate on any physical server in virtual platform.When local terminal USB port is connected to USB physical equipment, pass through mapping directive, local terminal USB port and virtual machine can be set up network usb data passage, such virtual machine just can be operated the USB physical equipment that local terminal connects by this usb data passage.Virtual machine and USB physical equipment do not need to coexist on Same Physical server, simple to operate, are conducive to applying of Intel Virtualization Technology.
In one embodiment, before step 602, also comprise: create the virtual machine and corresponding USB network mapping services end of specifying.And step 604 comprises: by the USB network mapping client of local terminal, according to mapping directive, initiate network connecting request to the USB network mapping services end corresponding to the virtual machine specified by mapping directive, make USB network mapping services end set up the usb data passage of the USB port of specifying with local terminal.
Particularly, Configuration Manager triggers the virtual machine and corresponding USB network mapping services end that create and specify, and USB network mapping services end starts to monitor network connecting request.USB network mapping client, according to mapping directive, initiates network connecting request to the USB network mapping services end corresponding to the virtual machine specified by this mapping directive, makes USB network mapping services end set up the usb data passage of the USB port of specifying with local terminal.
In the present embodiment, each virtual machine, separately to there being corresponding USB network mapping services end, for communicating with Configuration Manager, realizing USB network and mapping.Such virtual platform can create virtual machine and corresponding USB network mapping services end when needed, thus realizes network mapping by USB network mapping services end and USB service module, does not need to increase extra plug-in unit, easy to maintenance.
In one embodiment, by the USB network mapping client of local terminal, according to mapping directive, network connecting request is initiated to the USB network mapping services end corresponding to the virtual machine specified by mapping directive, after making the step of the usb data passage of the USB port that USB network mapping services end is set up and local terminal is specified, further comprising the steps of A to C:
Steps A, when USB network mapping services end provides virtual USB device to virtual machine, loads USB driver to make virtual machine and after USB network mapping services end transmission initialization requests, receives the initialization requests that USB network mapping services end forwards.
Particularly, USB network mapping services end provides virtual USB device to virtual machine, such virtual machine can load USB driver, and virtual machine can send initialization requests to USB network mapping services end, USB network mapping services end then forwards this initialization requests to USB service module, and this initialization requests carries USB control information.
Step B, according to the USB port initialization that local terminal is specified by initialization requests.
Particularly, USB control information, according to beginningization request, is handed down to operating system nucleus, carries out initialization by operating system nucleus to the USB physical equipment that local terminal USB port connects by USB service module.
Step C, returns initialization result to USB network mapping services end, makes USB network mapping services end to virtual machine initialization result.
Particularly, USB service module returns initialization result to USB network mapping services end, and initialization result is then fed back to corresponding virtual machine by USB network mapping services end again.Such virtual machine just can know whether the USB physical equipment that local terminal USB port connects has carried out the preparation of read or write.
In the present embodiment, by USB network mapping services end, virtual machine can carry out initialization to local terminal USB port by control USB service module, thus is that read or write is ready, ensures that read or write can accurately be carried out.
In one embodiment, step 606 comprises: after virtual machine sends USB instruction request to USB network mapping services end, receives the USB instruction request that USB network mapping services end is forwarded by usb data passage.Step 610 comprises: return operating result by usb data passage to USB network mapping services end, makes USB network mapping services end return operating result to virtual machine.
Particularly, USB service module receives the USB instruction request that USB network mapping services end is forwarded by usb data passage, and USB instruction request carries USB control information.USB control information is handed down to operating system nucleus by USB service module, carries out corresponding read or write by this operating system nucleus to the USB physical equipment that local terminal USB port connects.
After completing read or write, USB service module returns operating result by usb data passage to USB network mapping services end, and operating result is returned to USB network mapping services end by USB network mapping services end again.
In the present embodiment, the service support providing USB network to map by USB network mapping services end between USB service module and virtual machine, create virtual machine and corresponding USB network mapping services end when needed, just can realize USB network by USB network mapping services end to map, Virtual Machine Manager is very convenient with maintenance.
In one embodiment, the virtual network mapping method of this USB also comprises: after receiving the virtual machine switching notice of virtual machine transmission, virtual machine after switching initiates network connecting request, makes the virtual machine after switching set up the usb data passage of the USB port of specifying with local terminal.
Virtual machine switching refers to and the data of a virtual machine and state is switched to another virtual machine completely, and make another virtual machine replace the process of original virtual machine, also cry thermophoresis, the switching of virtual machine is unaware concerning user.
Particularly, virtual machine can send virtual machine switching notice to USB service module when switching, and this message carries the network address of the physical server at the virtual machine place after switching.Such USB service module is after the virtual machine switching notice receiving virtual machine transmission, and network connecting request is initiated in the network address according to the virtual machine after switching, and then makes the usb data passage of the USB port that virtual machine is set up and local terminal is specified after switching.
In the present embodiment, after generation live migration of virtual machine, trigger USB service module and carry out network and reconnect, after network reconnects, local terminal USB port just with switching after virtual machine set up new network mapping.The thermophoresis of such support virtual machine and across a network map, and virtual machine can the former USB physical equipment of carry automatically after migration completes, and automatic management, is convenient to maintenance.
In one embodiment, the virtual network mapping method of this USB also comprises: after receiving the USB port switching notice of virtual machine transmission, initiate network connecting request to the virtual machine of specifying, make the virtual machine of specifying set up the usb data passage of the USB port after switching with local terminal.In the present embodiment, virtual machine can switch USB port rapidly, automatic management, is convenient to safeguard.
As shown in Figure 7, in one embodiment, provide a kind of virtual network mapping method of USB, the USB service module 204 that the present embodiment is applied in the virtual network mapping device 200 of USB in above-mentioned Fig. 4 and Fig. 5 in this way illustrates.The method specifically comprises the steps:
Step 701, Configuration Manager configuring virtual machine and USB port.
Step 702, Configuration Manager triggers and runs virtual machine.
Step 703, USB network mapping services end creates USB network mapping services end, and starts to monitor network connecting request.
Step 704, Configuration Manager sends demapping instruction to USB service module, and demapping instruction carries the designated virtual machine and USB port of specifying.
Step 705, USB service module initiates network connecting request according to demapping instruction to the USB network mapping services end corresponding to the virtual machine specified by mapping directive.
Particularly, USB service module comprises USB controller and USB network mapping client, here USB network mapping client is relative to USB network mapping server end, and this USB network mapping client sets up network mapping relation for triggering with corresponding USB network mapping services end.USB service module, after receiving demapping instruction, creates the USB network mapping client example corresponding with local terminal USB port, thus initiates network connecting request to the USB network mapping services end corresponding to the virtual machine specified by mapping directive.
Step 706, USB network mapping services end replys the successful connection of USB service module network, sets up the usb data passage with the USB port of specifying.
Step 707, USB network mapping services end provides virtual USB device to virtual machine.
Step 708, virtual machine activation hardware check, loads USB driver.
Step 709, virtual machine arranges USB physical equipment and starts mark, and sends initialization requests to USB network mapping services end.
Step 710, the USB control information of initialization requests is passed to USB service module by USB network mapping services end.
Step 711, the USB control information of initialization requests is handed down to operating system nucleus by USB service module, initialization USB physical equipment.
Step 712, USB service module replys initialization result to USB network mapping services end.
Step 713, USB network mapping services end replys initialization result to virtual machine.
Step 714, virtual machine trigger action USB physical equipment.
Step 715, virtual machine sends USB instruction request to USB network mapping services end.
Step 716, USB network mapping services end sends USB instruction request to USB service module.
Step 717, the USB control information of USB instruction request is handed down to operating system nucleus by USB service module, operates USB physical equipment.
Step 718, USB service module replys operating result to USB network mapping services end.
Step 719, USB network mapping services end replys operating result to virtual machine.
As shown in Figure 8, in one embodiment, a kind of usb hub 800, comprises the network port 802, processor 804 and USB port 806.Processor 804 is configured to perform the above-mentioned virtual network mapping method of USB.Usb hub 800 has each function of above-mentioned USB service module.
The network port 802 is connected with virtual platform, for receiving the mapping directive specifying virtual machine and USB port 806 that virtual platform sends.
Processor 804, for according to mapping directive, initiates network connecting request by the network port 802 to the virtual machine in the virtual platform specified by mapping directive, makes virtual machine set up the usb data passage with the USB port 806 of specifying.
The USB instruction request that USB port 806 is sent by usb data passage for sink virtual machine.
Processor 804 is also for according to USB instruction request, and the USB port 806 of being specified by local terminal is operated.
The network port 802 is also for returning operating result by usb data passage to virtual machine.
In one embodiment, processor 804 is also for after the virtual machine switching notice being received virtual platform transmission by the network port 802, initiate network connecting request by the network port 802 to the virtual machine after switching, make the virtual machine after switching set up the usb data passage with the USB port 806 of specifying.
In one embodiment, processor 804 is also for after the USB port switching notice being received virtual platform transmission by the network port 802, initiate network connecting request to the virtual machine of specifying, make the usb data passage of virtual machine foundation and the USB port after switching of specifying.
Above-mentioned usb hub 800, USB physical equipment can be connected on this usb hub, and virtual machine may operate on any physical server in virtual platform.When the USB port of usb hub is connected to USB physical equipment, pass through mapping directive, the USB port of usb hub and virtual machine can be set up network usb data passage, such virtual machine just can be operated the USB physical equipment that usb hub connects by this usb data passage.Virtual machine and USB physical equipment do not need to coexist on Same Physical server, simple to operate, are conducive to applying of Intel Virtualization Technology.
Each technical characteristic of the above embodiment can combine arbitrarily, for making description succinct, the all possible combination of each technical characteristic in above-described embodiment is not all described, but, as long as the combination of these technical characteristics does not exist contradiction, be all considered to be the scope that this instructions is recorded.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (12)

1. the virtual network mapping method of USB, described method comprises:
Receive the mapping directive specifying virtual machine and local terminal USB port;
According to described mapping directive, initiate network connecting request to the virtual machine specified by mapping directive, make described virtual machine set up the usb data passage of the USB port of specifying with local terminal;
Receive the USB instruction request that described virtual machine is sent by described usb data passage;
According to described USB instruction request, the USB port of being specified by local terminal is operated;
Operating result is returned to described virtual machine by described usb data passage.
2. method according to claim 1, is characterized in that, described reception also comprises before specifying the mapping directive of virtual machine and local terminal USB port:
Create the virtual machine and corresponding USB network mapping services end of specifying;
Described according to described mapping directive, initiate network connecting request to the virtual machine specified by mapping directive, make described virtual machine set up the usb data passage of the USB port of specifying with local terminal, comprising:
By the USB network mapping client of local terminal, according to described mapping directive, initiate network connecting request to the USB network mapping services end corresponding to the virtual machine specified by mapping directive, make described USB network mapping services end set up the usb data passage of the USB port of specifying with local terminal.
3. method according to claim 2, it is characterized in that, the described USB network mapping client by local terminal, according to described mapping directive, network connecting request is initiated to the USB network mapping services end corresponding to the virtual machine specified by mapping directive, after making the usb data passage of the USB port that described USB network mapping services end is set up and local terminal is specified, also comprise:
When described USB network mapping services end provides virtual USB device to described virtual machine, load USB driver to make described virtual machine and after described USB network mapping services end transmission initialization requests, receive the initialization requests that described USB network mapping services end forwards;
According to the USB port initialization that local terminal is specified by described initialization requests;
Return initialization result to described USB network mapping services end, make described USB network mapping services end to initialization result described in described virtual machine.
4. method according to claim 3, is characterized in that, the USB instruction request that the described virtual machine of described reception is sent by described usb data passage, comprising:
After described virtual machine sends USB instruction request to described USB network mapping services end, receive the USB instruction request that described USB network mapping services end is forwarded by described usb data passage;
Describedly return operating result by described usb data passage to described virtual machine, comprising:
Return operating result by described usb data passage to described USB network mapping services end, make described USB network mapping services end return operating result to described virtual machine.
5. method according to claim 1, is characterized in that, described method also comprises:
After receiving the virtual machine switching notice of described virtual machine transmission, the virtual machine after switching initiates network connecting request, makes the virtual machine after described switching set up the usb data passage of the USB port of specifying with local terminal; Or,
After receiving the USB port switching notice of described virtual machine transmission, initiate network connecting request to the virtual machine of specifying, make the virtual machine of specifying set up the usb data passage of the USB port after switching with local terminal.
6. the virtual network mapping device of USB, is characterized in that, described device comprises Configuration Manager, USB service module and virtual machine;
Described Configuration Manager is used for sending to described USB service module the mapping directive specifying virtual machine and USB port;
Described USB service module for receiving described mapping directive, and according to described mapping directive, initiates network connecting request to the virtual machine specified by mapping directive;
Described virtual machine is used for setting up the usb data passage with the USB port of specifying according to described network connecting request;
The USB instruction request that described USB service module is sent by described usb data passage for receiving described virtual machine, according to described USB instruction request, operated by described USB port, and return operating result by described usb data passage to described virtual machine.
7. device according to claim 6, is characterized in that, described device also comprises USB network mapping services end; Described USB service module comprises the USB network mapping client corresponding with described USB network mapping services end;
Described USB network mapping client also for receiving described mapping directive, and according to described mapping directive, initiates network connecting request to the USB network mapping services end corresponding to the virtual machine specified by mapping directive;
Described USB network mapping services end is used for setting up the usb data passage with the USB port of specifying according to described network connecting request.
8. device according to claim 7, is characterized in that, described USB network mapping services end is also for providing virtual USB device to described virtual machine;
Described virtual machine for loading USB driver, and sends initialization requests to described USB network mapping services end;
Described USB network mapping services end is used for forwarding described initialization requests to described USB service module;
Described USB network mapping client is used for the USB port initialization of being specified by local terminal according to described initialization requests, returns initialization result to described USB network mapping services end;
Described USB network mapping services end is used for initialization result described in described virtual machine.
9. device according to claim 8, is characterized in that, described virtual machine is used for sending USB instruction request to described USB network mapping services end;
Described USB network mapping services end is used for forwarding USB instruction request by described usb data passage to described USB service module;
Described USB service module is used for returning operating result by described usb data passage to described USB network mapping services end;
Described USB network mapping services end is also for returning operating result to described virtual machine.
10. device according to claim 6, it is characterized in that, described USB service module is also for after the virtual machine switching notice receiving the transmission of described virtual machine, virtual machine after switching initiates network connecting request, makes the virtual machine after described switching set up the usb data passage with the USB port of specifying; Or,
Described USB service module also for after the USB port switching notice receiving the transmission of described virtual machine, initiates network connecting request to the virtual machine of specifying, and makes the virtual machine of specifying set up the usb data passage of the USB port after switching with local terminal.
11. 1 kinds of usb hubs, is characterized in that, comprise the network port, processor and USB port;
The described network port is connected with virtual platform, for receiving the mapping directive specifying virtual machine and USB port that described virtual platform sends;
Described processor is used for according to described mapping directive, initiates network connecting request by the described network port to the virtual machine in the virtual platform specified by described mapping directive, makes described virtual machine set up the usb data passage with the described USB port of specifying;
The USB instruction request that described USB port is sent by described usb data passage for receiving described virtual machine;
Described processor is also for according to described USB instruction request, and the USB port of being specified by local terminal is operated;
The described network port is also for returning operating result by described usb data passage to described virtual machine.
12. usb hubs according to claim 11, it is characterized in that, described processor is also for after the virtual machine switching notice being received the transmission of described virtual platform by the described network port, initiate network connecting request by the described network port to the virtual machine after switching, make the virtual machine after described switching set up the usb data passage with the described USB port of specifying;
Described processor also for after the USB port switching notice being received the transmission of described virtual platform by the described network port, initiates network connecting request to the virtual machine of specifying, and makes the usb data passage of virtual machine foundation and the USB port after switching of specifying.
CN201510533047.9A 2015-08-26 2015-08-26 USB virtualizes network mapping method, apparatus and usb hub Active CN105183674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510533047.9A CN105183674B (en) 2015-08-26 2015-08-26 USB virtualizes network mapping method, apparatus and usb hub

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510533047.9A CN105183674B (en) 2015-08-26 2015-08-26 USB virtualizes network mapping method, apparatus and usb hub

Publications (2)

Publication Number Publication Date
CN105183674A true CN105183674A (en) 2015-12-23
CN105183674B CN105183674B (en) 2019-01-08

Family

ID=54905764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510533047.9A Active CN105183674B (en) 2015-08-26 2015-08-26 USB virtualizes network mapping method, apparatus and usb hub

Country Status (1)

Country Link
CN (1) CN105183674B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544930A (en) * 2016-06-27 2018-01-05 华为技术有限公司 The transmitting method and device of a kind of COM1
WO2018041193A1 (en) * 2016-09-05 2018-03-08 中兴通讯股份有限公司 Method, device, and computer storage medium for usb device redirection
CN107943560A (en) * 2017-11-27 2018-04-20 郑州云海信息技术有限公司 The hanging method and carry device of a kind of universal serial bus device
CN108205504A (en) * 2016-12-16 2018-06-26 广州杰赛科技股份有限公司 Terminal USB mapping methods, virtual machine USB mapping methods and system
CN108833309A (en) * 2018-07-25 2018-11-16 清华大学 Line concentration server
CN109240798A (en) * 2018-08-30 2019-01-18 郑州云海信息技术有限公司 The method and apparatus for managing the external equipment of virtual machine
CN111147340A (en) * 2019-12-26 2020-05-12 山东超越数控电子股份有限公司 Method, equipment and medium for carrying out networked access on CAN bus interface
CN112633997A (en) * 2020-12-18 2021-04-09 百望股份有限公司 Tax control equipment redirection system and method
CN113282527A (en) * 2021-05-08 2021-08-20 珠海金智维信息科技有限公司 Method, device and host for realizing USB equipment switching management
CN116303150A (en) * 2023-05-25 2023-06-23 深圳市链科网络科技有限公司 Data driving method and device based on virtual USB

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882871A (en) * 2012-09-28 2013-01-16 深圳市赛蓝科技有限公司 Mobile terminal USB (universal serial bus) virtualized mapping method
CN103714020A (en) * 2013-12-27 2014-04-09 普华基础软件股份有限公司 USB device redirecting system based on network
CN104484291A (en) * 2014-11-24 2015-04-01 华为技术有限公司 Method and device for building equipment mapping

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882871A (en) * 2012-09-28 2013-01-16 深圳市赛蓝科技有限公司 Mobile terminal USB (universal serial bus) virtualized mapping method
CN103714020A (en) * 2013-12-27 2014-04-09 普华基础软件股份有限公司 USB device redirecting system based on network
CN104484291A (en) * 2014-11-24 2015-04-01 华为技术有限公司 Method and device for building equipment mapping

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544930B (en) * 2016-06-27 2020-07-14 华为技术有限公司 Transparent transmission method and device for communication port
CN107544930A (en) * 2016-06-27 2018-01-05 华为技术有限公司 The transmitting method and device of a kind of COM1
WO2018041193A1 (en) * 2016-09-05 2018-03-08 中兴通讯股份有限公司 Method, device, and computer storage medium for usb device redirection
CN107797947A (en) * 2016-09-05 2018-03-13 中兴通讯股份有限公司 A kind of USB device reorientation method and device
CN108205504A (en) * 2016-12-16 2018-06-26 广州杰赛科技股份有限公司 Terminal USB mapping methods, virtual machine USB mapping methods and system
CN108205504B (en) * 2016-12-16 2021-01-12 广州杰赛科技股份有限公司 Terminal USB mapping method, virtual machine USB mapping method and system
CN107943560A (en) * 2017-11-27 2018-04-20 郑州云海信息技术有限公司 The hanging method and carry device of a kind of universal serial bus device
CN108833309B (en) * 2018-07-25 2020-04-07 清华大学 Line concentration server
CN108833309A (en) * 2018-07-25 2018-11-16 清华大学 Line concentration server
CN109240798A (en) * 2018-08-30 2019-01-18 郑州云海信息技术有限公司 The method and apparatus for managing the external equipment of virtual machine
CN111147340A (en) * 2019-12-26 2020-05-12 山东超越数控电子股份有限公司 Method, equipment and medium for carrying out networked access on CAN bus interface
CN112633997A (en) * 2020-12-18 2021-04-09 百望股份有限公司 Tax control equipment redirection system and method
CN113282527A (en) * 2021-05-08 2021-08-20 珠海金智维信息科技有限公司 Method, device and host for realizing USB equipment switching management
CN116303150A (en) * 2023-05-25 2023-06-23 深圳市链科网络科技有限公司 Data driving method and device based on virtual USB
CN116303150B (en) * 2023-05-25 2023-07-21 深圳市链科网络科技有限公司 Data driving method and device based on virtual USB

Also Published As

Publication number Publication date
CN105183674B (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN105183674A (en) USB virtualization network mapping method, USB virtualization network mapping device and USB hub
US10117253B2 (en) Mobile terminal and resource management method of mobile terminal
US10949158B2 (en) Screenshot method and apparatus
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
CN102193824B (en) Virtual machine homogenizes to realize the migration across heterogeneous computers
US11640269B2 (en) Solid-state drive with initiator mode
KR101929048B1 (en) Apparatus and method for virtual desktop service based on in-memory
US9712605B2 (en) Method and system for providing server virtual machine for real-time virtual desktop service, and server device supporting the same
US11294735B2 (en) Method and apparatus for accessing desktop cloud virtual machine, and desktop cloud controller
CN102316043B (en) Port virtualization method, switch and communication system
CN104298559A (en) Method and device for virtualizing physical host system
CN107515783B (en) Application container cluster tool-based application container management and control method and device
CN103677858A (en) Method, system and device for managing virtual machine software in cloud environment
US9336032B2 (en) Zoning data to a virtual machine
CN103885833A (en) Method and system for managing resources
CN105022659A (en) Virtual machine state control method and system
CN111343262B (en) Distributed cluster login method, device, equipment and storage medium
CN103118073A (en) Virtual machine data persistence storage system and method in cloud environment
CN105739930A (en) Storage framework as well as initialization method, data storage method and data storage and management apparatus therefor
CN103207805A (en) Virtualization-based hard disk reuse system
WO2020252724A1 (en) Log processing method and device, and computer-readable storage medium
US20130031570A1 (en) Sas virtual tape drive
CN103019847A (en) Method and system for migrating data of virtual machine
CN107515725B (en) Method and device for sharing disk by core network virtualization system and network management MANO system
KR20150032085A (en) Method for processing huge data and constructing high performance nfv system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518000 the first floor of A1 building, Nanshan Zhiyuan 1001, Nanshan District Xue Yuan Avenue, Shenzhen, Guangdong.

Applicant after: SINFOR Polytron Technologies Inc

Address before: 518000 the first floor of A1 building, Nanshan Zhiyuan 1001, Nanshan District Xue Yuan Avenue, Shenzhen, Guangdong.

Applicant before: Shenxinfu Electronics Science and Technology Co., Ltd., Shenzhen

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant