Received: from eggs.gnu.org ([2001:4830:134:3::10]:50243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8BEd-0004Xc-Qg for qemu-devel@nongnu.org; Wed, 01 Jun 2016 14:51:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8BEc-0001w9-Oq for qemu-devel@nongnu.org; Wed, 01 Jun 2016 14:51:19 -0400 Date: Wed, 1 Jun 2016 15:51:10 -0300 From: Eduardo Habkost Message-ID: <20160601185110.GF13503@thinpad.lan.raisama.net> References: <1464799050-11002-1-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH RFC 0/8] cpus: make "-cpu cpux, features" global properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Igor Mammedov , QEMU Developers , Paolo Bonzini , Richard Henderson , Blue Swirl , Mark Cave-Ayland , qemu-arm On Wed, Jun 01, 2016 at 07:21:00PM +0100, Peter Maydell wrote: > On 1 June 2016 at 17:37, Igor Mammedov wrote: > > Current CLI option -cpu cpux,features serves as template > > for all created cpus of type: cpux. However QEMU parses > > "features" every time it creates a cpu instance and applies > > them to it while doing parsing. > > > > That doesn't work well with -device/device_add infrastructure > > as it has no idea about cpu specific hooks that's used for > > parsing "features". > > In order to make -device/device_add utilize "-cpu features" > > template convert it into a set of global properties, so that > > every new CPU created will have them applied automatically. > > Is there a plan for supporting heterogenous CPU setups? > (We don't really do those very well at the moment, but > we might in future. The closest we come today is the > zynqmp SoC which has Cortex-R5s and A53s in it.) I am not aware of any specific plan, but this series gets us closer to eventually replacing -cpu (which doesn't allow heterogenous CPU setups) with simple -device/-global combinations (which would be more flexible). -- Eduardo