Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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,