From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8dSq-00073J-SD for qemu-devel@nongnu.org; Wed, 29 Jan 2014 17:18:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8dSi-00012F-1j for qemu-devel@nongnu.org; Wed, 29 Jan 2014 17:18:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8dSh-00011L-Ov for qemu-devel@nongnu.org; Wed, 29 Jan 2014 17:18:23 -0500 Date: Thu, 30 Jan 2014 00:18:17 +0200 From: "Michael S. Tsirkin" Message-ID: <20140129221817.GA1656@redhat.com> References: <20140121183851.GA26382@redhat.com> <20140124164608.GB1293@ERROL.INI.CMU.EDU> <20140125000945.GA10357@crash.ini.cmu.edu> <6FAEE645-799D-4535-B568-75AB5E4D206C@suse.de> <20140127225115.GA29329@ERROL.INI.CMU.EDU> <20140128164536.GB29329@ERROL.INI.CMU.EDU> <52E90D87.4010606@suse.de> <20140129213649.GE29329@ERROL.INI.CMU.EDU> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140129213649.GE29329@ERROL.INI.CMU.EDU> Subject: Re: [Qemu-devel] OSX guest vs. kvm ioapic polarity List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gabriel L. Somlo" Cc: "imammedo@redhat.com" , "pbonzini@redhat.com" , "lersek@redhat.com" , Alexander Graf , "qemu-devel@nongnu.org" On Wed, Jan 29, 2014 at 04:36:50PM -0500, Gabriel L. Somlo wrote: > On Wed, Jan 29, 2014 at 03:17:43PM +0100, Alexander Graf wrote: > > >Do you belive there's a chance we can work around this by just tweaking > > >ACPI on the QEMU side, and thus eliminate the need for a KVM patch ? > > > > Yes, that's what I was hoping. What does the IRQ link property look > > like on a real Mac? > > On the varous Mac models on which I pulled the DSDT, I have something > like: > > Device (LNKA) { > Name (_PRS, ResourceTemplate () { > IRQ (Level, ActiveLow, Shared, ) > {1,3,4,5,6,7,10,12,14,15} > }) > > So yeah, definitely "Low", not "High". > > Interestingly enough, on my Dell Latitude D630, the various LNK* nodes > also have "ActiveLow" in their _PRS methods! Same with my Dell R410 > server. > > > We define PCI IRQ links as > > > > 254 Name(_PRS, ResourceTemplate() { \ > > 255 Interrupt(, Level, ActiveHigh, Shared) { \ > > 256 5, 10, 11 \ > > 257 } \ > > 258 }) \ > > > > Have you tried to change this to ActiveLow? > > Yes, and I also tried adding a bunch of extra IRQ numbers, but to no > avail. OS X will boot fine with the one-liner KVM patch removing the > statement: > > "irq_level ^= entry.fields.polarity;" > > regardless of how LNK*._PRS is configured, and will hang without the > patch, also regardless of LNK*._PRS. > > Thanks, > --G Weird - I was sure polarity is 0 ... Can you printk this field and irq_level value pls?