Message ID | 1506068606-17066-18-git-send-email-bhupinder.thakur@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp3011155qgf; Fri, 22 Sep 2017 01:26:06 -0700 (PDT) X-Received: by 10.107.12.198 with SMTP id 67mr7081299iom.189.1506068766439; Fri, 22 Sep 2017 01:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506068766; cv=none; d=google.com; s=arc-20160816; b=aba43wFas41GxhTAiZx3SuVK5H7V7qd0XxgcHpth3pbhD2lFVUe6YfFvOwUu1OEGtP TL+IUv20qZJDq4+TYJk2D1gX91txEv5aYmQk0UF7ufS8fOmA/5Gz6+QeUiC29qAPiJ1Y PimkXcUnluWSj/vB2TBJqBOyPdGQ37A4//EuZuFuKYMPaCklG3XnRsUMgTM4z90oSyin rKDZfRoEicEno/HtAVUX+BgzRuG6YVLjRrWMq9GOL+kV0I98l6KnkqvpFQHa3Wx1v4Bd 8Vd53qjqhrjmaR4S5Ks1yKlk8hE1vLltz9McPu+I9t8m+wLBeoy4eyFsNig/2ncE5uxp n4WQ== 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=H8RR8P9mLK0Yb6u6N61ymtzG/1SrqORpSqVSo+gXTcg=; b=cs5zwlekSnCU3G+g37O0gxBugFhdx34tc1j/cxNbqpVbrjFi41Cfva5ce0wHpCFKLB Lwngc8fIeEP83O2g9eVhhBZGtDR2LPZcQiL6O66vLEy06GbZCZxwTXhXHfCx/KZlwtiX It8o5I2pqH6G5//9OpQhlzLqt5NdaZ7bUHqH9FkQQ9u+TTgBW2+ZROzdOb9wjTbh/Sdu AJbZNQsFzN4aqQmTxzf6DcEQtmU4l9J9Lx+fTmZXdWGxTSddEwVeb2rQ1Q3bfsZwIqTR 8b/6Vm23mGxQlGi5dwRyLqajNaCibCxAA/zhfiDu8DUY4/d/Nznr2HwadJ0bc+Ha8nlA NOlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PRzoZ+u8; 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: <xen-devel-bounces@lists.xen.org> Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id m206si2883495ioa.343.2017.09.22.01.26.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 01:26:06 -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.s=google header.b=PRzoZ+u8; 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 <xen-devel-bounces@lists.xen.org>) id 1dvJGE-0004Pd-TX; Fri, 22 Sep 2017 08:24:34 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <bhupinder.thakur@linaro.org>) id 1dvJGD-0004Mz-E9 for xen-devel@lists.xenproject.org; Fri, 22 Sep 2017 08:24:33 +0000 Received: from [85.158.143.35] by server-10.bemta-6.messagelabs.com id B6/5D-03642-0C8C4C95; Fri, 22 Sep 2017 08:24:32 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRWlGSWpSXmKPExsXiVRuso7vrxJF Ig51PxSy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oxZq66wFEwQqFjxdT9LA+MW3i5GLg4hgRmM Ekd/nWMEcVgE5jFLzFq4j7mLkZNDQqCfVWLWZyYIO0/ixdpDbBB2msS1lp1ANRxAdrXEwU/sI GEhAS2Jo6dms0IM3cEk0bd3MjtIDZuAicSsDgmQGhEBJYl7qyYzgdQwC8xnlGia1As2U1ggXu LGgetgNouAqsSm59PBhvIK+Ei8OjmDHWKvnMTNc51gt3ECxdf+38ACsdhbYuuNqywTGAUXMDK sYlQvTi0qSy3SNddLKspMzyjJTczM0TU0MNPLTS0uTkxPzUlMKtZLzs/dxAgMNwYg2ME487L/ IUZJDiYlUd7HR45ECvEl5adUZiQWZ8QXleakFh9ilOHgUJLg3XkcKCdYlJqeWpGWmQMMfJi0B AePkghvOEiat7ggMbc4Mx0idYrRmGPfnlt/mDg6bt79wyTEkpeflyolzjsfpFQApDSjNA9uEC wiLzHKSgnzMgKdJsRTkFqUm1mCKv+KUZyDUUmYdxbIFJ7MvBK4fa+ATmECOqV8NdgpJYkIKak GRt85so/3nS16w7aRg5ftS3BK4925Jt8rhB5OnemjHXV362MdrY1r2SWevX+0cvrmvFa9Qu+b fd+ffA5+F5xjrTpFUic4VnL6iwLJeDnLG2cc1+RU3As+4K2wi/2gdUxM9NeJO50nsjjeu7Jzd voj1j//LW7+UtvrLXPA4mDMuxuLvxc33FqxLUeJpTgj0VCLuag4EQA9wEkpwwIAAA== X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-9.tower-21.messagelabs.com!1506068665!83960492!1 X-Originating-IP: [74.125.83.44] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20984 invoked from network); 22 Sep 2017 08:24:26 -0000 Received: from mail-pg0-f44.google.com (HELO mail-pg0-f44.google.com) (74.125.83.44) by server-9.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 22 Sep 2017 08:24:26 -0000 Received: by mail-pg0-f44.google.com with SMTP id c137so242214pga.11 for <xen-devel@lists.xenproject.org>; Fri, 22 Sep 2017 01:24:26 -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=cKW4VVAXHwcprLM7odui2WUoZIfS5KdXFh4XFIsCHUU=; b=PRzoZ+u81b+kFSx1+TdhY7Xv43CU5Apk3RKwar1KW/xzG3sZAI58UttGpzvFdeUeyQ CZje1XNJAWqIcSjMMui+fZe3vufpHHUFysewkQv6yXnH7xuQmVAfoQ0j7jRR0dCEH6P+ x4SxBFNB2kqclDEtsIK0G6C6lyNK+OMB8E+vg= 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=cKW4VVAXHwcprLM7odui2WUoZIfS5KdXFh4XFIsCHUU=; b=fJURtziSPDUAR203hXOve1pMIVXbUtok/J6CfPU6Ym5qfoppeeoq43Xp9j62OxXydf h+K4uKwpECULGYiM0BYw9yQkWwmsZqFZyEdDLWqu1Ang8zA6K/MWJXmS68ew45UHB6Pd YTJYYEYVtveIRqDxKsL1wdPirhZGqLBvctKBnRGt1+2VeuOFfNgF/8G+fUCRyA9zY5RK +UyEHOt43GCk4Kn69+t95W/o4/tYCeLS6qa7a3B1cn5dXTb9q7py+fz8hQPZyxthB392 2S3UIME5zitce3SA1kXMYN6HOBtynaMAxIGhPk2hR8MYIyP1oUu6z2XnVLPLftecH6/j nNdA== X-Gm-Message-State: AHPjjUgZgGDG9puOnWUbU+TM22UOEr5M9mVU/q5Sd/Grn56G+n+5oQ43 pQxKFoR/xbEAystKMhhFQNlHmGN1yp0= X-Google-Smtp-Source: AOwi7QBK+qon706fWZCJ74Kcatk5LUr35xQK4ijVdbQWTBwIjSwOkPdVD9kJSF4FsJTVvlsiYFEzrQ== X-Received: by 10.159.204.140 with SMTP id t12mr8443831plo.192.1506068664592; Fri, 22 Sep 2017 01:24:24 -0700 (PDT) Received: from blr-ubuntu-linaro.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id f74sm5569284pfa.36.2017.09.22.01.24.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 01:24:24 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Fri, 22 Sep 2017 13:53:16 +0530 Message-Id: <1506068606-17066-18-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506068606-17066-1-git-send-email-bhupinder.thakur@linaro.org> References: <1506068606-17066-1-git-send-email-bhupinder.thakur@linaro.org> Cc: Wei Liu <wei.liu2@citrix.com>, Julien Grall <julien.grall@arm.com>, Stefano Stabellini <sstabellini@kernel.org>, Ian Jackson <ian.jackson@eu.citrix.com> Subject: [Xen-devel] [PATCH 17/27 v10] xen/arm: vpl011: Add a new handle_console_tty function in xenconsole X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> |
Series |
SBSA UART emulation support in Xen
|
expand
|
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index c361b42..5c6da31 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -1130,6 +1130,24 @@ static void maybe_add_console_tty_fd(struct console *con) } } +static void handle_console_tty(struct console *con) +{ + if (con->master_fd != -1 && con->master_pollfd_idx != -1) { + if (fds[con->master_pollfd_idx].revents & + ~(POLLIN|POLLOUT|POLLPRI)) + console_handle_broken_tty(con, domain_is_valid(con->d->domid)); + else { + if (fds[con->master_pollfd_idx].revents & + POLLIN) + handle_tty_read(con); + if (fds[con->master_pollfd_idx].revents & + POLLOUT) + handle_tty_write(con); + } + } + con->master_pollfd_idx = -1; +} + void handle_io(void) { int ret; @@ -1260,22 +1278,7 @@ void handle_io(void) handle_console_ring(con); - if (con->master_fd != -1 && con->master_pollfd_idx != -1) { - if (fds[con->master_pollfd_idx].revents & - ~(POLLIN|POLLOUT|POLLPRI)) - console_handle_broken_tty(con, - domain_is_valid(d->domid)); - else { - if (fds[con->master_pollfd_idx].revents & - POLLIN) - handle_tty_read(con); - if (fds[con->master_pollfd_idx].revents & - POLLOUT) - handle_tty_write(con); - } - } - - con->master_pollfd_idx = -1; + handle_console_tty(con); if (d->last_seen != enum_pass) shutdown_domain(d);