diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-06-29 15:24:07 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:33:04 -0400 |
commit | 69fa2d78653918d200220ca62d44715827e6d617 (patch) | |
tree | 6712a126c72d3edc09417698779711a84ad080e4 /virt | |
parent | d3efc8efdbaa81e9db3089810fcd526fccba234d (diff) |
KVM: document locking for kvm_io_device_ops
slots_lock is taken everywhere when device ops are called.
Document this as we will use this to rework locking for io.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/iodev.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/virt/kvm/iodev.h b/virt/kvm/iodev.h index 2c67f5acd6db..06e38b23fa61 100644 --- a/virt/kvm/iodev.h +++ b/virt/kvm/iodev.h | |||
@@ -20,6 +20,9 @@ | |||
20 | 20 | ||
21 | struct kvm_io_device; | 21 | struct kvm_io_device; |
22 | 22 | ||
23 | /** | ||
24 | * kvm_io_device_ops are called under kvm slots_lock. | ||
25 | **/ | ||
23 | struct kvm_io_device_ops { | 26 | struct kvm_io_device_ops { |
24 | void (*read)(struct kvm_io_device *this, | 27 | void (*read)(struct kvm_io_device *this, |
25 | gpa_t addr, | 28 | gpa_t addr, |