From patchwork Tue Oct 4 06:43:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Condrea X-Patchwork-Id: 9361243 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 2FDCF600C8 for ; Tue, 4 Oct 2016 06:59:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EED228A3D for ; Tue, 4 Oct 2016 06:59:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 138E728AE0; Tue, 4 Oct 2016 06:59:12 +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 B17B028A3D for ; Tue, 4 Oct 2016 06:59:11 +0000 (UTC) Received: from localhost ([::1]:40505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brJh0-0004i8-N9 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 04 Oct 2016 02:59:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brJTD-0001xD-F1 for qemu-devel@nongnu.org; Tue, 04 Oct 2016 02:44:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brJTA-0005zk-8l for qemu-devel@nongnu.org; Tue, 04 Oct 2016 02:44:54 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:35546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brJTA-0005zH-13 for qemu-devel@nongnu.org; Tue, 04 Oct 2016 02:44:52 -0400 Received: by mail-wm0-x243.google.com with SMTP id f193so13423500wmg.2 for ; Mon, 03 Oct 2016 23:44:51 -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=v6NXQQ3034ywJC7+44HzT3t/q5qs3VddifZ7dhdq5pg=; b=rywZbubvxoylU67hxelf3Bs0k9od3jALk8mIBgmTgWA/JE3JLImTLTQDdYKwviPyia ZMLiLT9vbMgIZmO/nKqtNmgOwo68zQ21iiJepoFciQkRSz9alXHGHLlVjkuWebl5+f6i DdvAuGSb0JSGqcSRxzlA2AUPKhj1gImiUU4PlTK8xd6vAdWji5fnGWPfYIiJc2NFrhU9 3UCgos/l7K5tGKgCh8JwbV8/bLHIlsT/yeUtd91OLt9dLlqeV4sIvm1oCyCrNb+qaBiO p9TYcaGeJT0+1J5t618Cy28GobpCERZDrPZyV8Tj1HH2sAMo3rj1Z4L17ejeEx08QA6Y nclA== 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=v6NXQQ3034ywJC7+44HzT3t/q5qs3VddifZ7dhdq5pg=; b=Dr5cUksVeXJijR/zN1hJqb++XHSvSvjGTEhnGnybqMS+ZNS+kMPVeJRer56voIXzp9 sy/xHYTdFywl+SKUBtCfKbZuiGGxDhb/vblggCbp//g7EBCJV9tCia13YR8JumThOMh9 zP0gWqmsLpM4SomYlwXYKFIIp1KiOBo1KfhTaSOlGXs60ZKrN0VBpjbWujfN9QbV19Zt wARLbo2S8u5Bv/OBJWHe/nr98xL/8nuJLW1IhapH49eeP6E8dqrIwNuwQt8gNC3GYy9R kvd4dpwBmPtPNa560j0xR4efMbElcGsU/E17dlydnUq89aYNI0nY+CMsLQTSLhseAC1U LaOw== X-Gm-Message-State: AA6/9RnQk7C6BpUewCddKJTleOYwWOVD6dh6zJLJ97tU4p0JIZrHAQs6db4itrGcSavYrQ== X-Received: by 10.194.236.228 with SMTP id ux4mr1364565wjc.135.1475563491380; Mon, 03 Oct 2016 23:44:51 -0700 (PDT) Received: from localhost.localdomain ([79.112.35.35]) by smtp.gmail.com with ESMTPSA id f142sm2341423wmf.19.2016.10.03.23.44.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Oct 2016 23:44:50 -0700 (PDT) From: Emil Condrea To: qemu-devel@nongnu.org Date: Tue, 4 Oct 2016 09:43:43 +0300 Message-Id: <1475563424-6604-15-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::243 Subject: [Qemu-devel] [PATCH 14/15] 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, 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_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 5c41524..30d3aaa 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_backend.c @@ -436,7 +436,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 69cf7af..9bc4b38 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -287,7 +287,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 550bf69..dfe91c1 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);