From patchwork Thu Oct 13 06:01:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 9374423 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 99994607FD for ; Thu, 13 Oct 2016 06:15:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E413297FA for ; Thu, 13 Oct 2016 06:15:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82CCB29861; Thu, 13 Oct 2016 06:15:58 +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 DB73B297FA for ; Thu, 13 Oct 2016 06:15:57 +0000 (UTC) Received: from localhost ([::1]:37840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buZJ7-0002Te-0m for patchwork-qemu-devel@patchwork.kernel.org; Thu, 13 Oct 2016 02:15:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buZ66-0000Bs-3n for qemu-devel@nongnu.org; Thu, 13 Oct 2016 02:02:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buZ62-0000Xo-AM for qemu-devel@nongnu.org; Thu, 13 Oct 2016 02:02:29 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:34001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buZ62-0000XS-2i for qemu-devel@nongnu.org; Thu, 13 Oct 2016 02:02:26 -0400 Received: by mail-lf0-x241.google.com with SMTP id x23so5024049lfi.1 for ; Wed, 12 Oct 2016 23:02:25 -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=A+rjU9XDCtvv96HyumRUPXjCtDZF6P3mJUJbkUtYoxw=; b=YUbit8S029eOXdKkBz+S0qCKMQ1o3DfADSRSmZjhkpAeZGi3QfcdkJzNmg5r1k7L/8 aYHVvBPOge1BCyJxDes6SjmGd/5neTvjGWil1bu7aqqYyyR7VnzXdml9/h6MnRBbTuJw vyvkcxdINnCq9fhdKnQDvx+5YfJValhKrO/2+pnw4yheUcld9wZTl8ggBV9ZrNREI9GS 4VGqXURP3K2+fPfKLNrhw0BALayTfWFEmT7Iyi+hc5DLvKuyEswxbHTSVIVfUmn0Bz2B bbaemRqkVoutxwHlCIxBlq3ZlIo9dS3veSWVTFnqxwTgiiaKRW6JOsz1bAl3lvAfjiTD FvjA== 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=A+rjU9XDCtvv96HyumRUPXjCtDZF6P3mJUJbkUtYoxw=; b=Y7oNh7RnU/6+L/iFuh3VjFbDW8GSnsUyBnisWNOklb1uVkCu//GtBL4D2B8xZnReT2 pEMFgiyzuE7YsdMq2odZuJQmPOzpWnz+Tk580tOkByKqrab2/vN3VKTBs7PUbfgeoSwJ y86nmi9rb4pE8wk8GZl62WBy/rkQMYIr+vVG7LJYz2HQNk6nf24APRrcxhYvA78lVx3V +aj6I+R9FoQIf953RLARPGcqBKpUV79B+a5zjL61Io8hPZF0FkSR4iTDAjUt8A8XNa5f LE5gDN5An4yZMpnIm85HTFTOF4+boYoPnZOkuypPCZce9YncBz8hVDq3IJEDMHLzH4mi j+zQ== X-Gm-Message-State: AA6/9RmChBLOfpe0Z28jUmNkM/fSu+j+wJaQ+RrthcrJQ0R5D+xwcDtS4U7B6zYU/I9utg== X-Received: by 10.194.16.161 with SMTP id h1mr5764497wjd.164.1476338545254; Wed, 12 Oct 2016 23:02:25 -0700 (PDT) Received: from localhost.localdomain ([79.112.35.35]) by smtp.gmail.com with ESMTPSA id rv12sm19588230wjb.29.2016.10.12.23.02.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Oct 2016 23:02:24 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Thu, 13 Oct 2016 09:01:52 +0300 Message-Id: <1476338514-14492-12-git-send-email-emilcondrea@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1476338514-14492-1-git-send-email-emilcondrea@gmail.com> References: <1476338514-14492-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:4010:c07::241 Subject: [Qemu-devel] [PATCH v2 11/13] 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: xuquan8@huawei.com, sstabellini@kernel.org, wei.liu2@citrix.com, stefanb@linux.vnet.ibm.com, xen-devel@lists.xen.org, anthony.perard@citrix.com, dgdegra@tycho.nsa.gov 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 Acked-by: Anthony PERARD Reviewed-by: Quan Xu --- 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 e960dad..f594dba 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_backend.c @@ -581,7 +581,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 8c7e3f5..28acf61 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -227,7 +227,7 @@ void xen_pv_printf(struct XenDevice *xendev, int msg_level, 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 2e5d6e1..caf1edc 100644 --- a/include/hw/xen/xen_pvdev.h +++ b/include/hw/xen/xen_pvdev.h @@ -64,7 +64,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); void xen_be_del_xendev(struct XenDevice *xendev); struct XenDevice *xen_be_find_xendev(const char *type, int dom, int dev);