From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRsYE-0005He-SS for qemu-devel@nongnu.org; Mon, 25 Jul 2016 22:56:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRsYB-00082J-Oo for qemu-devel@nongnu.org; Mon, 25 Jul 2016 22:56:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRsYB-00082F-JB for qemu-devel@nongnu.org; Mon, 25 Jul 2016 22:56:55 -0400 Date: Tue, 26 Jul 2016 10:56:51 +0800 From: Peter Xu Message-ID: <20160726025651.GC14985@pxdev.nay.redhat.com> References: <1469446584-14478-1-git-send-email-peterx@redhat.com> <20160726051419-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160726051419-mutt-send-email-mst@kernel.org> Subject: Re: [Qemu-devel] [PATCH] x86: ioapic: upgrade emulated IOAPIC to ver 0x20 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, pbonzini@redhat.com On Tue, Jul 26, 2016 at 05:15:58AM +0300, Michael S. Tsirkin wrote: > On Mon, Jul 25, 2016 at 07:36:24PM +0800, Peter Xu wrote: > > IOMMU IR and IOAPIC legacy devices (e.g., e1000) cannot work well > > together with some old Linux kernels (upstream before v4.0, or any > > released RHEL kernels). This patch fixes it. > > > > The problem is that: some old linux kernels (with IR enabled) only > > support IOAPIC chips with version 0x20. New kernels after commit d32932d > > ("x86/irq: Convert IOAPIC to use hierarchical irqdomain interfaces") > > fixed this problem. To make sure we can work with even old kernels, > > let's upgrade our IOAPIC to version 0x20. > > > > This patch is only useful when vIOMMU IR is enabled (which still do not > > support kernel IOAPIC). So here we are only upgrading QEMU IOAPIC chip > > to version 0x20. For kernel based IOAPIC, the version will still be > > 0x11. > > > > Signed-off-by: Peter Xu > > As a minimum, we need to make sure not to change this for > old machine types. > > Given the timing, limiting this for when IR is enabled > would be a good idea I think. Thanks Michael. Then let me cook another patch specified to IR, and then we can choose either one we want. -- peterx