提交 69fa2d78 编写于 作者: M Michael S. Tsirkin 提交者: 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: NMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册