From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: kvm, emulation hangs when using some usb device Date: Wed, 23 Mar 2011 10:24:14 -0600 Message-ID: <4D8A1EAE.1020003@cisco.com> References: <4D88D50B.5040409@cisco.com> <4D88E57D.7060604@cisco.com> <4D88EA66.9060507@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: slavik Return-path: Received: from sj-iport-3.cisco.com ([171.71.176.72]:16066 "EHLO sj-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752665Ab1CWQYP (ORCPT ); Wed, 23 Mar 2011 12:24:15 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 03/23/11 02:03, slavik wrote: > it works for ZTE modem, but still hung with -usbdevice host:2022:0008 > (amikon vpn key). > any ideas? I am not familiar with that device. It may well not be compatible going through the USB 1.1 controller. So -usbdevice cleared the "freeze"/"hung" problem the other device -- the modem? David > > On Tue, Mar 22, 2011 at 6:28 PM, David Ahern wrote: >> >> >> On 03/22/11 12:20, slavik wrote: >>> i suggest this is synonyms for single function, doesn't it? >>> >> >> It's the legacy syntax - you are already using it with the tablet >> option. If it cleared your problem then it is also synonymous for bug in >> the -device route. >> >> >>> On Tue, Mar 22, 2011 at 11:07 PM, David Ahern wrote: >>>> >>>> >>>> On 03/22/11 11:53, slavik wrote: >>>>> hi, as usual >>>>> kvm -boot d -usbdevice tablet -vnc :8 -monitor >>>>> telnet:0.0.0.0:4008,server,nowait -drive >>>>> file="/winxp.img",cache=unsafe,if=virtio,boot=on,aio=native -balloon >>>>> virtio -name vmwin >>>>> 1 -fda /virtio-win-1.1.16.vfd -enable-kvm -m 1024 -usb -smp 2 -device >>>>> usb-host,hostbus=002,hostaddr=003,id=usbdev2 -device >>>>> usb-host,hostbus=005,hostaddr=003,id=usbdev4 >>>> >>>> try -usbdevice host:bus.addr instead of -device. So, >>>> -usbdevice host:002.003 -usbdevice host:005.003 >>>> >>>>> >>>>> I was tried "-no-kvm-irqchip" and "-no-kvm-pit", nothing changes, with >>>>> "-no-kvm" it does not work too, but with other symptoms. >>>>> >>>>> On Tue, Mar 22, 2011 at 9:57 PM, David Ahern wrote: >>>>>> >>>>>> >>>>>> On 03/22/11 05:03, slavik wrote: >>>>>>> I have some troubles with passing usb into kvm virtual machine. >>>>>>> I trying to provide the usb device 2022:0008 (Amikon vpn key) or 19d2:2000 >>>>>>> (ZTE MF112 hsdpa modem) into virtual machine with windows xp iax32. >>>>>>> kvm virtual machine was hung completely, and stop responding to anything. >>>>>>> Maybe I need there some trick to use this kind (switchable?) of usb devices? >>>>>> >>>>>> As a command line option? If so what options did you use for the usb >>>>>> components?