From patchwork Thu Jun 22 07:38:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupinder Thakur X-Patchwork-Id: 106160 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp2327088qgd; Thu, 22 Jun 2017 00:41:11 -0700 (PDT) X-Received: by 10.36.91.129 with SMTP id g123mr723095itb.0.1498117270980; Thu, 22 Jun 2017 00:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498117270; cv=none; d=google.com; s=arc-20160816; b=Yv1URcPdw9jun7qNQAO1RlHxU9gEYWzVu0mulWBsEv08Pw5lMCnnu0hpTnVDl0nl3i fVguYhWCD3639bh96cze/Ja3yGYngIjNQRLIovmFsQvxK2rdxhqBzB0XNaasCosy51A5 V13WPJZ2j/Qo9TUDpG0xd4ZfVQwHcIvmFIn6xl+GdY28HkW1sB1don0YgEOUoRIjnUH0 DYlQ9WTJIe1Jf+IIPd1Zojmow8xxLHzqcyQ/+dnLFMu/DKu7qPr3REV1DumFlDhEhAi1 BF1BwG482TJhxz38A3/96c9tOTCDDVIZF6FKFZ6FiYJP6+vkL0+QLTKHGavxx3gYn5Lk Mz5Q== 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 :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:dkim-signature:arc-authentication-results; bh=tXrCe1Vtlrj79YcdlnPNq9cTsmIGCoXVeFsJz3DUNCg=; b=RxBpzXShwmrYZSThwDymLoF21yxZ4gueHjSI47DWIFS7lvsNy8PdXLUe5Nr+Je2f35 MhfSYIMGsBIwAd7dbDVjFdlqfIMGStGNvLM/caWVfcnO1Kp74mx4MBsZhjfl1C/jeFTn +cZz7Dbm8Cbud5s2qTuB6uh4QLD13OGulDzAZVwuBQQa7Mf1OVRTUqvMCIuuP0EeQ4BF oyh9y9cDc7IP/jzrGxMiIL3tgI1BNf9COeMtBRmHmXSvmfhN7WMdFt5rGV8tnPtHahXP Kp2UwAXW1+b0vV1u/kIiktdNZULhx3e8b7PzLG+lrpXofjFwMsORagZuWdRcm5PzMeQ1 QRUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=NCRGMVxD; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id q66si343686itq.126.2017.06.22.00.41.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jun 2017 00:41:10 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=NCRGMVxD; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNwia-0006Ag-Kz; Thu, 22 Jun 2017 07:39:56 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNwiZ-00067S-3w for xen-devel@lists.xenproject.org; Thu, 22 Jun 2017 07:39:55 +0000 Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id 28/AE-01992-A447B495; Thu, 22 Jun 2017 07:39:54 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRWlGSWpSXmKPExsVyMfTABl3PEu9 Ig1nHDSy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oxtr48zFZxTqTh3tZutgfGkXBcjF4eQwAxG ia3bv7B1MXJysAjMY5Y4/VcAxJYQ6GeVmP/eH8JOkzh2bT0bhF0lcfjwaWYQW0hAS+LoqdmsE IP2MUl8udUAlODgYBMwkZjVIQFSIyKgJHFv1WQmkBpmgfmMEk2TesEGCQtESsy6eIANpJ5FQF VizaUikDCvgI9E77TTjBC75CRunusE28UJFF+xYyE7xF5viV1nJrNMYBRYwMiwilGjOLWoLLV I18hYL6koMz2jJDcxM0fX0MBULze1uDgxPTUnMalYLzk/dxMjMKzqGRgYdzDuaPc7xCjJwaQk yvs/zztSiC8pP6UyI7E4I76oNCe1+BCjDAeHkgSvcjFQTrAoNT21Ii0zBxjgMGkJDh4lEd4Wk Fbe4oLE3OLMdIjUKUZjjitX1n1h4phyYPsXJiGWvPy8VClx3tlFQKUCIKUZpXlwg2CRd4lRVk qYl5GBgUGIpyC1KDezBFX+FaM4B6OSMK8+yBSezLwSuH2vgE5hAjrlxREPkFNKEhFSUg2MNY4 P28Of1C6Rl9lU0MR+TffPgdi+O82yO9S3uwSkM/tc9VavSRcrFA81TlCTOXBz8ccT33v1dbiN Mk3ya98k3V8XL7ysavat+9USP4JYFzF56V6I3si7Wub0mpQtVaGnZrXJzPlWY/e+bvcioeAvL VMd7Kc+0dxrvej4O5sUn4o/EjKrTPKUWIozEg21mIuKEwH2/fcTtwIAAA== X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-7.tower-206.messagelabs.com!1498117192!101651560!1 X-Originating-IP: [209.85.192.176] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30299 invoked from network); 22 Jun 2017 07:39:53 -0000 Received: from mail-pf0-f176.google.com (HELO mail-pf0-f176.google.com) (209.85.192.176) by server-7.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 22 Jun 2017 07:39:53 -0000 Received: by mail-pf0-f176.google.com with SMTP id s66so5123390pfs.1 for ; Thu, 22 Jun 2017 00:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g95H2qSI90FCwKNLDsVhfUA6l2A2qmzSq7WPYBbVr9g=; b=NCRGMVxDyPrNe8c4DUDY6wIbkmT7fNXlcNLueo23LZ0kqiQXew6/RM0GztItaq/vQY TCFLymbbk3LkWrbSfCpdCKGSMjlX8HTjCf2wtzKxHi+PJG3eRHjZUn0Ew7oupPETtHnx Smj3SHhROolAnMfu+2z8WvUJj8jePHHw/4I4s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=g95H2qSI90FCwKNLDsVhfUA6l2A2qmzSq7WPYBbVr9g=; b=qRbB2cb8vEJERoybojcJJf+2Vi0dm8pZ/4TmJAlBBkVF2DX9uMzrb+rzZ7cn8dzWrZ JobxKj0ORcwQ4IMy9S+ZVysSv2VqgrS0QWwkzx6h3RUBH7orgOMU0nne1ZkKFPL87gzQ unfUw4aNqjLIC9f61DlxVJeocsa6wwAfaT0ye2Jk3mo3A6pJ4eTtSjZ4f9LnLCOxAyG3 LdO0rjL48wATBwu+KAimVLw2CX9ApiyRb4twJNnko5PQiFt8Jbr6UTife3y+o+TdnplT QwQvM7LiOVStkwP6z3gjJ1y+ySPPMM0zAKOzz16XehQtL+fFLODN7ZMGnCKUe1a3xl4p OfRQ== X-Gm-Message-State: AKS2vOwTFUBdWqCRD8mFg+6JzK9O9vUzvB/vCHWjzJnynXAjIGUyyiff Nwt/26AXn1TStrvnsMlTDw== X-Received: by 10.101.83.138 with SMTP id x10mr1231122pgq.205.1498117191715; Thu, 22 Jun 2017 00:39:51 -0700 (PDT) Received: from blr-ubuntu-linaro.wlan.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id w69sm1883591pfk.107.2017.06.22.00.39.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jun 2017 00:39:51 -0700 (PDT) From: Bhupinder Thakur To: xen-devel@lists.xenproject.org Date: Thu, 22 Jun 2017 13:08:52 +0530 Message-Id: <1498117132-27139-18-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498117132-27139-1-git-send-email-bhupinder.thakur@linaro.org> References: <1498117132-27139-1-git-send-email-bhupinder.thakur@linaro.org> Cc: Wei Liu , Julien Grall , Stefano Stabellini , Ian Jackson Subject: [Xen-devel] [PATCH 17/17 v5] xen/arm: vpl011: Update documentation for vuart console support X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" 1. Update documentation for a new vuart option added. 2. Update documentation about SPI irq reserved for vuart. Signed-off-by: Bhupinder Thakur Reviewed-by: Stefano Stabellini Acked-by: Wei Liu --- CC: Ian Jackson CC: Wei Liu CC: Stefano Stabellini CC: Julien Grall Changes since v4: - Minor change to rename "pl011" to "sbsa_uart". Since it is a minor change I have retained the reviewed-by and acked-by tags. docs/man/xl.cfg.pod.5.in | 9 +++++++++ docs/misc/console.txt | 44 +++++++++++++++++++++++++++++++++----------- 2 files changed, 42 insertions(+), 11 deletions(-) diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in index 38084c7..0737ed1 100644 --- a/docs/man/xl.cfg.pod.5.in +++ b/docs/man/xl.cfg.pod.5.in @@ -1105,6 +1105,15 @@ Allow a guest to access specific physical IRQs. It is recommended to only use this option for trusted VMs under administrator's control. +If the virtual uart is enabled then irq 32 is reserved for it. By +default, it is disabled. If the user specifies the following option in +the VM config file then the vuart gets enabled. Today, only the +"sbsa_uart" model is supported. + +vuart = "sbsa_uart" + +Currently vuart console is available only for ARM64. + =item B Limit the guest to using at most N event channels (PV interrupts). diff --git a/docs/misc/console.txt b/docs/misc/console.txt index 16da805..d081acc 100644 --- a/docs/misc/console.txt +++ b/docs/misc/console.txt @@ -19,7 +19,20 @@ The first PV console path in xenstore remains: /local/domain/$DOMID/console -the other PV consoles follow the conventional xenstore device path and +The virtual UART console path in xenstore is defined as: + +/local/domain/$DOMID/vuart/0 + +The vuart console provides access to a virtual SBSA UART on ARM64 systems. +To enable vuart the following line has to be added to the guest configuration +file: + +vuart = "sbsa_uart" + +In Linux you can select the virtual SBSA UART by using the "ttyAMA0" +console instead of "hvc0". + +The other PV consoles follow the conventional xenstore device path and live in: /local/domain/$DOMID/device/console/$DEVID. @@ -61,6 +74,14 @@ output = pty The backend will write the pty device name to the "tty" node in the console frontend. +For the PV console the tty node is added at + +/local/domain/$DOMID/console/tty + +For the virtual UART console the tty node is added at + +/local/domain/$DOMID/vuart/0/tty + If the toolstack wants a listening Unix domain socket to be created at path , a connection accepted and data proxied to the console, it will write: @@ -79,8 +100,8 @@ For example: ioemu The supported values are only xenconsoled or ioemu; xenconsoled has -several limitations: it can only be used for the first PV console and it -can only connect to a pty. +several limitations: it can only be used for the first PV or virtual UART +console and it can only connect to a pty. Emulated serials are provided by qemu-dm only to hvm guests; the number of emulated serials depends on how many "-serial" command line options @@ -90,14 +111,15 @@ xenstore in the following path: /local/domain/$DOMID/serial/$SERIAL_NUM/tty -xenconsole is the tool to connect to a PV console or an emulated serial -that has a pty as output. Xenconsole takes a domid as parameter plus an -optional console type (pv for PV consoles or serial for emulated -serials) and console number. Depending on the type and console -number, xenconsole will look for the tty node in different xenstore -paths, as described above. If the user doesn't specify the console type -xenconsole will try to guess: if the guest is a pv guest it defaults to -PV console, if the guest is an hvm guest it defaults to emulated serial. +xenconsole is the tool to connect to a PV or virtual UART console or an +emulated serial that has a pty as output. Xenconsole takes a domid as +parameter plus an optional console type (pv for PV consoles, vuart for +virtual UART or serial for emulated serials) and console number. +Depending on the type and console number, xenconsole will look for the tty +node in different xenstore paths, as described above. If the user doesn't +specify the console type xenconsole will try to guess: if the guest is a pv +guest it defaults to PV console, if the guest is an hvm guest it defaults to +emulated serial. By default xl creates a pv console for hvm guests, plus an emulated serial if the user specified 'serial = "pty"' in the VM config file.