Re: [PATCH v2 3/4] KVM: MMU: Atomically check for accessed bit when dropping an spte

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux