From patchwork Tue Oct 25 05:50:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 9394081 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 AAAA260762 for ; Tue, 25 Oct 2016 06:16:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C6692939B for ; Tue, 25 Oct 2016 06:16:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9080F2939D; Tue, 25 Oct 2016 06:16:38 +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 DA79C2939B for ; Tue, 25 Oct 2016 06:16:37 +0000 (UTC) Received: from localhost ([::1]:52052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byv2K-0001N4-No for patchwork-qemu-devel@patchwork.kernel.org; Tue, 25 Oct 2016 02:16:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byueq-00017k-O0 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 1byuep-0004Zp-Vn 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]:35390) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byuep-0004Za-PI for qemu-devel@nongnu.org; Tue, 25 Oct 2016 01:52:19 -0400 Received: by mail-wm0-x243.google.com with SMTP id o81so264148wma.2 for ; Mon, 24 Oct 2016 22:52:19 -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=YAz3XK6B56fHvqSlmDg97rpGHip39CfWkKUFsOEv9ZU3tl/WJJUokeHfCjERVnwzzu hn/+c289L43Vztp7nmdl9aZJLqyb879VNbfklJ/joTSlh5OJVivnHouam0O/EZq9EZdN xH8KkSD8KYc/xDiIr2xfKve/+s+huDsdFgEhOLcIve922JOkMBiW1+knCJIk/7ebuMqz zh2fmblTH02cQl9AkqP5ilDVNUxM8q7tf/pIOO/paGgBlCXmgEujz7A3JOY6xkknvrxU 3+/Io13llNpffjTZKuImV0yrNP4KTmBnW3RB5yRjpywB+tb2ePNZJgG39cX0ziAslkP/ G8OA== 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=hAYzpPkUYKYaXZPlnPTtupAjm8E2FEAOL0zMgOIiKOlGKXH+qtnqHAIfrUZp1/cU2H MPVP05UzJpdyipI7SXIFwctr6gu6oRU1W0svHzuhD/R/kTtZ7aFpu18qDnYY6tDjF4ve Z8go7v0zc3NTmrkbKaSjFD4L6tI1tvfGucIzixd/BLnQP4+r0vrFGHo7u+RuJim7yYzq 2WMywbtPEN2nIa9uL8wJRmqkjMfsL3epSYUcTlmEZZy1XAqKHjoYymWvojtnzGA7CzJ7 gvAMIUQgN9sZGCPr3BwXqXSxj4QkeqQzjLSJY8Zk+d2owNPSikIz9UtPdyE3/HmivHpj hUqQ== X-Gm-Message-State: ABUngvfqqHPQuPGAZI2d3t1QIj+REK95YZn1l/Siu7R307TuiYtSlhy14EGzhg9oSiVrvg== X-Received: by 10.28.149.209 with SMTP id x200mr1313947wmd.123.1477374738587; Mon, 24 Oct 2016 22:52:18 -0700 (PDT) Received: from localhost.localdomain ([79.112.79.134]) by smtp.gmail.com with ESMTPSA id gk6sm1358053wjc.21.2016.10.24.22.52.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 22:52:17 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Tue, 25 Oct 2016 08:50:19 +0300 Message-Id: <1477374619-13149-14-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 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, 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_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);