From patchwork Thu Oct 13 06:01:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 9374427 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 20DB260779 for ; Thu, 13 Oct 2016 06:21:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15EB728422 for ; Thu, 13 Oct 2016 06:21:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A6B82841D; Thu, 13 Oct 2016 06:21:00 +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 88A3D2841D for ; Thu, 13 Oct 2016 06:20:59 +0000 (UTC) Received: from localhost ([::1]:37871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buZNy-0005wQ-MW for patchwork-qemu-devel@patchwork.kernel.org; Thu, 13 Oct 2016 02:20:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buZ68-0000EO-I0 for qemu-devel@nongnu.org; Thu, 13 Oct 2016 02:02:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buZ66-0000ZL-KJ for qemu-devel@nongnu.org; Thu, 13 Oct 2016 02:02:31 -0400 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:34878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buZ66-0000Z8-Cv for qemu-devel@nongnu.org; Thu, 13 Oct 2016 02:02:30 -0400 Received: by mail-lf0-x244.google.com with SMTP id x79so10791306lff.2 for ; Wed, 12 Oct 2016 23:02:30 -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=tnstt+qecgHH6rar/wNuM54gjSgbz/PdqnR0t4y8SUA=; b=yJ9Or2Dw4geMniLDnFNgWrgkCuyvLimLMBDIz3U6M9yqstJuVxL5XF7PHSKV7Of3T9 rltn5CvPs0233KC3SSgigYh3y0uc8IM2eff8fpV2gTuWnQRzgnVJJ5ssz3ZH4bCJHGg1 XFXBk5OZ/O6LE2OmBTFDrICI82jo/a6TOLGgOEpZVH2B35UpWBHxr+fQuftB1HKoTnfE CFIiNUDKqlQR03dcuNG1jdYmtTaOWO9ORiQSNJYkol5vZ6Je2Vd1iBdar5whQvhF4ZVT 0Va24D7F4TNsbsz82BJ3VSk8ciY9RwPMppb8odR1HYCcQDpcckvN1I3ckIXS3mKhStWP Ss5w== 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=tnstt+qecgHH6rar/wNuM54gjSgbz/PdqnR0t4y8SUA=; b=FWHbWWawQ+pxrrOcH9VnZb7tggbgMVh1iVL2Td25OUp8oe10B2vAGg+KCzElYfoBjl OWZ3w+tU1zEKrOuvDSRirTY6mZJGNKk/duX6rVnqQ4neGqk3zeebyyRR6S/C/gsEiyW8 6RLCNU9/Pr0Yz4cSmnZkjwpu6SyIfvj0Sagn0d8cK0t0nO6f5QQ6aZ8H9DuanRRkikWl l4VsPgr4UfRYP80FWRJQbycr6rvNy2KmWmU346jbyBj4rBIAoaaotjR08F6vzzDdLNni q661xl7ilUEJgM38R7tASwbiyIWQOo0ATJcoheCyPN5oGwlnIsU1LnRlNyqCuFIAD7L5 Ht/Q== X-Gm-Message-State: AA6/9Rm2KSiH27Z/U361kUqMT9mY+DrdWj3X47JAN0OLsSQn9bu1jNVdNjych+X7WKTZcg== X-Received: by 10.28.19.211 with SMTP id 202mr783597wmt.26.1476338549587; Wed, 12 Oct 2016 23:02:29 -0700 (PDT) Received: from localhost.localdomain ([79.112.35.35]) by smtp.gmail.com with ESMTPSA id rv12sm19588230wjb.29.2016.10.12.23.02.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Oct 2016 23:02:28 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Thu, 13 Oct 2016 09:01:54 +0300 Message-Id: <1476338514-14492-14-git-send-email-emilcondrea@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1476338514-14492-1-git-send-email-emilcondrea@gmail.com> References: <1476338514-14492-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:4010:c07::244 Subject: [Qemu-devel] [PATCH v2 13/13] 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: 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 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 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 98fcb77..41ba5c5 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_backend.c @@ -483,7 +483,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(xendev); + xen_pv_del_xendev(xendev); } else { free(bepath); xen_be_backend_changed(xendev, path); diff --git a/hw/xen/xen_pvdev.c b/hw/xen/xen_pvdev.c index af29150..405e154 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -286,7 +286,7 @@ struct XenDevice *xen_pv_find_xendev(const char *type, int dom, int dev) /* * release xen backend device. */ -void xen_be_del_xendev(struct XenDevice *xendev) +void xen_pv_del_xendev(struct XenDevice *xendev) { if (xendev->ops->free) { xendev->ops->free(xendev); diff --git a/include/hw/xen/xen_pvdev.h b/include/hw/xen/xen_pvdev.h index 4b1cc60..083f0a9 100644 --- a/include/hw/xen/xen_pvdev.h +++ b/include/hw/xen/xen_pvdev.h @@ -66,7 +66,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); +void xen_pv_del_xendev(struct XenDevice *xendev); struct XenDevice *xen_pv_find_xendev(const char *type, int dom, int dev); void xen_pv_unbind_evtchn(struct XenDevice *xendev);