From: "Jan Beulich" Subject: Re: Concern about AMD IOMMU HPET msi remapping Date: Mon, 19 Nov 2012 14:09:31 +0000 Message-ID: <50AA4BAB02000078000A9B2C@nat28.tlf.novell.com> References: <50AA351F.5030301@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <50AA351F.5030301@citrix.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: Wei Wang , Andrew Cooper Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 19.11.12 at 14:33, Andrew Cooper wrote: > Hello, > > In the committed patch > http://xenbits.xen.org/hg/staging/xen-unstable.hg/rev/9025a10c0561 > > The bdf parameter to update_intremap_entry_from_msi_msg() is declared as > u8. The single caller of this function passes bdf as an int (which is > only ever filled with a u16), while the this function passes bdf to > get_{dma,intremap}_requestor_id(), which expect u16's > > Is there not a truncation issue by doing this, or am I missing something? Oh, indeed - thanks for spotting. Will fix this right away. Jan