Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1890746ybd; Thu, 27 Jun 2019 03:21:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwP4bv8j6bui1sv4tAcd6ZjBmyz1abpzMCoam0fG4YiueTjXqKjE+K78Kt40o2agQpZVLg X-Received: by 2002:a17:902:23:: with SMTP id 32mr3777809pla.34.1561630873367; Thu, 27 Jun 2019 03:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561630873; cv=none; d=google.com; s=arc-20160816; b=GETxa0nkZVS3Izq4UouIrC7t268dQphXY6PNDNezoaC/hO9bdx1i3WuMegdKgZBa1G 6MeyM4sQbpFxHB53Aqf/d1ghtwGaMtMGnH5GrFEpdTYri4+fymip+tJ7JTQ1FOE14Uud SXFABL5mWApXEBuRAbFGp4Fnx2u5XCPplPJZtAY5w8KcWGty/11GyoKh6OWPkDxSv2vz VRHtr5adhr81z/mK6E7RlNWU8MfKMDkJIddXvoizWzyFrswvGsAp4Xpr468LHEbqDFoz aLXeFNvccrieFuul/75N7FNnt6j4byjXJnd/kbx+vNyknNXXEPIR97sd+Cum5H7vpnn7 yFxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ISsCflYQX5O2gcGLnrZvOqhnOp+eNbczBgE9zK3hHyE=; b=EmGBkIil7ww/6e5ljXiTVDJqlu+VAe31IZw+y2/5xP3vrIAr6Zrp73BtulduyB1Rwj imwZqfZJjzk1Adx+9o0jZgLIIUlYIH6iSLYDGOigCZqg97nDw6uEjjsexTGORKcgEXHq WknhMxKPgIJNmLz64H4HWQz9NjsiVJX7SpdYK/8CJXiG7BNZLDgfuWr9fZdESLWqlXW6 OWTNlIm1igzxkLvOa+vdixYmInW5Yt0b7NoXbgh+i3OJYNYxqYn1YdCMHn8E2On3v60x MuP2MT/qlQFrkLwasBqacwJ+4EPXSwd40LMlHi3quVH2n7AK9enb5V2hUUwL6vop2hXe TnNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si4794116pjl.77.2019.06.27.03.20.56; Thu, 27 Jun 2019 03:21:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726443AbfF0KUv (ORCPT + 99 others); Thu, 27 Jun 2019 06:20:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37922 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbfF0KUv (ORCPT ); Thu, 27 Jun 2019 06:20:51 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A83AC30832D3; Thu, 27 Jun 2019 10:20:50 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-96.ams2.redhat.com [10.36.116.96]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1C1FC19C68; Thu, 27 Jun 2019 10:20:48 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 50B5711AAF; Thu, 27 Jun 2019 12:20:47 +0200 (CEST) Date: Thu, 27 Jun 2019 12:20:47 +0200 From: Gerd Hoffmann To: "Zhang, Tina" Cc: "Tian, Kevin" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "zhenyuw@linux.intel.com" , "Yuan, Hang" , "alex.williamson@redhat.com" , "Lv, Zhiyuan" , "intel-gvt-dev@lists.freedesktop.org" , "Wang, Zhi A" Subject: Re: [RFC PATCH v3 1/4] vfio: Define device specific irq type capability Message-ID: <20190627102047.elwxbzqcyw4ixy7x@sirius.home.kraxel.org> References: <20190627033802.1663-1-tina.zhang@intel.com> <20190627033802.1663-2-tina.zhang@intel.com> <20190627061942.k5onxbm27dju3iv5@sirius.home.kraxel.org> <237F54289DF84E4997F34151298ABEBC87683644@SHSMSX101.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <237F54289DF84E4997F34151298ABEBC87683644@SHSMSX101.ccr.corp.intel.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Thu, 27 Jun 2019 10:20:50 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 27, 2019 at 08:55:21AM +0000, Zhang, Tina wrote: > > > > -----Original Message----- > > From: intel-gvt-dev [mailto:intel-gvt-dev-bounces@lists.freedesktop.org] On > > Behalf Of Gerd Hoffmann > > Sent: Thursday, June 27, 2019 2:20 PM > > To: Zhang, Tina > > Cc: Tian, Kevin ; kvm@vger.kernel.org; linux- > > kernel@vger.kernel.org; zhenyuw@linux.intel.com; Yuan, Hang > > ; alex.williamson@redhat.com; Lv, Zhiyuan > > ; intel-gvt-dev@lists.freedesktop.org; Wang, Zhi A > > > > Subject: Re: [RFC PATCH v3 1/4] vfio: Define device specific irq type > > capability > > > > Hi, > > > > > +struct vfio_irq_info_cap_type { > > > + struct vfio_info_cap_header header; > > > + __u32 type; /* global per bus driver */ > > > + __u32 subtype; /* type specific */ > > > > Do we really need both type and subtype? > Then, if one device has several irqs, how can we identify them? > Thanks. Just assign multiple types? cheers, Gerd