Message ID | 1506068606-17066-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 d108csp3010995qgf; Fri, 22 Sep 2017 01:25:56 -0700 (PDT) X-Received: by 10.36.39.142 with SMTP id g136mr5821815ita.73.1506068756013; Fri, 22 Sep 2017 01:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506068756; cv=none; d=google.com; s=arc-20160816; b=nBqM0byEVBKJIMTfQPPLvWI5I8Va5M1ihqEDyb6ZCYEckbPbX47YmJpbewqp27+7OR NHavS+8hWFLp78Shwg9HkDhw52AWoPzPiqY/JrC2ha2fh2rcllehn9OQy+FRT05WiOv1 B+kcUxcmnOIxm2qhAyF4NmonPFQMHGuevxHagwuaI06iVsv+P1vKzQLA2Ue9P+Z4w84s SeAsA0L2QdbOJoJeb0Tf6uS1XTfyul77wLkRDMjXJXxVmdXUtzwve0zumEXJHguIzR2i r3In5aOG2Nl4p95vGR+3f6hlSW+GsJBCFFBAv1dHvRVny1Bf6Z+9rMEsO1iKI/Fh7V1Q LmcQ== 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=gJB/xmm6Nk3FI15ApzupCD5FviEQA22dcHH6H3uty8vpMQ0i3pcxvqfZ+yx86DAUP8 iRT7NIaZjlI+ZSRraBfzKAnUsHcwVDEUyGRqTX+MrCuKLH02Jv0noHC7SweHAhD69eQ5 fwlpiT4Pb6CFzAwAfGSn+YPgF+kCjodrVJKluo1D3Qrz95cu3CWF0S07e8VLWW3xjOqn 5ZstHxGQIlzzmcGxdrqJKqVLxcLe2BibRgEwft9pk1nfTwrtptFppE0Wur2sIn8vlQwR szhQ1eOy2kgM7Rdi5YbAl4f20+wVOl2C2WOiwUQSBEYjdkjxFI+MLyWCnOcEkiQRqyL+ n5pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hxllXq5C; 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 h17si2927630iob.122.2017.09.22.01.25.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 01:25:56 -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=hxllXq5C; 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 1dvJGE-0004Ot-M5; Fri, 22 Sep 2017 08:24:34 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <bhupinder.thakur@linaro.org>) id 1dvJGD-0004Mo-Ct for xen-devel@lists.xenproject.org; Fri, 22 Sep 2017 08:24:33 +0000 Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id 10/B7-02023-0C8C4C95; Fri, 22 Sep 2017 08:24:32 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOIsWRWlGSWpSXmKPExsXiVRtsonvgxJF Ig8cHeC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oy/WzqZCyZzV6xasIWpgfEoZxcjF4eQwDRG iSMrZ7N0MXJysAjMY5a4e1kIJCEh0M8q0dI9jREkISGQJ3FxWQdrFyMHkJ0m0f2kGiJcKXH+7 nF2EFtIQEvi6KnZrBBDdzBJTP09kQ2knk3ARGJWhwRIjYiAksS9VZOZQGqYBeYzSjRN6mUDSQ gLxEoc2nedHeIIVYkH136AxXkFfCT2fTrADLFMTuLmuU4wmxMovvb/BhaIxd4SW29cZZnAKLi AkWEVo0ZxalFZapGukaVeUlFmekZJbmJmjq6hgalebmpxcWJ6ak5iUrFecn7uJkZgwNUzMDDu YLy8xe8QoyQHk5Io7+MjRyKF+JLyUyozEosz4otKc1KLDzHKcHAoSfB+Pw6UEyxKTU+tSMvMA YY+TFqCg0dJhDccJM1bXJCYW5yZDpE6xWjJcWzT5T9MHPv23AKSHTfv/mESYsnLz0uVEucVBU aYkABIQ0ZpHtw4WHxeYpSVEuZlZGBgEOIpSC3KzSxBlX/FKM7BqCTMex1kLU9mXgnc1ldABzE BHVS+GuygkkSElFQD45IHv089kPsaOcn1+b0ZGbZTyus5/lult2jt+i7N2dg9QVTl0mGG63q7 t/Mk8b5Q3lc0XfSmXkjkscaImY5rju2xnyU0O0Pdil1DQG45M39qfco53jMMZ/7cTM9cV3Sv2 er11BOy/48Gsr7kS/JfXSzx9GS35LPNZSIxt/xcv2t5z07v4U2qUWIpzkg01GIuKk4EAEFVY9 fKAgAA X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-10.tower-206.messagelabs.com!1506068671!84325669!1 X-Originating-IP: [74.125.83.52] 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 17349 invoked from network); 22 Sep 2017 08:24:32 -0000 Received: from mail-pg0-f52.google.com (HELO mail-pg0-f52.google.com) (74.125.83.52) by server-10.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 22 Sep 2017 08:24:32 -0000 Received: by mail-pg0-f52.google.com with SMTP id v23so249298pgc.5 for <xen-devel@lists.xenproject.org>; Fri, 22 Sep 2017 01:24:31 -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=hxllXq5C0y2pehoQwrqUkOa+//nagfU5hBR6vgJZwzWmIIGEMwPvmbAybLl/4hyT6X Sgmf1DSQKRRw2VzkHDzQLlW882yHFWzjk4KLmXGEQXWrm36WoitaKj/6FCrE4lhTAvHE EGKBKKXw25KGoYEPT+f1xSdMpy6kvxhxHo38g= 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=NunMspAuWNDX7HzSgG3kK9aHBRUHk3OdIlilJpINyIuhJlVg9PEh1IHxyMYFv9pwVI LI32OXkG+sraDtCFViQvEVMZexn+e6qrVA0DOxKgqHTv3i/et4HeWsWUtavVC3iH3VJl OnylpGFSq+9C5ZPpvNwOGQV3Bjrd+B6S6H1V9mFIZVNXCHDnUTMVtaJrDq8bhSYhvPLc fXLJUBq/sjORlY5v+5+UyoVJ6Q4Dlsn8dtnMYnht6dnAu/vAEZl8xRSMQxe6u5eGTTLs mjSbb6QuVd0q7V5WXO10yxnVTx8Gbxt/WKATrZRd+3hIba/PaQSUFmGKnYw4q/CY8v2s O4MQ== X-Gm-Message-State: AHPjjUh7UemfFBqfNOrth5VdRYd4Dc5ZITVOTixG+hWK2ZDWgJfQRdFG cz07S73tLtBXbxbhGJ88L/s7Q37zS0s= X-Google-Smtp-Source: AOwi7QBK86UGIcvuHzXYw9XkW2gN2VtX89pcPiqDBPtJ55VI8pqopol42IUZhn8UQjzKpWK5wXm6EQ== X-Received: by 10.98.196.26 with SMTP id y26mr8595201pff.106.1506068670399; Fri, 22 Sep 2017 01:24:30 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 01:24:30 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Fri, 22 Sep 2017 13:53:18 +0530 Message-Id: <1506068606-17066-20-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 19/27 v10] 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); } }