Message ID | 1503910570-24427-20-git-send-email-bhupinder.thakur@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4548102qge; Mon, 28 Aug 2017 01:58:53 -0700 (PDT) X-Received: by 10.107.170.134 with SMTP id g6mr5372135ioj.327.1503910732932; Mon, 28 Aug 2017 01:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503910732; cv=none; d=google.com; s=arc-20160816; b=BEXXggnWdswO7DtIQXTXrwZ4/U3FqjIvgfCKkaG6LhNEsfa1gNuoFJKvRaYXl/eo5p RXnQ9wfKEZgKuqfs5H+doob12Ywud3isrOlW3vVXQeJQaU3MFe8YyT/MZJJh+kAd+apx vKQm9P2+xuvjMnIeJuuzUJcrGzsbepEteoIyk9B1o3AgpNLRW9AHnhs2IWBw97wSPA/I ECx9J5sPGWPtFpkstmEBlANzmz6qUDMp9k7Cs+UADKXFR4sFWkjpqu5kt9iOYEV8ZQR0 IySlbKoRr9EIGrMCbuB8suU/yRfyR5e9c9rNBPt9PQM42VWjF+U8PCwQFrOF/ZrcHtK+ wVTQ== 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=v3s5mvfLW9gXL3YmiIbEoFDRQ9cz5yn4A3mgarzM4PivoEknaVnpaTn1eR4IOkO9nk sAUQO2kz7Bvz1JrGwThAVeaIVyBH0c8jgmVRRn7MtGEJhZQaFtDjSVuEgUwRAJlHQON4 h0qzr/22z2cb0/52AE2EngnJ/q4rdlRoHWFkyW8nn1odHhaK6xVaExnrZC5ZflZdPNcQ +DfHcmK98locMx4mAkGiAbxvOnvESk+bySmojFNFZdYnLYMy1L6FvIeAod6AgXI9324X xHIFg9TX9LvHW7/4DrQkmcK73XEoR1DVrpEPl/R3YwzV9szK74JOHB1zH3QeCpjiXb/K /rNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BmlMHd4E; 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 x199si7179048itb.171.2017.08.28.01.58.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Aug 2017 01:58: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=BmlMHd4E; 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 1dmFrL-0005au-S4; Mon, 28 Aug 2017 08:57:27 +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 1dmFrK-0005YK-Ds for xen-devel@lists.xenproject.org; Mon, 28 Aug 2017 08:57:26 +0000 Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id D3/67-01712-5FAD3A95; Mon, 28 Aug 2017 08:57:25 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLIsWRWlGSWpSXmKPExsVyMfTARt2PtxZ HGjR9VLL4vmUykwOjx+EPV1gCGKNYM/OS8isSWDP+bulkLpjMXbFqwRamBsajnF2MXBxCAjMZ Je5e+cEM4rAIzGOW+PZwGRuIIyHQzypx5PI2IIcTyEmTeND8iR3CrpD4+OE1M4gtJKAlcfTUb FaIUfuZJPbeu8rYxcjBwSZgIjGrQwKkRkRASeLeqslMIDXMAvMZJZom9YINFRaIkXg0+yAjiM 0ioCqxcfIusDivgI9E05b3zBDL5CRunusEszmB4jvW3mWHWOwt0fX6A+sERoEFjAyrGDWKU4v KUot0DU31kooy0zNKchMzc3QNDUz1clOLixPTU3MSk4r1kvNzNzECg4sBCHYwNmz3PMQoycGk JMq7s2JxpBBfUn5KZUZicUZ8UWlOavEhRhkODiUJ3jM3gXKCRanpqRVpmTnAMIdJS3DwKInwf gBJ8xYXJOYWZ6ZDpE4xWnJcubLuCxPHhtXrgeSUA9u/MAmx5OXnpUqJ8z4EaRAAacgozYMbB4 vFS4yyUsK8jEAHCvEUpBblZpagyr9iFOdgVBLmPQgyhSczrwRu6yugg5iADlIUXAhyUEkiQkq qgXE980pzQQuGPxv+HBe4MTfskep0i00ql9Y9OjxjWtD8mf45EoZcuxl6XhYvCAw3iK3jDN/Q F1slv+1tgV3CjC0vGmUfqi37ufr6lym/I86+XmWScoFtctOhitDIAzYVe29V7FCIP+InUxP2X OboMsndSq2VzuJX505hc9t5QVI71++3YxV31DklluKMREMt5qLiRACOdU78wAIAAA== X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-14.tower-206.messagelabs.com!1503910640!70320104!1 X-Originating-IP: [209.85.192.177] 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 62822 invoked from network); 28 Aug 2017 08:57:21 -0000 Received: from mail-pf0-f177.google.com (HELO mail-pf0-f177.google.com) (209.85.192.177) by server-14.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 28 Aug 2017 08:57:21 -0000 Received: by mail-pf0-f177.google.com with SMTP id c15so14539387pfm.2 for <xen-devel@lists.xenproject.org>; Mon, 28 Aug 2017 01:57:21 -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=BmlMHd4E8JLz8xc+1zPduxiC+6j4KzXJodX7ne+CEXF7Eh++x7Rt1SyTJGX2ol25UG VONOCS0WaQTiaOd7wRsqD8jMjEfr1biCaIahJC4pHnDL26ReMezyabLS7oPnH27DVoRa K17It6SIh6qN0YWMMiaO7D90qG1u8oy0HN0XM= 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=H60vVdFYPg/ppLif8gccU2dMHie8bkGWfPRzW1hpVT0AjWq8IklgwG+O+9ttRSYYzl BTewKcMahk9MxwbHPLHHu6+fgvOpmanUXxv6quRkCni5KDeSqoUXztjlijb2xc26V3gf MIeYVcXpoQ8ktbcXQOVPSW5R0WJnD3sbDPtsQRjiDqY8uE2TixqL7NrapgIrKBb2v6cs H6KMGUIzz3EGT0euccWGs904Y3CS1QLyNJUAbKETEpXt0L9WrYj0459R14vISXTfF04C xW4MxUAyNQs+QmTRyy/MW6v8IdjnAF83BM7uhsKcEyQqWGwHWxaSk0HvU2mBnr65V2d8 JJKg== X-Gm-Message-State: AHYfb5gr6s0c0jeWsQuCToexfJJ7ZegyljctZ9fPPSahpHDrnPDg6fOD JL51NeG7aIQi1Eobnvzisg== X-Received: by 10.98.51.71 with SMTP id z68mr6834378pfz.307.1503910639665; Mon, 28 Aug 2017 01:57:19 -0700 (PDT) Received: from blr-ubuntu-linaro.wlan.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id d88sm21713569pfl.158.2017.08.28.01.57.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Aug 2017 01:57:19 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Mon, 28 Aug 2017 14:26:02 +0530 Message-Id: <1503910570-24427-20-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503910570-24427-1-git-send-email-bhupinder.thakur@linaro.org> References: <1503910570-24427-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 v8] 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); } }