From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bslLt-00058X-Ij for qemu-devel@nongnu.org; Sat, 08 Oct 2016 02:43:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bslLo-00062b-RO for qemu-devel@nongnu.org; Sat, 08 Oct 2016 02:43:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bslLo-00062N-Ku for qemu-devel@nongnu.org; Sat, 08 Oct 2016 02:43:16 -0400 Date: Sat, 8 Oct 2016 14:43:11 +0800 From: Peter Xu Message-ID: <20161008064311.GG3666@pxdev.xzpeter.org> References: <20161005130657.3399-1-rkrcmar@redhat.com> <20161005130657.3399-4-rkrcmar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20161005130657.3399-4-rkrcmar@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 3/8] intel_iommu: pass whole remapped addresses to apic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Radim =?utf-8?B?S3LEjW3DocWZ?= Cc: qemu-devel@nongnu.org, Igor Mammedov , Paolo Bonzini , Richard Henderson , Eduardo Habkost , "Michael S. Tsirkin" On Wed, Oct 05, 2016 at 03:06:52PM +0200, Radim Kr=C4=8Dm=C3=A1=C5=99 wro= te: > The MMIO interface to APIC only allowed 8 bit addresses, which is not > enough for 32 bit addresses from EIM remapping. > Intel stored upper 24 bits in the high MSI address, so use the same > technique. The technique is also used in KVM MSI interface. > Other APICs are unlikely to handle those upper bits. >=20 > Reviewed-by: Igor Mammedov > Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 Again we are assuming MSIMessage as host endianess here. If there is more spin for this one, maybe we can consider providing a common function for: apic_get_class()->send_msi(&msi); And call it in the two places. But this one is good enough for me, so: Reviewed-by: Peter Xu Thanks, -- peterx