Avi Kivity wrote:
 
> +static u64 __xchg_spte(u64 *sptep, u64 new_spte)
> +{
> +#ifdef CONFIG_X86_64
> +     return xchg(sptep, new_spte);
> +#else
> +     u64 old_spte;
> +
> +     do {
> +             old_spte = *sptep;
> +     } while (cmpxchg64(sptep, old_spte, new_spte) != old_spte);
> +
> +     return old;

it's a typo: 'old' -> 'old_spte' :-)
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to