Thread (2 messages) 2 messages, 2 authors, 2013-06-20

Re: [PATCH -V2] powerpc/kvm: Handle transparent hugepage in KVM

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2013-06-20 04:57:07

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help