Browse Source

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>
Michael S. Tsirkin 16 years ago
parent
commit
69fa2d7865
1 changed files with 3 additions and 0 deletions
  1. 3 0
      virt/kvm/iodev.h

+ 3 - 0
virt/kvm/iodev.h

@@ -20,6 +20,9 @@
 
 
 struct kvm_io_device;
 struct kvm_io_device;
 
 
+/**
+ * kvm_io_device_ops are called under kvm slots_lock.
+ **/
 struct kvm_io_device_ops {
 struct kvm_io_device_ops {
 	void (*read)(struct kvm_io_device *this,
 	void (*read)(struct kvm_io_device *this,
 		     gpa_t addr,
 		     gpa_t addr,