Re: [PATCH] virtio_mmio: generation support

2015-03-23 Thread Pawel Moll
On Thu, 2015-03-12 at 02:07 +, Rusty Russell wrote: > "Michael S. Tsirkin" writes: > > virtio_mmio currently lacks generation support which > > makes multi-byte field access racy. > > Fix by getting the value at offset 0xfc for version 2 > > devices. Nothing we can do for version 1, so return

Re: [PATCH] virtio_mmio: generation support

2015-03-11 Thread Rusty Russell
"Michael S. Tsirkin" writes: > virtio_mmio currently lacks generation support which > makes multi-byte field access racy. > Fix by getting the value at offset 0xfc for version 2 > devices. Nothing we can do for version 1, so return > generation id 0. > > Signed-off-by: Michael S. Tsirkin > --- >

Re: [PATCH] virtio_mmio: generation support

2015-03-09 Thread Michael S. Tsirkin
On Thu, Mar 05, 2015 at 11:09:42PM +0100, Michael S. Tsirkin wrote: > virtio_mmio currently lacks generation support which > makes multi-byte field access racy. > Fix by getting the value at offset 0xfc for version 2 > devices. Nothing we can do for version 1, so return > generation id 0. > > Sign

[PATCH] virtio_mmio: generation support

2015-03-05 Thread Michael S. Tsirkin
virtio_mmio currently lacks generation support which makes multi-byte field access racy. Fix by getting the value at offset 0xfc for version 2 devices. Nothing we can do for version 1, so return generation id 0. Signed-off-by: Michael S. Tsirkin --- Pawel, you mentioned you have a working virtio