From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVeOG-0005rG-GB for qemu-devel@nongnu.org; Tue, 16 Feb 2016 07:06:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVeOC-0003dw-Ei for qemu-devel@nongnu.org; Tue, 16 Feb 2016 07:06:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVeOC-0003c7-8r for qemu-devel@nongnu.org; Tue, 16 Feb 2016 07:05:56 -0500 Message-ID: <1455624345.4617.86.camel@redhat.com> From: Andrea Bolognani Date: Tue, 16 Feb 2016 13:05:45 +0100 In-Reply-To: <20160216101510.GB11370@redhat.com> References: <1455428503-2113-1-git-send-email-peterx@redhat.com> <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> 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" , Markus Armbruster Cc: Wei Huang , Peter Maydell , Andrew Jones , Libvirt , QEMU Developers , Peter Xu , Paolo Bonzini 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 fixed at= compile > > time: 2, 3, host.=C2=A0=C2=A0Once again, QOM does things in code rath= er than data: > > the set of values is defined in the setter function > > virt_set_gic_version(). > >=C2=A0 > > Some values are accepted only together with other configuration: 3 > > requires accel=3Dkvm (for now), host requires -cpu host.=C2=A0=C2=A0S= tatic > > introspection can't show such constraints. > >=C2=A0 > > Would the proposed query-gic-capability show them?=C2=A0=C2=A0How? >=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. The idea is to add this information to domain capabilities, which already have virtualization type, architecture and machine type as inputs. Since GIC is only available for the virt machine type on ARM hosts, and the GIC versions might be limited by using TCG instead of KVM, it seems like it would fit nicely... Cheers. --=C2=A0 Andrea Bolognani Software Engineer - Virtualization Team