[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20111125074744.GA5705@Krystal>
Date: Fri, 25 Nov 2011 02:47:44 -0500
From: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
To: Stephen Hemminger <shemminger@...tta.com>
Cc: Rusty Russell <rusty@...tcorp.com.au>,
"Michael S. Tsirkin" <mst@...hat.com>,
Pekka Enberg <penberg@...nel.org>,
Asias He <asias.hejun@...il.com>,
Sasha Levin <levinsasha928@...il.com>, kvm@...r.kernel.org,
mingo@...e.hu, gorcunov@...il.com,
Krishna Kumar <krkumar2@...ibm.com>,
virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org,
Benjamin Poirier <benjamin.poirier@...il.com>,
Lai Jiangshan <laijs@...fujitsu.com>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Subject: Re: Fwd: Re: [RFC] kvm tools: Implement multiple VQ for virtio-net
Hi Stephen,
Benjamin forwarded me your email stating:
> I have been playing with userspace-rcu which has a number of neat
> lockless routines for queuing and hashing. But there aren't kernel versions
> and several of them may require cmpxchg to work.
Just FYI, I made sure a few years ago that cmpxchg is implemented on all
architectures within the Linux kernel (using a interrupt disable
fallback on the cases where it is not supported architecturally, on
UP-only architectures), so we should be good to use the lock-free
structures as-is in the kernel on this front. As for the RCU use by
these structures, userspace RCU has very much the same semantic as in
the kernel, so we can implement and test these structures in userspace
and eventually port them to the kernel as needed.
Lai Jiangshan is actively working at making sure the user-level
implementation of the RCU lock-free hash table (currently in a
development branch of the userspace RCU git tree : urcu/ht-shrink, not
yet in master) is suitable for use in the Linux kernel too.
Best regards,
Mathieu
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists