Message ID | 1506068606-17066-19-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 d108csp3010939qgf; Fri, 22 Sep 2017 01:25:52 -0700 (PDT) X-Received: by 10.36.82.145 with SMTP id d139mr5230480itb.86.1506068752567; Fri, 22 Sep 2017 01:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506068752; cv=none; d=google.com; s=arc-20160816; b=J7/ukz6ALYmm3+qoa8hKXwyc8YI7SK+Yb4Nxx+70ZHtjMsPofYjVARMhUtlca9wpNk Qz1wIQIsgfL14LHASom+fDBWS4rsRYWh/DhmuDEkrFINVPttwJFc6LpxVSvJJvLPTxAx 61RUVYojnGnXWbSAcd58XAH9D4G5WqQhecK9xeqfBK3GdvaChdl6tdi6cfgclkIHAuzd PyiNMiQ1V0pnMGXvODlImefjpKlKknMVZX+km2gi3ANf2S0WISrrf8+5y2BNmHCrIGDp Ri1xLx31JxrM5Ck0xZZGXI+nIPm2F2Ylo59Ux654RzDuaVRFAILLf+BeYizt1CHt0jgX vXSg== 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=Bg6fT8CW/IMdJdKHwnAiGPV2040T6kKQ60tEt4w7sHw=; b=iRwI8hER1BQSqrGvLhFSi3kUeESm7WT5KKEor9N7xIUU2ODqxQ/l0qcw2OxYe5sF9Z YTbktGo4eNRC8czZs3Ee5jSxcVwBv3d/jygu7ezAwrFAFy8mZYuH4VFxAiw8u7D+FmOW Fqz1l2+vx53pAEms4w5m3VwH89EeBSDRUv9wAXOfoZRxbu5F7F3uOoJuTw//mNsu738T 9PFaXr93Va3dtDwC+j5YRkTP27jsmCmTlMPItl4wKBayMCPjYge7Q0jCfXlqBV2N4WbD KhOCPt4jKkpZ+DN+4bBI6gu4JhKC8UsIRxSEhXBH60hZnHb0jWrJlnYvH0ggpTwq9/4f B/Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NinKr6Co; 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 s3si3087290ios.70.2017.09.22.01.25.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 01:25:52 -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=NinKr6Co; 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 1dvJGC-0004LP-AH; Fri, 22 Sep 2017 08:24:32 +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 1dvJGA-0004J2-Fq for xen-devel@lists.xenproject.org; Fri, 22 Sep 2017 08:24:30 +0000 Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id 08/ED-02224-DB8C4C95; Fri, 22 Sep 2017 08:24:29 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBIsWRWlGSWpSXmKPExsVyMfTAet29J45 EGhyfw2fxfctkJgdGj8MfrrAEMEaxZuYl5VcksGYcX7uMtWAzd8WElZENjM84uxi5OIQEpjNK fL53nwXEYRGYxyyx8d9pMEdCoJ9VYs2KG6xdjJxATp7E7rvX2CDsNIlNB2ZC2RUSvTdug9UIC WhJHD01mxVi7A4miVsNd9m7GDk42ARMJGZ1SIDUiAgoSdxbNZkJpIZZYD6jRNOkXrBBwgIxEj /6H4INYhFQlbh2cysziM0r4CPxc8p6dohlchI3z3WCxTmB4mv/b2CBWOwtsfXGVZYJjIILGBl WMWoUpxaVpRbpGprqJRVlpmeU5CZm5ugaGhjr5aYWFyemp+YkJhXrJefnbmIEhhwDEOxgXLPd 8xCjJAeTkijv4yNHIoX4kvJTKjMSizPii0pzUosPMcpwcChJ8NYeB8oJFqWmp1akZeYAgx8mL cHBoyTCywuMACHe4oLE3OLMdIjUKUZLjgt3Lv1h4jiw5xaQ7Lh59w+TEEtefl6qlDjvfJB5Ai ANGaV5cONgEXqJUVZKmJcR6EAhnoLUotzMElT5V4ziHIxKwryCIGt5MvNK4La+AjqICeig8tV gB5UkIqSkGhgv8TjZZz2wPLuapTjtv9GGRzHVXZln93AFH91h8CN16dLt61c73vHYtV56Terc j0xhZn9n20fMaFpQcs1OOUAuiv3pnU6v24k6HIbT+vYp95vkJC5aI2JXsqPqRUtb2h6xcOW+M 8d+rF+4+ouc7gGGz8XfSuRFl2l5fEp+t/yq86Lnk17Js+YpsRRnJBpqMRcVJwIAd5XAdMsCAA A= X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-9.tower-31.messagelabs.com!1506068668!60527479!1 X-Originating-IP: [209.85.192.175] 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 13305 invoked from network); 22 Sep 2017 08:24:29 -0000 Received: from mail-pf0-f175.google.com (HELO mail-pf0-f175.google.com) (209.85.192.175) by server-9.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 22 Sep 2017 08:24:29 -0000 Received: by mail-pf0-f175.google.com with SMTP id n24so239174pfk.5 for <xen-devel@lists.xenproject.org>; Fri, 22 Sep 2017 01:24:28 -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=ibyLFSz2OCW5sE3Ydz65ZRFcFBf596L9bo9Hcmr8ZFk=; b=NinKr6CoL0lUA3XITjM3OOoHJpT86Gb+ZujtG53xuCvMBF0uave+Du3j95wxRfme/3 0s95egI5UpqKdJvAh+qMWUdYOIOJB9ogQxPCtmatG1lUVmgBEu7fVOUyowbK8buWmYj2 aHk5KG4FNr4lrKaSnRKSPmbh0S2Vh46fnvmqk= 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=ibyLFSz2OCW5sE3Ydz65ZRFcFBf596L9bo9Hcmr8ZFk=; b=UAT36a35xVHpq74excV/D9V6LgyCMuMVMeNvLPpOvn+AkFxGwJeihxdKJvoijL/vuK vco/Y7ItymI72V1SXR8R/Uc14kJvtom/1zsTzoQ5zTG7bZPXBe2BZBsXiknMu4pP+GHa SiMOX2adXLEeR9J98ipN7/NS7oXCG49dVdTm4lVuzBh2LRJ4+w04IyyYOYK0NHWcq5nh moFqGAPftrNLSk3QfHwxTwIxeluV54Nmsd/pGt6OgtxCohS5aNaB8jr3ymyHd7oAqzEO WykKLUefatoZLQrV3UlBR8yELxhueo16gLnGX5WbXJYfHMqRoVdUBEiqeJ5cymd9Q6yv DkHQ== X-Gm-Message-State: AHPjjUg1Knptgut+q2rsFYp/HV1Z73B3LBXgDX0ZSf2fPoJwetAFbCDu 9ZtItY+51qMzu3WR4w23torcfv42w7s= X-Google-Smtp-Source: AOwi7QCzR372PQiG/gr52LobLp501WXJiM4IGrVyd6SVh5OdYO8kju6qY7fweAck8ApVbis7It128A== X-Received: by 10.98.139.15 with SMTP id j15mr8519473pfe.33.1506068667546; Fri, 22 Sep 2017 01:24:27 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 01:24:27 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Fri, 22 Sep 2017 13:53:17 +0530 Message-Id: <1506068606-17066-19-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 18/27 v10] xen/arm: vpl011: Add a new console_cleanup 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 5c6da31..ff69e52 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -768,12 +768,8 @@ static void remove_domain(struct domain *dom) } } -static void cleanup_domain(struct domain *d) +static void console_cleanup(struct console *con) { - struct console *con = &d->console; - - console_close_tty(con); - if (con->log_fd != -1) { close(con->log_fd); con->log_fd = -1; @@ -784,6 +780,15 @@ static void cleanup_domain(struct domain *d) free(con->xspath); con->xspath = NULL; +} + +static void cleanup_domain(struct domain *d) +{ + struct console *con = &d->console; + + console_close_tty(con); + + console_cleanup(con); remove_domain(d); }