From patchwork Tue Oct 4 06:43:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 9361251 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 EB1E5600C8 for ; Tue, 4 Oct 2016 07:06:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAAB628ADE for ; Tue, 4 Oct 2016 07:06:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFA1D28AE8; Tue, 4 Oct 2016 07:06:14 +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 73A1228ADE for ; Tue, 4 Oct 2016 07:06:14 +0000 (UTC) Received: from localhost ([::1]:40546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brJnp-0001te-DF for patchwork-qemu-devel@patchwork.kernel.org; Tue, 04 Oct 2016 03:06:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brJTA-0001uo-Td 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 1brJT8-0005yE-HC for qemu-devel@nongnu.org; Tue, 04 Oct 2016 02:44:51 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brJT8-0005xn-8c for qemu-devel@nongnu.org; Tue, 04 Oct 2016 02:44:50 -0400 Received: by mail-wm0-x244.google.com with SMTP id f193so13423422wmg.2 for ; Mon, 03 Oct 2016 23:44:50 -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=aYdgBYgLj39CLrEd6m//VeTiMsS776WdQc1Qq1zAEAQ=; b=flc97qCp3koFnXcmJoP3BOdBo/BCWsdKzc8+9MZhotF3UZHH6MCy5Khfz+YBHWAr7S XAUK8BeK9sh2Vt1OXjAkY8inBRR/Iwij/1R7OfCaA2m8A+/vh3dUkxZEz+hNVZCdjaF7 GQ9NN9YnwSHjgwzAALziFsaXC90n5VUlxmtveovrfNBlhJUVQKf8ea9as1z4KTJ7xWGU //JczoPgjleatlzrFq0eoEVqGONZz5WwwitWHzsomZRXyuZSbBKCxcE+JtScvM1/rsYs YqDQgw7eiCB+oR/7yt/Fogx+9a9595Vqj8zvOpcK17eY92Bf7UzItdvTrW3/FL7MHLYX noQA== 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=aYdgBYgLj39CLrEd6m//VeTiMsS776WdQc1Qq1zAEAQ=; b=LY0LMQJfLHD/Ezsk8TuNGBSuVol3nKEYR7HjhaUumc0A9bRMArs3/AV1chcpiFnFwV ujKqDXeP/93Qo3r1eN79E4C3bWBES+kXyy7ILlZe7xbIf0urnAz2EY6U7Za2IulcoerF 2hbhla2YZnA6PwBYW2ejZ0MRWiJJFe9HHPMMjKcIqK3ybWh/mOjI/gr+cmVHs2UDkGGk /1hSxs4pSDQFir8IBRl7rxipxJs9emnxYwHPdRD+Q3Scq9ORZqMGpviRRYd445R5avJ2 +QwC75qbK9s+yVVbnv+EFdkW8BxPsWMM/sKaEp1sP9JqNz5kDN4cAxpAQos7Nmc1ArBB tvpQ== X-Gm-Message-State: AA6/9RkxxOFdjOceIScBC663OKZKlya3znl6lCdXnt2TbpijxFBBKfZsCEMhRP4hNEbDgA== X-Received: by 10.194.13.97 with SMTP id g1mr1428880wjc.223.1475563489547; Mon, 03 Oct 2016 23:44:49 -0700 (PDT) Received: from localhost.localdomain ([79.112.35.35]) by smtp.gmail.com with ESMTPSA id f142sm2341423wmf.19.2016.10.03.23.44.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Oct 2016 23:44:48 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Tue, 4 Oct 2016 09:43:42 +0300 Message-Id: <1475563424-6604-14-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 13/15] 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, 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_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 9a7b298..52020b3 100644 --- a/hw/display/xenfb.c +++ b/hw/display/xenfb.c @@ -989,8 +989,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 b6c11a1..5c41524 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_backend.c @@ -99,7 +99,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 1c2cb98..69cf7af 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -265,7 +265,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 46560a1..550bf69 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);