Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1227774pxk; Thu, 10 Sep 2020 10:03:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVUCquPyTs4AsLtQjYc6tygHLeheYl0YNrM2DSKUhkVOMGzXgEFFlLe/WcAI6SKIV6fNin X-Received: by 2002:aa7:dc16:: with SMTP id b22mr10187246edu.252.1599757421015; Thu, 10 Sep 2020 10:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599757421; cv=none; d=google.com; s=arc-20160816; b=Styi1qCgQWdbtn6MtiDgHHUlrUyY7ES9kMvhNEwTqf+hGGIxEasZ33MhUJBSha67HN RfKpt4qk+KZ4xc3UkSG8MdSWpS5ib0dasxHI1shLuEg2nntA9lzgxMGg4D3vo+p7UrLs cLUoYr36ttg5LI2g7/bpxIUTkWSwCc61+cZ9j1dtqwjmiossrmA2C8tYVyu16i0M4wQg nIv4lT1A3wxMfqUy6uqqOADEbNCKmnjMtlOfgS+gBCWCSgh1soQLcDWYy/KFz/uUgXca HxnVNH93hLT2kC+yQftBWR6/QEwLwaLznUKI83j0CWsgqr+6Egic4B1+1E+nZIG/aB98 j1Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1N39+l9Ba/WkrqUymZo6lvs+0CWTXq8+9In9bijFEEk=; b=EdmSA/ggf6sQMZaiRxqTd9B4bkDxypWqapHVOJ7z4/Ei2vZ2qC5GbMzVYloVi4xqZ+ KfckPyj0NyvPFgm6uJ/RQ7pZsgU3w4+2mf7cmTxaKFrCHQpD98UEAVAHVLvscuvgNlBt k65GZ8+8uBt6ZemTTRBbLZG9nsxL4vxpUHUdUJw8PKWhmOfdv3k4cNb5wCwJjp0bDijT rscg8yr+xmmGBVJFjt0FeeviHqy1EFLqb1jp6g1shpKUTVQVGmz75QF06yfp0ajtBkM2 agOf7XYGEqGPEfUaINKYbYlQ4QCJtOwgKH4YpkKQndkVr4oMH8AaJl1Cef66ORUz4mBh +ZZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FKpyRZF0; 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 l27si4049585eja.9.2020.09.10.10.03.16; Thu, 10 Sep 2020 10:03:41 -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=FKpyRZF0; 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 S1726769AbgIJRCa (ORCPT + 99 others); Thu, 10 Sep 2020 13:02:30 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:25571 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727808AbgIJQ5t (ORCPT ); Thu, 10 Sep 2020 12:57:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599757066; 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=1N39+l9Ba/WkrqUymZo6lvs+0CWTXq8+9In9bijFEEk=; b=FKpyRZF083iFmSs87VLe1ptwiUnjd/vfBMzLUMdTxEfAEq1NJlcG3Gvkzqwrx/8bkzb9dj b99EXH8RL0qtD8xOWtDBbj44POVRNrwv8BKoVQmE95TXfhWjAAyAYF0RkqBxFHPJh8IIYB 6KeLC8e8gLi7YD6AHLxLALPqgRHT6l4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-18-b_SV9j85Oa6bodKfoGhiyA-1; Thu, 10 Sep 2020 12:57:42 -0400 X-MC-Unique: b_SV9j85Oa6bodKfoGhiyA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0A74B420E7; Thu, 10 Sep 2020 16:57:41 +0000 (UTC) Received: from w520.home (ovpn-112-71.phx2.redhat.com [10.3.112.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id 48C97100239A; Thu, 10 Sep 2020 16:57:36 +0000 (UTC) Date: Thu, 10 Sep 2020 10:57:35 -0600 From: Alex Williamson To: Vikas Gupta Cc: Cornelia Huck , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Vikram Prakash , Srinath Mannam , Auger Eric Subject: Re: MSI/MSIX for VFIO platform Message-ID: <20200910105735.1e060b95@w520.home> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Sep 2020 16:15:27 +0530 Vikas Gupta wrote: > Hi Alex/Cornelia, > > We are looking for MSI interrupts for platform devices in user-space > applications via event/poll mechanism using VFIO. > > Since there is no support for MSI/MSIX handling in VFIO-platform in kernel, > it may not possible to get this feature in user-space. > > Is there any other way we can get this feature in user-space OR can you > please suggest if any patch or feature is in progress for same in VFIO > platform? > > Any suggestions would be helpful. Eric (Cc'd) is the maintainer of vfio-platform. vfio-platform devices don't have IRQ indexes dedicated to MSI and MSI-X like vfio-pci devices do (technically these are PCI concepts, but I assume we're referring generically to message signaled interrupts), but that's simply due to the lack of standardization in platform devices. Logically these are simply collections of edge triggered interrupts, which the vfio device API supports generically, it's simply a matter that the vfio bus driver exposing a vfio-platform device create an IRQ index exposing these vectors. Thanks, Alex