From patchwork Tue Oct 25 05:50:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 9394063 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 CEAFC60231 for ; Tue, 25 Oct 2016 06:04:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0C7E2935D for ; Tue, 25 Oct 2016 06:04:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B52112936F; Tue, 25 Oct 2016 06:04:21 +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 5B6072935D for ; Tue, 25 Oct 2016 06:04:21 +0000 (UTC) Received: from localhost ([::1]:51966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byuqS-0001su-MG for patchwork-qemu-devel@patchwork.kernel.org; Tue, 25 Oct 2016 02:04:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byueq-00017P-8c for qemu-devel@nongnu.org; Tue, 25 Oct 2016 01:52:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byueo-0004ZF-60 for qemu-devel@nongnu.org; Tue, 25 Oct 2016 01:52:20 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36649) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byuen-0004Z3-VS for qemu-devel@nongnu.org; Tue, 25 Oct 2016 01:52:18 -0400 Received: by mail-wm0-x243.google.com with SMTP id c78so261808wme.3 for ; Mon, 24 Oct 2016 22:52:17 -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=kluYeF/E87R1HuINdPxPRlNsXugCxjOHF46V7YyIYoQ=; b=Oa9GeFEG3w6WMP4b4EtXySAdhjU/kL53TJLoEq72SoDhafsyJ0gNOkP7sDIQ9Fb1ob q7G3WAxuK0/I8WxqmQ7URwyf/zwzWkxNm0KCroyEkQQ4KtmDJw4GcXWMlpHvp2cUxfL6 jF1UetBkIv//fn042XtT7XFOhHi/eN6Q4TgTHkRaqlZ3sCdngzkUEbSwEUGEYRzdgpKL DEWJZ0iR6IB2jfB28pFQYYflUSy28A57j/yWgMh2HMUGQiL/hfJgAtCG96HZoARF3rBX DJq1Mh3dbCy1wz/5zSi/DDkHulNB+4uWStOgm1xJm6mQWqiqXXSEiPs2hm2y5h1s79SI hDNw== 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=kluYeF/E87R1HuINdPxPRlNsXugCxjOHF46V7YyIYoQ=; b=S9WodI0Kug2PWarpOQOE2kr/RFkB6YIJX7h2jdF2WuSA5SEFr6XF7Z+wF5Bx5ZEL5K mcXkbun3IScnL3GXPsDK8taGGp82rBYXFr21duhlKNXGu3+pGug1JE+FgYPYEP5qOEcq Re6PvoO9f84F1UIbRtqfnS5K/eIOPRtybVuVGjwWeNlV7vVXRAThCrLap9OtQ5y+T+d/ eNWrC/8+Wh75/FzlaTV9HqiCqgMBP+fAnrCR8hdSCGAAkpp5a2yZxIC2TtuYamzA6Uh8 18EKxGWRpPV8X4wrDdBUXceYSzG6GULoOqXiAOd4xHMmoY3GtMSp5yvexl7EBWDwom2P 5A7A== X-Gm-Message-State: ABUngvf8XMh/Wm6/synj8zJLMB9JQHBMk0kEgkW2RClTJRNwlHXplzsHqtO/G9PHmpO/fw== X-Received: by 10.194.202.195 with SMTP id kk3mr14525834wjc.37.1477374736821; Mon, 24 Oct 2016 22:52:16 -0700 (PDT) Received: from localhost.localdomain ([79.112.79.134]) by smtp.gmail.com with ESMTPSA id gk6sm1358053wjc.21.2016.10.24.22.52.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 22:52:16 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Tue, 25 Oct 2016 08:50:18 +0300 Message-Id: <1477374619-13149-13-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::243 Subject: [Qemu-devel] [PATCH v3 12/13] xen: Rename xen_be_find_xendev 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_find_xendev to be shared with frontends: * xen_be_find_xendev -> xen_pv_find_xendev Signed-off-by: Emil Condrea Acked-by: Anthony PERARD Reviewed-by: Quan Xu --- hw/display/xenfb.c | 4 ++-- hw/xen/xen_backend.c | 2 +- hw/xen/xen_pvdev.c | 2 +- include/hw/xen/xen_pvdev.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index 184e735..7a8727a 100644 --- a/hw/display/xenfb.c +++ b/hw/display/xenfb.c @@ -988,8 +988,8 @@ void xen_init_display(int domid) wait_more: i++; main_loop_wait(true); - xfb = xen_be_find_xendev("vfb", domid, 0); - xin = xen_be_find_xendev("vkbd", domid, 0); + xfb = xen_pv_find_xendev("vfb", domid, 0); + xin = xen_pv_find_xendev("vkbd", domid, 0); if (!xfb || !xin) { if (i < 256) { usleep(10000); diff --git a/hw/xen/xen_backend.c b/hw/xen/xen_backend.c index f594dba..98fcb77 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_backend.c @@ -114,7 +114,7 @@ static struct XenDevice *xen_be_get_xendev(const char *type, int dom, int dev, { struct XenDevice *xendev; - xendev = xen_be_find_xendev(type, dom, dev); + xendev = xen_pv_find_xendev(type, dom, dev); if (xendev) { return xendev; } diff --git a/hw/xen/xen_pvdev.c b/hw/xen/xen_pvdev.c index 28acf61..af29150 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -264,7 +264,7 @@ int xen_pv_send_notify(struct XenDevice *xendev) /* ------------------------------------------------------------- */ -struct XenDevice *xen_be_find_xendev(const char *type, int dom, int dev) +struct XenDevice *xen_pv_find_xendev(const char *type, int dom, int dev) { struct XenDevice *xendev; diff --git a/include/hw/xen/xen_pvdev.h b/include/hw/xen/xen_pvdev.h index caf1edc..4b1cc60 100644 --- a/include/hw/xen/xen_pvdev.h +++ b/include/hw/xen/xen_pvdev.h @@ -67,7 +67,7 @@ const char *xenbus_strstate(enum xenbus_state state); 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); +struct XenDevice *xen_pv_find_xendev(const char *type, int dom, int dev); void xen_pv_unbind_evtchn(struct XenDevice *xendev); int xen_pv_send_notify(struct XenDevice *xendev);