Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3170663rwd; Fri, 16 Jun 2023 13:20:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6BzBCa0u92r2jZcGwGFbtQHSPC067TsX7SkFcuYdbhLIeGipksE/GvtefjsTIOlPMrJ+Dr X-Received: by 2002:a05:6808:150b:b0:398:2d08:1143 with SMTP id u11-20020a056808150b00b003982d081143mr3994614oiw.35.1686946842366; Fri, 16 Jun 2023 13:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686946842; cv=none; d=google.com; s=arc-20160816; b=c6OJ5bSoVLRSS4J4xP/tr/m0QkFQeGmafB9YoFrR5fPoOXCW3gWuueJPtIOavJeOoZ ri22fSi6H4F/8mH90mhdsi9BH99LG80sT6h+FOKB2VYYlQFIV5ERMV8LgSGdbiB/00yn d2ejRXrxLAnQXrR9ytA7A5DzFjP6UKLwRebWrU/cRFJvw6Wr7Pr8g0D0kgF2R5Yr3Oa6 RPwRrZStucoCNn6+p4dhgdg4wgcxYsdAJdOyGYKnI6f3oHuEcFsTM1tMAPzotH+MgsHr KuNZBjJ5zMyY9ZBPUbQrxregMwo5F+JuODnseV+6ujTe7YlVZVVMzjLH2AV428XNECOj 8PSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=9FHIShx3ok7ttiJLXRHQNT2AZWHVgsob1KG47xjdjeI=; b=USkwuiaTCL84gD4G9fA53sNGVp/CrE6yeW7y4MUeG+pohMiBirrN+SDQYUKZqFrV9c TPXwmhddp9zaTpv09EoeqbhaDNI48s/RYlRdmYie8SZ1YenLosrytcNtnpZa238dlQfR J8p/HmhuQqyEZMxuJFAJZQY9p+/klbulC/aYSu9STCGtPrRt9FgJA6MQz4ziCYFpmqPf 73PofstLZ/PLZ5qq0BAanx24tRKOxbeKIOxYc7ZGVuG3Q+rrhNbWAWIab7T9jA3X+0Ts R0V6hKNYR912zV1kvFt3uEECfABQldvYXFf1hxy4mPo5PorXJUCwKWLbdxDO7s7D6PBw xVRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WtRbrUAy; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w63-20020a638242000000b00553213cebd2si3512409pgd.180.2023.06.16.13.20.26; Fri, 16 Jun 2023 13:20:42 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=WtRbrUAy; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235564AbjFPUJC (ORCPT + 99 others); Fri, 16 Jun 2023 16:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231856AbjFPUJA (ORCPT ); Fri, 16 Jun 2023 16:09:00 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8975830DD for ; Fri, 16 Jun 2023 13:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686946096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9FHIShx3ok7ttiJLXRHQNT2AZWHVgsob1KG47xjdjeI=; b=WtRbrUAyO+m3eICftPmvarLYZUAf7mkoXsDZ17qid9CGwz8ZomVIDweKN+OuBQGhaJajaN wdrAvOxqKA7PsN07qGZu0uHAVCmuyOZAgVCJ4mVgk3S+5sCuBeETSouHwDqnMByajBIMmY POHRAEdXncd8uRakzy7mLAwrq1tqscw= Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-57-FdbquxTJNJGUPsSWP9s5jw-1; Fri, 16 Jun 2023 16:08:14 -0400 X-MC-Unique: FdbquxTJNJGUPsSWP9s5jw-1 Received: by mail-io1-f72.google.com with SMTP id ca18e2360f4ac-76998d984b0so88354239f.2 for ; Fri, 16 Jun 2023 13:08:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686946093; x=1689538093; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9FHIShx3ok7ttiJLXRHQNT2AZWHVgsob1KG47xjdjeI=; b=dMc2axFtFyD29hNYhzdXay+hTIEA9MruH/jZ0FsWQ83NQBiLnOW75sqhsLtkkB6YeW lBp8Y+L9bnfk5vNaNx3naRWkh1ymoa95ytJUDExCL+LannHrP86KfIt0dZ0IdCNb8x7Q kb9d7LlPAlM4XYD+YOCuM2a0df2H4l9I2DB+DBAJRWwF1qCYEYes7nzBqvPefmdVmnhy 3oq2H3hQbwVwxp1ozWk0gX/njAeA/OQJMvIfCSutLTUalSkfFTk6A/2Ve+nc1Nqc3Ffy nw4O1kVvdh7vx4nywH5aqrIGbg9AfJz8GRDwg1cYWpCytkc3GyM1ooIjmgzwQu+eoIBZ JpPA== X-Gm-Message-State: AC+VfDwIgXw/Wxn6pxXIBtG+yqvKhuvgxOjf777mNm4PwpbPSBbr4qwF HF6F7u9hZ4kORCh667OewaY1DQPo36K0c4tSY21ZxaOn9hoIY6YxhvXBLFGFRl/mBWRdX7QpEKb Uy4buYE2Tq6mahkoM/QSieCnZ X-Received: by 2002:a5e:a918:0:b0:76c:785f:8f82 with SMTP id c24-20020a5ea918000000b0076c785f8f82mr215181iod.6.1686946093473; Fri, 16 Jun 2023 13:08:13 -0700 (PDT) X-Received: by 2002:a5e:a918:0:b0:76c:785f:8f82 with SMTP id c24-20020a5ea918000000b0076c785f8f82mr215166iod.6.1686946093279; Fri, 16 Jun 2023 13:08:13 -0700 (PDT) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id s17-20020a6bdc11000000b007635e28bc11sm6820694ioc.6.2023.06.16.13.08.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 13:08:12 -0700 (PDT) Date: Fri, 16 Jun 2023 14:08:11 -0600 From: Alex Williamson To: Nipun Gupta Cc: , , , , , , , , , , , Subject: Re: [PATCH v7] vfio/cdx: add support for CDX bus Message-ID: <20230616140811.548d2c92.alex.williamson@redhat.com> In-Reply-To: <20230531124557.11009-1-nipun.gupta@amd.com> References: <20230531124557.11009-1-nipun.gupta@amd.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, 31 May 2023 18:15:57 +0530 Nipun Gupta wrote: > vfio-cdx driver enables IOCTLs for user space to query > MMIO regions for CDX devices and mmap them. This change > also adds support for reset of CDX devices. With VFIO > enabled on CDX devices, user-space applications can also > exercise DMA securely via IOMMU on these devices. > > This change adds the VFIO CDX driver and enables the following > ioctls for CDX devices: > - VFIO_DEVICE_GET_INFO: > - VFIO_DEVICE_GET_REGION_INFO > - VFIO_DEVICE_RESET > > Signed-off-by: Nipun Gupta > Reviewed-by: Pieter Jansen van Vuuren > Tested-by: Nikhil Agarwal > --- > > Changed to support driver managed dma in CDX bus has been > submitted at: > https://lore.kernel.org/lkml/20230117134139.1298-1-nipun.gupta@amd.com/T/ > > Changes v6->v7: > - updated GFP_KERNEL to GFP_KERNEL_ACCOUNT in kcalloc > - remove redundant error condition > - updated return codes Applied to vfio next branch for v6.5. Thanks, Alex