From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: ia64: why is mmio bus access lockless? Date: Wed, 24 Jun 2009 18:00:43 +0300 Message-ID: <20090624150041.GA28496@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com To: kvm@vger.kernel.org, kvm-ia64@vger.kernel.org, xiantao.zhang@intel.com Return-path: Received: from mx2.redhat.com ([66.187.237.31]:44307 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbZFXPBK (ORCPT ); Wed, 24 Jun 2009 11:01:10 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Hi, arch/ia64/kvm/kvm-ia64.c does this: mmio_dev = vcpu_find_mmio_dev(vcpu, p->addr, p->size, !p->dir); if (mmio_dev) { if (!p->dir) kvm_iodevice_write(mmio_dev, p->addr, p->size, &p->data); else kvm_iodevice_read(mmio_dev, p->addr, p->size, &p->data); without holding kvm lock. I know that find/read/write on the bus require locking on x86 - are they safe to do without locking on ia64? -- MST