Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9FCBC4338F for ; Tue, 24 Aug 2021 23:45:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A4E4B611C8 for ; Tue, 24 Aug 2021 23:45:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234317AbhHXXpr (ORCPT ); Tue, 24 Aug 2021 19:45:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231552AbhHXXpr (ORCPT ); Tue, 24 Aug 2021 19:45:47 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E27FC061757 for ; Tue, 24 Aug 2021 16:45:02 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id a10so16327350qka.12 for ; Tue, 24 Aug 2021 16:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nPISlNnlijRS7NGI6x3M1PPe4bWd9ZSJLM/30kpeaB0=; b=Qbw6WJ01jaIYd91ayRmU/BWJkssM8zGdkK0Afw02PCSZr1lhWCTgEBw466Mx6Ns7zQ CW7yGY/PY8TubTNkr9krq3BTj+h9PL3Q/HSrUZc6fXlfYnWiYZcvoWthDMcPiopP8CkD 6vhOvwJL5wSRio3RbW+vtahQeRS9wHIpENsMFj++tkz374r8oQIoem5WkWPG8G8m6lJh Oii8VkRBdmFVKRwjVNeeDKUztcZUrDlrklTznylVWD3gwRj400PI9S754FJRCF7He09O jpW2OhqbnjYJHO3cXPfVBZq06Axx6cYxsxUInwiyI5jIVI9jLI9E2MCHiaRmCduhyo1K ++Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nPISlNnlijRS7NGI6x3M1PPe4bWd9ZSJLM/30kpeaB0=; b=NSadqWTIQkaMXFQmQbdsKNlTTvA2L+WIMabFmSNptNjsm1TvqxMAqY2qGr3pcqZIho rs1fWI8tv16FiY/XtvTdW2Tepakx/jYJsrqT1r1wMqzed7I5EHgQDuMohiJJfKuaGNZ0 6uMPYCcF4syAAAaJGmlsU+IwgRiKihoGcbpRcu1Xhg4V1T+AUY1OF2RWEX/xjzv6h/i9 lTEqw+TQa1NQacxGSku5Ohv6hbnbqGb+Fynr0Jh5t10ZF6GnY1HKqsNDMJJhNThTDI94 cXUorGClTrgEk/55GrjGVgx0ovQ2LKMPBeBmp2lpQnxh4ozTIr9bz5iphoU/2/xevl2p Hw2Q== X-Gm-Message-State: AOAM531e0GVH81RiRZZY+4AXyi/NCprpYSUL10ViBfjjcEu9aigmbKL/ 7f6j4UJrTzfbnk2TOdwwCpcutQ== X-Google-Smtp-Source: ABdhPJzmGMnmWYw3eKFis9TTi7p3t5HAJUBsGVSXkPKfaaSiOswmaljly0DMHjlBfNcFaOrhVAa8Jw== X-Received: by 2002:a37:e10c:: with SMTP id c12mr28760125qkm.199.1629848701495; Tue, 24 Aug 2021 16:45:01 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id k9sm9079705qtj.12.2021.08.24.16.45.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 16:45:01 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mIg6G-004iVa-Gg; Tue, 24 Aug 2021 20:45:00 -0300 Date: Tue, 24 Aug 2021 20:45:00 -0300 From: Jason Gunthorpe To: Christoph Hellwig Cc: Alex Williamson , Diana Craciun , Cornelia Huck , Kirti Wankhede , Eric Auger , kvm@vger.kernel.org Subject: Re: [PATCH 06/14] vfio: remove the iommudata hack for noiommu groups Message-ID: <20210824234500.GM543798@ziepe.ca> References: <20210824144649.1488190-1-hch@lst.de> <20210824144649.1488190-7-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210824144649.1488190-7-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Tue, Aug 24, 2021 at 04:46:41PM +0200, Christoph Hellwig wrote: > Just pass a noiommu argument to vfio_create_group and set up the > ->noiommu flag directly, and remove the now superflous > vfio_iommu_group_put helper. > > Signed-off-by: Christoph Hellwig > --- > drivers/vfio/vfio.c | 30 +++++++++++------------------- > 1 file changed, 11 insertions(+), 19 deletions(-) I like this a lot better Reviewed-by: Jason Gunthorpe Jason