Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp543316rdb; Sat, 17 Feb 2024 23:51:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtPitIeSBtti9O5lkUdsuAErqT8GPoxhtuLzY6DD6EmPpXg9t5jYVgSYEgTrjIUH/8q+1W4quAe+0Nw7H3A5cRw41biuOXZBBIlqFHuQ== X-Google-Smtp-Source: AGHT+IF7zCNt6Ade8NFoSsSIkEtRMHlA7WzayHepLYR/2WqZXkjtTTNzWxIh0yx2VwSHYqiVvwUW X-Received: by 2002:a17:90a:cb98:b0:299:35f5:be6c with SMTP id a24-20020a17090acb9800b0029935f5be6cmr4532290pju.17.1708242687550; Sat, 17 Feb 2024 23:51:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708242687; cv=pass; d=google.com; s=arc-20160816; b=vKYz7TGHykLAIphBcjg/O4ubXEsnJHvPKdfDX/wqudjliPDqPYwckcGJ5JijL676SD O/qiigNIX16bOOeprMMaMq9g+h14fh2Ic/fvOzKUeqoNmWi6HIytG52aHhv5tnNAaU8E X48x7k5elKIRhBApyI/1bt5WZ0T0TO4y+0CN3mV0Xp1Jh2lzLo8uUhtLlvVCIkFso/pe /2jebGdbfu3PlAJP7ppukWDzohvsadYFgP1LPVSxHLlrStVqI9RdOgWWErEHXRYPFGvZ qRQAeLd0M/UaUNiEnsIV0wMg4ujJe50YwmHWsyeMgc5439Ij/LGc7ECEuMp93jl7JZxm eKpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=JV/50whYYZ3nO5k5NOeOO8QTgzGo7YFHJsOq1PEVhvc=; fh=dXBlqzMxyT08c6C/n3ZCDDv3TZXLsVX+sfoP6ClkdWY=; b=HGS2J554tiA0p3WzoBlgz6ogdP3Co03FPhSr4zz9yOTlQdSO5xP9VUwGjmvkt3RZ4U G21nT0Bvv67CabZ2MB2HavQ3+uDSppg/AySQaQtfoaqkSGGKGwZEcdeur7gZC81bXKbv 5JI+ydT8CJ48lPQGqV63kFxL8t8dUgkY4AT6xG1lCBGm1JKv+P7QyClJHKIm1/y2maXe eB6lvUXlmYFHOqbFp1iWjFQBCrtL9tQ6Sf96w+IHTb+Au6/6g/5VjSwWQAP7xZDeX2PL osK1E9ZeyHDIhVYJNFvUwA6Q8Wxzt5StLszUTJCiXvBO7EiIuIeMU/4HRITEPJ3sPzgE bsTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=cUOauHq2; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-70256-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70256-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z4-20020a170902d54400b001dbe6a6591csi568771plf.331.2024.02.17.23.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 23:51:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70256-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=cUOauHq2; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-70256-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70256-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 95FE6B2201A for ; Sun, 18 Feb 2024 07:51:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5B02E544; Sun, 18 Feb 2024 07:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="cUOauHq2" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C23DC2CA8; Sun, 18 Feb 2024 07:51:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708242676; cv=none; b=JD/jdvJlkqNRlWlGzZDVMBb1gI0C6Vqa+12q57kMPGQyx/4u/EdfqP4kNmdLj+T4nzcY7hTdvPx61lMVj9E//I1d/Rwf10fesBEuEA0M90Tx5FxrNQE1mIigsJBCcZWOxsLDNuFQ3paBEFbyaw9iK9kXpe4/IUgqYNyHcbfv5/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708242676; c=relaxed/simple; bh=+beRej0JiAH+KQ+1Zd5BJpT5yXcWRQSBj0KOOBD0VHQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QReYNLCasU63pr3D3Z/4EaBdyeVW5VFFJprcnb6/gJqNjdiRQkjNG/EW8IFKR4YQukDlVgf0Hz+sVbUewP2ijBaceW44Qil4T3JfWa93tUFwZTxATqIg3v8vmt9xscKKzRCyil3pWSV9D9nMUzLfQGG1F1N91382zg3LChGd5HE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=cUOauHq2; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: by linux.microsoft.com (Postfix, from userid 1127) id 72122207FD52; Sat, 17 Feb 2024 23:51:14 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 72122207FD52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1708242674; bh=JV/50whYYZ3nO5k5NOeOO8QTgzGo7YFHJsOq1PEVhvc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cUOauHq2+/JDCIK9DsguPgKMnLGaiDZ0r+LPSMx2A0qQQIZ29lEok8Czc+KwAkAyK jsBu/LoSnmsEkkALY8yV7jcAthkwlCiYrsaSaMCpvw9nxv8msX5OlU+Q9AMNWxWJjH Q3G2NAHhXdPBWUn2Av536OJ1SZEnp89teNmmO2uA= Date: Sat, 17 Feb 2024 23:51:14 -0800 From: Saurabh Singh Sengar To: Greg KH Cc: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, ssengar@microsoft.com Subject: Re: [PATCH 0/6] Low speed Hyper-V devices support Message-ID: <20240218075114.GA24453@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1708193020-14740-1-git-send-email-ssengar@linux.microsoft.com> <2024021812-shrouded-fanciness-06ec@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2024021812-shrouded-fanciness-06ec@gregkh> User-Agent: Mutt/1.5.21 (2010-09-15) On Sun, Feb 18, 2024 at 08:10:36AM +0100, Greg KH wrote: > On Sat, Feb 17, 2024 at 10:03:34AM -0800, Saurabh Sengar wrote: > > Hyper-V is adding multiple low speed "speciality" synthetic devices. > > Instead of writing a new kernel-level VMBus driver for each device, > > make the devices accessible to user space through UIO-based > > uio_hv_generic driver. Each device can then be supported by a user > > space driver. This approach optimizes the development process and > > provides flexibility to user space applications to control the key > > interactions with the VMBus ring buffer. > > > > The new synthetic devices are low speed devices that don't support > > VMBus monitor bits, and so they must use vmbus_setevent() to notify > > the host of ring buffer updates. These new devices also have smaller > > ring buffer sizes which requires to add support for variable ring buffer > > sizes. > > > > Moreover, this patch series adds a new implementation of the fcopy > > application that uses the new UIO driver. The older fcopy driver and > > application will be phased out gradually. Development of other similar > > userspace drivers is still underway. > > > > > > Efforts have been made previously to implement this solution earlier. > > Here are the discussions related to those attempts: > > https://lore.kernel.org/lkml/1691132996-11706-1-git-send-email-ssengar@linux.microsoft.com/ > > https://lore.kernel.org/lkml/1665575806-27990-1-git-send-email-ssengar@linux.microsoft.com/ > > https://lore.kernel.org/lkml/1665685754-13971-1-git-send-email-ssengar@linux.microsoft.com/ > > So is this a v4 of the patch series? What has changed from those > previous submissions? In the most recent attempt we introduced a new driver uio_hv_vmbus_client for slow devices, where as in this new approach we are making use of existing uio_hv_generic driver. We also introduced the function to query ring buffer sizes, this is an attempt to address your comment on earlier series to avoid kernel params. Comment ref: https://lore.kernel.org/lkml/Y0bipdisMbTNMYOq@kroah.com/ We later tried to have ring buffer sizes via sysfs for which we wrote a new driver uio_hv_vmbus_client as explained above. This is the next approach in an attempt to address all of the concerns with all the previous series. - Saurabh > > thanks, > > greg k-h