Explorar o código

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 %!s(int64=16) %!d(string=hai) anos
pai
achega
69fa2d7865
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      virt/kvm/iodev.h

+ 3 - 0
virt/kvm/iodev.h

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