Received: from eggs.gnu.org ([2001:4830:134:3::10]:39412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0oSZ-0007WW-Mo for qemu-devel@nongnu.org; Thu, 12 May 2016 07:07:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0oSU-0004bi-Kq for qemu-devel@nongnu.org; Thu, 12 May 2016 07:07:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0oSU-0004bc-Eu for qemu-devel@nongnu.org; Thu, 12 May 2016 07:07:10 -0400 Date: Thu, 12 May 2016 08:07:08 -0300 From: Eduardo Habkost Message-ID: <20160512110708.GL4457@thinpad.lan.raisama.net> References: <1462558292-2126-1-git-send-email-ehabkost@redhat.com> <1462558292-2126-8-git-send-email-ehabkost@redhat.com> <5730AAAF.7040205@redhat.com> <20160509192515.GU4457@thinpad.lan.raisama.net> <877ff2fhjf.fsf@dusky.pond.sub.org> <20160510115705.GX4457@thinpad.lan.raisama.net> <87bn4djcgq.fsf@dusky.pond.sub.org> <20160511193550.GD24153@thinpad.lan.raisama.net> <20160512071948.GC3675719@orkuz.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160512071948.GC3675719@orkuz.home> Subject: Re: [Qemu-devel] [libvirt] [PATCH 7/9] qmp: Add runnability information to query-cpu-definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , Christian Borntraeger , libvir-list@redhat.com, qemu-devel@nongnu.org, David Hildenbrand , Cornelia Huck , Igor Mammedov , Andreas =?iso-8859-1?Q?F=E4rber?= On Thu, May 12, 2016 at 09:19:48AM +0200, Jiri Denemark wrote: > On Wed, May 11, 2016 at 16:35:50 -0300, Eduardo Habkost wrote: > > # @CpuDefinitionInfo: > > # > > # Virtual CPU definition. > > # > > # @name: the name of the CPU definition > > # @runnable: #optional. whether the CPU model us usable with the > > s/ us / is / Thanks! > > > # current machine and accelerator. Omitted if we don't > > # know the answer. (since 2.7) > > # @unavailable-features: List of attributes that prevent the CPU > > # model from running in the current host. > > # (since 2.7) > > # > > # @unavailable-features is a list of QOM property names that > > # represent CPU model attributes that prevent the CPU from running. > > # If the QOM property is read-only, that means the CPU model can > > # never run in the current host. If the property is read-write, it > > # means that it MAY be possible to run the CPU model in the current > > # host if that property is changed. Management software can use it > > # as hints to suggest or choose an alternative for the user, or > > # just to generate meaningful error messages explaining why the CPU > > # model can't be used. > > Any chance this could be extended to provide data about every single > machine type rather than just the current one? I want to do that, but it would require reorganizing CPU/machine/accelerator code to allow probing to happen without depending on global data (including: machine state, accelerator state, global properties). This will probably take a while to be implemented. But: at least for x86, we now guarantee that runnability shouldn't change depending on the machine-type. If a CPU model is runnable with a machine version, it should be runnable with other versions of the same family. That guarantee is not documented above because I still don't know if we can enforce it on all other architectures. -- Eduardo