From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8lYE-0000nY-WB for qemu-devel@nongnu.org; Fri, 03 Jun 2016 05:37:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8lYD-0004rh-UO for qemu-devel@nongnu.org; Fri, 03 Jun 2016 05:37:58 -0400 Date: Fri, 3 Jun 2016 11:37:49 +0200 From: Igor Mammedov Message-ID: <20160603113749.752bce47@nial.brq.redhat.com> In-Reply-To: <20160603073009.GG5194@andariel.pipo.sk> References: <1464799050-11002-1-git-send-email-imammedo@redhat.com> <1464799050-11002-5-git-send-email-imammedo@redhat.com> <20160601184620.GE13503@thinpad.lan.raisama.net> <20160602142222.307ec4ee@nial.brq.redhat.com> <20160602145322.GG19055@thinpad.lan.raisama.net> <20160602150506.GF5194@andariel.pipo.sk> <20160602183104.3720c55d@nial.brq.redhat.com> <20160603073009.GG5194@andariel.pipo.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC 4/8] target-i386: cpu: consolidate calls of object_property_parse() in x86_cpu_parse_featurestr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Krempa Cc: peter.maydell@linaro.org, Eduardo Habkost , libvir-list@redhat.com, mark.cave-ayland@ilande.co.uk, qemu-devel@nongnu.org, blauwirbel@gmail.com, qemu-arm@nongnu.org, pbonzini@redhat.com, Jiri Denemark , rth@twiddle.net On Fri, 3 Jun 2016 09:30:09 +0200 Peter Krempa wrote: > On Thu, Jun 02, 2016 at 18:31:04 +0200, Igor Mammedov wrote: > > On Thu, 2 Jun 2016 17:05:06 +0200 > > Peter Krempa wrote: > > > On Thu, Jun 02, 2016 at 11:53:22 -0300, Eduardo Habkost wrote: > > > > On Thu, Jun 02, 2016 at 02:22:22PM +0200, Igor Mammedov wrote: > > [...] > > > > I couldn't find anything regarding xlevel (so we might actually not > > > support it at all), but we indeed do limit the hv_spinlock count: > > > > > > > > > if (def->hyperv_spinlocks < 0xFFF) { > > > virReportError(VIR_ERR_XML_ERROR, "%s", > > > _("HyperV spinlock retry count must be " > > > "at least 4095")); > > > goto error; > > > } > > > > > > Peter > > Peter, > > Does libvirt still uses -cpu xxx,+feat1,-feat2 syntax > > or canonical property syntax there feat1=on,feat2=off > > We use the legacy one: > > -cpu core2duo,+ds,+acpi,+ht,+tm,+ds_cpl, ... > > and > > -cpu 'qemu32,hv_relaxed,hv_vapic, ... > > for the hyperv features. > > We probably can switch to the new one if there's a reasonable way how to > detect that qemu is supporting the new one. for x86 features became properties since 2.4 release (commit 38e5c119), that's the one way to know it. But it's still only +-features for sparc (that's the last remaining target that has legacy parsing). Another way to detect it is to probe via QOM if CPU has a property corresponding to a feature. Maybe Eduardo knows about other ways to do it. > > Peter >