qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Li Zhang <zhlcindy@gmail.com>
To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: aliguori@us.ibm.com, agraf@suse.de,
	Li Zhang <zhlcindy@linux.vnet.ibm.com>,
	david@gibson.dropbear.id.au
Subject: [Qemu-devel] [Qemu-ppc][PATCH v8 2/2] Add USB enablement on sPAPR platform.
Date: Wed, 15 Aug 2012 01:49:35 +0800	[thread overview]
Message-ID: <1344966575-25952-2-git-send-email-zhlcindy@linux.vnet.ibm.com> (raw)
In-Reply-To: <1344966575-25952-1-git-send-email-zhlcindy@linux.vnet.ibm.com>

USB is enabled as default on sPAPR platform because it needs
USB keyboard and USB mouse when VGA is enabled.

This patch is to add USB controller on sPAPR platform.

Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com>
---
 hw/spapr.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/hw/spapr.c b/hw/spapr.c
index 81c9343..b45401b 100644
--- a/hw/spapr.c
+++ b/hw/spapr.c
@@ -710,6 +710,11 @@ static void ppc_spapr_init(ram_addr_t ram_size,
         spapr_vscsi_create(spapr->vio_bus);
     }
 
+    if (usb_enabled(true)) {
+        pci_create_simple(QLIST_FIRST(&spapr->phbs)->host_state.bus,
+                          -1, "pci-ohci");
+    }
+
     if (rma_size < (MIN_RMA_SLOF << 20)) {
         fprintf(stderr, "qemu: pSeries SLOF firmware requires >= "
                 "%ldM guest RMA (Real Mode Area memory)\n", MIN_RMA_SLOF);
-- 
1.7.7.6

  reply	other threads:[~2012-08-14 17:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-14 17:49 [Qemu-devel] [Qemu-ppc][PATCH v8 1/2] Add USB option in machine options Li Zhang
2012-08-14 17:49 ` Li Zhang [this message]
2012-08-14 18:09   ` [Qemu-devel] [Qemu-ppc][PATCH v8 2/2] Add USB enablement on sPAPR platform Alexander Graf
2012-08-15  6:00     ` Li Zhang
2012-08-15  7:02       ` Alexander Graf
2012-08-16  1:29         ` Li Zhang
2012-08-16  1:52           ` Benjamin Herrenschmidt
2012-08-16  2:06             ` [Qemu-devel] [Qemu-ppc] [PATCH " David Gibson
2012-08-16  2:17               ` Li Zhang
2012-08-16  2:15             ` [Qemu-devel] [Qemu-ppc][PATCH " Li Zhang
2012-08-14 18:08 ` [Qemu-devel] [Qemu-ppc][PATCH v8 1/2] Add USB option in machine options Alexander Graf
2012-08-15  1:23   ` Li Zhang

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=1344966575-25952-2-git-send-email-zhlcindy@linux.vnet.ibm.com \
    --to=zhlcindy@gmail.com \
    --cc=agraf@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=zhlcindy@linux.vnet.ibm.com \
    /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).