From patchwork Tue Oct 25 05:50:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 9394079 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 D798D60762 for ; Tue, 25 Oct 2016 06:14:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA0D929398 for ; Tue, 25 Oct 2016 06:14:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE4C02939A; Tue, 25 Oct 2016 06:14:34 +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 66DA429398 for ; Tue, 25 Oct 2016 06:14:34 +0000 (UTC) Received: from localhost ([::1]:52040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byv0L-0000Bi-NI for patchwork-qemu-devel@patchwork.kernel.org; Tue, 25 Oct 2016 02:14:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byuen-00016I-Ij for qemu-devel@nongnu.org; Tue, 25 Oct 2016 01:52:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byuem-0004Yn-ND for qemu-devel@nongnu.org; Tue, 25 Oct 2016 01:52:17 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:35389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byuem-0004YZ-G2 for qemu-devel@nongnu.org; Tue, 25 Oct 2016 01:52:16 -0400 Received: by mail-wm0-x241.google.com with SMTP id o81so264076wma.2 for ; Mon, 24 Oct 2016 22:52:16 -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=Dp6+FLEcVE7EGPawPL1UUvWfptjWddTXoIGEIpE2y/5ELA/mN4hP9Qtgca5xmWQJll AxoKtFXXB6wu4TtpMyj1UYeFt9zmDUEFuUUvQaecY+U3piuwDmPsUBFkTd1Cg0kCjDcP Bpvkc/b6vpS6dWPeRwzeUJgoFYsFJHimg9nH2oanLBK6pPZ4rRQ7iSbSkzVqJIq2K6d5 rMr1Lk7DQHW7sBAWsLrvjiyUKte5j/MGr3ORWI+A4vPQXn3bH5HlkTl+eKDn5JJEL7XU uwI1TfwSL0Z8hXCg0RqDokn8WJzHS81dmHpJ4XYMfZB3oiGmgfWNeymM7ldFeBCsh/ar T+jA== 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=OwdaxyJQbn2wEGTYwS/jUnb11Z5jsK7E2Pk8gfm+OvpsXo14DWWlUZcol3oqqbZpR2 ZqMzORIhaznKG3TXL5DoTf/PSTCfV5agG17t0uRXEKqq2JZ3CEYW0HJxjLhJE64fmGdm bfmqVeIelYCaUb44u4NpAf2orKTIn4uwVFmaauhgrJ2i5gDmfy0G4RiaIOFaG3YUVF3H SmffDXdeauxU0xHa8c/VY8HmzKAxNYz6iqtnKzgcihiB4/yOKJKt2vLPFIhXt+3ytOqH JxkGN8XgWvbm98oYYjJk2UZpboBSxEi6RQNQYBrlIoutN58zFr7K/n8YawbZwddq/1Iy VCpw== X-Gm-Message-State: ABUngvcSFL7ak/hMTjDRCiKa2slMWzAt1khoHR/EE7Wg6HzSGhwFx3NjOF3xRL7LmM7ZEA== X-Received: by 10.194.201.227 with SMTP id kd3mr18063310wjc.74.1477374735348; Mon, 24 Oct 2016 22:52:15 -0700 (PDT) Received: from localhost.localdomain ([79.112.79.134]) by smtp.gmail.com with ESMTPSA id gk6sm1358053wjc.21.2016.10.24.22.52.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 22:52:14 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Tue, 25 Oct 2016 08:50:17 +0300 Message-Id: <1477374619-13149-12-git-send-email-emilcondrea@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1477374619-13149-1-git-send-email-emilcondrea@gmail.com> References: <1477374619-13149-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::241 Subject: [Qemu-devel] [PATCH v3 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, pbonzini@redhat.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);