From patchwork Sun Jul 10 11:47:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 9222573 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 86F3B60890 for ; Sun, 10 Jul 2016 11:53:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 783072521F for ; Sun, 10 Jul 2016 11:53:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CE25264FB; Sun, 10 Jul 2016 11:53:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 164752521F for ; Sun, 10 Jul 2016 11:53:41 +0000 (UTC) Received: from localhost ([::1]:54233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDIq-00039T-4t for patchwork-qemu-devel@patchwork.kernel.org; Sun, 10 Jul 2016 07:53:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDDo-00066E-Ez for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMDDl-0001iL-7A for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:26 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDDl-0001hy-0m for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:25 -0400 Received: by mail-wm0-x244.google.com with SMTP id o80so1667503wme.0 for ; Sun, 10 Jul 2016 04:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/s8T31YzhGXs6CFP/KyZMrHJBKE+aCSnq2W+R4RVYZA=; b=ByisU1LKKyy5YUyE6B0XPF78TkWiL4+vnDDwgeS1/euLV448X4aGO0N4vnv+R6zUlE RAJOVZxE0GYtsh555G1qGWM0gv3DNnAHRoNJNOX/KheaI9AQgYwY95Gj2BLm9FQyqxA/ 0eWaE7RgqMLjZen7vWpJE14VpsFdOZe1Yl8UjKTF+lvT0N2openzxW3p4V6WB8zRo2rj PO32AzTZw7bjB+ivVKpb+r2i1asr1I+eKqIZxfpPYFwyNz9EI0LG8TWSP38pfIJngnOl QAL5qqZ35pcBXvBxQSAWkhIq7/9yOR9XTGlzDU4sTLx1laplaj8cEjtLfOnm57LyBWGE oIGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/s8T31YzhGXs6CFP/KyZMrHJBKE+aCSnq2W+R4RVYZA=; b=jPtKf9PpxP0/Foo9XfnzS159aNBjKKrZd8YJ3aTCLcdkauKiIShYAWUVU0UMSn5daF Va7/sbEjoN2MPAOZ6DF4sKC6P9Vb6JgbPOtI6jSjTGmy4l/WYU6Gw2OvsOpTqudJJwnl Alvl4EtbDyaLpGfVWnYw3qQd/yj9+kwX0ak83XlRHAZoJCx16p2Rpfj0/XpR7E3Ix0FT dK+sK9maT5vBuDdpNYELNlfXekW7RWQx9L+ClsbHU5DNUAmER5eJeT4sR+mVovpyTDUx KEAPnyadE9MGsAuIQDXTHXIMC+ePMfFFtu46Vqr41WJpf9tW/FuPgG3d0VAAq+2o1Bar CjBg== X-Gm-Message-State: ALyK8tJKJKDIFOdcMLCYTeOHPmxt/zuRqydCPMJhZBOjmXus9G5eHbNBdbMqQsOY5s8TOw== X-Received: by 10.28.176.7 with SMTP id z7mr11262315wme.17.1468151304463; Sun, 10 Jul 2016 04:48:24 -0700 (PDT) Received: from localhost.localdomain ([79.112.8.37]) by smtp.gmail.com with ESMTPSA id d137sm6888378wmd.12.2016.07.10.04.48.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Jul 2016 04:48:23 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Sun, 10 Jul 2016 14:47:40 +0300 Message-Id: <1468151270-12984-10-git-send-email-emilcondrea@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468151270-12984-1-git-send-email-emilcondrea@gmail.com> References: <1468151270-12984-1-git-send-email-emilcondrea@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH 09/19] xen: Rename xen_be_evtchn_event X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wei.liu2@citrix.com, stefanb@linux.vnet.ibm.com, stefano.stabellini@eu.citrix.com, xen-devel@lists.xen.org, quan.xu@intel.com, dgdegra@tycho.nsa.gov, emilcondrea@gmail.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Prepare xen_be_evtchn_event to be shared with frontends: * xen_be_evtchn_event -> xen_pv_evtchn_event Signed-off-by: Emil Condrea --- hw/xen/xen_backend.c | 2 +- hw/xen/xen_pvdev.c | 2 +- include/hw/xen/xen_pvdev.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xen/xen_backend.c b/hw/xen/xen_backend.c index 46e1944..d6c04c7 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_backend.c @@ -555,7 +555,7 @@ int xen_be_bind_evtchn(struct XenDevice *xendev) } xen_pv_printf(xendev, 2, "bind evtchn port %d\n", xendev->local_port); qemu_set_fd_handler(xenevtchn_fd(xendev->evtchndev), - xen_be_evtchn_event, NULL, xendev); + xen_pv_evtchn_event, NULL, xendev); return 0; } diff --git a/hw/xen/xen_pvdev.c b/hw/xen/xen_pvdev.c index 3d8b2c2..5482ab0 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -174,7 +174,7 @@ void xen_pv_printf(struct XenDevice *xendev, int msg_level, const char *fmt, ... qemu_log_flush(); } -void xen_be_evtchn_event(void *opaque) +void xen_pv_evtchn_event(void *opaque) { struct XenDevice *xendev = opaque; evtchn_port_t port; diff --git a/include/hw/xen/xen_pvdev.h b/include/hw/xen/xen_pvdev.h index 80e242f..a06afb6 100644 --- a/include/hw/xen/xen_pvdev.h +++ b/include/hw/xen/xen_pvdev.h @@ -66,7 +66,7 @@ void xenstore_update(void *unused); const char *xenbus_strstate(enum xenbus_state state); -void xen_be_evtchn_event(void *opaque); +void xen_pv_evtchn_event(void *opaque); void xen_pv_insert_xendev(struct XenDevice *xendev); struct XenDevice *xen_be_del_xendev(int dom, int dev); struct XenDevice *xen_be_find_xendev(const char *type, int dom, int dev);