Message ID | 1505730731-10947-21-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 d108csp3501139qgf; Mon, 18 Sep 2017 03:34:50 -0700 (PDT) X-Received: by 10.36.236.132 with SMTP id g126mr15118210ith.21.1505730890393; Mon, 18 Sep 2017 03:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505730890; cv=none; d=google.com; s=arc-20160816; b=u5ZFPLqDZzZc08Yk1J1rD+GRrz85GzQVAnb52g2NP8/1DXOiAmIUbvDkDgHHIbffFB RqvFg52fMTFkwio6xFLVra5VapRUjsEifbZ+YFRaybSxY67yBhFFpVlg6R9QGyx5fYiJ gP0JJVlwTbxk11vvj7w9GaN/fSGrR/TsycZjObqbbgVPz3jKATfCWrHyP3XlfG6JccRz HuruCQ4lhyHdIeQa/fcaomO2+VvTC8/3NljDMesHcVYIvXkdZq6/NEA5pD9YHoSf66Dy CG5hZGm3VAVX2+0poHKCm0m/9yG4QhvPkm20qJoueaWASn7+y91HhXpt4sR15T3MPa6C DgAg== 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=HvBPj5sSV4i1assgmQ8C9D1oEkK34A1sqfPcL5W3mYNT3cwxCnwQ0D8z3Q7jgkvM3c B6FQnk88oQY0AFdqQjun5D+LQnbrp8KNGhkId/m05XCJI2pc4MBOfXrSTGFXIKY37d4C A5col2ethFWB5zxn6KClsM12OEtgaF1EfBBDAFrXsbnfXu4Tgc2+WvJcyc/bIIM1GBMX jrUExZ0Jt4u6LIbKT5u4O3c5fIeR78Izo20QT3wHsZ0s9fjHs6Lu04+WUmMPwzebZWL1 y4pivP/kSHUKZnAlZhxOL7eocfv24XBLvKlVmkfdFvFDlQNe+p+LJzC1x2S8lMU71lNl 7vYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PEr+ahUe; 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 j3si4402897iti.82.2017.09.18.03.34.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Sep 2017 03:34:50 -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=PEr+ahUe; 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 1dttMh-0002bJ-7E; Mon, 18 Sep 2017 10:33:23 +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 1dttMf-0002Xy-4A for xen-devel@lists.xenproject.org; Mon, 18 Sep 2017 10:33:21 +0000 Received: from [85.158.143.35] by server-7.bemta-6.messagelabs.com id D3/ED-03610-0F0AFB95; Mon, 18 Sep 2017 10:33:20 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRWlGSWpSXmKPExsXiVRtsqvthwf5 Ig8VGFt+3TGZyYPQ4/OEKSwBjFGtmXlJ+RQJrxuMzF5kKfnNVHF2+n7WB8ShnFyMXh5DANEaJ udd7WUAcFoF5zBLH/sxmB3EkBPpZJb4smsbYxcgJ5KRJ/Dx/mxXGbj7xGyjOAWRXSbz8IAASF hLQkjh6ajYrxNQdTBLTl58Dq2ETMJGY1SEBUiMioCRxb9VkJpAaZoH5jBJNk3rZQGqEBRIkNq 3OBalhEVCV+PdsLtgqXgEfibWvf7NBrJWTuHmukxnE5gSKn1//gBVir7fEvF9XGCcwCi5gZFj FqFGcWlSWWqRraK6XVJSZnlGSm5iZo2toYKaXm1pcnJiempOYVKyXnJ+7iREYbgxAsIPx9saA Q4ySHExKoryikfsjhfiS8lMqMxKLM+KLSnNSiw8xynBwKEnwrp4PlBMsSk1PrUjLzAEGPkxag oNHSYR3HUiat7ggMbc4Mx0idYrRmGPfnlt/mDg6bt79wyTEkpeflyolzvsOpFQApDSjNA9uEC wiLzHKSgnzMgKdJsRTkFqUm1mCKv+KUZyDUUmYNxNkCk9mXgncvldApzABndKyYw/IKSWJCCm pBkauVSu2dj9/v/CKisZRxktnPjL9n9TCfUt+fxsXS/F/TVW7nYl2Txem7bxS4clVWVm9QEQ/ kkWlyH6ulFxb6W+n5bGn8jtimWuueNss8vFf1lUr53bi+fuksvuXuD+d5c21OcCstFIg5cf1D 4fki+tTD6zudp3p0Ciq4fXtWkl8J9/0bZe4XZVYijMSDbWYi4oTAV48ptDDAgAA X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-8.tower-21.messagelabs.com!1505730798!83243641!1 X-Originating-IP: [74.125.83.53] 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 23029 invoked from network); 18 Sep 2017 10:33:19 -0000 Received: from mail-pg0-f53.google.com (HELO mail-pg0-f53.google.com) (74.125.83.53) by server-8.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 18 Sep 2017 10:33:19 -0000 Received: by mail-pg0-f53.google.com with SMTP id i130so34899pgc.3 for <xen-devel@lists.xenproject.org>; Mon, 18 Sep 2017 03:33:19 -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=PEr+ahUe/jxUOHXSDArrgoNeOPjAuVPosteyEWDHaM8sk8FwtiAaf3xFqvEGK0n6lR kH0+PWp6byRYAPA0KIg5loMAJyQZO57S4HqvHvAFbRYPVuxpqhvptC3SljubDoo2whvu rRzbuOzCiXQvtb+kALCUFGZqevJ2VcxHO/0v8= 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=i2Be6RJzxTPeG34U8pGjrFuIYwxfHAjktVrzjf8ahQx+Hnm1hTg83RC9I/jgN8oi7x hJV6G6wMu0YkJ3PX88nCMBZysW5YWNU7p0kyQS5jnBqKQ1f8lmmf1ZilmnTU0O3HGRAn hRiKVjsrQSoFZVcSrZaeQVREEt2PW/SS1FbtDPwdDnXY+VaMboVqv2BQ2wxQD3AB0ac9 uoNy8ERk3vKF9XrAIr4AOKZ/IzK0XrmEq0gZ4G6zRMDnvGOH43EfT80MJMxsAyFD+3AF 4/aXSQ++N/qC/lDr6AJbj7G4vZTkZhbl1iYGNLx7e/Kp5k9mFpiifluR93c1L5wuWO7y XphA== X-Gm-Message-State: AHPjjUgArMgvnArAdLowbl77aGtGZKQ2qHQYEhCkHoYTQyfaNNzp5Zwq FONXIArdQCBDDvH/FYtlxg== X-Google-Smtp-Source: ADKCNb6kbRRal5h7bQ0z44munpFZJ64DBu1Pr8KvYUY3bYXy+67h4epH/PXXapJZMJqq1UssCALclw== X-Received: by 10.99.160.100 with SMTP id u36mr31936798pgn.22.1505730798136; Mon, 18 Sep 2017 03:33:18 -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 b7sm12937845pge.79.2017.09.18.03.33.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Sep 2017 03:33:17 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Mon, 18 Sep 2017 16:02:04 +0530 Message-Id: <1505730731-10947-21-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505730731-10947-1-git-send-email-bhupinder.thakur@linaro.org> References: <1505730731-10947-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 v9] 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;