qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: aliguori@us.ibm.com
Cc: ehrhardt@linux.vnet.ibm.com, qemu-devel@nongnu.org,
	borntraeger@de.ibm.com
Subject: [Qemu-devel] [PATCH 4 of 4] kvm-userpace: add virtio-console initializer for powerpc
Date: Tue, 13 Jan 2009 16:37:48 +0100	[thread overview]
Message-ID: <e07b13e46e0f33cf337f.1231861068@HelionPrime> (raw)
In-Reply-To: <patchbomb.1231861064@HelionPrime>

# HG changeset patch
# User Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
# Date 1231856031 -3600
# Node ID e07b13e46e0f33cf337fa24b9ab619718cbc2a38
# Parent  75e548434dfe284787222f10704987f202c3e5ee
kvm-userpace: add virtio-console initializer for powerpc

This adds an intialization of virtio console for powerpc.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---
 ppc440_bamboo.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
--- a/hw/ppc440_bamboo.c
+++ b/hw/ppc440_bamboo.c
@@ -17,6 +17,7 @@
 #include "hw.h"
 #include "pci.h"
 #include "virtio-blk.h"
+#include "virtio-console.h"
 #include "boards.h"
 #include "sysemu.h"
 #include "ppc440.h"
@@ -116,6 +117,12 @@ static void bamboo_init(ram_addr_t ram_s
             unit_id++;
         }
 
+        /* Add virtio console devices */
+        for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
+            if (virtcon_hds[i])
+                virtio_console_init(pcibus, virtcon_hds[i]);
+        }
+
         /* Register network interfaces. */
         for (i = 0; i < nb_nics; i++) {
             nd = &nd_table[i];

  parent reply	other threads:[~2009-01-13 15:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13 15:37 [Qemu-devel] [PATCH 0 of 4] Add virtio-console support to qemu Christian Ehrhardt
2009-01-13 15:37 ` [Qemu-devel] [PATCH 1 of 4] kvm-userpace: add virtio-console support Christian Ehrhardt
2009-01-15 19:55   ` Anthony Liguori
2009-01-19 10:09   ` Mark McLoughlin
2009-01-13 15:37 ` [Qemu-devel] [PATCH 2 of 4] kvm-userpace: add virtio-console cmdline option Christian Ehrhardt
2009-01-19 10:11   ` Mark McLoughlin
2009-01-13 15:37 ` [Qemu-devel] [PATCH 3 of 4] kvm-userpace: add virtio-console initializer for x86 Christian Ehrhardt
2009-01-13 15:37 ` Christian Ehrhardt [this message]
2009-01-13 20:27 ` [Qemu-devel] [PATCH 0 of 4] Add virtio-console support to qemu Avi Kivity
2009-01-13 20:34   ` Anthony Liguori
2009-01-13 20:39     ` Avi Kivity
2009-01-13 20:44       ` Anthony Liguori
2009-01-13 20:41   ` Christian Borntraeger
2009-01-13 20:58     ` Avi Kivity
2009-01-13 21:00     ` Avi Kivity
2009-01-15 20:08 ` Anthony Liguori

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=e07b13e46e0f33cf337f.1231861068@HelionPrime \
    --to=ehrhardt@linux.vnet.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=borntraeger@de.ibm.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).