Received: from eggs.gnu.org ([2001:4830:134:3::10]:51465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq1kk-0008C1-DP for qemu-devel@nongnu.org; Wed, 06 May 2015 12:00:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yq1kg-0004c2-9l for qemu-devel@nongnu.org; Wed, 06 May 2015 12:00:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq1kf-0004az-R4 for qemu-devel@nongnu.org; Wed, 06 May 2015 12:00:50 -0400 Date: Wed, 6 May 2015 13:00:32 -0300 From: Eduardo Habkost Message-ID: <20150506160032.GE17796@thinpad.lan.raisama.net> References: <1430146411-34632-1-git-send-email-mimu@linux.vnet.ibm.com> <1430146411-34632-16-git-send-email-mimu@linux.vnet.ibm.com> <20150505184034.GW17796@thinpad.lan.raisama.net> <20150506173106.7bf7262f@bee> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150506173106.7bf7262f@bee> Subject: Re: [Qemu-devel] [PATCH v6 15/17] target-s390x: Extend arch specific QMP command query-cpu-definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Mueller Cc: Cornelia Huck , Gleb Natapov , qemu-devel@nongnu.org, Alexander Graf , Christian Borntraeger , "Jason J. Herne" , Daniel Hansel , Paolo Bonzini , Andreas Faerber , Richard Henderson On Wed, May 06, 2015 at 05:31:06PM +0200, Michael Mueller wrote: > On Tue, 5 May 2015 15:40:34 -0300 > Eduardo Habkost wrote: [...] > > Second, you shouldn't even need to duplicate code in > > get_machine_props_fallback() if you are able to create an accel object > > and do just basic initialization so that cpu_model_get() works. > > Allowing accel objects to be created on the fly was one of the main > > purposes of the accel QOM work. > > > > For example, if we do something like this: > > https://github.com/ehabkost/qemu-hacks/commit/36a250e34c5fd0d43a25271f5bc9b04681fdd56a [1] > > https://github.com/ehabkost/qemu-hacks/commits/work/accel-open-func > > I had a look at your qemu-hacks before writing the _fallback() routine > but did not wanted to base on some not yet published code. Once your part goes > upstream my intend is to provide a cleanup patch... And I was missing the > KVM_CREATE_VM actually. No problem to me if you prefer to keep it this way and change it to use AccelState as a follow-up, after appropriate methods are provided by TYPE_KVM_ACCEL. Your patch was helpful to show that just extracting the open("/dev/kvm") part isn't enough and more work is needed. -- Eduardo