Received: from eggs.gnu.org ([2001:4830:134:3::10]:59811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmXga-0000pc-3d for qemu-devel@nongnu.org; Tue, 20 Sep 2016 22:55:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmXgW-0002IH-Sv for qemu-devel@nongnu.org; Tue, 20 Sep 2016 22:55:00 -0400 In-Reply-To: <1474418502.2857.97.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> <1474417098.2857.96.camel@kernel.crashing.org> <149AE2FD-4392-4F5F-A0AD-6613F5C47168@gmail.com> <1474418502.2857.97.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 22:54:48 -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 , The OpenBIOS Mailinglist Cc: qemu-devel qemu-devel , "list@suse.de:PowerPC list:PowerPC" On Sep 20, 2016, at 8:41 PM, Benjamin Herrenschmidt wrote: > On Tue, 2016-09-20 at 20:35 -0400, G 3 wrote: >> >> When I use the -prom-env option I can easily add properties to the >> options node. >> Can something like this be done with the chosen node? > > We can make it so. That or we can add code to OpenBIOS to copy the > list > of resolutions into the device-node of the VGA device. The latter is > probably the best, that way we can also have all the default ones in > OpenBIOS and remove the hard coded list completely. You really want to remove the included list of resolutions? I was thinking about adding a lot more built-in resolutions in another patch. A built-in list is very convenient. As for the options node problem. We need a way to add resolutions from the command-line for a Mac OS X guest. Using "-prom-env" isn't an option because of some unknown bug. I suppose it is possible to fix this bug - if it is a bug. Another idea I have is to add a completely different command-line option to QEMU just for resolutions. The user could specify resolutions like this: -video- resolutions 640x480,1024x768,1280x700.... This feature could place the list of resolutions inside a property of the VGA device node. I am betting the VGA driver could access this node and parse the list of resolutions. So this: qemu -video-resolutions ---> OpenBIOS VGA device node ---> VGA driver Would anyone have another idea they would like to share?