From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8eKn-0002Ax-UZ for qemu-devel@nongnu.org; Wed, 29 Jan 2014 18:14:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8eKg-0003a3-Ho for qemu-devel@nongnu.org; Wed, 29 Jan 2014 18:14:17 -0500 Received: from cantor2.suse.de ([195.135.220.15]:43385 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8eKg-0003Zv-B7 for qemu-devel@nongnu.org; Wed, 29 Jan 2014 18:14:10 -0500 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) From: Alexander Graf In-Reply-To: <20140129213649.GE29329@ERROL.INI.CMU.EDU> Date: Thu, 30 Jan 2014 00:13:59 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <20140121181101.GB1323@ERROL.INI.CMU.EDU> <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> 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" , "qemu-devel@nongnu.org" , "Michael S. Tsirkin" > Am 29.01.2014 um 22:36 schrieb "Gabriel L. Somlo" : > > 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. Can you check whether it configures the ioapic differently? Alex > > Thanks, > --G