From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35137 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2hF9-0003uG-Qr for qemu-devel@nongnu.org; Thu, 24 Mar 2011 05:54:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2hF8-0004Md-O9 for qemu-devel@nongnu.org; Thu, 24 Mar 2011 05:54:15 -0400 Received: from mtagate4.uk.ibm.com ([194.196.100.164]:59328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2hF8-0004MV-Gz for qemu-devel@nongnu.org; Thu, 24 Mar 2011 05:54:14 -0400 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate4.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p2O9s9DX029097 for ; Thu, 24 Mar 2011 09:54:09 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p2O9sZoH1319042 for ; Thu, 24 Mar 2011 09:54:37 GMT Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p2O9s5BA004998 for ; Thu, 24 Mar 2011 03:54:06 -0600 Message-ID: <4D8B14BD.2060602@de.ibm.com> Date: Thu, 24 Mar 2011 10:54:05 +0100 From: Christian Borntraeger MIME-Version: 1.0 References: <20110315141049.GA30627@lst.de> <20110315141644.GA30803@lst.de> <87y64fhfjw.fsf@rustcorp.com.au> <20110316140958.GB21877@lst.de> <877hbygwu7.fsf@rustcorp.com.au> <4D8AB514.5020306@us.ibm.com> In-Reply-To: <4D8AB514.5020306@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH, RFC] virtio_blk: add cache control support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: kwolf@redhat.com, stefanha@gmail.com, Rusty Russell , linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, prerna@linux.vnet.ibm.com, Christoph Hellwig Am 24.03.2011 04:05, schrieb Anthony Liguori: >> ie. lguest and S/390 don't trap writes to config space. >> >> Or perhaps they should? But we should be explicit about needing it... > I don't think we ever operated on the assumption that config space writes would trap. > > I don't think adding it is the right thing either because you can do byte access to the config space which makes atomicity difficult. There is the additional problem, that s390 has no MMIO and,therefore, there is no real HW support for trapping writes to an area. You can use page faults, or read-only faults on newer systems, but this is expensive. In addition, page faults only deliver the page frame, but not the offset within a page. > > Any reason not to use a control queue to negotiate dynamic features? Sounds reasonable.