From: Alexander Graf Subject: Re: [PATCH v11 5/8] KVM: PPC: ev_idle hcall support for e500 guests Date: Mon, 2 Jul 2012 15:40:29 +0200 Message-ID: <7C1E0318-5B81-4ADE-9DCE-807267C2075C@suse.de> References: <1340395469-14363-1-git-send-email-stuart.yoder@freescale.com> <41C7EDF8-59B4-4F03-83AF-9B8561082EFB@suse.de> <1341235461.2588.48.camel@pasglop> Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT Cc: Stuart Yoder , kvm-ppc , KVM list To: Benjamin Herrenschmidt Return-path: In-Reply-To: <1341235461.2588.48.camel@pasglop> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 02.07.2012, at 15:24, Benjamin Herrenschmidt wrote: > On Mon, 2012-07-02 at 14:20 +0200, Alexander Graf wrote: >> >> Ben, would you be opposed to a macro that does this? Open-coding >> subtile details like this always makes me wary we could screw them >> up :) > > That's definitely material for a macro (and fixup the gazillion places > where we do it by hand already :-) Just like I thought. Stuart, want to take this on you? It'd be mostly a simple search+replace of the pattern in question with a macro GET_THREAD_INFO(r3, r1) that does the same thing as the code we have today, but makes it easier to read. Alex