Message ID | 1506492816-25954-20-git-send-email-bhupinder.thakur@linaro.org |
---|---|
State | Accepted |
Commit | b6cd2afdecf802030606b163c51d265d7febf4de |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4665088qgf; Tue, 26 Sep 2017 23:16:36 -0700 (PDT) X-Received: by 10.36.184.4 with SMTP id m4mr860987ite.41.1506492996085; Tue, 26 Sep 2017 23:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506492996; cv=none; d=google.com; s=arc-20160816; b=axlTJjxnlrWAN2jNukjPpE0ik/DSV2Xjcv5LXFJ25Gc45LfqB/H76OdoF2PQkQ+ec7 oBdkN158X+Bg/3Nzu3InhU5k83KeOvM00bv2tPeeGxsoYie42Kj1sWeQvaemo4SfL54j 4xHn0lkd9vIlRUm/bySyEEMWEHTBKPEDxm1ed/2AP+HnQ1du6zxEh+TkOmwYFgu3lTvH 2u29EnNu0OlyY64PC0VVIyQWm7vC2BgfElQemw6818Antzc8a782Ko6uHczcbtpogwZ0 9dWv9MEg3/2wXD6ZGunF07X2PZqC/zGfl0mZP9rg511RjtAjJLGjtjJWFEIRbZ/Eh3tw 8wtg== 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=Em6IOaAuN4l9Udc4AQQsj05f48nAJF1yHYv8gt15suE=; b=XXSynz7LltSTWoa3NqcBqmKdDHyWIzAYMDtr/ufnaOCSzh072eEDj4x3nJn57zcRaF wfC6xA4f14PUHSzkFEQd1vEwjxvu69Klsf+oSIaF1s/pXKkvjOH28VyR2Kod0lfi3S+b HXbEH0r23XUYVrjYmYq1Bsj6ZuC56yEwEwmeVvmEN0ipJzGwTaVXM/EC7s+cUuLy/vxj JFNJlqIvOdYSJubX+3mtb8RsATOUHxg2Jm6xsQNeZwnORep+1ydo/H8RBPkLVwrkvE7v L6gg0Otx01dkfxs/bCb7aNQ7n9rxezDcqqH6+NiSkONEBzufp/nQY52N94hXsPSQnFoA ARFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aq3BxXCK; 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 g129si8979172iog.414.2017.09.26.23.16.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Sep 2017 23:16:36 -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=aq3BxXCK; 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 1dx5bk-0002tg-CY; Wed, 27 Sep 2017 06:14:08 +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 1dx5bj-0002rm-Er for xen-devel@lists.xenproject.org; Wed, 27 Sep 2017 06:14:07 +0000 Received: from [193.109.254.147] by server-6.bemta-6.messagelabs.com id 7A/55-03423-EA14BC95; Wed, 27 Sep 2017 06:14:06 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRWlGSWpSXmKPExsVyMfTAFt21jqc jDfY/1LD4vmUykwOjx+EPV1gCGKNYM/OS8isSWDP+bulkLpjMXbFqwRamBsajnF2MXBxCAjMY JWbM3sUM4rAIzGOWODSlGcyREOhnlTh9azlLFyMnkJMnsblxAzOEnSbxa+F/dgi7SuJ83x9WE FtIQEvi6KnZrBBjVzBJ9PcuZuti5OBgEzCRmNUhAVIjIqAkcW/VZCaQGmaB+YwSTZN62UASwg KxEjfmQCxgEVCVODyxgwmkl1fAR+LfVTOIXXISN891gpVwAoVP999mg9jrLXFpZT/rBEbBBYw Mqxg1ilOLylKLdI0N9ZKKMtMzSnITM3N0DQ3M9HJTi4sT01NzEpOK9ZLzczcxAkOOAQh2MDYt CjzEKMnBpCTKW/P/VKQQX1J+SmVGYnFGfFFpTmrxIUYZDg4lCd55DqcjhQSLUtNTK9Iyc4DBD 5OW4OBREuGNAknzFhck5hZnpkOkTjG6cly4c+kPE8exTZeB5JfeG0DywJ5bQLLj5t0/TEIsef l5qVLivFUgzQIgzRmleXCjYZF7iVFWSpiXEehYIZ6C1KLczBJU+VeM4hyMSsK8ySBTeDLzSuA ueAV0HBPQcb1TT4AcV5KIkJJqYNSbs/THy5a2dTpGU150+E49LnZo0p+kU20KIRl8Zo0WPj9k A5jX531+ncAp/2zFDWeplVonu+f8kYnp3ci7iD3J86P5raPP2eYv0ZoS/OrO170f1mQsPTEnL 0dZoIZLdpKho02K24Obk/J05uv97bAKt5kXl+9WuuDkk5qri5l2FfIGXT01RUeJpTgj0VCLua g4EQB7WHGq1wIAAA== X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-4.tower-27.messagelabs.com!1506492844!117902761!1 X-Originating-IP: [209.85.192.180] 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 9581 invoked from network); 27 Sep 2017 06:14:05 -0000 Received: from mail-pf0-f180.google.com (HELO mail-pf0-f180.google.com) (209.85.192.180) by server-4.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 27 Sep 2017 06:14:05 -0000 Received: by mail-pf0-f180.google.com with SMTP id n24so6750528pfk.5 for <xen-devel@lists.xenproject.org>; Tue, 26 Sep 2017 23:14:05 -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=Czel33Q/wCzetrNTUKuMCaNrHbuXAUhTInKJVQs+Ekc=; b=aq3BxXCKcM9Wq8qLDbD4DIss3++qbDGCHc7wdnMGgw+wdV6TCXkz4qY9VFoKBoFYDI WuyXN7AibWZcJ1d/yNerfqhAucvpsy3LTOhsmS29nKUiqgK4HKfAJQMsiZwrOaX6eyRP pRUXdr6lXiO67Z95bgoA2ZfeMVCT0ji8oGXkg= 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=Czel33Q/wCzetrNTUKuMCaNrHbuXAUhTInKJVQs+Ekc=; b=MMzqe8CQVsCmDyqMZ31gBRa0FwXpKURm2/c43Gr46vae1zhCou93wAnR1ATHZXrU0p epekyIAj6VdS7gQJxq1pmwn+S/ZgkYLNjQ+gRymyKFp3E/4IC/kYQdeRVkaD1eXy1vRk a2i2DIMJanfWzXG6fesOUEXizf/wxtiYpzFQt6u8Z3T2o2mVcBCvcNpKANp4U+4t3c6F EM/WKY3tlYN+6Tfblbzc50XAs7dfoyzIzFnu69UOEP8q1kjxaPTfqVNFbIxpweU2MKyD EMrwV3VAhRWFmpMi1Gt4f3QQq9pwkRwUhj9p82+wBaWgAQXd/8GRGtpveBFIyvcqkaQC gwVw== X-Gm-Message-State: AHPjjUidBU9/OY9vm5JedSafkOLh9juNg+FBG6dKOGd4L+1uKbmxxW/U 2EmYeMu95LbewFo2toiRcjnoas2Bmic= X-Google-Smtp-Source: AOwi7QAcdzVrCe1vu9/adwyljV1R2auVcPPyC4KEdBhOpWNLDJpz4RLPlImW5O/hTcIZjDdyY9B2Cg== X-Received: by 10.98.130.200 with SMTP id w191mr346511pfd.246.1506492843702; Tue, 26 Sep 2017 23:14:03 -0700 (PDT) Received: from blr-ubuntu-linaro.wlan.qualcomm.com (h3.248.139.40.ip.windstream.net. [40.139.248.3]) by smtp.gmail.com with ESMTPSA id s187sm18013485pgb.82.2017.09.26.23.14.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Sep 2017 23:14:03 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Wed, 27 Sep 2017 11:43:28 +0530 Message-Id: <1506492816-25954-20-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506492816-25954-1-git-send-email-bhupinder.thakur@linaro.org> References: <1506492816-25954-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 19/27 v11] xen/arm: vpl011: Add a new console_open_log 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 ff69e52..cfd7273 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -1038,6 +1038,15 @@ static void handle_hv_logs(xenevtchn_handle *xce_handle, bool force) (void)xenevtchn_unmask(xce_handle, port); } +static void console_open_log(struct console *con) +{ + if (console_enabled(con)) { + if (con->log_fd != -1) + close(con->log_fd); + con->log_fd = create_console_log(con); + } +} + static void handle_log_reload(void) { if (log_guest) { @@ -1045,9 +1054,7 @@ static void handle_log_reload(void) for (d = dom_head; d; d = d->next) { struct console *con = &d->console; - if (con->log_fd != -1) - close(con->log_fd); - con->log_fd = create_console_log(con); + console_open_log(con); } }