Commit 69fa2d78 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Avi Kivity

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: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent d3efc8ef
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment