From patchwork Mon Jun 29 19:24:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 33017 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5TJPLRU029951 for ; Mon, 29 Jun 2009 19:25:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758754AbZF2TYl (ORCPT ); Mon, 29 Jun 2009 15:24:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758764AbZF2TYl (ORCPT ); Mon, 29 Jun 2009 15:24:41 -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 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5TJOd9h018521; Mon, 29 Jun 2009 15:24:39 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5TJOceu024958; Mon, 29 Jun 2009 15:24:39 -0400 Received: from redhat.com (vpn-10-178.str.redhat.com [10.32.10.178]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5TJOZun004887; Mon, 29 Jun 2009 15:24:36 -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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@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,