Skip to content

Commit

Permalink
KVM: document locking for kvm_io_device_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mstsirkin authored and avikivity committed Sep 10, 2009
1 parent d3efc8e commit 69fa2d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virt/kvm/iodev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 69fa2d7

Please sign in to comment.