From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [v4 10/17] vt-d: Extend struct iremap_entry to support VT-d Posted-Interrupts Date: Fri, 24 Jul 2015 09:13:18 -0600 Message-ID: <55B2722E0200007800095426@prv-mh.provo.novell.com> References: <1437651353-5275-1-git-send-email-feng.wu@intel.com> <1437651353-5275-11-git-send-email-feng.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1437651353-5275-11-git-send-email-feng.wu@intel.com> Content-Disposition: inline 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 Cc: Yang Zhang , Kevin Tian , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 23.07.15 at 13:35, wrote: > --- a/xen/drivers/passthrough/vtd/utils.c > +++ b/xen/drivers/passthrough/vtd/utils.c > @@ -238,14 +238,14 @@ static void dump_iommu_info(unsigned char key) > else > p = &iremap_entries[i % (1 << IREMAP_ENTRY_ORDER)]; > > - if ( !p->lo.p ) > + if ( !p->remap.p ) > continue; > printk(" %04x: %x %x %04x %08x %02x %x %x %x %x %x" > " %x %x\n", i, > - (u32)p->hi.svt, (u32)p->hi.sq, (u32)p->hi.sid, > - (u32)p->lo.dst, (u32)p->lo.vector, (u32)p->lo.avail, > - (u32)p->lo.dlm, (u32)p->lo.tm, (u32)p->lo.rh, > - (u32)p->lo.dm, (u32)p->lo.fpd, (u32)p->lo.p); > + (u32)p->remap.svt, (u32)p->remap.sq, (u32)p->remap.sid, > + (u32)p->remap.dst, (u32)p->remap.vector, (u32)p->remap.avail, > + (u32)p->remap.dlm, (u32)p->remap.tm, (u32)p->remap.rh, > + (u32)p->remap.dm, (u32)p->remap.fpd, (u32)p->remap.p); While touching this code anyway, can you please at once drop as many of these bogus casts as possible? Jan