From: "Gabriel L. Somlo" <gsomlo@gmail.com>
To: Jason Baron <jbaron@redhat.com>
Cc: pbonzini@redhat.com, kraxel@redhat.com, qemu-devel@nongnu.org,
hdegoede@redhat.com
Subject: Re: [Qemu-devel] q35: usb keyboard trouble
Date: Sun, 28 Oct 2012 11:37:18 -0400 [thread overview]
Message-ID: <20121028153717.GD29280@hedwig.ini.cmu.edu> (raw)
In-Reply-To: <20121026202444.GA25597@redhat.com>
On Fri, Oct 26, 2012 at 04:24:44PM -0400, Jason Baron wrote:
> Thanks for the bug report! What OS are you running? I'm not seeing any
> issue with -usbdevice keyboard on Fedora.
I was using this:
bin/qemu-system-x86_64 \
-M pc_q35 -L q35-seabios/out \
-usbdevice keyboard \
-hdd ./Fedora-14-x86_64-netinst.iso
> Paolo pointed out that I was missing some ich9 specific initialization
> from docs/ich9-ehci-uhci.cfg. I've added that in the patch below. I have
> no idea if that will resolve this issue for you.
This patch does indeed fix the problem for me, thanks for sending it !
The only small observation I have is that you seem to name all three
UHCI devices "ich9-usb-uhci1". There's probably a better way than my
patch below (on top of the one you just sent), but here's the general
idea :)
Thanks,
--Gabriel
--- a/hw/pc_q35.c
+++ b/hw/pc_q35.c
@@ -185,23 +185,25 @@
if (usb_enabled) {
int i;
PCIDevice *usb;
DeviceState *usb_qdev;
+ char devname[] = "ich9-usb-uhciX";
/* Should we create 6 UHCI according to ich9 spec? */
usb = pci_create_multifunction(
host_bus, PCI_DEVFN(ICH9_USB_DEV, ICH9_USB_EHCI1_FUNC),
true, "ich9-usb-ehci1");
usb_qdev = &usb->qdev;
usb_qdev->id = g_strdup("ich9-usb-bus");
qdev_init_nofail(usb_qdev);
for (i = 0; i < 3; i++) {
+ sprintf(devname, "ich9-usb-uhci%d", i + 1);
usb = pci_create_multifunction(
host_bus, PCI_DEVFN(ICH9_USB_DEV, ICH9_USB_UHCI1_FUNC + i),
- true, "ich9-usb-uhci1");
+ true, devname);
usb_qdev = &usb->qdev;
qdev_prop_set_string(usb_qdev, "masterbus",
"ich9-usb-bus.0");
qdev_prop_set_uint32(usb_qdev, "firstport", i * 2);
qdev_init_nofail(usb_qdev);
}
next prev parent reply other threads:[~2012-10-28 15:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-24 14:55 [Qemu-devel] q35: usb keyboard trouble Gabriel L. Somlo
2012-10-26 20:24 ` Jason Baron
2012-10-28 15:37 ` Gabriel L. Somlo [this message]
2012-10-29 7:11 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121028153717.GD29280@hedwig.ini.cmu.edu \
--to=gsomlo@gmail.com \
--cc=hdegoede@redhat.com \
--cc=jbaron@redhat.com \
--cc=kraxel@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).