On Thu, Jun 27, 2019 at 08:55:21AM +0000, Zhang, Tina wrote: > > > > -----Original Message----- > > From: intel-gvt-dev [mailto:intel-gvt-dev-boun...@lists.freedesktop.org] On > > Behalf Of Gerd Hoffmann > > Sent: Thursday, June 27, 2019 2:20 PM > > To: Zhang, Tina <tina.zh...@intel.com> > > Cc: Tian, Kevin <kevin.t...@intel.com>; k...@vger.kernel.org; linux- > > ker...@vger.kernel.org; zhen...@linux.intel.com; Yuan, Hang > > <hang.y...@intel.com>; alex.william...@redhat.com; Lv, Zhiyuan > > <zhiyuan...@intel.com>; intel-gvt-...@lists.freedesktop.org; Wang, Zhi A > > <zhi.a.w...@intel.com> > > 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