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 1DE3BB6F62 for ; Thu, 3 Nov 2011 09:19:41 +1100 (EST) Subject: [PATCH RFC 0/3] Support multiple VirtioConsoles. To: Stephen Rothwell , Greg Kroah-Hartman , Konrad Rzeszutek Wilk , Benjamin Herrenschmidt , Rusty Russell , Miche Baker-Harvey , linux-kernel@vger.kernel.org, Mike Waychison , xen-devel@lists.xensource.com, Anton Blanchard , Amit Shah , virtualization@lists.linux-foundation.org, ppc-dev From: Miche Baker-Harvey Date: Wed, 02 Nov 2011 15:19:06 -0700 Message-ID: <20111102221905.9722.62090.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: , 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(-) --