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 3 of 4] kvm-userpace: add virtio-console initializer for x86
Date: Tue, 13 Jan 2009 16:37:47 +0100	[thread overview]
Message-ID: <75e548434dfe28478722.1231861067@HelionPrime> (raw)
In-Reply-To: <patchbomb.1231861064@HelionPrime>

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

This adds an intialization of virtio console for pc style hardware.

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

diff --git a/hw/pc.c b/hw/pc.c
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -35,6 +35,7 @@
 #include "fw_cfg.h"
 #include "virtio-blk.h"
 #include "virtio-balloon.h"
+#include "virtio-console.h"
 #include "hpet_emul.h"
 
 /* output Bochs bios info messages */
@@ -1113,6 +1114,14 @@ static void pc_init1(ram_addr_t ram_size
     /* Add virtio balloon device */
     if (pci_enabled)
         virtio_balloon_init(pci_bus);
+
+    /* Add virtio console devices */
+    if (pci_enabled) {
+        for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
+            if (virtcon_hds[i])
+                virtio_console_init(pci_bus, virtcon_hds[i]);
+        }
+    }
 }
 
 static void pc_init_pci(ram_addr_t ram_size, int vga_ram_size,

  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 ` Christian Ehrhardt [this message]
2009-01-13 15:37 ` [Qemu-devel] [PATCH 4 of 4] kvm-userpace: add virtio-console initializer for powerpc Christian Ehrhardt
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=75e548434dfe28478722.1231861067@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).