From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: [PATCHv3 1/4] kvm: document locking for kvm_io_device_ops Date: Mon, 29 Jun 2009 15:08:56 +0300 Message-ID: <20090629120856.GB21273@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, avi@redhat.com, mtosatti@redhat.com, paulmck@linux.vnet.ibm.com, markmc@redhat.com To: Gregory Haskins , avi@redhat.com Return-path: Received: from mx2.redhat.com ([66.187.237.31]:58024 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753170AbZF2MJ1 (ORCPT ); Mon, 29 Jun 2009 08:09:27 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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 --- 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.2.2