Message ID | 1506068606-17066-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 d108csp3010955qgf; Fri, 22 Sep 2017 01:25:53 -0700 (PDT) X-Received: by 10.107.8.102 with SMTP id 99mr6301764ioi.105.1506068753600; Fri, 22 Sep 2017 01:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506068753; cv=none; d=google.com; s=arc-20160816; b=FuX3dDYxVFa2PBv43yKGRKHaJeLWmh2cs65Oet+bTelyNVBQrEHPrd/8gxP1cOhjRT ro15JgoN5o7+9LRXzaxuoGTGartJMx+a0+aCz/oKqc0q80DACl5QsjHCten4aQlKCnsQ veFRfcHdhuC0Jou2lFOlLvP6CLXAlKpeIsLlwn1BnXU3EFzqw9zVnZdfMfX6WzDj0QbR dt2uyTG42Y8eI3WG9X8K84cTLzBrSRwJbyhianqqsevePWcQ8ZRDBtqN/HEnTVlo/cvY 8ZUmlqoV/w9feILZYyVytCncCcbxU0slbHIRe/DAx1/YQriVoCxGvCt8xnsxBKMVaRpK NQvA== 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=u919AWJy0uFWsa1dlqE1xNjFIaPqp6V0ITP8/usMD6KKha0rkvG4y2+JQGEqNO8I/e uSBz3BtAbiIorqdSK1MuYq558Tzf3R3gvabu/kC0P9DXSpdNL2QF2hw/brJamfrhZNBW fVhszkL6SF+mX4p9sW+xXcsxEJ6xVpQ7YOFTBkwYAwSSgettFlmHzJaMHASoZLLjYkgV spJiAqReYAA3snJse9Ky6fP/47P2AveUHanF9nJaahdzYpsaAQiiCFcNmWafYb+pemIX DubGQhKRb74HnjEB4zuwzkRTHwhRJo5NA4ob/mccZzReV1tgCWyua+GDzb4mzHYsBobq WCqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AxbGmBV+; 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 d39si2975760ioj.319.2017.09.22.01.25.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 01:25:53 -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=AxbGmBV+; 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 1dvJGJ-0004WN-5k; Fri, 22 Sep 2017 08:24:39 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <bhupinder.thakur@linaro.org>) id 1dvJGI-0004UB-5w for xen-devel@lists.xenproject.org; Fri, 22 Sep 2017 08:24:38 +0000 Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id B0/5C-02048-5C8C4C95; Fri, 22 Sep 2017 08:24:37 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJIsWRWlGSWpSXmKPExsVyMfTAZt1DJ45 EGvw5aWrxfctkJgdGj8MfrrAEMEaxZuYl5VcksGY8PnORqeA3V8XR5ftZGxiPcnYxcnEICUxn lLiwdzULiMMiMI9Z4nHLTWYQR0Kgn1ViZutR1i5GTiAnT+LKzvtsEHaaRMefW4wQdqXEvt3zW EBsIQEtiaOnZrNCjN3BJNF78C9QAwcHm4CJxKwOCZAaEQEliXurJjOB1DALzGeUaJrUCzZUWC BR4sfPl2DLWARUJa7P+AO2gFfAR2Lm/7dQR8hJ3DzXyQxicwLF1/7fALXYW2LrjassExgFFzA yrGLUKE4tKkst0jUy1EsqykzPKMlNzMzRNTQw1stNLS5OTE/NSUwq1kvOz93ECAy6egYGxh2M PXv9DjFKcjApifI+PnIkUogvKT+lMiOxOCO+qDQntfgQowwHh5IErzEwiIUEi1LTUyvSMnOA4 Q+TluDgURLhDT8OlOYtLkjMLc5Mh0idYrTkuHDn0h8mjgN7bgHJjpt3/zAJseTl56VKifPOB2 kQAGnIKM2DGweL0UuMslLCvIwMDAxCPAWpRbmZJajyrxjFORiVhHkFQa7iycwrgdv6CuggJqC DyleDHVSSiJCSamDsWOHGyXsmcH8gz4yES9X7pxx2/aqRe3Tmmn/9JqsW8nGeifn9u0EtmSNo TjNzzeKwtVvOxiT7KHVp7wphZbzXXOW+Wutc5elH2UteM3arnxS7fEO+vSv0tuBPg87opqCue SYKS4yPenVWMd1OdzlzhHMf32JBRpG1X6YoJ3t/Uby/N6x6vZISS3FGoqEWc1FxIgCRo+LAzA IAAA== X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-11.tower-31.messagelabs.com!1506068673!85071970!1 X-Originating-IP: [209.85.192.179] 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 44627 invoked from network); 22 Sep 2017 08:24:34 -0000 Received: from mail-pf0-f179.google.com (HELO mail-pf0-f179.google.com) (209.85.192.179) by server-11.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 22 Sep 2017 08:24:34 -0000 Received: by mail-pf0-f179.google.com with SMTP id r68so241159pfj.3 for <xen-devel@lists.xenproject.org>; Fri, 22 Sep 2017 01:24:34 -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=AxbGmBV+BznqaV2h9cZ/LskBq8evgrX4y1JSPVFDmv59UcUjdNV0wgN2plOJewuQZX UNaBAfkLs/9CjMZhGIKjFRr4EoHiRdzNmoP6VSrsURghrE+ch9YmHC4VBTLgD7/H5DgH 2sHVbgTL2OTZrQAPNm1eQdW2yq9UhECQSnU14= 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=dWpf2HuQ5ZhsTxtaSurXS2THnklDNoEwfHcJvbB25/uk1qvJUjQwmutqILdvCHo39p ltETFknQm2/uRUArbGzH29+4rbQboVKFIeL/y6eMJmDddOt2pp547Tfd9odrmpakkhek 8LLQii12Ch0cbJeUt6wHU7Do9vM0PhzZwpWkJ6NcQAKcB3hmxWKE1IAFQdd6LHlSHsbT heOeXMGTwLsI+vpd+0dcz1QP9xM6tHCIBuyox63CPZbF/80awJX17fO8d9gzEZ9tHhCT aUpNzwOLWIdWSw3gpZsarXY7kCL8lIVEhtT31uYFwLizL//EhIWcRmOVuv5eSnfayOMb NjnQ== X-Gm-Message-State: AHPjjUj3Yj3y9fEXp7AV7ZVqb1F4ueJXhVAlvMkUKCaeO80Krx0+oDQg CDp/6H0kjaoT27hdN6zbCAlXK48vCfA= X-Google-Smtp-Source: AOwi7QCCT+M86lOuPK5yTOLzpxj+k+PFMPjoNPCuNcsASLuHLp5asjxWf4lt4e3X90kTj7F3TgojHg== X-Received: by 10.98.245.74 with SMTP id n71mr8536075pfh.102.1506068673202; Fri, 22 Sep 2017 01:24:33 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 01:24:32 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Fri, 22 Sep 2017 13:53:19 +0530 Message-Id: <1506068606-17066-21-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 20/27 v10] 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;