From patchwork Mon May 15 20:35:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 9727915 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 7A97560387 for ; Mon, 15 May 2017 20:38:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 556BD28644 for ; Mon, 15 May 2017 20:38:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49CD42899F; Mon, 15 May 2017 20:38:43 +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 2EB4528644 for ; Mon, 15 May 2017 20:38:40 +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 1dAMjX-0001CX-Tl; Mon, 15 May 2017 20:36:47 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAMjX-0001At-1j for xen-devel@lists.xen.org; Mon, 15 May 2017 20:36:47 +0000 Received: from [85.158.137.68] by server-2.bemta-3.messagelabs.com id 55/2C-26106-E511A195; Mon, 15 May 2017 20:36:46 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgkeJIrShJLcpLzFFi42I5NlE2WTdWUCr S4M8JeYslHxezODB6HN39mymAMYo1My8pvyKBNeNH4x3Wgv+CFTdO1TQwbuHvYuTiEBJoY5LY euUlcxcjJweLgIPEnJ/v2bsYOTgYBWIkHvywBgkzCoRJTL68hBXEZhMwlPj7ZBMbiC0iIC1x7 fNlRpA5zAKTGSVev/sFNkdYwENiyaVGRoiZqhJHzlwBa+AVcJNo+3IJLC4hICdx8thksKGcAu 4Sr1evYIM6iFHi4+8rTBMYeRcwMqxi1ChOLSpLLdI1MtZLKspMzyjJTczM0TU0MNbLTS0uTkx PzUlMKtZLzs/dxAgMh3oGBsYdjH17/Q4xSnIwKYnyurNLRQrxJeWnVGYkFmfEF5XmpBYfYpTh 4FCS4P3FD5QTLEpNT61Iy8wBBiZMWoKDR0mE9xpImre4IDG3ODMdInWK0Zjj3dIP75k4Dm3+/ Z5JiCUvPy9VSpz3NUipAEhpRmke3CBYxFxilJUS5mVkYGAQ4ilILcrNLEGVf8UozsGoJMyrJA A0hSczrwRu3yugU5iATgl7KQ5ySkkiQkqqgXH6/jVP/3FLXl7Rr2XMM33R2Wa3F6x7d90/qnj XI3jCGo+wteIV+25Nn+K//9e3Q+eZD0nd+GNzfqe8c0NN/BRb/ctZDZXmrY/imVpueFyP//5G feXywFxG+SOrTEtCJl02XcV+YilP+VKdC3YrEo71T1vXsWP6gf9sH4LEAmaFW73kefnsJGeKE ktxRqKhFnNRcSIAhJfNb5MCAAA= X-Env-Sender: sstabellini@kernel.org X-Msg-Ref: server-9.tower-31.messagelabs.com!1494880604!45031656!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.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 46303 invoked from network); 15 May 2017 20:36:45 -0000 Received: from mail.kernel.org (HELO mail.kernel.org) (198.145.29.99) by server-9.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 15 May 2017 20:36:45 -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 6F34A239A1; Mon, 15 May 2017 20:36:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F34A239A1 From: Stefano Stabellini To: xen-devel@lists.xen.org Date: Mon, 15 May 2017 13:35:54 -0700 Message-Id: <1494880570-14209-2-git-send-email-sstabellini@kernel.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494880570-14209-1-git-send-email-sstabellini@kernel.org> References: <1494880570-14209-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 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 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..2dbf7d8 --- /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, +};