mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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 <mst@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
d3efc8efdb
commit
69fa2d7865
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@
|
||||||
|
|
||||||
struct kvm_io_device;
|
struct kvm_io_device;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* kvm_io_device_ops are called under kvm slots_lock.
|
||||||
|
**/
|
||||||
struct kvm_io_device_ops {
|
struct kvm_io_device_ops {
|
||||||
void (*read)(struct kvm_io_device *this,
|
void (*read)(struct kvm_io_device *this,
|
||||||
gpa_t addr,
|
gpa_t addr,
|
||||||
|
|
Loading…
Reference in a new issue