Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp57535lqe; Tue, 26 Mar 2024 20:40:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBWjCWKyFTe+8Rgcw7G+1FVBO45dklup71WWdaLdA73f4/JLV+0mLceHxmGPskarAR54IFhBK/A7t2lRIpNNUaDW4PUSjxG2/NLzkvGA== X-Google-Smtp-Source: AGHT+IEdOnTnTCymf9TON34Dfpomd7/fMc6GDrZMeIWL3G5naPnfb+KoMV6ytWduWOVc8MgQK47P X-Received: by 2002:ae9:f105:0:b0:78a:3ece:c4a4 with SMTP id k5-20020ae9f105000000b0078a3ecec4a4mr1571334qkg.77.1711510857399; Tue, 26 Mar 2024 20:40:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711510857; cv=pass; d=google.com; s=arc-20160816; b=IKpy+tGTXq8JF6o/Iq2U2MD04jo89aWNlf+XIbCjZIR3D+xp+fpOV4Xi4rnQxQcBcf jSg785EYis5yiYdojW/iXXbVwWn61KZYT+5SVN5nnp8eSaYkLoUTWGzhFJ8xtSIyB9b8 nBo4f/quuokEcToXOIMvuIV95EgfGpnxURoMs6JDRx08CbFPzoa3mPXqHqmfeIkOhVqc nWOATQA/6d2kcuOFFsbcvCreAvILBXkoOIHCWX8pJCacM4cKkkY0GlZCrOSogPyMfgQE fTXLBZ6hr/nVsu9gtQw2GVf6hp5R01zus+qch+peROCPz7R5wZIySTjmuEGsVY6JDVvt SxdQ== 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=4WwOkF9QcocRskGPQZaISh5gvanICY1Ewo+yRt6ITI4=; fh=t3nAUQu8x0v0RzLWUvoDcHP3i/MPBMf06ofem0QRxuU=; b=HOtPeH3/bbh+Nd68LZhKw2hwBbQi5HqW4mllWvxLDCe1b95vUdNEr9hnqgN3wS471k ksgLXTCwlqxq1kogsAG8ifvuHgEA4EahCVC5lWoPbmP0eW+4OM5oqmuNGLF3Fk8IxDiA JJbx/bey27KYn/j2aB2qjdRwBTKHLOW1OkbpIziTVHOgMQQ1xOM0GddaJuhJapbkx6BC dpx49kqDw58HyDLkzbA82joumK8NPhz/oW5RyCA/8HniLjAvpUFFZ2KMOLEatV4oIMxo VyCnTudYLawn+jk0UM6brsi2CXnK8kEQIl9Gcg2aBAzhLyGPuS/KOZx+qeGAdATJ5jQe ef1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=KH+PR2NJ; 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-120267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120267-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 ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m15-20020ae9e70f000000b0078a3a26f52dsi9045465qka.97.2024.03.26.20.40.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 20:40:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=KH+PR2NJ; 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-120267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120267-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 234271C23A8C for ; Wed, 27 Mar 2024 03:40:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7366123777; Wed, 27 Mar 2024 03:40:40 +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="KH+PR2NJ" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2024F23763; Wed, 27 Mar 2024 03:40:37 +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=1711510839; cv=none; b=SYoyMloI0rnB1J9Lum4wAKiKCHm9S42ntqiPenID/RlYEnA9+JOQopZxHeCwtEkvHrB1QzgHHZiRTBoms4Ng9p0TSxqKAv10aqvt8sNS2CyvbD5sA0UZjan75857WepcYy3Jr85iw7h87jM5CZPu+QiOmOC3YaUc8PTdqETyE8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711510839; c=relaxed/simple; bh=Qy9jNwoADlloXLB/O/YDSRWz34f2X4WLlvwpB0CLSKQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=psiGWiuv74xW2BcisIbYtPkwLI+L8H4DbjlO8pjl+N4SIFNMbXF72mez0VOmkPkRtYsqpHZb7lSIjslPu53VrBBFMkBYFYoSjpZsiXirq2rsBDyiz7ujpCXbWcKtMOaF/rk5qmlaW9fz8e3atlfO/bIVsu/esQ6GmnYOGg94et8= 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=KH+PR2NJ; 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 820E7208444F; Tue, 26 Mar 2024 20:40:37 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 820E7208444F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1711510837; bh=4WwOkF9QcocRskGPQZaISh5gvanICY1Ewo+yRt6ITI4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KH+PR2NJT9MAI9WHMxn7DG+mfgYB4OiJWsDUCRNM/0e1hq7N/Q9iYajobG1DJH04m x7zHhawGfqygZbnDkrYZB8OAnz63zhnSRkeodlvJ/Nf/CWNlcTUMUlBBqseJanUmJw hyOo4nLVdBVKIkPnXe9B+FgpZZqYFFFlCLUsw7NM= Date: Tue, 26 Mar 2024 20:40:37 -0700 From: Saurabh Singh Sengar To: Long Li Cc: KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , Saurabh Singh Sengar Subject: Re: [PATCH v2 5/7] tools: hv: Add new fcopy application based on uio driver Message-ID: <20240327034037.GA22340@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1710930584-31180-1-git-send-email-ssengar@linux.microsoft.com> <1710930584-31180-6-git-send-email-ssengar@linux.microsoft.com> <20240321180705.GA12387@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> 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: <20240321180705.GA12387@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> User-Agent: Mutt/1.5.21 (2010-09-15) On Thu, Mar 21, 2024 at 11:07:06AM -0700, Saurabh Singh Sengar wrote: > On Thu, Mar 21, 2024 at 04:42:44PM +0000, Long Li wrote: > > > Subject: [PATCH v2 5/7] tools: hv: Add new fcopy application based on uio driver > > > > > > New fcopy application using uio_hv_generic driver. This application copies file > > > from Hyper-V host to guest VM. > > > > > > A big part of this code is copied from tools/hv/hv_fcopy_daemon.c which this new > > > application is replacing. > > > > > > Signed-off-by: Saurabh Sengar > > > --- > > > [V2] > > > - Improve commit message. > > > - Change (4 * 4096) to 0x4000 for ring buffer size > > > - Removed some unnecessary type casting. > > > - Mentioned in file copy right header that this code is copied. > > > - Changed the print from "Registration failed" to "Signal to host failed". > > > - Fixed mask for rx buffer interrupt to 0 before waiting for interrupt. > > > > > > tools/hv/Build | 3 +- > > > tools/hv/Makefile | 10 +- > > > tools/hv/hv_fcopy_uio_daemon.c | 490 > > > +++++++++++++++++++++++++++++++++ > > > 3 files changed, 497 insertions(+), 6 deletions(-) create mode 100644 > > > tools/hv/hv_fcopy_uio_daemon.c > > > > > > diff --git a/tools/hv/Build b/tools/hv/Build index 6cf51fa4b306..7d1f1698069b > > > 100644 > > > --- a/tools/hv/Build > > > +++ b/tools/hv/Build > > > @@ -1,3 +1,4 @@ > > > hv_kvp_daemon-y += hv_kvp_daemon.o > > > hv_vss_daemon-y += hv_vss_daemon.o > > > -hv_fcopy_daemon-y += hv_fcopy_daemon.o > > > +hv_fcopy_uio_daemon-y += hv_fcopy_uio_daemon.o hv_fcopy_uio_daemon-y > > > += > > > +vmbus_bufring.o > > > diff --git a/tools/hv/Makefile b/tools/hv/Makefile index > > > fe770e679ae8..944180cf916e 100644 > > > --- a/tools/hv/Makefile > > > +++ b/tools/hv/Makefile > > > > I'm not sure if vmbus_bufring will compile on ARM. > > If it's not supported, can use some flags in Makefile to not build this. > > You are right, this is not supported on ARM64. I can query uname in Makefile > and compile this only for arch != aarch64. > I will add this info in commit message as well. > > - Saurabh Greg/Long, I will be sending the V3 fixing above comment. Hope there are no further comments. - Saurabh