Skip to content

Commit 69fa2d7

Browse files
mstsirkinavikivity
authored andcommitted
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 <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
1 parent d3efc8e commit 69fa2d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

virt/kvm/iodev.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
struct kvm_io_device;
2222

23+
/**
24+
* kvm_io_device_ops are called under kvm slots_lock.
25+
**/
2326
struct kvm_io_device_ops {
2427
void (*read)(struct kvm_io_device *this,
2528
gpa_t addr,

0 commit comments

Comments
 (0)