Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753650AbbBPTBH (ORCPT ); Mon, 16 Feb 2015 14:01:07 -0500 Received: from mail-qg0-f51.google.com ([209.85.192.51]:54702 "EHLO mail-qg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752961AbbBPTBG (ORCPT ); Mon, 16 Feb 2015 14:01:06 -0500 Message-ID: <54E23E6C.4030306@hurleysoftware.com> Date: Mon, 16 Feb 2015 14:01:00 -0500 From: Peter Hurley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Petr Tesarik CC: Nan Li , gregkh@linuxfoundation.org, jslaby@suse.cz, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] pty: BREAK for pseudoterminals References: <1423163489-26538-1-git-send-email-nli@suse.com> <54E1EAC2.6020906@hurleysoftware.com> <20150216142244.33378c18@hananiah.suse.cz> <54E219B0.2070206@hurleysoftware.com> <20150216181646.0c85317c@hananiah.suse.cz> <54E23748.8090801@hurleysoftware.com> In-Reply-To: <54E23748.8090801@hurleysoftware.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2247 Lines: 54 On 02/16/2015 01:30 PM, Peter Hurley wrote: > On 02/16/2015 12:16 PM, Petr Tesarik wrote: >> On Mon, 16 Feb 2015 11:24:16 -0500 >> Peter Hurley wrote: >>> On 02/16/2015 08:22 AM, Petr Tesarik wrote: >>>> On Mon, 16 Feb 2015 08:04:02 -0500 >>>> Peter Hurley wrote: >>>>> On 02/05/2015 02:11 PM, Nan Li wrote: [...] >>> AFAICT this is simply for convenience, as sysrq functionality is >>> already available via sendkey. >> >> That's a completely different story. This patch (after fixing it to >> work with the terminal end) would allow me to set up a QEMU emulated >> serial port using a pty (i.e. "-chardev pty") and send a BREAK signal >> to it, no matter what is running in the guest. > > >> I mean, I can run an emulated MIPS64 as a QEMU guest on an x86_64 host, >> and still somehow pass SysRq to it. IIUC this will never be possible >> with KVP. Sorry about that; accidentally pressed send :/ I see this as a shortcoming of the emulation, not of the underlying IPC used. I don't see why this couldn't be done in-band with any IPC. >> Another use case: In my job, I'm struggling with different serial >> consoles (some using ipmi SoL, some using telnet to a service >> processor, some connected with a real RS-232 link). If I could send >> BREAK over a pty, I could extend ipmiconsole to translate it to the SOL >> message, telnet to translate it to the telnet escape, amtterm to send a >> corresponding message... Then I could send a BREAK to any of my systems >> simply by pressing 'C-A b' in screen(1) without having to think how is >> this particular machine connected and what the correct sequence is for >> that protocol. I need to think more on this. Regards, Peter Hurley PS - it's interesting that you mention a service processor, because the hacked support for remote supervisor adapter is and has been the #1 barrier to splitting the 8250 driver. I literally have spent days trying to come up with an acceptable solution. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/