On Sun, Feb 07, 2010 at 11:42:29AM +0200, Avi Kivity wrote:
On 02/01/2010 07:21 PM, Michael S. Tsirkin wrote:Correct. And since vhost net is running host-side, smp_XX
vhost-net only uses memory barriers to control SMP effectsA UP guest running on an SMP host still needs those barriers.
(communication with userspace potentially running on a different CPU),
so it should use SMP barriers and not mandatory barriers for memory
access ordering, as suggested by Documentation/memory-barriers.txt
barriers will do exactly the right thing, right?