From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org, paulus@samba.org
Subject: Re: [PATCH -V2] powerpc/kvm: Handle transparent hugepage in KVM
Date: Thu, 20 Jun 2013 14:56:56 +1000 [thread overview]
Message-ID: <1371704216.3944.4.camel@pasglop> (raw)
In-Reply-To: <1371703304-31687-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
On Thu, 2013-06-20 at 10:11 +0530, Aneesh Kumar K.V wrote:
> + while (1) {
> + old_pte = pte_val(*ptep);
> + /*
> + * wait until _PAGE_BUSY is clear then set it
> atomically
> + */
> + if (unlikely(old_pte & _PAGE_BUSY))
> + continue;
> +
Add a cpu_relax...
Cheers,
Ben.
prev parent reply other threads:[~2013-06-20 4:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-20 4:41 [PATCH -V2] powerpc/kvm: Handle transparent hugepage in KVM Aneesh Kumar K.V
2013-06-20 4:56 ` Benjamin Herrenschmidt [this message]
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=1371704216.3944.4.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).