On Tue, May 09, 2017 at 10:52:38AM -0600, Philip Prindeville wrote: > Greg pointed out to me that he’s turned over ownership of > drivers/usb/serial/pl2303.c … so I thought I’d contact the list > instead. > > > Begin forwarded message: > > > > From: Philip Prindeville <philipp_subx@xxxxxxxxxxxxxxxxxxxxx> > > Subject: Issues with exposing USB serial dongle to guest VM > > Date: April 24, 2017 at 4:42:53 PM MDT > > To: centos-virt@xxxxxxxxxx > > Cc: greg@xxxxxxxxx > > > > Hi. > > > > I have Centos 7 (updated) running as my host, and I’m using Qemu and > > KVM, version 2.0.0 and 2.6.0. > > > > I have a Trendnet TU-S9 USB serial dongle attached to the host, > > which uses the Prolific 2303 chipset. > > > > I blacklisted the pl2303 driver so the host doesn’t grab the device, > > and want to expose it to the guest. > > > > On the client, I see 2 USB hubs (3.0 and 2.0), and I see 2 USB > > endpoints (even though 3 are configured). So the USB CF card > > readers are visible, but not the USB dongle, even though it’s > > plugged in. > > > > Here’s what I see on the host: > > I’m not sure what I’m missing. > > > > How do I verify that the parameters in the .xml domain definition > > are correct, and that they’re resulting in the correct args being > > passed to qemu-kvm when it gets exec’d? > > > > And why do the args: > > > > -device usb-host,hostbus=3,hostaddr=15,id=hostdev3,bus=usb1.0,port=1 > > > > seem to be silently ignored? I understand that USB is inherently pluggable and hence the device may or may not be present at the time that Qemu gets kicked off… > > > > Looking at > > https://github.com/esminc/qemu/blob/master/Source/device-qemu/android/android-goldfish-2.6.29/Documentation/usb/usb-serial.txt > > it claims that the PL2303 driver is supported. > > > > What am I missing? I need to access serial ports from several of my > > guest VMs, and my host doesn’t have built-in serial ports to USB > > dongles are my only option. Have you tried asking on a QEMU list? Your device should be supported by the pl2303 driver (as you can verify on your host) and probed once you manage to get it to be detected by the guest. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html