From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757364AbZF2TY7 (ORCPT ); Mon, 29 Jun 2009 15:24:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758760AbZF2TYk (ORCPT ); Mon, 29 Jun 2009 15:24:40 -0400 Received: from mx2.redhat.com ([66.187.237.31]:57899 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757563AbZF2TYj (ORCPT ); Mon, 29 Jun 2009 15:24:39 -0400 Date: Mon, 29 Jun 2009 22:24:07 +0300 From: "Michael S. Tsirkin" To: Gregory Haskins , avi@redhat.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, avi@redhat.com, mtosatti@redhat.com, paulmck@linux.vnet.ibm.com, markmc@redhat.com Subject: [PATCHv5 1/6] kvm: document locking for kvm_io_device_ops Message-ID: <20090629192407.GB27464@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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