Received: from eggs.gnu.org ([2001:4830:134:3::10]:57890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2PsS-00046T-Ai for qemu-devel@nongnu.org; Thu, 25 Jul 2013 14:03:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2PsR-0001YF-7o for qemu-devel@nongnu.org; Thu, 25 Jul 2013 14:03:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2PsR-0001Y1-0s for qemu-devel@nongnu.org; Thu, 25 Jul 2013 14:02:59 -0400 Date: Thu, 25 Jul 2013 15:02:54 -0300 From: Eduardo Habkost Message-ID: <20130725180254.GA16773@otherpad.lan.raisama.net> References: <00920fe1cd728db02fa4c81602b359986a3cf2a1.1374595782.git.jdenemar@redhat.com> <20130723163242.GQ2477@redhat.com> <20130723172838.GJ4718@orkuz.home> <20130723173246.GK4718@orkuz.home> <20130724182519.GB3573@otherpad.lan.raisama.net> <51F0EC68.1020808@suse.de> <20130725140044.GA2714@otherpad.lan.raisama.net> <51F1318E.5000801@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <51F1318E.5000801@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [libvirt] [PATCH 4/7] qemu: Add monitor APIs to fetch CPUID data from QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: libvir-list@redhat.com, Paolo Bonzini , qemu-devel@nongnu.org, Anthony Liguori On Thu, Jul 25, 2013 at 04:09:18PM +0200, Andreas F=E4rber wrote: > Am 25.07.2013 16:00, schrieb Eduardo Habkost: > > libvirt > > needs a way to find out how exactly "-machine foo-1.0 -cpu bar" looks > > different from "-machine foo-1.1 -cpu bar", >=20 > Why? (What's the actual use case?) libvirt API allows individual CPU features to be configured, so libvirt needs to know what exactly will be the result of using a machine-type/CPU-model combination to make sure it will be exactly what was requested: http://libvirt.org/formatdomain.html#elementsCPU Also, libvirt needs to be able to check if migration to a host is possible (i.e. if all features enabled by a machine-type/CPU-model combination are supported by the host) before actually starting the migration process. --=20 Eduardo