Received: from eggs.gnu.org ([208.118.235.92]:38955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBQ0v-0000Jb-C5 for qemu-devel@nongnu.org; Fri, 01 Mar 2013 08:28:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBQ0t-0004vU-G3 for qemu-devel@nongnu.org; Fri, 01 Mar 2013 08:28:41 -0500 Received: from smtp.vivo.cz ([85.132.139.19]:59042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBQ0t-0004v6-7K for qemu-devel@nongnu.org; Fri, 01 Mar 2013 08:28:39 -0500 Date: Fri, 1 Mar 2013 14:28:37 +0100 From: Jiri Denemark Message-ID: <20130301132837.GF3375700@orkuz.home> References: <20130221145818.GK16618@otherpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20130221145818.GK16618@otherpad.lan.raisama.net> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] libvirt<->QEMU interfaces for CPU models List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: libvir-list@redhat.com, Igor Mammedov , qemu-devel@nongnu.org, Andreas =?iso-8859-1?Q?F=E4rber?= On Thu, Feb 21, 2013 at 11:58:18 -0300, Eduardo Habkost wrote: > =3D Querying host capabilities =3D >=20 > Requirement: libvirt needs to know which feature can really be enabled,= before > it tries to start a VM, and before it tries to start a live-migration p= rocess. >=20 > The set of available capabilities depend on: >=20 > =E2=80=A2 Host CPU (hardware) capabilities; > =E2=80=A2 Kernel capabilities (reported by GET_SUPPORTED_CPUID); > =E2=80=A2 QEMU capabilities; > =E2=80=A2 Specific configuration options (e.g. in-kernel IRQ chip is = required for > some features). Actually, one more thing. Can any of these requirements change while a host is up and QEMU is not upgraded? I believe, host CPU capabilities can only change when the host starts. Kernel capabilities are a bit less clear since I guess they could possibly change when kvm module is unloaded and loaded back with a different options. QEMU capabilities should only change when different version is installed. And the specific configuration options are the most unclear to me. The reason I'm asking is whether libvirt could run-time cache CPU definitions (including all model details) in the same way we currently cache QEMU capabilities, such as availability of specific QMP commands. Jirka