From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Concern about AMD IOMMU HPET msi remapping Date: Mon, 19 Nov 2012 13:33:19 +0000 Message-ID: <50AA351F.5030301@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , Wei Wang Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org 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? -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com