From 69fa2d78653918d200220ca62d44715827e6d617 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Mon, 29 Jun 2009 22:24:07 +0300 Subject: [PATCH] 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 --- virt/kvm/iodev.h | 3 +++ 1 file changed, 3 insertions(+) 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, -- GitLab