Message ID | 1503910570-24427-21-git-send-email-bhupinder.thakur@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4547990qge; Mon, 28 Aug 2017 01:58:45 -0700 (PDT) X-Received: by 10.107.37.207 with SMTP id l198mr5474124iol.146.1503910724951; Mon, 28 Aug 2017 01:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503910724; cv=none; d=google.com; s=arc-20160816; b=uoJNgUy+QjfkOwY9GIigVlmP6Rt7BKa+IXrU9DavCDdOLIdDZ62q+KwHCAVHAZTblC AE1wcCoDWXV8sy0uTomoGyuq1gdZK7gDpfGp9drAkqsKThb0dorJ/6vdPCeP+qf6cHOM QEVPakYMcgJKZcojexolQbqKgTpUtqJaf1dt7+ol9Mk6SsC2yVPXup7b1Z5ICLHiMl0D 8oaeekFMyY21fqVCgjacMWnSvVX/spc6dgL75Z7x1nuNIxUw6FPgdpB7fsYXBqKKqqAA Hwtvulv8TxSW5Y4vI01mcI58fXw82gSGoeYnpQuzaFBB4tZb6dPhG7yZdFhfr3GehuXl SXZQ== 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=B/iWbb165fhqROXYtc1SUPyns/TlpQEbmkL/vah2sQ4=; b=F6p1910wE8OmxOu0dUpmfweEfDKuBW3CO0yRdtuPCYqQNWCIHJHTL3pqGEDp0h7OY7 FLNpO9DU9iCWnujhS9bLBSbUCNQ9iyFF0iGDtKM8d7uITUn1mN8PIadG/eSpjuEHTu+6 sBFKvta95vKmkNazddDJ0QpKSoDZlLJvCFywgEwVFhFcLF67tOgCCsRji20Bnl0/4/X5 JQ3ggjGaLhxiaIFuQ2QHkj7u3FH/bxkZg/DT7wX4MorOAwuzo/C9m6aJokMOBCL6Z8yi tsZFBU7PwcLGYp1PrKkEaM5Fjq5von5boeAYYRUxGB8YiPyxmpYrT+yqOEvX7zO+Gsxw vJhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kGESc+5H; 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 i187si12183995ioi.400.2017.08.28.01.58.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Aug 2017 01:58:44 -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=kGESc+5H; 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 1dmFrO-0005e6-3G; Mon, 28 Aug 2017 08:57:30 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <bhupinder.thakur@linaro.org>) id 1dmFrM-0005bh-Q1 for xen-devel@lists.xenproject.org; Mon, 28 Aug 2017 08:57:28 +0000 Received: from [85.158.139.211] by server-4.bemta-5.messagelabs.com id A7/4C-02184-7FAD3A95; Mon, 28 Aug 2017 08:57:27 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAIsWRWlGSWpSXmKPExsXiVRtsrPvl1uJ Ig6ffZS2+b5nM5MDocfjDFZYAxijWzLyk/IoE1ozHZy4yFfzmqji6fD9rA+NRzi5GLg4hgemM El2Xr7GCOCwC85glNn16ywjiSAj0s0osXnwOyOEEctIkNi39zA5hV0m87L7ACmILCWhJHD01m xVi1H4mieYjG4CKODjYBEwkZnVIgNSICChJ3Fs1mQmkhllgPqNE06ReNpCEsECCxKK9h5lAbB YBVYnFd1azgNi8Aj4Sd6bugVosJ3HzXCcziM0JFN+x9i47xGJvia7XH1gnMAosYGRYxahenFp Ullqka66XVJSZnlGSm5iZo2toYKqXm1pcnJiempOYVKyXnJ+7iREYWgxAsIPx2GTnQ4ySHExK orw7KxZHCvEl5adUZiQWZ8QXleakFh9ilOHgUJLgPXMTKCdYlJqeWpGWmQMMcpi0BAePkgjvB 5A0b3FBYm5xZjpE6hSjLsekA9u/MAmx5OXnpUqJ8/qAFAmAFGWU5sGNgEXcJUZZKWFeRqCjhH gKUotyM0tQ5V8xinMwKgnz/gWZwpOZVwK36RXQEUxARygKLgQ5oiQRISXVwMj67uUV84CSmTM dqwNvaaddOnPUucL4nNOZm/laVadPXJO7WM7+v+VztQXzdH+n6RtfcnH1Ls212/nowCs3r5+B t7edzVVI3Hfty5Ky+AmMs/6c1udqmbth0urE40v/f9TfM/VL9wWrjXsXSDiY/eGW2TF7iUnlj U9zp1ew6JcK791v/jtnv6SeEktxRqKhFnNRcSIA8XAH8LMCAAA= X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-10.tower-206.messagelabs.com!1503910643!80713497!1 X-Originating-IP: [74.125.83.51] 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 2480 invoked from network); 28 Aug 2017 08:57:24 -0000 Received: from mail-pg0-f51.google.com (HELO mail-pg0-f51.google.com) (74.125.83.51) by server-10.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 28 Aug 2017 08:57:24 -0000 Received: by mail-pg0-f51.google.com with SMTP id 83so22179586pgb.4 for <xen-devel@lists.xenproject.org>; Mon, 28 Aug 2017 01:57:24 -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=cCjDRmwTdHUYIQiYgejFMteqYI89juGj+je6V6CGGvI=; b=kGESc+5HWFGQ2iUwz2Wh86kINJ6cB7CKDCz0mw6QAdDZYyBMTQ9ikWN4WbFQHZWQRF 8EQ48qH2bbnUJ2A8AwzyQgKb5FqpN4WTabOa4BXPjgxluOS68F5HEu5hWguWNkgE1Brc p/Z6Tllq77z1g+iCvcko/zmCNeYdKwyFYUdAU= 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=cCjDRmwTdHUYIQiYgejFMteqYI89juGj+je6V6CGGvI=; b=EcHOvNMyNoJodSP5Km/GmDxVN8eQIG59kp5FwKciH6p0l++ZrV9zYyQDE/h4/abqq0 dMnA39OYmSDyHjVbAf0kMjel6VU7kna2IMPo/Vo8mpf5KRfKSrRvvP2Nd0shIumVajOM ca9eEnYtikFBqhZ01d7dQuc7kfCxQBSG8ScOrc+N34m91MNPbR7mUi5zrCYgZ31uvfpi K8fM8V29xcYwqifGr6oprTQO0JPRjXbMZhXQME88kHSpU8RHI3RCAUZj33hmu40PN143 mDb0xSJe9MrSK1HfW2/BNnKr4zbNnhcI75FgBEktoEZNWZ16MHbPVIjNetsuj2cZIMNP oseg== X-Gm-Message-State: AHYfb5iooVS7n68jqSHoTcdTEPCJwEf0W+T0FuXp2aKwcZTjFaQ3ChX3 vjBvwiI/HGYlBtwsSWSosA== X-Received: by 10.101.75.141 with SMTP id t13mr6872247pgq.269.1503910642820; Mon, 28 Aug 2017 01:57:22 -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 d88sm21713569pfl.158.2017.08.28.01.57.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Aug 2017 01:57:22 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Mon, 28 Aug 2017 14:26:03 +0530 Message-Id: <1503910570-24427-21-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503910570-24427-1-git-send-email-bhupinder.thakur@linaro.org> References: <1503910570-24427-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 20/27 v8] xen/arm: vpl011: Add a new console_close_evtchn 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 cfd7273..71465a0 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -793,6 +793,14 @@ static void cleanup_domain(struct domain *d) remove_domain(d); } +static void console_close_evtchn(struct console *con) +{ + if (con->xce_handle != NULL) + xenevtchn_close(con->xce_handle); + + con->xce_handle = NULL; +} + static void shutdown_domain(struct domain *d) { struct console *con = &d->console; @@ -800,9 +808,7 @@ static void shutdown_domain(struct domain *d) d->is_dead = true; watch_domain(d, false); console_unmap_interface(con); - if (con->xce_handle != NULL) - xenevtchn_close(con->xce_handle); - con->xce_handle = NULL; + console_close_evtchn(con); } static unsigned enum_pass = 0;