Received: from eggs.gnu.org ([2001:4830:134:3::10]:60077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFmmD-000758-7F for qemu-devel@nongnu.org; Wed, 22 Jun 2016 14:21:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFmmA-0006nl-11 for qemu-devel@nongnu.org; Wed, 22 Jun 2016 14:21:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFmm9-0006nP-RX for qemu-devel@nongnu.org; Wed, 22 Jun 2016 14:21:21 -0400 Date: Wed, 22 Jun 2016 15:21:19 -0300 From: Eduardo Habkost Message-ID: <20160622182119.GO2048@thinpad.lan.raisama.net> References: <1466514153-85777-1-git-send-email-dahi@linux.vnet.ibm.com> <20160621164431.GI2048@thinpad.lan.raisama.net> <20160621205628.GA571189@orkuz.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160621205628.GA571189@orkuz.home> Subject: Re: [Qemu-devel] [RFC 00/28] s390x CPU models: exposing features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Hildenbrand , qemu-devel@nongnu.org, imammedo@redhat.com, cornelia.huck@de.ibm.com, borntraeger@de.ibm.com, fiuczy@linux.vnet.ibm.com, mimu@linux.vnet.ibm.com, libvir-list@redhat.com On Tue, Jun 21, 2016 at 10:56:28PM +0200, Jiri Denemark wrote: [...] > Let me sum up what libvirt is doing (or will be doing) with guest > CPUs... Libvirt supports three guest CPU configuration modes: > > - host-passthrough -- this is easy, it's just asking for "-cpu host" and > no fancy commands are required. > > - host-model -- for this we need to know what CPU configuration we need > to ask for to get as close to the host CPU as possible while being > able to ask for the exact same CPU on a different host (after > migration). And we need to be able to ask for this at probing time > (when libvirtd starts rather than when starting a new domain) using > "-machine none,accel=kvm:tcg", that is without actually creating any > guest CPU. This is what Eduardo's query-host-cpu QMP command is useful > for. In x86 world we could just query the guest CPU after running QEMU > with "-cpu host", but that's unusable with "-machine none", which is > why another way of getting this info is needed. Question: KVM supports x2apic (and enables it by default) on any host CPU, because it is all emulated by KVM. Should "host-model" include x2apic on all hosts, or only when the host CPU has it? ("-cpu host" does include it). Including x2apic sounds more useful, but it doesn't match the "get as close to the host CPU as possible" part of your description. -- Eduardo