From: Cornelia Huck Subject: Re: [PATCH RFC v4 00/16] qemu: towards virtio-1 host support Date: Thu, 27 Nov 2014 17:28:42 +0100 Message-ID: <20141127172842.42782626.cornelia.huck@de.ibm.com> References: <1417101409-29482-1-git-send-email-cornelia.huck@de.ibm.com> <20141127152422.GA26747@redhat.com> <20141127163139.7db48144.cornelia.huck@de.ibm.com> <20141127154211.GC26747@redhat.com> <20141127170651.67f918e2.cornelia.huck@de.ibm.com> <20141127161825.GA27124@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: virtualization@lists.linux-foundation.org, qemu-devel@nongnu.org, kvm@vger.kernel.org, rusty@rustcorp.com.au, thuth@linux.vnet.ibm.com To: "Michael S. Tsirkin" Return-path: Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:36076 "EHLO e06smtp17.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750852AbaK0Q2t (ORCPT ); Thu, 27 Nov 2014 11:28:49 -0500 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Nov 2014 16:28:48 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id D07521B08051 for ; Thu, 27 Nov 2014 16:29:01 +0000 (GMT) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sARGSkUa17039370 for ; Thu, 27 Nov 2014 16:28:46 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sARGSiCI018214 for ; Thu, 27 Nov 2014 09:28:45 -0700 In-Reply-To: <20141127161825.GA27124@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 27 Nov 2014 18:18:25 +0200 "Michael S. Tsirkin" wrote: > On Thu, Nov 27, 2014 at 05:06:51PM +0100, Cornelia Huck wrote: > > So we should have a per-device callback into the transport layer, say > > check_legacy()? > > I would just have 2 masks: legacy_features and features. But these belong to the device type and the transport just needs to trigger usage of the right one, right? > > > For ccw, this would check for the negotiated revision; for mmio, it > > could check a device property configured with the device; and for pci, > > whatever the mechanism is there :) > > > > A transport not implementing this callback is simply considered > > legacy-only. > > I dislike callbacks. Let's just give all info to core, > and have it DTRT. > Have a is_legacy flag in the vdev that is initialized to 1, and transports can unset it when the revision is negotiated or during init?