From patchwork Sun Jul 10 11:47: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: 9222585 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 898306089D for ; Sun, 10 Jul 2016 11:57:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B3A32434C for ; Sun, 10 Jul 2016 11:57:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FD07264FB; Sun, 10 Jul 2016 11:57: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 1701F26490 for ; Sun, 10 Jul 2016 11:57:57 +0000 (UTC) Received: from localhost ([::1]:54256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDMy-0000DF-U7 for patchwork-qemu-devel@patchwork.kernel.org; Sun, 10 Jul 2016 07:57:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDDp-00066z-4I for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMDDn-0001iY-22 for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:28 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:34333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDDm-0001iU-Ro for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:26 -0400 Received: by mail-wm0-x243.google.com with SMTP id w75so13126975wmd.1 for ; Sun, 10 Jul 2016 04:48:26 -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=sZoEkgH2DlFf+WhXHn0aTBxSaNibFUmR2+kYQMQ9dyk=; b=p4XmaBAyOg8rd6kLS67A9jDeU6kPcb2TedwN8OOrD/tMGov+R8/v0PMYDGaWf881jj Ae5Ncu5eAb4vst35yzkhKILTCBse8UjeQe7w8f9WpkcUFW5bRO4x9oIsvCFHXj8CPBpG j5Dz0ODFQ779XcumEebaLGs/hEBIVH2TtBz59Th3tVrg/kbh/AfZSpP1fr07UnlY6NeG LAxHoUqGcHgGIcOSQjRWVuZ3hkHlxoos/0pkorAdphpH7qN4G8AfEzJQlORZN9skLdIP OT8OtQM2vReZKpSzvF2wJM4gURIJsTndxW8cc9Iz0Yk8X03Wh56UTi4Yjxj8UWGwD3H2 p1cg== 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=sZoEkgH2DlFf+WhXHn0aTBxSaNibFUmR2+kYQMQ9dyk=; b=an5GhORylb48QIVxw++LD2ad/9ZEcgTdplIn3BacnPXFeuFmNtAZPLSddZ8Q1rKaa2 hp+BjDBYbDzcXTorAsdzqPi+/wKpcuXg9SRTfAyOiorQ5xuAqbhKnnsBCBLHtWZ5eeKV vFwVTgDQM+BkrGRWBhmcavIynmwyGyZqz0nNXRTLh3g2R1YRa7auLXsloAU0yW5FPlH9 kjcalIeRRfrT9e0enRXf6/GRVFyT78wkTtKILLBq7ZmRpwAyJJl4RpXwgHCMqr+9BtxJ DiKiGFjpzkpFAt4icelQAAh40o/qwCt+402owGmZumoOTK8N6bDQvCs9CUceDpPOClrL if6Q== X-Gm-Message-State: ALyK8tJEJYzTFoDc6G+GrwZMNM33OVBOeEU4xjKJhjqpu9J2smDZTr/moMZrbphX/uDVZQ== X-Received: by 10.28.86.214 with SMTP id k205mr6683018wmb.17.1468151306256; Sun, 10 Jul 2016 04:48:26 -0700 (PDT) Received: from localhost.localdomain ([79.112.8.37]) by smtp.gmail.com with ESMTPSA id d137sm6888378wmd.12.2016.07.10.04.48.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Jul 2016 04:48:25 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Sun, 10 Jul 2016 14:47:41 +0300 Message-Id: <1468151270-12984-11-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::243 Subject: [Qemu-devel] [PATCH 10/19] 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: 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_find_xendev to be shared with frontends: * xen_be_find_xendev -> xen_pv_find_xendev Signed-off-by: Emil Condrea --- 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 01ae00f..df13912 100644 --- a/hw/display/xenfb.c +++ b/hw/display/xenfb.c @@ -978,8 +978,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 d6c04c7..51afb1c 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_backend.c @@ -148,7 +148,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 5482ab0..24266fa 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -211,7 +211,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 a06afb6..f26d82a 100644 --- a/include/hw/xen/xen_pvdev.h +++ b/include/hw/xen/xen_pvdev.h @@ -69,7 +69,7 @@ const char *xenbus_strstate(enum xenbus_state state); 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); +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);