commit | 87e7bf1450c9f6bd0927f63ebc0fe2d12e8bc83d | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Thu Mar 12 12:56:43 2015 +1030 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Fri Mar 13 15:55:43 2015 +1030 |
tree | a4292d97cd9671365d410c6c840d162c5a0da99b | |
parent | 71e4b8bf0482fc7d70e9d4c10b13c207a285d58a [diff] |
virtio_mmio: generation support 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 <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>