From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVejb-0008Q8-Kd for qemu-devel@nongnu.org; Tue, 16 Feb 2016 07:28:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVejY-00008L-Dc for qemu-devel@nongnu.org; Tue, 16 Feb 2016 07:28:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVejY-00008B-7F for qemu-devel@nongnu.org; Tue, 16 Feb 2016 07:28:00 -0500 Message-ID: <1455625675.4617.90.camel@redhat.com> From: Andrea Bolognani Date: Tue, 16 Feb 2016 13:27:55 +0100 In-Reply-To: <20160216121532.GC11370@redhat.com> References: <87povy5mim.fsf@blackfin.pond.sub.org> <20160215103440.GC7978@pxdev.xzpeter.org> <87y4amhuz2.fsf@blackfin.pond.sub.org> <87d1rxhid5.fsf@blackfin.pond.sub.org> <20160215201815.yheakyujt4axevse@hawk.localdomain> <87bn7hufrk.fsf@blackfin.pond.sub.org> <20160216101510.GB11370@redhat.com> <1455624345.4617.86.camel@redhat.com> <20160216121532.GC11370@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [libvirt] [RFC PATCH 0/2] ARM: add QMP command to query GIC version List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Wei Huang , Peter Maydell , Andrew Jones , Libvirt , QEMU Developers , Peter Xu , Paolo Bonzini On Tue, 2016-02-16 at 12:15 +0000, Daniel P. Berrange wrote: > On Tue, Feb 16, 2016 at 01:05:45PM +0100, Andrea Bolognani wrote: > > On Tue, 2016-02-16 at 10:15 +0000, Daniel P. Berrange wrote: > > > > Back to GIV.=C2=A0=C2=A0Recognized values of gic-version are fixe= d at compile > > > > time: 2, 3, host.=C2=A0=C2=A0Once again, QOM does things in code = rather than data: > > > > the set of values is defined in the setter function > > > > virt_set_gic_version(). > > > >=C2=A0=C2=A0 > > > > Some values are accepted only together with other configuration: = 3 > > > > requires accel=3Dkvm (for now), host requires -cpu host.=C2=A0=C2= =A0Static > > > > introspection can't show such constraints. > > > >=C2=A0=C2=A0 > > > > Would the proposed query-gic-capability show them?=C2=A0=C2=A0How= ? > > >=C2=A0=C2=A0 > > > Also bear in mind that libvirt probes capabilities using '-m none' = so > > > you're not going to have any 'virt' machine type instantiated when > > > probing is done. > >=C2=A0 > > The idea is to add this information to domain capabilities, which > > already have virtualization type, architecture and machine type as > > inputs. >=C2=A0 > Regardless of the way it is exposed in libvirt API, when libvirt probes > for capabilities it will *always* use '-m none'. Domain capabilities are currently derived almost entirely from data taken from virQEMUCaps, but is there anything stopping us from calling QEMU with the appropriate machine type from qemuConnectGetDomainCapabilities() to query for machine type dependent domain capabilities such as supported values for the gic-version property? Cheers. --=C2=A0 Andrea Bolognani Software Engineer - Virtualization Team