Received: from eggs.gnu.org ([2001:4830:134:3::10]:32935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoRSB-0002xQ-Ux for qemu-devel@nongnu.org; Fri, 08 Apr 2016 04:07:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoRS8-0007JY-Oc for qemu-devel@nongnu.org; Fri, 08 Apr 2016 04:07:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoRS8-0007JT-IX for qemu-devel@nongnu.org; Fri, 08 Apr 2016 04:07:40 -0400 Date: Fri, 8 Apr 2016 16:07:34 +0800 From: Peter Xu Message-ID: <20160408080734.GB26923@pxdev.xzpeter.org> References: <1455852618-5224-1-git-send-email-peterx@redhat.com> <1455852618-5224-3-git-send-email-peterx@redhat.com> <56C999F4.5040102@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <56C999F4.5040102@gmail.com> Subject: Re: [Qemu-devel] [PATCH 02/13] acpi: enable INTR for DMAR report structure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcel@redhat.com Cc: qemu-devel@nongnu.org, ehabkost@redhat.com, mst@redhat.com, jasowang@redhat.com, pbonzini@redhat.com, imammedo@redhat.com, rth@twiddle.net On Sun, Feb 21, 2016 at 01:05:24PM +0200, Marcel Apfelbaum wrote: [...] > > static void > > build_dmar_q35(GArray *table_data, GArray *linker) > > { > >@@ -2496,10 +2509,19 @@ build_dmar_q35(GArray *table_data, GArray *linker) > > > > AcpiTableDmar *dmar; > > AcpiDmarHardwareUnit *drhd; > >+ uint8_t dmar_flags = 0; > >+ IntelIOMMUState *intel_iommu = acpi_get_iommu(); > >+ > >+ assert(intel_iommu); > >+ > >+ if (intel_iommu->intr_supported) { > > Hi, > > It seems intr_supported duplicates the same field you have in machine. > You can pass the machine to build_dmar_q35 and get rid of the extra field. You are right. Will drop intr_supported in all the patches. Thanks. -- peterx