Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5064693pxj; Wed, 9 Jun 2021 08:22:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmphNHGeHG4rWf2zVUylvvNU9TxRb7jiaL82RA4Mcr9+7K+cvxjsc8h00KkVeao99qeCV0 X-Received: by 2002:a17:906:9455:: with SMTP id z21mr358802ejx.491.1623252139954; Wed, 09 Jun 2021 08:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623252139; cv=none; d=google.com; s=arc-20160816; b=r62iSQYkvK5fT+7SFTk6Q2Ko1Hx7AKUKxOC/9rKOaBwhDjk5LHPMjsmX5ar63sJ+9e nyRuQcJgRFh2wMc2YdDWn/aIbW+Frz+/VjFKniDjPAX/iIdbACpSrN8tcE9Ag908dSKJ 6DsjRs9q+lV0qqatdCOWUYaiDzr0gKYWV7kOiXV1N2F+W5fdl3JGw2t98y4wvF0gb/PR En16wF2aeeHj83FrupOobQD6CqT9UXqhIhu4F+UasAmFB2HvtkewYGlk0zkU8dFWFKBq XZIQFu0LfHJuYGAYoGlQg+kXCF3bc0gfCkBJUF5acqRBACIaKCMoB+uSiOr7tcKgXbDc 0lbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:dkim-signature; bh=20U4EvP+/4P7U+6EGZKMPnMwVak4M1Pove365pXCudk=; b=HoEgtTswxHzOGU1dcwkCmOfSxy4NuoqClhnYCLQUaCiHU7u9/COGfga395M4ztU4b5 APILR0ckzPz4xswl8kaGD6waxyYpT9flh0Ms86+P9E90P4Htg0fmzvtVcFNM3EzLQXyM bPVbSMyNlWObGlq/8EzZkpLePY5nbuaMUggw24PSDmh3Hs7XyQ9dmLZaH0h9ei7Mt4r8 W1ucl/rH8Mm9YhMhNDceSOqC672MST+HC9ED2fPCphmLSHCgZCzkGkudoV/FE+6n2mY+ 6FR9VbBLh9Pw7CEK8w03K6AFiFA1/J3vJNzO563UtKleiaf7kR4H8sd0DZ+aZ9BRYC/q z7Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VnRNFVkJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si25997eda.198.2021.06.09.08.21.56; Wed, 09 Jun 2021 08:22:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VnRNFVkJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236294AbhFIN0N (ORCPT + 99 others); Wed, 9 Jun 2021 09:26:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43412 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236258AbhFIN0M (ORCPT ); Wed, 9 Jun 2021 09:26:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623245057; 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=20U4EvP+/4P7U+6EGZKMPnMwVak4M1Pove365pXCudk=; b=VnRNFVkJKa+j0AFWYs8Ms/9Kp/ldZPgsrzDFacZf9mOY7eKRzlSXMRIE40UMfkgD4CDAEV QfioZneITW0ssjGWLYQpYX5szclp1ONabGnnf2/FXrWTa4VRQmK1fA4vJWnLrespyyS4B1 JRveNf0V/CjpmSyPn5oS2th2SdZwOhc= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-231-kpre-6BIMxSmNeFFCKlhsQ-1; Wed, 09 Jun 2021 09:24:15 -0400 X-MC-Unique: kpre-6BIMxSmNeFFCKlhsQ-1 Received: by mail-wm1-f69.google.com with SMTP id h9-20020a05600c3509b02901b985251fdcso675963wmq.9 for ; Wed, 09 Jun 2021 06:24:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=20U4EvP+/4P7U+6EGZKMPnMwVak4M1Pove365pXCudk=; b=lzJQFfvYaesXmHHCiTJx4LXtm44xpoS3W4CXfC2d2o1CFTRs1mT+gCqggpJbdSL0v8 hL5zXdwCqgpv6OEJMA+YAOHDBpyAGr+MlSpkEVwB4gS6WBK+0tv2VeqibvLFwRGvaiUc GN+DNN5iKCGSxlEByl5rvudUm9dn5eTCfYwuOKPbNxYz8wnnLmQKqqvo5Cs+7ulehDSn B/NVcqcgiXQVctG5d1PqcxWRO9dQQwz68Vh92kJUELLfwhA0eD5/bR0KLVokMRtev30p n6jfjOu05AYq71Zbeh8Qo6/avvGXOCI4fMTD1NLp4FDHm1xP6pcqtcR9dLO8WbVb59d/ dANw== X-Gm-Message-State: AOAM532DxYEEK9XzMEe/VXMefEj4odvFY9iV3x9vQoKdBWNBPm8gwdj9 zX2jMvbiddkFVTazim7wubiEOxndvuMv3a8MUgy8uncXDu286CIjdijECjUjCezzajuw9Og1YxH i5cowX2kieWJ+YAduqsm3qwAD X-Received: by 2002:a5d:4a43:: with SMTP id v3mr28228656wrs.397.1623245054486; Wed, 09 Jun 2021 06:24:14 -0700 (PDT) X-Received: by 2002:a5d:4a43:: with SMTP id v3mr28228631wrs.397.1623245054289; Wed, 09 Jun 2021 06:24:14 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id x10sm13071040wrt.26.2021.06.09.06.24.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 06:24:13 -0700 (PDT) To: Jason Gunthorpe Cc: "Tian, Kevin" , Alex Williamson , Jean-Philippe Brucker , "Jiang, Dave" , "Raj, Ashok" , "kvm@vger.kernel.org" , Jonathan Corbet , Robin Murphy , LKML , "iommu@lists.linux-foundation.org" , David Gibson , Kirti Wankhede , David Woodhouse , Jason Wang References: <20210604172207.GT1002214@nvidia.com> <2d1ad075-bec6-bfb9-ce71-ed873795e973@redhat.com> <20210607175926.GJ1002214@nvidia.com> <20210608131547.GE1002214@nvidia.com> <89d30977-119c-49f3-3bf6-d3f7104e07d8@redhat.com> <20210608124700.7b9aa5a6.alex.williamson@redhat.com> <20210609115759.GY1002214@nvidia.com> <086ca28f-42e5-a432-8bef-ac47a0a6df45@redhat.com> <20210609124742.GB1002214@nvidia.com> From: Paolo Bonzini Subject: Re: [RFC] /dev/ioasid uAPI proposal Message-ID: <8433033c-daf2-c9b7-56f7-e354320dc5b5@redhat.com> Date: Wed, 9 Jun 2021 15:24:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210609124742.GB1002214@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/06/21 14:47, Jason Gunthorpe wrote: > On Wed, Jun 09, 2021 at 02:46:05PM +0200, Paolo Bonzini wrote: >> On 09/06/21 13:57, Jason Gunthorpe wrote: >>> On Wed, Jun 09, 2021 at 02:49:32AM +0000, Tian, Kevin wrote: >>> >>>> Last unclosed open. Jason, you dislike symbol_get in this contract per >>>> earlier comment. As Alex explained, looks it's more about module >>>> dependency which is orthogonal to how this contract is designed. What >>>> is your opinion now? >>> >>> Generally when you see symbol_get like this it suggests something is >>> wrong in the layering.. >>> >>> Why shouldn't kvm have a normal module dependency on drivers/iommu? >> >> It allows KVM to load even if there's an "install /bin/false" for vfio >> (typically used together with the blacklist directive) in modprobe.conf. >> This rationale should apply to iommu as well. > > I can vaugely understand this rational for vfio, but not at all for > the platform's iommu driver, sorry. Sorry, should apply to ioasid, not iommu (assuming that /dev/ioasid support would be modular). Paolo