diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-06-29 21:24:07 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 07:33:04 +0200 |
commit | 69fa2d78653918d200220ca62d44715827e6d617 (patch) | |
tree | 6712a126c72d3edc09417698779711a84ad080e4 | |
parent | KVM: use vcpu_id instead of bsp_vcpu pointer in kvm_vcpu_is_bsp (diff) | |
download | linux-69fa2d78653918d200220ca62d44715827e6d617.tar.xz linux-69fa2d78653918d200220ca62d44715827e6d617.zip |
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>
-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 @@ 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, |