From patchwork Sun Jul 10 11:47: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: 9222601 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 D9A3160572 for ; Sun, 10 Jul 2016 12:02:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB47924B5B for ; Sun, 10 Jul 2016 12:02:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C010D2705B; Sun, 10 Jul 2016 12:02:31 +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 684D124B5B for ; Sun, 10 Jul 2016 12:02:31 +0000 (UTC) Received: from localhost ([::1]:54347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDRO-0005iU-If for patchwork-qemu-devel@patchwork.kernel.org; Sun, 10 Jul 2016 08:02:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDDv-0006Dt-9h for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMDDq-0001jS-6i for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:35 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:34335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMDDq-0001jN-0h for qemu-devel@nongnu.org; Sun, 10 Jul 2016 07:48:30 -0400 Received: by mail-wm0-x244.google.com with SMTP id w75so13127029wmd.1 for ; Sun, 10 Jul 2016 04:48:29 -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=9rXf7wKo1hPexqRzLOt3N/VZA+XSMHeovvjkDJd2ecs=; b=P6FoI3IY/rKQcpKBT1TgLM6pHvxiSYJfbZyRzfotR23/ESqiE6+TRML69FImWdezB/ E8ZTHQJqU5+L57Y+EJtgtbfLq64+eAu/S9llnJD6WnQOGbxC8L8RbwxIQKeE4QF0WZqN 1YW87gVuv32wMrwu5XURBwlSO8eszK90yJS4IFjdNJzSGd9u+TXwlWNINl2MgP9YJ2Vy ZSV6zaT/te4w6mf+avdDCnIYd76NlrnoLKSDFB5mD6NnXAMXRkZlOMKCW97cQXCqavGW Z8uzxgRljpWLKXQQfGbiUx+ZJO0vsr1xSUutosYC5iVPRye3+XLTtw382PZJpVNWhQm4 OK1w== 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=9rXf7wKo1hPexqRzLOt3N/VZA+XSMHeovvjkDJd2ecs=; b=nANJBhPvV/panqaO6PmVipN8U9rUT9qLoQYMrWVHlKt/DKYcLpY6SMvZVC9m0YY4zy 1i9kz+gH93D+lZkd9Va+9MP2Gi8uCAec5deT9ZUZ8Nx9nMfpKvnGm9diu8n5Ik13rgqC gLKoy3lqAQmwof3fefXyDue1EySX20BHmkKovR4VSl05pPsAyFR2EeRSvoF08USU5loP wl19kZDzAmmo8hgj2e8obh/pDni7i7BNQXX2VZ2BOQhkmjAc7KI8HDt5t9OegC4/tylE U//ouTMPOktcEGrWwKUwU6yVCepRbw6VPDxo0vDgp1oeeYMnKgybmAXMMRh3Dsf6geaw /x+w== X-Gm-Message-State: ALyK8tLx7p5qZ0uk8JQKYwM4ggclJuf12Tn8Zm8fhudMCzDe1UCNgFm8usxZNhA/BbaiHA== X-Received: by 10.28.1.74 with SMTP id 71mr6718096wmb.4.1468151308467; Sun, 10 Jul 2016 04:48:28 -0700 (PDT) Received: from localhost.localdomain ([79.112.8.37]) by smtp.gmail.com with ESMTPSA id d137sm6888378wmd.12.2016.07.10.04.48.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Jul 2016 04:48:27 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Sun, 10 Jul 2016 14:47:42 +0300 Message-Id: <1468151270-12984-12-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::244 Subject: [Qemu-devel] [PATCH 11/19] xen: Rename xen_be_del_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_del_xendev to be shared with frontends: * xen_be_del_xendev -> xen_pv_del_xendev Signed-off-by: Emil Condrea --- 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 51afb1c..9efe4b9 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_backend.c @@ -484,7 +484,7 @@ void xenstore_update_be(char *watch, char *type, int dom, if (xendev != NULL) { bepath = xs_read(xenstore, 0, xendev->be, &len); if (bepath == NULL) { - xen_be_del_xendev(dom, dev); + xen_pv_del_xendev(dom, dev); } else { free(bepath); xen_be_backend_changed(xendev, path); diff --git a/hw/xen/xen_pvdev.c b/hw/xen/xen_pvdev.c index 24266fa..394ddc1 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -233,7 +233,7 @@ struct XenDevice *xen_pv_find_xendev(const char *type, int dom, int dev) /* * release xen backend device. */ -struct XenDevice *xen_be_del_xendev(int dom, int dev) +struct XenDevice *xen_pv_del_xendev(int dom, int dev) { struct XenDevice *xendev, *xnext; diff --git a/include/hw/xen/xen_pvdev.h b/include/hw/xen/xen_pvdev.h index f26d82a..c19e1df 100644 --- a/include/hw/xen/xen_pvdev.h +++ b/include/hw/xen/xen_pvdev.h @@ -68,7 +68,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_pv_del_xendev(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);