Received: from eggs.gnu.org ([2001:4830:134:3::10]:55658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwqa8-0001n3-Fw for qemu-devel@nongnu.org; Tue, 17 Jun 2014 06:25:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wwqa0-0003cJ-E0 for qemu-devel@nongnu.org; Tue, 17 Jun 2014 06:25:36 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:59850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwqa0-0003c9-2J for qemu-devel@nongnu.org; Tue, 17 Jun 2014 06:25:28 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Jun 2014 11:25:26 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id B65291B08080 for ; Tue, 17 Jun 2014 11:25:52 +0100 (BST) Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s5HAPNVa29032552 for ; Tue, 17 Jun 2014 10:25:23 GMT Received: from d06av10.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s5HAPNBP017184 for ; Tue, 17 Jun 2014 04:25:23 -0600 Date: Tue, 17 Jun 2014 12:25:21 +0200 From: Cornelia Huck Message-ID: <20140617122521.13c6342b.cornelia.huck@de.ibm.com> In-Reply-To: References: <1402933252-1079-1-git-send-email-ming.lei@canonical.com> <1402933252-1079-3-git-send-email-ming.lei@canonical.com> <20140616180447.3346dbb2.cornelia.huck@de.ibm.com> <20140617090741.0c5a4b4b.cornelia.huck@de.ibm.com> <20140617104615.10fc3946.cornelia.huck@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/4] s390-virtio-bus: move common virtio properties to virtio s390 device class List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ming Lei Cc: Peter Maydell , qemu-devel@nongnu.org, Paolo Bonzini On Tue, 17 Jun 2014 18:15:39 +0800 Ming Lei wrote: > On Tue, Jun 17, 2014 at 4:46 PM, Cornelia Huck wrote: > >> > >> Looks like s390 virtio-blk never enables the two common features, is > >> there any reason the two features can't be supported by s390? > > > > Indirect descriptors are fine. event_idx will not work IIUC because we > > always need to do a sync before we see changes, and this needs an > > interrupt to trigger. > > Sounds like the old s390 isn't cache coherent? Because you mean > write in one side can only be observed from another side with an > explicit notification or interrupt. > > On arm/arm64, we didn't see any problem with event_idx. But you probably have the queues in guest memory, as on other transports (including virtio-ccw)? The old s390-virtio transport keeps the devices and their virtqueues in a memory area behind the guest memory - the guest does not see that memory directly, but a sync has to be performed to see virtqueue movement (see s390_virtio_device_sync()). > > > > > The correct way, of course, is to unset VIRTIO_RING_F_EVENT_IDX in the > > guest driver, and I verified that this works - this does not help with > > old guests, however. > > Both sides should be ok since it is decided by negotiation. Yes, but the guest driver currently does not drop the feature bit, as it only asks about the features that the common code supports - and that does include VIRTIO_RING_F_EVENT_IDX. > > > > > Note that this applies only to the old s390-virtio transport - > > virtio-ccw is fine. > > Could you share me how s390 virtio is supported in kernel since > I only see virtio-mmio and virtio-pci support under drivers/virtio/ of > linux kernel? They're hiding under drivers/s390/kvm/. The old s390-virtio transport is supported by kvm_virtio.c, the virtio-ccw transport by virtio_ccw.c.