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

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Jun 20 14:56:56 EST 2013


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.




More information about the Linuxppc-dev mailing list