lkml.org 
[lkml]   [2009]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 41/47] KVM: document locking for kvm_io_device_ops
    Date
    From: Michael S. Tsirkin <mst@redhat.com>

    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>
    ---
    virt/kvm/iodev.h | 3 +++
    1 files changed, 3 insertions(+), 0 deletions(-)

    diff --git a/virt/kvm/iodev.h b/virt/kvm/iodev.h
    index 2c67f5a..06e38b2 100644
    --- a/virt/kvm/iodev.h
    +++ b/virt/kvm/iodev.h
    @@ -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,
    --
    1.6.3.3


    \
     
     \ /
      Last update: 2009-08-19 15:27    [W:4.927 / U:0.340 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site