Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50515C433FE for ; Thu, 9 Dec 2021 05:47:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232361AbhLIFvG (ORCPT ); Thu, 9 Dec 2021 00:51:06 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:23672 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbhLIFvE (ORCPT ); Thu, 9 Dec 2021 00:51:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639028851; 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: in-reply-to:in-reply-to:references:references; bh=MTAn1ztGmocc9lVa3A3/+M3LMLwmgt1eLb7L68uXAdc=; b=E8Z6RRx5gT5mcb7jnlunYCPofg6v/fj9Nllwn14Cf8dAknjiD0JqIM1Ekxja1n9VTxQh16 ZZ8DpvM24nX87vmOTf5kHRE0HwXuSEOXSfeJwKzPn6mugFwWBuVyWZVsQdONDwUcgiZxWN JqWQbY6nhU3/EZDP8ZmsLpQ9j9IOeV8= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-256-AfVfHjQfMZe4VLFgNHgobw-1; Thu, 09 Dec 2021 00:47:29 -0500 X-MC-Unique: AfVfHjQfMZe4VLFgNHgobw-1 Received: by mail-lf1-f71.google.com with SMTP id k17-20020a05651239d100b0041c32e98751so2211940lfu.10 for ; Wed, 08 Dec 2021 21:47:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MTAn1ztGmocc9lVa3A3/+M3LMLwmgt1eLb7L68uXAdc=; b=CgqDFULp2FXgMyc/BfX+R1knCyxHWCKxaLstnp384mUFp4Uuqa7pOi6FmvDzDzLhIg nsTG7HvDYaYCg6YPXj5/WSJ8wsAWMuhgMUMuqcxprnOnSF+5jx00FWD6vSWsyAH/gCmt 5rPUPlFCEiRJMLIpZV92UM+zQYPwbZpbRJ8Yn+HBSFhNRMzB8ISBcHKs8i11vnerRfSN A4CPtsJgrX3jEjpRikTpMg6ff1fScEcfrXWhXey8uxt7B+CPSQsLRaSvqif36yoSWE+J c21kV4/j3x4QCI7XNZx/MrYAmGli6SLjs5v5CN+j42B/EZXAxhbuLLM7R6Nek88RVh8F xiCA== X-Gm-Message-State: AOAM531+9WrwLzrkZOPUaNfHBL9YyHxZ0pwtcYBlc72M5jNhpnEyOBOd IkGZWh5w5fJyL6yammWpDxS8CVLrqhqP/rA2dR9QxBvCspD+6iYYnkSrYvHwOvw+NT772YPCLt7 aEghNI4qgijBjJPJnE44y4WtjPYDwoyFWekHncVkk X-Received: by 2002:a2e:3012:: with SMTP id w18mr4000073ljw.217.1639028848438; Wed, 08 Dec 2021 21:47:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwq/umBaPtYwDOFSZQvlFRjjQexm+OmnMnO6A8JPT/yt1E5P3J0cUOqEOEr99euJsOw+HZezXtE5wjdaUSNzOc= X-Received: by 2002:a2e:3012:: with SMTP id w18mr4000032ljw.217.1639028848143; Wed, 08 Dec 2021 21:47:28 -0800 (PST) MIME-Version: 1.0 References: <87v909bf2k.ffs@tglx> <20211130202800.GE4670@nvidia.com> <87o861banv.ffs@tglx> <20211201001748.GF4670@nvidia.com> <87mtlkaauo.ffs@tglx> <20211201130023.GH4670@nvidia.com> <87y2548byw.ffs@tglx> <20211201181406.GM4670@nvidia.com> <87mtlk84ae.ffs@tglx> <87r1av7u3d.ffs@tglx> <20211202135502.GP4670@nvidia.com> In-Reply-To: From: Jason Wang Date: Thu, 9 Dec 2021 13:47:17 +0800 Message-ID: Subject: Re: [patch 21/32] NTB/msi: Convert to msi_on_each_desc() To: "Tian, Kevin" Cc: Jason Gunthorpe , Thomas Gleixner , Logan Gunthorpe , LKML , Bjorn Helgaas , Marc Zygnier , Alex Williamson , "Dey, Megha" , "Raj, Ashok" , "linux-pci@vger.kernel.org" , Greg Kroah-Hartman , Jon Mason , "Jiang, Dave" , Allen Hubbe , "linux-ntb@googlegroups.com" , "linux-s390@vger.kernel.org" , Heiko Carstens , Christian Borntraeger , "x86@kernel.org" , Joerg Roedel , "iommu@lists.linux-foundation.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 9, 2021 at 1:41 PM Tian, Kevin wrote: > > > From: Jason Gunthorpe > > Sent: Thursday, December 2, 2021 9:55 PM > > > > Further, there is no reason why IMS should be reserved exclusively for > > VFIO! > > This is correct. Just as what you agreed with Thomas, the only difference > between IMS and MSI is on where the messages are stored. Physically > it is unreasonable for the HW to check whether an interrupt is used for > a specific software usage (e.g. virtualization) since it doesn't have such > knowledge. At most an entry is associated to PASID, but again the PASID > can be used anywhere. Note that vDPA had the plan to use IMS for the parent that can have a huge amount of instances. Thanks > > The wording in current IDXD spec is not clear on this part. We'll talk to > the spec owner to have it fixed. > > Thanks > Kevin >