Received: from eggs.gnu.org ([2001:4830:134:3::10]:55216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgemB-0006z3-0B for qemu-devel@nongnu.org; Mon, 28 Sep 2015 16:11:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zgem6-0005mi-FN for qemu-devel@nongnu.org; Mon, 28 Sep 2015 16:11:54 -0400 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:34509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgem6-0005mb-BO for qemu-devel@nongnu.org; Mon, 28 Sep 2015 16:11:50 -0400 Received: by qkfq186 with SMTP id q186so72892282qkf.1 for ; Mon, 28 Sep 2015 13:11:50 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <87k2raxq52.fsf@blackfin.pond.sub.org> Date: Mon, 28 Sep 2015 16:11:47 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <8FCDE3B6-6DD7-410B-8433-2926D145F5FC@gmail.com> References: <6AF094C9-59D3-40E4-AFAE-ECAE1D2A8414@gmail.com> <0A9D3B90-7ADB-40F3-ADCC-0A6B22F05AA8@gmail.com> <87y4fwtid9.fsf@blackfin.pond.sub.org> <78DE98BA-E63B-42B6-9BF0-71A373E6E0A1@gmail.com> <874miiv72p.fsf@blackfin.pond.sub.org> <87k2raxq52.fsf@blackfin.pond.sub.org> Subject: Re: [Qemu-devel] [PATCH v3] ui/cocoa.m: Add Mount image file menu item List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Peter Maydell , qemu-devel qemu-devel On Sep 28, 2015, at 4:09 PM, Markus Armbruster wrote: > Programmingkid writes: >=20 >> On Sep 25, 2015, at 11:42 AM, Markus Armbruster wrote: >>=20 >>> Programmingkid writes: >>>=20 >>>> On Sep 24, 2015, at 2:57 AM, Markus Armbruster wrote: >>>>=20 >>>>> Programmingkid writes: >>>>>=20 >>>>>> On Sep 23, 2015, at 4:35 PM, Peter Maydell wrote: >>>>>>=20 >>>>>>> On 17 September 2015 at 21:17, Programmingkid >>>>>>> wrote: >>>>>>>> Add "Mount Image File..." and a "Eject Image File" menu items = to >>>>>>>> cocoa interface. This patch makes sharing files between the >>>>>>>> host and the guest user-friendly. >>>>>>>>=20 >>>>>>>> The "Mount Image File..." menu item displays a dialog box = having the >>>>>>>> user pick an image file to use in QEMU. The image file is setup = as >>>>>>>> a USB flash drive. The user can do the equivalent of removing = the >>>>>>>> flash drive by selecting the file in the "Eject Image File" = submenu. >>>>>>>>=20 >>>>>>>> Signed-off-by: John Arbuckle >>>>>>>=20 >>>>>>> I've thought a bit about this, and I really don't think this = sort >>>>>>> of feature should be part of QEMU itself. Our general design for >>>>>>> how QEMU does this sort of thing is that an external program >>>>>>> (virt-manager, for instance) is responsible for providing most >>>>>>> of the UI conveniences the user wants, and QEMU's "ui" code is >>>>>>> a fairly simple minimum-functionality affair. I agree with = Markus >>>>>>> that this separation of concerns has generally worked OK for us. >>>>>>>=20 >>>>>>> I don't think OSX should be an exception to this design model: >>>>>>> (a) being an odd special case is never a good idea >>>>>>> (b) as a practical matter, I'm the only person who really = reviews >>>>>>> OSX patches, and I don't have either the time nor the UI or OSX >>>>>>> expertise to deal with maintaining what will effectively be a >>>>>>> vm-manager grafted onto the side of QEMU >>>>>>>=20 >>>>>>> So I think your efforts would be better spent in either porting >>>>>>> one of the Linux frontends like libvirt/virt-manager, or in >>>>>>> writing a custom OSX specific frontend. >>>>>>=20 >>>>>> I understand that time is precious. It is one of those things >>>>>> that we only have a finite amount of. Every user can agree >>>>>> to that. This patch was pretty hairy looking with the QDict >>>>>> and other unfamiliar code. With that said I'm not ready to >>>>>> give up on this patch. It is a huge time saver for the user. >>>>>> Without it, the user would need to spend a lot of time >>>>>> investigating documentation. What's worse is the user >>>>>> would have to type out full paths to files they need. This >>>>>> would definitely be error prone and frustrating. >>>>>=20 >>>>> Nobody is challenging the idea that many users appreciate a GUI. >>>>>=20 >>>>> What we've been trying to tell you is where in this software layer = cake >>>>> the GUI should be. In Peter's words, "our general design for how = QEMU >>>>> does this sort of thing is that an external program (virt-manager, = for >>>>> instance) is responsible for providing most of the UI = conveniences". >>>>=20 >>>> That is easy for you to say. Linux already has virt-manager. Mac OS >>>> X doesn't. >>>> Expecting someone to just go and port another program to Mac OS X = is=20 >>>> unreasonable. The amount of time and energy it would take to do so >>>> would make it hard.=20 >>>=20 >>> On the purely technical level, it may or may not be harder than = mashing >>> everything into QEMU. >>>=20 >>> On the getting-patches-merged level, mashing everything into QEMU is = a >>> non-starter, as Peter and I have told you multiple times. >>>=20 >>> That tips the balance somewhat. >>>=20 >>>>>> This patch can definitely be more simplified. QMP >>>>>> commands could be used in place of C functions.=20 >>>>>> This would reduce the patch size greatly.=20 >>>>>=20 >>>>> You're quite welcome to use QMP the way it wants to be used: as an >>>>> external interface. >>>>>=20 >>>>> Abusing it as internal interface won't fly. >>>>=20 >>>> The QMP interface is primarily there to help a gui interact with = QEMU. That >>>> is what I intend to use it for. >>>=20 >>> Nope, the QMP interface's purpose is to let other programs interact = with >>> QEMU. >>>=20 >>> You're free to use it for other purposes to your heart's content. = Just >>> don't count on patches to be merged when they do things maintainers = have >>> told you not to do :) >>=20 >> I did do as you said and used C functions in place of the original = hmp >> commands. >=20 > Yes, you did, to address my hard objections there. A hard objection = is > about a technical issue in my area of expertise, and especially the > areas I maintain. Unaddressed hard objections NAK patches. >=20 > I also have opinions on matters outside the areas I maintain, like > whether we should be in the GUI business, but mere opinions don't NAK > patches. Are you against the GTK interface that works on Linux? >=20 >> I guess there never was any hope for this patch. :( >=20 > Getting a patch rejected isn't a pleasant experience. Would you like = to > see my collection of rejected patches? No thank you.=20=