From patchwork Tue Oct 4 06:43:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 9361237 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 E8DD7600C8 for ; Tue, 4 Oct 2016 06:55:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D787128A8C for ; Tue, 4 Oct 2016 06:55:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB0B628ABA; Tue, 4 Oct 2016 06:55:22 +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 7323B28A8C for ; Tue, 4 Oct 2016 06:55:22 +0000 (UTC) Received: from localhost ([::1]:40486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brJdI-0001Ys-Uo for patchwork-qemu-devel@patchwork.kernel.org; Tue, 04 Oct 2016 02:55:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brJT9-0001sw-0D for qemu-devel@nongnu.org; Tue, 04 Oct 2016 02:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brJT6-0005wA-Le for qemu-devel@nongnu.org; Tue, 04 Oct 2016 02:44:49 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brJT6-0005vf-DJ for qemu-devel@nongnu.org; Tue, 04 Oct 2016 02:44:48 -0400 Received: by mail-wm0-x244.google.com with SMTP id f193so13423318wmg.2 for ; Mon, 03 Oct 2016 23:44:48 -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=0wBlJKGXXN4RzV9HH780skOVQz5eKndsLVS0PRlTpPk=; b=GRl2cuX5zetFiVDwsCoPkFDPt2tuDb+LCxyGnAf5GOtEc6UAuH9ykkfcYFpfh9BxN/ Z6F86RqaLzCljnZM1q/gHLRCRXZZf2KFcXGY/d/ZLN1k3eHftKNrLGSMMecpLMQcUtRr P7epyF0a33Q7vS5mDyQtN4RkVlfRN5Ed4FRlFxxcH/XJ6UnwPjR/axHfvVNpXrtIvosX uSO8g9eMUN6GxRyJGW8GmGG1lweCELOK1fCqrVm0iOOAfyYDWszmjT77a6mlXKZ/rqBm hJ7tBmJ4/cYNm1CaUO+PLc0U7+TvmJGsERH8+8oZiLkO0ieoShpr2DHC3xBa3oNsU3eo I47A== 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=0wBlJKGXXN4RzV9HH780skOVQz5eKndsLVS0PRlTpPk=; b=S41JGcn7+u1cJWwW4XtxUTEaxz5VsttD2SArc6ml14M2T0sQLZ/ZV5yLk35887P+Q9 8QIPpKHN2e0n2xM1WKN+MJdThX7MemaN0mhtNXCNQUA5o8gyjoNGu+4/g3u3wkMA+zDm U7K+bU62HQ8/TnLql3PU3ZCl8teizI1xlkPNfDkAJeA4Xk++1kd0say0NNURWGzkMGRS N9W5hmvqmyojU/BNhLmwZHoj1m4X36ASI8uvCjvZe/AH21geXAyex+8JUboPwCiA1JYY T8K3cvcbuX5ii8aCKWB6Qwk//zN2V2RRPYgstJ/Tz0iVi++2fCp3eYBX/9Fezak5sIMw 9Lkg== X-Gm-Message-State: AA6/9Rkp0BZDJUgAUeVQhdOmcW6EGEl9yU6mM5xmRdMu4QLfFVtWqc4/s/ObELRfUZ3upg== X-Received: by 10.194.59.84 with SMTP id x20mr1468308wjq.89.1475563487718; Mon, 03 Oct 2016 23:44:47 -0700 (PDT) Received: from localhost.localdomain ([79.112.35.35]) by smtp.gmail.com with ESMTPSA id f142sm2341423wmf.19.2016.10.03.23.44.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Oct 2016 23:44:46 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Tue, 4 Oct 2016 09:43:41 +0300 Message-Id: <1475563424-6604-13-git-send-email-emilcondrea@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475563424-6604-1-git-send-email-emilcondrea@gmail.com> References: <1475563424-6604-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 12/15] 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, Emil Condrea 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 97869cf..b6c11a1 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_backend.c @@ -517,7 +517,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 61e40c9..1c2cb98 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -228,7 +228,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 0ebcda7..46560a1 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);