Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp79869pxm; Wed, 2 Mar 2022 10:47:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNBEEAl3gjJfauge7UBf9JbcJ37R6Ci71FL2A9AgyFdKcViHhGXOMBAs37KFLi/TKCxILy X-Received: by 2002:a17:90b:8d6:b0:1bd:3596:e97e with SMTP id ds22-20020a17090b08d600b001bd3596e97emr1256414pjb.50.1646246826156; Wed, 02 Mar 2022 10:47:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646246826; cv=none; d=google.com; s=arc-20160816; b=vYj8Ex4RBBd4GekyJQ++DSW6qwc1HWNOu8kiwAE+e6GD/EVs8QdMMIToQvcL4t0st5 ChVaZOLJcxoSZ+MqiMq6sUqTuQBwN8gOs0E3v6c3kb0jXFtrJY1scLSA4ogacqNRW8Ud mpQx19nKbRBKT6RkcxG6NHs2YCQYiqy7NR9dP+LLPRQuYpkHQpcWU6Qp5JjZ6d7E3p4Z XX397WunZRiPe8CyIObqIghIGXlRrJ+8I0pb+Ser+V8KVB7WzbZvDztg3PhTlirNKdOe 2qwRh/eZgIaTntA9OsHBFjdpluIpwYx0y0NryIITUfu16vzRjIMJWkXDKS4DwZgtxt1P FPfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=W0k6fnWr5oI0rAQaMmKdArqS57ZUM8/CkCSD+7Svluo=; b=meu63rTOMTGolNBcJlqtksTRhoeVTXBoyQNkaEjhOiNSPEMWqlPaclOC4w0N+zijNc OP1BF5DocR2buqDCq9tPiWJnEVvMYCfCkK+YNDRa+JYVD6WqZ9mHkjK3pup5JzeSfSxT ClYLO3uFZMBcJc/z51HjVpib/eLYOc9VRLPwJM7jEe+Ck5AhwKFZL6pK6+fMlCHJyTbP MhUcdM12vXPk71FgeDzwVm+z09psAgzboGpjyPiCQFH+Ldc9mNQRvYHunIsFxhnFuTCe +nqZ86UM5IKWWarULkJecedBDIfH1kSBcrVy18GsmoWPb1hK8uqkhz9ymWPMDYhqETyF lwsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=EAds+gLJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k19-20020aa790d3000000b004e1de9aa563si14507025pfk.300.2022.03.02.10.46.48; Wed, 02 Mar 2022 10:47:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=EAds+gLJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244579AbiCBSPt (ORCPT + 99 others); Wed, 2 Mar 2022 13:15:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244540AbiCBSPn (ORCPT ); Wed, 2 Mar 2022 13:15:43 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 33F701EC65; Wed, 2 Mar 2022 10:14:21 -0800 (PST) Received: from [192.168.1.17] (unknown [192.182.151.181]) by linux.microsoft.com (Postfix) with ESMTPSA id DBD1920B7188; Wed, 2 Mar 2022 10:13:34 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DBD1920B7188 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1646244815; bh=W0k6fnWr5oI0rAQaMmKdArqS57ZUM8/CkCSD+7Svluo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=EAds+gLJ59BMV3kBez18kp1WdcHxqdhuTQKattNMuUsh8CcEIrGhcV/7hIp0SsZy2 dza9qGxBp/hY+Z4a63mKT6Lg0YDY9MHVS3TZTsGQrS2S0Zj+UtRnOPBE+xnCk1vRJl pftZWmCw9AwDZaVYB5EvWeG3BNabipBpLl3+MtS0= Message-ID: Date: Wed, 2 Mar 2022 10:13:34 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v3 26/30] drivers: hv: dxgkrnl: Offer and reclaim allocations Content-Language: en-US To: Wei Liu Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, spronovo@microsoft.com, spronovo@linux.microsoft.com, gregkh@linuxfoundation.org References: <719fe06b7cbe9ac12fa4a729e810e3383ab421c1.1646163378.git.iourit@linux.microsoft.com> <3a6779567438b02566012679f01ebb065e3761db.1646163379.git.iourit@linux.microsoft.com> <20220302142517.kgc5o7ufj2yf4cif@liuwe-devbox-debian-v2> From: Iouri Tarassov In-Reply-To: <20220302142517.kgc5o7ufj2yf4cif@liuwe-devbox-debian-v2> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/2/2022 6:25 AM, Wei Liu wrote: > On Tue, Mar 01, 2022 at 11:46:13AM -0800, Iouri Tarassov wrote: > > Implement ioctls to offer and reclaim compute device allocations: > > - LX_DXOFFERALLOCATIONS, > > - LX_DXRECLAIMALLOCATIONS2 > > > > When a user mode driver (UMD) does not need to access an allocation, > > What is a "user mode driver" in this context? Is that something that > runs inside the guest? Hi Wei, The user mode driver runs inside the guest. This driver is written by hardware vendors. For example, the NVIDIA's Cuda runtime is considered a user mode driver. The driver provides a specific API to applications (like the Cuda API). The cover letter explains the design of the virtual compute device paravirtualization model and describes all components, which are involved. I feel that I do not need to include explanation to every patch. Thanks Iouri