Received: from eggs.gnu.org ([2001:4830:134:3::10]:43386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXlSt-0001YR-Pz for qemu-devel@nongnu.org; Thu, 11 Aug 2016 04:35:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXlSr-0006lD-R3 for qemu-devel@nongnu.org; Thu, 11 Aug 2016 04:35:46 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:34363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXlSr-0006l7-KE for qemu-devel@nongnu.org; Thu, 11 Aug 2016 04:35:45 -0400 Received: by mail-wm0-x242.google.com with SMTP id q128so1633899wma.1 for ; Thu, 11 Aug 2016 01:35:45 -0700 (PDT) References: <1470127147-12442-1-git-send-email-davidkiarie4@gmail.com> <1470127147-12442-4-git-send-email-davidkiarie4@gmail.com> From: Valentine Sinitsyn Message-ID: <6711a892-8fcf-3206-501e-f0b9f7bdd898@gmail.com> Date: Thu, 11 Aug 2016 13:35:42 +0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [V15 3/4] hw/i386: Introduce AMD IOMMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Kiarie Cc: QEMU Developers , Peter Xu , rkrcmar@redhat.com, Jan Kiszka , Eduardo Habkost , "Michael S. Tsirkin" On 11.08.2016 13:32, David Kiarie wrote: > > > On Thu, Aug 11, 2016 at 11:23 AM, Valentine Sinitsyn > > wrote: > > Hi, > > > On 02.08.2016 13:39, David Kiarie wrote: > > +static void amdvi_writeq_raw(AMDVIState *s, uint64_t val, > hwaddr addr) > +{+ > +static void amdvi_generate_msi_interrupt(AMDVIState *s) > +{ > + MSIMessage msg; > + if (msi_enabled(&s->pci.dev)) { > + msg = msi_get_message(&s->pci.dev, 0); > + address_space_stl_le(&address_space_memory, > msg.address, msg.data, > + MEMTXATTRS_UNSPECIFIED, NULL); > > Nit: don't you want to set the requester ID to the IOMMU's BDF here? > > > We could though I overlooked that because IOMMU interrupt requests are > not processed by IOMMU. True, that's the prefix. It's a matter of cleanness, not a bug, so you choose. Can be changed any time later in the tree. Valentine