From: Michael S. Tsirkin Date: Mon, 29 Jun 2009 19:24:07 +0000 (+0300) Subject: KVM: document locking for kvm_io_device_ops X-Git-Tag: v2.6.32-rc1~693^2~113 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=69fa2d78653918d200220ca62d44715827e6d617;p=linux.git 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 Signed-off-by: Avi Kivity --- 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 @@ 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,