From patchwork Thu Jun 22 19:14:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 9805175 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 F2490600C5 for ; Thu, 22 Jun 2017 19:16:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0082200E7 for ; Thu, 22 Jun 2017 19:16:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D461B26222; Thu, 22 Jun 2017 19: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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 512F9200E7 for ; Thu, 22 Jun 2017 19:16:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dO7Yo-0007vG-70; Thu, 22 Jun 2017 19:14:34 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dO7Yn-0007um-10 for xen-devel@lists.xen.org; Thu, 22 Jun 2017 19:14:33 +0000 Received: from [193.109.254.147] by server-6.bemta-6.messagelabs.com id BA/50-03920-8171C495; Thu, 22 Jun 2017 19:14:32 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPLMWRWlGSWpSXmKPExsVybKJssq64uE+ kweKX+hZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8aulcsZC/YKVSx/toyxgfEdfxcjJ4eQQBuT xLX2KhCbRcBBYtGSrWxdjBwcjAIxEg9+WIOEGQXCJCZfXsIKYrMJGEr8fbKJDcQWEZCWuPb5M mMXIxcHs8BkRonX734xgySEBbwlpj/6wAIxU1Vi5c89jCA2r4CbxMHTHWC2hICcxMljk8GGcg q4SzQ1n2MDGSQk0M4o0fv5JfsERt4FjAyrGNWLU4vKUot0TfSSijLTM0pyEzNzdA0NzPRyU4u LE9NTcxKTivWS83M3MQKDgQEIdjB2X/Y/xCjJwaQkyru52DtSiC8pP6UyI7E4I76oNCe1+BCj DAeHkgRvnJhPpJBgUWp6akVaZg4wLGHSEhw8SiK8X/iA0rzFBYm5xZnpEKlTjMYcG1av/8LEs eLtri9MQix5+XmpUuK8+SCTBEBKM0rz4AbB4uUSo6yUMC8j0GlCPAWpRbmZJajyrxjFORiVhH n3gkzhycwrgdv3CugUJqBTXhzxADmlJBEhJdXAGLvl9Pf1fzayCC+cEhn74lb44+m3RC/JsCh 5z+CXmBw6c/eHe5bNE6z/HVHdlPvGgtO077fGrLBTQixLdtwse3Ui78VpKYeHPWJSdybZPUo9 0OHDn3xy+1UvnbV5gv39arxrurxeLAnSbNqu8oP9QDx74ebr5V0GZxqaOOZfnzdB+VaUP8NCd yWW4oxEQy3mouJEAACwLO+SAgAA X-Env-Sender: sstabellini@kernel.org X-Msg-Ref: server-6.tower-27.messagelabs.com!1498158870!109221562!1 X-Originating-IP: [198.145.29.99] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6507 invoked from network); 22 Jun 2017 19:14:31 -0000 Received: from mail.kernel.org (HELO mail.kernel.org) (198.145.29.99) by server-6.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 22 Jun 2017 19:14:31 -0000 Received: from localhost.localdomain (unknown [99.165.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D496F22B65; Thu, 22 Jun 2017 19:14:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D496F22B65 From: Stefano Stabellini To: xen-devel@lists.xen.org Date: Thu, 22 Jun 2017 12:14:11 -0700 Message-Id: <1498158867-25426-2-git-send-email-sstabellini@kernel.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1498158867-25426-1-git-send-email-sstabellini@kernel.org> References: <1498158867-25426-1-git-send-email-sstabellini@kernel.org> Cc: jgross@suse.com, Stefano Stabellini , boris.ostrovsky@oracle.com, sstabellini@kernel.org, linux-kernel@vger.kernel.org Subject: [Xen-devel] [PATCH v5 02/18] xen/pvcalls: introduce the pvcalls xenbus backend X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Introduce a xenbus backend for the pvcalls protocol, as defined by https://xenbits.xen.org/docs/unstable/misc/pvcalls.html. This patch only adds the stubs, the code will be added by the following patches. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrovsky@oracle.com CC: jgross@suse.com --- drivers/xen/pvcalls-back.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 drivers/xen/pvcalls-back.c diff --git a/drivers/xen/pvcalls-back.c b/drivers/xen/pvcalls-back.c new file mode 100644 index 0000000..f3d0daa --- /dev/null +++ b/drivers/xen/pvcalls-back.c @@ -0,0 +1,61 @@ +/* + * (c) 2017 Stefano Stabellini + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +static int pvcalls_back_probe(struct xenbus_device *dev, + const struct xenbus_device_id *id) +{ + return 0; +} + +static void pvcalls_back_changed(struct xenbus_device *dev, + enum xenbus_state frontend_state) +{ +} + +static int pvcalls_back_remove(struct xenbus_device *dev) +{ + return 0; +} + +static int pvcalls_back_uevent(struct xenbus_device *xdev, + struct kobj_uevent_env *env) +{ + return 0; +} + +static const struct xenbus_device_id pvcalls_back_ids[] = { + { "pvcalls" }, + { "" } +}; + +static struct xenbus_driver pvcalls_back_driver = { + .ids = pvcalls_back_ids, + .probe = pvcalls_back_probe, + .remove = pvcalls_back_remove, + .uevent = pvcalls_back_uevent, + .otherend_changed = pvcalls_back_changed, +};