From patchwork Tue Apr 2 16:42:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 10882119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 618E41575 for ; Tue, 2 Apr 2019 16:44:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D2A226E73 for ; Tue, 2 Apr 2019 16:44:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4176327FA3; Tue, 2 Apr 2019 16:44:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EEB9726E78 for ; Tue, 2 Apr 2019 16:44:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hBMUx-0005xB-6M; Tue, 02 Apr 2019 16:42:55 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hBMUv-0005x6-GU for xen-devel@lists.xenproject.org; Tue, 02 Apr 2019 16:42:53 +0000 X-Inumbo-ID: 5b526834-5566-11e9-8320-8f9c4f9ffe81 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 5b526834-5566-11e9-8320-8f9c4f9ffe81; Tue, 02 Apr 2019 16:42:52 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8A8A980D; Tue, 2 Apr 2019 09:42:51 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC5AD3F721; Tue, 2 Apr 2019 09:42:49 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 2 Apr 2019 17:42:34 +0100 Message-Id: <20190402164238.1815-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH 0/4] xen/console: Bug fixes and doc improvement X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This series contains a bunch of bug fixes for the hypercall CONSOLEIO_write and some documentation. Note the patch #2 was originally sent in standalone, I have included here with comments addressed to keep everything together. Cheers, Julien Grall (4): xen/console: Properly buffer domU output when using CONSOLEIO_write xen/console: Don't treat NUL character as the end of the buffer xen/public: Document HYPERCALL_console_io() xen/console: Simplify domU console handling in guest_console_write xen/arch/arm/early_printk.c | 5 +-- xen/common/gdbstub.c | 6 ++-- xen/drivers/char/console.c | 71 ++++++++++++++++++--------------------- xen/drivers/char/consoled.c | 7 ++-- xen/drivers/char/serial.c | 8 +++-- xen/drivers/char/xen_pv_console.c | 10 +++--- xen/drivers/video/lfb.c | 14 ++++---- xen/drivers/video/lfb.h | 4 +-- xen/drivers/video/vga.c | 14 ++++---- xen/include/public/xen.h | 21 +++++++++++- xen/include/xen/console.h | 2 +- xen/include/xen/early_printk.h | 2 +- xen/include/xen/pv_console.h | 4 +-- xen/include/xen/serial.h | 4 +-- xen/include/xen/video.h | 4 +-- 15 files changed, 97 insertions(+), 79 deletions(-)