Patent ID: 8387043

Claim:
A Universal Serial Bus (USB) port shared control method which is executed by a hypervisor in order for the hypervisor to control sharing of the USB port among a plurality of virtual machines, in a computer which comprises a physical USB host controller being configured to include a physical register and to control the USB port and the hypervisor that constitutes the plurality of virtual machines each including a virtual USB host controller having a virtual register, the method comprising: selectively allocating the physical register to the virtual register of a first virtual USB host controller provided in a first virtual machine of the plurality of virtual machines to occupy and unitize the USB port by the first virtual machine, and directly reading or writing of the physical register by the first virtual machine via the first virtual USB host controller, to thereby allow the first virtual USB host controller to directly control the physical USB host controller; emulating halt of the USB port with respect to the first virtual machine in response to an instruction from an outside and allocating a dummy register reflecting a halt state to the virtual register of the first virtual USB host controller to thereby halt utilization of the USB port by the first virtual machine; and selectively allocating the physical register to the virtual register of a second virtual USB host controller provided in a second virtual machine of the plurality of virtual machines to occupy and unitize the USB port by the second virtual machine, and directly reading or writing of the physical register by the second virtual machine via the second virtual USB host controller, to thereby allow the second virtual USB host controller to directly control the physical USB host controller.