Received: from [140.186.70.92] (port=43447 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmYON-0000kJ-97 for qemu-devel@nongnu.org; Mon, 07 Feb 2011 16:13:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmVOd-0005kE-Pk for qemu-devel@nongnu.org; Mon, 07 Feb 2011 13:01:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:16084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmVOd-0005k3-E9 for qemu-devel@nongnu.org; Mon, 07 Feb 2011 13:01:07 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p17I16tP013225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 7 Feb 2011 13:01:06 -0500 Date: Mon, 7 Feb 2011 20:00:57 +0200 From: Alon Levy Subject: Re: [Qemu-devel] [PATCH 00/16] usb-ccid (v18) Message-ID: <20110207180056.GB4454@playa.tlv.redhat.com> References: <1296773152-23279-1-git-send-email-alevy@redhat.com> <20110207110306.GC5754@playa.tlv.redhat.com> <4D4FEFD4.3090109@codemonkey.ws> <20110207154413.GA4454@playa.tlv.redhat.com> <4D50162E.1060104@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D50162E.1060104@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: "libvir-list@redhat.com" , qemu-devel@nongnu.org On Mon, Feb 07, 2011 at 08:56:30AM -0700, Eric Blake wrote: > [adding libvir-list as well] > > On 02/07/2011 08:44 AM, Alon Levy wrote: > >>> I guess I'll wait a little longer for more feedback? Should I split > >>> the enum property separately? it's only used by ccid-card-emualted atm. > >> > >> The only non-cosmetic concern I have about your series is the enum > >> property so I would strongly suggest splitting it. If you did that > >> for v19, it will be pretty close to merge ready. > >> > > > > Eric, > > > > How does this affect libvirt? could you assume a default set of backends > > if "-device ccid-card-emulated,?" returns "backend=string" instead of > > "backend=A/B" ? > > Hmm. At the moment, libvirt only looks for "ccid-card-emulated" in the > -device ? list, and hasn't yet tried inspecting -device > ccid-card-emulated,? output. In short, libvirt assumes that the > presence of ccid-card-emulated implies that both modes are available > (libvirt's => backend=nss-emulated; mode='host-certificates' => backend=certificates). Is it possible for > qemu to have support for one, but not both, of those modes? If that's > the case, then supporting "backend=nss-emulated/certificates" in -device > ccid-card-emulated,? would be handy for libvirt (for example, it would > be just "backend=certificates" if nss-emulated is not available). But > if it's an all-or-none approach (all backends are available if > ccid-card-emulated is present), then libvirt's current code won't be > impacted by changing the string to the simpler "backend=string". > So turns out this was not actually required (except as a measure to spart a discussion on enums). Since right now it is all or nothing as you say, there is no immediate need for this, so I'll just drop it, and when a QMP solution materialized I can use it. > -- > Eric Blake eblake@redhat.com +1-801-349-2682 > Libvirt virtualization library http://libvirt.org >