From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 40112B6F80 for ; Wed, 9 Nov 2011 06:30:13 +1100 (EST) Received: from hpaq5.eem.corp.google.com (hpaq5.eem.corp.google.com [172.25.149.5]) by smtp-out.google.com with ESMTP id pA8JU825002661 for ; Tue, 8 Nov 2011 11:30:08 -0800 Received: from miche.sea.corp.google.com (miche.sea.corp.google.com [172.31.71.52]) by hpaq5.eem.corp.google.com with ESMTP id pA8JU61N014325 for ; Tue, 8 Nov 2011 11:30:07 -0800 Received: from miche.sea.corp.google.com (localhost [IPv6:::1]) by miche.sea.corp.google.com (Postfix) with ESMTP id 6852020509 for ; Tue, 8 Nov 2011 11:30:06 -0800 (PST) Subject: [PATCH RFC v2 0/3] Support multiple VirtioConsoles. To: ppc-dev From: Miche Baker-Harvey Date: Tue, 08 Nov 2011 11:30:06 -0800 Message-ID: <20111108193005.30707.23990.stgit@miche.sea.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , (Amit pointed out that the patches never went out. This is a resend of the series meant to go out on 11/2/2011; I've marked it "v2".) This patchset applies to linux-next/next-20111102. This series implements support for multiple virtio_consoles using KVM. This patchset addresses several issues associated with trying to establish multiple virtio consoles. I'm trying to start a guest via KVM that supports multiple virtual consoles, with getty's on each, and with some being console devices. These patches let me establish more than one VirtioConsole (I'm running eight at the moment), and enable console output appearing on one of them. It still doesn't successfully generate console output on multiple VirtioConsoles. Let me apologise for my last patch having gotten into Linus' tree, and leaving other people to deal with crashes. I had meant to be asking for guidance, but I didn't mark it as "RFC". This series reflects the input from Konrad Rzeszutek, Amit Shah, Stephen Boyd, and Rusty Russell. I think we do have to limit hvc_alloc() to one thread. I would appreciate any comments or feedback, or accept if appropriate. Thanks, Miche Baker-Harvey --- Miche Baker-Harvey (3): virtio_console: Fix locking of vtermno. hvc_init(): Enforce one-time initialization. Use separate struct console structure for each hvc_console. drivers/char/virtio_console.c | 9 ++++++--- drivers/tty/hvc/hvc_console.c | 33 +++++++++++++++++++++++++++++++-- drivers/tty/hvc/hvc_console.h | 1 + 3 files changed, 38 insertions(+), 5 deletions(-) --