Received: from eggs.gnu.org ([2001:4830:134:3::10]:59581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfGqa-0003Jw-T2 for qemu-devel@nongnu.org; Wed, 31 Aug 2016 21:31:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfGqW-00005G-HW for qemu-devel@nongnu.org; Wed, 31 Aug 2016 21:31:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfGqW-0008WM-Bk for qemu-devel@nongnu.org; Wed, 31 Aug 2016 21:31:12 -0400 Date: Thu, 1 Sep 2016 09:31:05 +0800 From: Peter Xu Message-ID: <20160901013105.GB7192@pxdev.xzpeter.org> References: <1470994887-21409-1-git-send-email-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1470994887-21409-1-git-send-email-peterx@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] intel_iommu: add "eim" property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: imammedo@redhat.com, rth@twiddle.net, ehabkost@redhat.com, mst@redhat.com, pbonzini@redhat.com, jan.kiszka@web.de, rkrcmar@redhat.com, davidkiarie4@gmail.com On Fri, Aug 12, 2016 at 05:41:27PM +0800, Peter Xu wrote: > Adding one extra property for intel-iommu device to decide whether we > should support EIM bit for IR. > > Now we are throwing high 24 bits of dest_id away directly. This will > cause interrupt issues with guests that: > > - enabled x2apic with cluster mode > - have more than 8 vcpus (so dest_id[31:8] might be nonzero) > > Let's make xapic the default one, and for the brave people who would > like to try EIM and know the side effects, we can do it by explicitly > enabling EIM using: > > -device intel-iommu,intremap=on,eim=on > > Even after we have x2apic support, it'll still be good if we can provide > a way to switch xapic/x2apic from QEMU side for e.g. debugging purpose, > which is an alternative for tuning guest kernel boot parameters. > > We can switch the default to "on" after x2apic fully supported. > > Signed-off-by: Peter Xu Ping. I'd really appreciate if someone can help have a look on this patch, and to merge it if possible. Since current x2apic is broken. We should not allow broken system boot, at least not by default. Thanks, -- peterx