From: Scott Wood <scottwood@freescale.com>
To: Liu Yu <yu.liu@freescale.com>
Cc: agraf@suse.de, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org,
linuxppc-dev@ozlabs.org, B07421@freescale.com
Subject: Re: [PATCH v3 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest
Date: Fri, 10 Feb 2012 18:41:46 +0000 [thread overview]
Message-ID: <4F3564EA.9060005@freescale.com> (raw)
In-Reply-To: <1328868141-17364-3-git-send-email-yu.liu@freescale.com>
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
WARNING: multiple messages have this Message-ID (diff)
From: Scott Wood <scottwood@freescale.com>
To: Liu Yu <yu.liu@freescale.com>
Cc: linuxppc-dev@ozlabs.org, B07421@freescale.com, agraf@suse.de,
kvm-ppc@vger.kernel.org, kvm@vger.kernel.org
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 [thread overview]
Message-ID: <4F3564EA.9060005@freescale.com> (raw)
In-Reply-To: <1328868141-17364-3-git-send-email-yu.liu@freescale.com>
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
WARNING: multiple messages have this Message-ID (diff)
From: Scott Wood <scottwood@freescale.com>
To: Liu Yu <yu.liu@freescale.com>
Cc: <agraf@suse.de>, <kvm-ppc@vger.kernel.org>, <kvm@vger.kernel.org>,
<linuxppc-dev@ozlabs.org>, <B07421@freescale.com>
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 [thread overview]
Message-ID: <4F3564EA.9060005@freescale.com> (raw)
In-Reply-To: <1328868141-17364-3-git-send-email-yu.liu@freescale.com>
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
next prev parent reply other threads:[~2012-02-10 18:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 10:02 [PATCH v3 1/3] KVM: PPC: epapr: Factor out the epapr init Liu Yu
2012-02-10 10:02 ` Liu Yu
2012-02-10 10:02 ` Liu Yu
2012-02-10 10:02 ` [PATCH v3 2/3] KVM: PPC: epapr: Add idle hcall support for host Liu Yu
2012-02-10 10:02 ` Liu Yu
2012-02-10 10:02 ` Liu Yu
2012-02-10 10:02 ` [PATCH v3 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest Liu Yu
2012-02-10 10:02 ` Liu Yu
2012-02-10 10:02 ` Liu Yu
2012-02-10 18:41 ` Scott Wood [this message]
2012-02-10 18:41 ` Scott Wood
2012-02-10 18:41 ` Scott Wood
2012-02-10 18:39 ` [PATCH v3 1/3] KVM: PPC: epapr: Factor out the epapr init Scott Wood
2012-02-10 18:39 ` Scott Wood
2012-02-10 18:39 ` Scott Wood
2012-02-13 5:47 ` Liu Yu-B13201
2012-02-13 5:47 ` Liu Yu-B13201
2012-02-13 5:47 ` Liu Yu-B13201
2012-02-13 17:15 ` Scott Wood
2012-02-13 17:15 ` Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F3564EA.9060005@freescale.com \
--to=scottwood@freescale.com \
--cc=B07421@freescale.com \
--cc=agraf@suse.de \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=yu.liu@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.