Message ID | 1505730731-10947-20-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 d108csp3501115qgf; Mon, 18 Sep 2017 03:34:48 -0700 (PDT) X-Received: by 10.107.23.130 with SMTP id 124mr18823775iox.279.1505730888251; Mon, 18 Sep 2017 03:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505730888; cv=none; d=google.com; s=arc-20160816; b=Z2hgrPMGQ3fvCw8fn18WpfDsZYaqr2GfWYOqWr55XZl0Fk447Uz9dB3MHpKYbacihA GpRbRRb9OKVFSHqPxRCz0oNUGqo+JsdV+HHH4bEEEfrHacXiGZ7nPgFXY5iNdjoRZ2eF o1dTFJPclg/5YYRdQ1vD9d6LWRYFXcT761l8uBtetlfdPN8oxS9CG1NiOs5MZiwod/BI 4bBS9LnjoCpvP9YGkUThOUK1wmFV6g2cdUxp80jrHxLQJhcgftdnUs07mzF6knoyFwMl q1Sipdzmp/KYAVcWTQf8fpHT6ZVSSsymdxCIeGhm0YFAUMrMzfhJ8HKcArUJZHpSKTXL PKbQ== 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=T5cA7WbWgDtzGPk/0fv0R8sN+lUF3ko4GpGD0jzj8Zio8GuQOsBmT9WjUHqrzbnTHo a/RmI99sZ1gsMD500J3BYRy3TBHaPNmfWUfUvC/zv3kuOQNkGNdQjRCJsdjuThY9Bzaa BuS5jAFGfJE7EjK0mfoUJb4EIYr/uDDhjeLDGGUsMCnX7wLpIZiDHWEYe+RQXbsKuPeB QgFk+tuai8E/Jf4sBf42Axyn4hDeJTZuoaV8wbSqHyqmwf+630A8/9zqw8Js4t5/Zsa9 oWlFyu0LvX7CcX4eqywsVUgRL0lXxK6bioHsm1Y2dc6zFFMHqUr20Wc5YF4maaIBBzX+ zzpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fWttH9Sq; 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 c189si4536404ite.148.2017.09.18.03.34.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Sep 2017 03:34:48 -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=fWttH9Sq; 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-0002bp-E3; 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-0002Y9-65 for xen-devel@lists.xenproject.org; Mon, 18 Sep 2017 10:33:21 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id 14/BD-03642-0F0AFB95; Mon, 18 Sep 2017 10:33:20 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBIsWRWlGSWpSXmKPExsXiVRtspPtmwf5 Ig3kzzC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oy/WzqZCyZzV6xasIWpgfEoZxcjF4eQwFRG iXWzmhm7GDk5WATmMUu821ILkpAQ6GeVmPjiIRNIQkIgTeLsl7ssMPbBa52sEHalxNTeJnYQW 0hAS+LoqdmsEFN3MElMu/sQaCoHB5uAicSsDgmQGhEBJYl7qyYzgdQwC8xnlGia1MsGkhAWiJ G4Mf8aK8QVqhIXPp8DG8or4CMx8eomRohlchI3z3Uyg9icQPHz6x+wQiz2lpj36wrjBEbBBYw Mqxg1ilOLylKLdI0M9JKKMtMzSnITM3N0DQ3M9HJTi4sT01NzEpOK9ZLzczcxAkOOAQh2MP5a FnCIUZKDSUmUVzRyf6QQX1J+SmVGYnFGfFFpTmrxIUYZDg4lCd7V84FygkWp6akVaZk5wOCHS Utw8CiJ8K4DSfMWFyTmFmemQ6ROMVpyHNt0+Q8Tx749t4Bkx827f5iEWPLy81KlxHnfgTQIgD RklObBjYNF6CVGWSlhXkagA4V4ClKLcjNLUOVfMYpzMCoJ8z4CmcKTmVcCt/UV0EFMQAe17Ng DclBJIkJKqoHx2I67Zao1y8z/qdyIv2+XFaC5zbj1/Qz+ky7rbm5T2OPRljx36uEg7VWBi3iY NWqn8L3QYDnTfdOpUKTaQ+WpwtKJWxYlrF/++63LtTmb7gZ9nmu5V89jUdfOHVVntnikuO35c cLpRFHtO/45bKXNoomL+C+1LjLb9++h0yLLvJzfRndtff+IKLEUZyQaajEXFScCAI+1RsbLAg AA X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-9.tower-27.messagelabs.com!1505730795!117343795!1 X-Originating-IP: [74.125.83.50] 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 18878 invoked from network); 18 Sep 2017 10:33:16 -0000 Received: from mail-pg0-f50.google.com (HELO mail-pg0-f50.google.com) (74.125.83.50) by server-9.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 18 Sep 2017 10:33:16 -0000 Received: by mail-pg0-f50.google.com with SMTP id v66so32322pgb.5 for <xen-devel@lists.xenproject.org>; Mon, 18 Sep 2017 03:33:16 -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=fWttH9SqlTBV+dTiGvvx9yMdDFQFlEOY9ta7zwOQDjSy2RtP2FIcrgIBnAP4WdB4df XSC/N3/tRD8Y55iXzIMKPfv865EgeRegbs/l8c/Tb/HGahoCbMofo2k7MCiz/vm9E6M8 MLUzv6oilIKBYlnuT9qbQ/POblIhT0TU3JuYY= 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=tdveItxaH1bhUzy6haYKOKcgz6c9kHkSchLpsICFcoN0RabyzGCZknCVApeMwOg2zz szONZ+RZdXQHIGHsLaZ7g8FRQGkdB06ljf8YFjqFi4oA94mZ1viZntf9JIq+NUjQDRtA Yb//tJNLosxf0XuYFI8c2pojS8OFnie8mdWXl7nh4PQcVhMS71bZcxtLAZDvwujqJFjz 4tIid/KmK35mfKrYltg3C+JQ+h5q4He1lw+TyqyMfyiuMqkCgIrtNhu395Ao289Y2c4K HZsHAEATVgk8/4QR/baySy+u9O6hehBIw3DyTfpQpijROoB74aFMjDHdkgbbP4/HFb/f Pffg== X-Gm-Message-State: AHPjjUiOJU25v9gJlRFq6cs49DXwoTGripNkKZG+S8/2lN6ZwWIVQmZP hH6NVkJ8/0Z9pDvavXScsg== X-Google-Smtp-Source: ADKCNb7gNHzq4HxpbcSu+uUPICpL5e31CGu/g7ub/WF5SeAADq+I/Hkqk8gsgXA0Kp9EcAMBJal0Gg== X-Received: by 10.98.14.213 with SMTP id 82mr33015085pfo.274.1505730795302; Mon, 18 Sep 2017 03:33:15 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Sep 2017 03:33:14 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Mon, 18 Sep 2017 16:02:03 +0530 Message-Id: <1505730731-10947-20-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 19/27 v9] 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); } }