From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [RFC v1 06/15] vt-d: Extend struct iremap_entry to support VT-d Posted-Interrupts Date: Thu, 26 Mar 2015 19:00:56 +0000 Message-ID: <55145768.8080400@citrix.com> References: <1427286717-4093-1-git-send-email-feng.wu@intel.com> <1427286717-4093-7-git-send-email-feng.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427286717-4093-7-git-send-email-feng.wu@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Feng Wu , xen-devel@lists.xen.org Cc: yang.z.zhang@intel.com, kevin.tian@intel.com, keir@xen.org, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org On 25/03/15 12:31, Feng Wu wrote: > Extend struct iremap_entry according to VT-d Posted-Interrupts Spec. > > Signed-off-by: Feng Wu > --- > xen/drivers/passthrough/vtd/iommu.h | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/xen/drivers/passthrough/vtd/iommu.h b/xen/drivers/passthrough/vtd/iommu.h > index 42047e0..cd61e12 100644 > --- a/xen/drivers/passthrough/vtd/iommu.h > +++ b/xen/drivers/passthrough/vtd/iommu.h > @@ -303,6 +303,18 @@ struct iremap_entry { > res_2 : 8, > dst : 32; > }lo; > + struct { > + u64 p : 1, > + fpd : 1, > + res_1 : 6, > + avail : 4, > + res_2 : 2, > + urg : 1, > + im : 1, > + vector : 8, > + res_3 : 14, > + pda_l : 26; > + }lo_intpost; > }; > union { > u64 hi_val; > @@ -312,6 +324,13 @@ struct iremap_entry { > svt : 2, > res_1 : 44; > }hi; > + struct { > + u64 sid : 16, > + sq : 2, > + svt : 2, > + res_1 : 12, > + pda_h : 32; > + }hi_intpost; I would prefer if this union was reformatted as I suggested in the thread from your design doc, but I won't insist on it as a blocker to entry. Please however name each of the fields with a comment. ~Andrew > }; > }; >