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: 161639 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1963936jan; Tue, 2 Apr 2019 09:44:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuFkx646E0ZPaiCKca8MG93VX/N+N57uEjAaNceKxU/Qfi56sD7JDEkiRLM/+a3fNj3zog X-Received: by 2002:a25:3853:: with SMTP id f80mr8623702yba.204.1554223462716; Tue, 02 Apr 2019 09:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554223462; cv=none; d=google.com; s=arc-20160816; b=vQsb3ykhf9GPAVifNOiRni4IUIfjLDrka4yF+ACg3+rdQTp+CBagxZJ57367UJQWPt iAjM9V0e9iNsRHldhLCYG+Et/UF3hgt5f302tsSScNa9pUA3TQ6vXbo5DxYOWIgGWRM6 RcAEwgL4uieRhVTKEz0LTvXyY30KM7tQa/+HxNK7JvBEOpJt6yYIIjmD+oDd2XggywQa ZH/bgoA/eefiJv3lQdsvfqpY8pTEicUKgwAOsD2qGa7VGYnmk+u/XS96t/EtPOaIgo0G Y6gW/mZLOTHVmtLvphiFRubxE/cWoXk8mpWpjAEybVNyRf7tb9qVemHoejZqcbYNfM9z pttQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:message-id:date:to:from; bh=MKgV+aSxkxvMat0/OngWricnuHkzud7QBGELk7TbkYY=; b=UptcIDsVcyJanEQOSMpq3t3pxnNzJIHRgSS3oyuwHaCJv58GyBbpmgQnXiGnleGSMZ EcBuqZyBBfZs3Z/WpA3zRjKDfikFFU2cALPosA2BDeVgQzceqggkDRGmIS0p7XS0jkCu +0Wvxn/qal8WgG7V6dxezKmqe0neKYFkA1qaxyTXNKgFJhed2eBspgXxfSXVp3scsjja n5xoAeQJ+G4ATKq5kTZrWY/3DDz72d8vgq4bNKGFnY6jPBd8ND//zs8LiHZzOkVE1984 hRjaa8GGEqLgSLdnYSLlY5N88fUJNj3X4zVOW84avEwPNGG2rUMfjW1A0WMzzXJ7jfb1 dWVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id m2si8189710ybp.54.2019.04.02.09.44.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 09:44:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org 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" 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(-)