[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] In aarch64 machine, virtual input device Connection timed
From: |
???????? |
Subject: |
[Qemu-discuss] In aarch64 machine, virtual input device Connection timed out (USB kbd and mouse, a virtual usb error?) |
Date: |
Sun, 12 Jun 2016 14:06:13 +0800 |
Hello everyone:
I encountered a qemu virtual usb error in arm64 machine with KVM.
I used virt-manager to create a virtual machine with USB kbd and USB mouse. When boot, I got some kernel errors: "device descriptor read/64, error -110".
I found this error in ehci_pci module. Then, I re-insmod this module, got same output.
Is this qemu input device bug? Or kernel bug?
output:
------
address@hidden ~]# lsmod
lsmod
Module Size Used by
ehci_hcd 43221 0
ebtable_filter 2446 0
ebtables 27981 1 ebtable_filter
ip6_tables 17533 0
iptable_filter 2624 0
ip_tables 17454 1 iptable_filter
dm_mod 117070 0
address@hidden ~]# dmesg -C
address@hidden ~]# modporobe ehci_pci
address@hidden ~]# lsmod
Module Size Used by
ehci_pci 4970 0
ehci_hcd 43221 1 ehci_pci
ebtable_filter 2446 0
ebtables 27981 1 ebtable_filter
ip6_tables 17533 0
iptable_filter 2624 0
ip_tables 17454 1 iptable_filter
dm_mod 117070 0
address@hidden ~]# dmesg
[ 384.064739] ehci-pci: EHCI PCI platform driver
[ 384.064759] bus: 'pci': add driver ehci-pci
[ 384.064783] bus: 'pci': driver_probe_device: matched device 0000:02:01.7 with driver ehci-pci
[ 384.064788] bus: 'pci': really_probe: probing driver ehci-pci with device 0000:02:01.7
[ 384.064799] devices_kset: Moving 0000:02:01.7 to end of list
[ 384.066814] ehci-pci 0000:02:01.7: EHCI Host Controller
[ 384.066835] ehci-pci 0000:02:01.7: new USB bus registered, assigned bus number 1
[ 384.067059] ehci-pci 0000:02:01.7: irq 40, io mem 0x10000000
[ 384.077990] ehci-pci 0000:02:01.7: USB 2.0 started, EHCI 1.00
[ 384.078083] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 384.078089] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 384.078095] usb usb1: Product: EHCI Host Controller
[ 384.078100] usb usb1: Manufacturer: Linux 4.7.0-rc2.server.kvm ehci_hcd
[ 384.078104] usb usb1: SerialNumber: 0000:02:01.7
[ 384.078112] device: 'usb1': device_add
[ 384.078169] bus: 'usb': add device usb1
[ 384.082328] bus: 'usb': driver_probe_device: matched device usb1 with driver usb
[ 384.082335] bus: 'usb': really_probe: probing driver usb with device usb1
[ 384.082347] devices_kset: Moving usb1 to end of list
[ 384.082376] device: '1-0:1.0': device_add
[ 384.082401] bus: 'usb': add device 1-0:1.0
[ 384.082488] bus: 'usb': driver_probe_device: matched device 1-0:1.0 with driver hub
[ 384.082493] bus: 'usb': really_probe: probing driver hub with device 1-0:1.0
[ 384.082502] devices_kset: Moving 1-0:1.0 to end of list
[ 384.082508] hub 1-0:1.0: USB hub found
[ 384.082525] hub 1-0:1.0: 6 ports detected
[ 384.082545] device: 'usb1-port1': device_add
[ 384.082560] device: 'usb1-port2': device_add
[ 384.082571] device: 'usb1-port3': device_add
[ 384.082582] device: 'usb1-port4': device_add
[ 384.082593] device: 'usb1-port5': device_add
[ 384.082604] device: 'usb1-port6': device_add
[ 384.082742] driver: 'hub': driver_bound: bound to device '1-0:1.0'
[ 384.082756] bus: 'usb': really_probe: bound device 1-0:1.0 to driver hub
[ 384.082764] device: 'ep_81': device_add
[ 384.082787] driver: 'usb': driver_bound: bound to device 'usb1'
[ 384.082796] bus: 'usb': really_probe: bound device usb1 to driver usb
[ 384.082802] device: 'ep_00': device_add
[ 384.082831] driver: 'ehci-pci': driver_bound: bound to device '0000:02:01.7'
[ 384.082840] bus: 'pci': really_probe: bound device 0000:02:01.7 to driver ehci-pci
[ 384.397965] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 399.937954] usb 1-1: device not accepting address 2, error -110
[ 400.057951] usb 1-1: new high-speed USB device number 3 using ehci-pci
[ 405.177957] usb 1-1: device descriptor read/64, error -110
[ 420.407970] usb 1-1: device descriptor read/64, error -110
[ 420.637952] usb 1-1: new high-speed USB device number 4 using ehci-pci
[ 431.057956] usb 1-1: device not accepting address 4, error -110
[ 431.178037] usb 1-1: new high-speed USB device number 5 using ehci-pci
[ 441.597959] usb 1-1: device not accepting address 5, error -110
[ 441.599091] usb usb1-port1: unable to enumerate USB device
address@hidden ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
------
I can't find any USB device except root hub.
I try re-insmod ehci_pci, got same error, and can't find any USB device except root hub.
After insmod ehci-pci module , about 3-5 minutes virtual machine crashed without any output.
Environment:
Arch: arm64(aarch64)
OS: ubuntu 16.10(yakkety)
Some package version:
libvirt-bin: 1.3.4-1ubuntu4
libvirt0: 1.3.4-1ubuntu4
virt-manager: 1:1.3.2-3ubuntu2
qemu-system-arm: 1:2.6+dfsg-1ubuntu1
qemu-kvm: 1:2.6+dfsg-1ubuntu1
virt-manager commandline:
address@hidden ~]# ps aux |grep qemu
libvirt+ 9938 103 5.6 1921384 457744 ? Sl 16:04 21:35 qemu-system-aarch64 -enable-kvm -name generic,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-11-generic/master-key.aes -machine virt-2.6,accel=kvm,usb=off,gic-version=3 -cpu host -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 01e0811f-d368-4723-b505-5e54d8f58e05 -nographic -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-11-generic/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -kernel /home/droiing/kvm-01/boot/Image.4.7 -initrd /home/droiing/kvm-01/boot/initrd.img -append root=/dev/sda rw rootwait console=ttyS0 console=ttyAMA0 -device i82801b11-bridge,id=pci.1,bus=pcie.0,addr=0x1 -device pci-bridge,chassis_nr=2,id=pci.2,bus=pci.1,addr=0x1 -device ich9-usb-ehci1,id=usb,bus=pci.2,addr=0x1.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.2,multifunction=on,addr=0x1 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.2,addr=0x1.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.2,addr=0x1.0x2 -device virtio-scsi-device,id=scsi0 -device virtio-serial-device,id=virtio-serial0 -device virtio-serial-device,id=virtio-serial1 -drive file=/home/droiing/kvm-01/rootfs.qcow2,format=qcow2,if=none,id=drive-scsi0-0-0-0 -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-device,netdev=hostnet0,id=net0,mac=52:54:00:a4:dc:b2 -serial pty -device usb-kbd,id=input0 -device usb-host,hostbus=4,hostaddr=2,id=hostdev0 -msg timestamp=on
Is this qemu input device bug? Or kernel bug?
With best regards,
Droiing.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-discuss] In aarch64 machine, virtual input device Connection timed out (USB kbd and mouse, a virtual usb error?),
???????? <=