From patchwork Tue Jun 6 17:25:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupinder Thakur X-Patchwork-Id: 103183 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1536820qgd; Tue, 6 Jun 2017 10:28:11 -0700 (PDT) X-Received: by 10.107.35.13 with SMTP id j13mr26037555ioj.75.1496770091741; Tue, 06 Jun 2017 10:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496770091; cv=none; d=google.com; s=arc-20160816; b=GBUdstUjwXBYUViH+Yxv0NgdinJKzkRrM47uN8ci4tuq57HJ5lnoJvPBM9sRCJj4vG 1BFETvd5JDZOge1L5/8qC1heQ7ptw8wMpYLc/PjWevp2iNDKFOXurdPPRVIxoCuubmJY D1asX/5eFJgP/xfu4GPtLvi1KusiOT4vTvnrEV8njD9NJr3Kv7156iMevEq9y87VtLnQ FcfyGj/Zp281CYQ3PNiLccCln7D4Sk0c9YNHEpRG5Q3+nOWrTJXn2g/qDP2JXMndld6i cevLDxsapwNCCuOE53D1rEXM6TlTSPLZ2QGteZkAG4LOTLx2H7cxFnsUSTVSXs+FJpwN oiMA== 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=+cayodNjneJlZ9gZjChGDhnsh/nulYVJSWC4GGhIJ3s=; b=p5FcxDVgtXOC9/pY4dZMd61uj2Bg9Q8z5iKQ6Ct93Vbp733Qts3PVv5jgGJW/1O+S2 K+s1eHbxHDsvGlRLlvDS3ALukWYiN9jIdXRaZROtvn/Yd6VWblkS5QIxjFI6yTfUVAW/ gmL5DPHOzlojOWarArUk6M3SKhIu7JVj1xvH/By25AdUx+I1PXAemUVqyf2SvDaKxOHB VKkbb1M5HTQDV2YIePScYj/xWpdrjaDN2p78oQgiSKK4s7y5weLKafNMzU1DtAHSvpyO Zb5Bil3scbPB5fRgLvUWmklKyJjLXVOINq+if6yNAxMPsANF8jWoInkwfKTEKi9DVVry Xecg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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 k78si15785336ita.112.2017.06.06.10.28.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Jun 2017 10:28:11 -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; 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 1dIIFJ-000269-46; Tue, 06 Jun 2017 17:26:21 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIIFI-000248-4F for xen-devel@lists.xenproject.org; Tue, 06 Jun 2017 17:26:20 +0000 Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id F0/A6-17076-BB5E6395; Tue, 06 Jun 2017 17:26:19 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHIsWRWlGSWpSXmKPExsXiVRuspbvrqVm kwYL5uhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8a767fYC1YrVTSvN2tgPCLTxcjFISQwg1Fi 45S9zCAOi8A8Zomvb/rZQBwJgX5WiQkXF7N2MXICOWkSX+dfY4KwqyXadr9iA7GFBLQkjp6az QoxqplJYvX204xdjBwcbAImErM6JEBqRASUJO6tmswEUsMsMJ9RomlSLxtIjbBApMTJ/cUgNS wCqhJflv8G28Ur4COx++tZRohdchI3z3Uyg9icQPGZ55cwQuz1ltjT0MY4gVFgASPDKkb14tS istQiXXO9pKLM9IyS3MTMHF1DA2O93NTi4sT01JzEpGK95PzcTYzAsGIAgh2Mjd+dDjFKcjAp ifJGXjKLFOJLyk+pzEgszogvKs1JLT7EKMPBoSTBG/kEKCdYlJqeWpGWmQMMcJi0BAePkgjv5 AdAad7igsTc4sx0iNQpRl2OSQe2f2ESYsnLz0uVEuddATJDAKQoozQPbgQs2i4xykoJ8zICHS XEU5BalJtZgir/ilGcg1FJmDcFZApPZl4J3KZXQEcwAR3Bd8kE5IiSRISUVAOjnPGsuI8y95i iDrRYT15cIGbibRgocW+Nxa78Va1TNSIOl//beuKscvb0c2s+NLkdEDm8c6fPs3RR4YYfshmq fAsWqC+PUZ0W8UFvKtfZmUnhgeqrWW2+zC8wbbXJyhFfNKlr34Zp23q5b/hOKzDJ1Pu99oD71 NN6kw+U15x8JO01cW9A7N4+JZbijERDLeai4kQAbuRXkbECAAA= X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-10.tower-31.messagelabs.com!1496769977!103666288!1 X-Originating-IP: [74.125.83.42] 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 48417 invoked from network); 6 Jun 2017 17:26:18 -0000 Received: from mail-pg0-f42.google.com (HELO mail-pg0-f42.google.com) (74.125.83.42) by server-10.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 6 Jun 2017 17:26:18 -0000 Received: by mail-pg0-f42.google.com with SMTP id v18so27204811pgb.1 for ; Tue, 06 Jun 2017 10:26:18 -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=f/pb3ed979C9eGW8CQnYS1QomAP0Wt6Osf29heVhA7o=; b=VocRiUz1y+DHZ5PxjFTXLGHTbO3a7abU/MP3zqZqzaumzT9cbphpfWixplOaBYxyWt vDyni1BjLNhuvqF9+wTUz8xuL69hTVozHMVRTQUmTZQJBdP8F5e2Cxxl9khH6lC2rtcM MLnztFJOgEn/DmaDq9qz2rxZMZMteN9lJPwA4= 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=f/pb3ed979C9eGW8CQnYS1QomAP0Wt6Osf29heVhA7o=; b=mPQyqvDyUqbfImBzefNJg+vB2MToaEOHiKoV5bsT+SS02SHT2ViWjyyGNxmRvcCWnO 9K49P5oKbarok30qTlCgTQIO7kfiZ6QAyrEvPTeeOus0pUvwf344TTCKOjtgubZShtTW q94gmiL1/TsjFNFXWiPhpZT49dOnVVLBtL4YHBzENMTkvTjHqePB7iba/HCrOd86hGas MF0vxTUx98MHx++jIR9FNly7R4YUjNeehLs3AaH4rUxbIGsZOD8WD1mkFjiYzf4UJm/n tSurIEjpdEhu19oVPhEOGYUwZ/B2zq/g6YWFIhOE3zyAO++cP0NJsyHxZsdOkbPqkWDt 3KUw== X-Gm-Message-State: AODbwcDo3Xi2dODbfbo7Y2iE7berqboU9P30JMVZz9qEhaVn7A/CqBbQ iWLxRHPXsGOYGBY4VpjVuA== X-Received: by 10.98.105.137 with SMTP id e131mr13834819pfc.56.1496769976751; Tue, 06 Jun 2017 10:26:16 -0700 (PDT) Received: from blr-ubuntu-linaro.wlan.qualcomm.com ([103.5.19.18]) by smtp.gmail.com with ESMTPSA id 62sm6031632pfr.90.2017.06.06.10.26.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Jun 2017 10:26:16 -0700 (PDT) From: Bhupinder Thakur To: xen-devel@lists.xenproject.org Date: Tue, 6 Jun 2017 22:55:29 +0530 Message-Id: <1496769929-23355-15-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496769929-23355-1-git-send-email-bhupinder.thakur@linaro.org> References: <1496769929-23355-1-git-send-email-bhupinder.thakur@linaro.org> Cc: Wei Liu , Julien Grall , Stefano Stabellini , Ian Jackson Subject: [Xen-devel] [PATCH 14/14 v4] 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 vpl011. Signed-off-by: Bhupinder Thakur Reviewed-by: Stefano Stabellini Acked-by: Wei Liu --- CC: ij CC: wl CC: ss CC: jg 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 13167ff..3397cda 100644 --- a/docs/man/xl.cfg.pod.5.in +++ b/docs/man/xl.cfg.pod.5.in @@ -1085,6 +1085,15 @@ Allow a guest to access specific physical IRQs. It is recommended to use this option only for trusted VMs under administrator 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 +"pl011" model is supported. + +vuart = "pl011" + +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..48fe914 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 pl011 UART on ARM64 systems. +To enable vuart the following line has to be added to the guest configuration +file: + +vuart = "pl011" + +In Linux you can select the virtual pl011 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.