From: "Glauber Costa" Subject: Re: [Qemu-devel] [PATCH 0/6] Simplify cpu_exec - spin 3 Date: Wed, 28 May 2008 11:44:23 -0300 Message-ID: <5d6222a80805280744l54f4e2c7lb9b1ea77a844eab3@mail.gmail.com> References: <1211983296-27395-1-git-send-email-gcosta@redhat.com> <200805281525.11789.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, "Glauber Costa" , kvm@vger.kernel.org To: "Paul Brook" Return-path: Received: from yw-out-2324.google.com ([74.125.46.28]:11473 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751169AbYE1Ooe (ORCPT ); Wed, 28 May 2008 10:44:34 -0400 Received: by yw-out-2324.google.com with SMTP id 9so1980597ywe.1 for ; Wed, 28 May 2008 07:44:23 -0700 (PDT) In-Reply-To: <200805281525.11789.paul@codesourcery.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Wed, May 28, 2008 at 11:25 AM, Paul Brook wrote: > On Wednesday 28 May 2008, Glauber Costa wrote: >> Hi guys, >> >> here's a new spin of the patches I sent yesterday. It basically merges the >> comments I received, and adapts to the current state of the svn tree. >> Also, as Fabrice said multiple times inlining would be better, I'm taking >> a new approach, and instead of defining functions, I'm defining empty >> macros (for the general case), and archictectures that need it can then >> override. It results in substantially less code. > > I'm not so sure this is a good idea. IMHO using macros to implement functions > is ugly. That's what inline functions are for :-) > > Providing a default implementation is also a fairly suspect idea. When adding > a new target I like that we generate an error error when I forget to populate > all of the target specific routines. The same applies when making changes to > generic code, you're forced to go through every target and update them. ok. If all the rest is fine, I can then switch back to the old model and resend it. > Paul > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."