Received: from eggs.gnu.org ([2001:4830:134:3::10]:55096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmCG1-0001HU-NV for qemu-devel@nongnu.org; Tue, 20 Sep 2016 00:02:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmCFx-0000Gb-Jb for qemu-devel@nongnu.org; Tue, 20 Sep 2016 00:02:08 -0400 In-Reply-To: <1474325083.2857.35.camel@kernel.crashing.org> References: <5766C91B-319D-46CD-9020-19EB5299DF99@gmail.com> <1474266273.2857.11.camel@kernel.crashing.org> <852E4EA6-522A-499D-88DE-A1955D938D6D@gmail.com> <1474325083.2857.35.camel@kernel.crashing.org> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: G 3 Date: Tue, 20 Sep 2016 00:01:57 -0400 Subject: Re: [Qemu-devel] [PATCH] Add resolutions via the command-line List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: qemu-devel qemu-devel , "list@suse.de:PowerPC list:PowerPC" On Sep 19, 2016, at 6:44 PM, Benjamin Herrenschmidt wrote: > On Mon, 2016-09-19 at 08:44 -0400, G 3 wrote: >> On Sep 19, 2016, at 2:24 AM, Benjamin Herrenschmidt wrote: >> >>> >>> On Sat, 2016-09-17 at 23:31 -0400, G 3 wrote: >>>> >>>> Add the ability to add resolutions from the command-line. This >>>> patch >>>> works by >>>> looking for a property called 'resolutions' in the options node >>>> of >>>> OpenBIOS. >>>> If it is found all the resolutions are parsed and loaded. >>>> >>>> Example command-line: >>> >>> You must not use the C library in the ndrv (malloc, atoi, ...) >>> >>> Stick to what's in DriverServicesLib and NameRegistryLib. >> >> I originally thought that, but was wrong. Those C library functions >> work. > > No, don't use them. They "seem" to work but bad thing will happen, > especially on OS X. > > Cheers, > Ben. Ok, they have been replaced in my next patch. Something is wrong with the options node in OpenBIOS. It is inaccessible from Mac OS X. When trying to access the options node, IORegistryExplorer always crashes. The other nodes are accessible. I'm not certain what the problem could be.