From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Subject: Re: [PATCH v3 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest Date: Fri, 10 Feb 2012 12:41:46 -0600 Message-ID: <4F3564EA.9060005@freescale.com> References: <1328868141-17364-1-git-send-email-yu.liu@freescale.com> <1328868141-17364-2-git-send-email-yu.liu@freescale.com> <1328868141-17364-3-git-send-email-yu.liu@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: , , , , To: Liu Yu Return-path: In-Reply-To: <1328868141-17364-3-git-send-email-yu.liu@freescale.com> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 02/10/2012 04:02 AM, Liu Yu wrote: > +_GLOBAL(epapr_ev_idle) > +epapr_ev_idle: > +#ifdef CONFIG_E500 > + rlwinm r3,r1,0,0,31-THREAD_SHIFT /* current thread_info */ > + lwz r4,TI_LOCAL_FLAGS(r3) /* set napping bit */ > + ori r4,r4,_TLF_NAPPING /* so when we take an exception */ > + stw r4,TI_LOCAL_FLAGS(r3) /* it will return to our caller */ > +#endif > + wrteei 1 On what hardware would you not need to use _TLF_NAPPING? -Scott