Re: [PATCH RFC] vhost: fix barrier pairing

2010-05-12 Thread Juan Quintela
Michael S. Tsirkin m...@redhat.com wrote: According to memory-barriers.txt, an smp memory barrier should always be paired with another smp memory barrier, and I quote a lack of appropriate pairing is almost certainly an error. In case of vhost, failure to flush out used index update before

[PATCH RFC] vhost: fix barrier pairing

2010-05-11 Thread Michael S. Tsirkin
According to memory-barriers.txt, an smp memory barrier should always be paired with another smp memory barrier, and I quote a lack of appropriate pairing is almost certainly an error. In case of vhost, failure to flush out used index update before looking at the interrupt disable flag could