Received: from eggs.gnu.org ([2001:4830:134:3::10]:48073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiT4Y-0002q7-AR for qemu-devel@nongnu.org; Thu, 08 May 2014 14:29:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiT4S-0008AH-5D for qemu-devel@nongnu.org; Thu, 08 May 2014 14:29:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiT4R-0008AB-U8 for qemu-devel@nongnu.org; Thu, 08 May 2014 14:29:28 -0400 Date: Thu, 8 May 2014 15:29:24 -0300 From: Eduardo Habkost Message-ID: <20140508182924.GD3363@otherpad.lan.raisama.net> References: <1398889773-14652-1-git-send-email-ehabkost@redhat.com> <20140502154503.72465f99@nial.usersys.redhat.com> <20140502144305.GJ3363@otherpad.lan.raisama.net> <20140506092238.570534a8@nial.usersys.redhat.com> <20140506144256.GU3363@otherpad.lan.raisama.net> <20140506220111.45aa0692@thinkpad> <20140506201957.GW3363@otherpad.lan.raisama.net> <53694624.7050603@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <53694624.7050603@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC 0/5] Allow object-add on X86CPU subclasses, for CPU model probing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Peter Krempa , libvir-list@redhat.com, qemu-devel@nongnu.org, Paolo Bonzini , Igor Mammedov , Jiri Denemark On Tue, May 06, 2014 at 10:29:24PM +0200, Andreas F=E4rber wrote: > Am 06.05.2014 22:19, schrieb Eduardo Habkost: > > On Tue, May 06, 2014 at 10:01:11PM +0200, Igor Mammedov wrote: > >> On Tue, 6 May 2014 11:42:56 -0300 > >> Eduardo Habkost wrote: > >>> On Tue, May 06, 2014 at 09:22:38AM +0200, Igor Mammedov wrote: > >>>> On Fri, 2 May 2014 11:43:05 -0300 > >>>> Eduardo Habkost wrote: > >>>>> On Fri, May 02, 2014 at 03:45:03PM +0200, Igor Mammedov wrote: > >>>>>> On Wed, 30 Apr 2014 17:29:28 -0300 > >>>>>> Eduardo Habkost wrote: > >>>>>>> This series allows management code to use object-add on X86CPU = subclasses, so it > >>>>>> Is there any reason why "device-add" couldn't be used? > >>>>> It needs to work with "-machine none", device_add requires a bus = to > >>>>> exist, and there is no icc-bus on machine_none. > >>>> The thing is that CPUID is a function of machine so using > >>>> "-machine none" will provide only approximately accurate data. > >>>> I'm not sure that retrieved possibly not accurate data are useful > >>>> for libvirt. > >>> "-cpu host" doesn't depend on machine, and is the most important th= ing > >>> right now (because libvirt's checks for host QEMU/kernel/CPU > >>> capabilities is completely broken). > >> true, but device-add/-cpu host could be used right now to get the > >> same CPUID data wile using any machine type or default one without > >> any of this patches. > >=20 > > device_add can't be used with "-machine none". >=20 > I see no reason why we couldn't *make* CPUs work on -machine none. The > ICC bus and bridge were a hack to make APIC(?) hot-add work in face of > SysBus; if that prohibits other valid uses now, then evaluating Igor's > memory work for CPU might be an option. >=20 > I'm not aware of any real X86CPU dependency on ICCBus, so we might as > well make -device place it on SysBus if no ICCBus is available... > probably much more invasive and potentially dangerous though. Doing that may be an option, too. But isn't the X86CPU bus type and object hierarchy part of the API? Anyway, I thought we were moving away from QDEV, and trying to use a purely QOM-based model where possible. So I don't see why making object-add working with X86CPU would be a bad thing, considering that the alternative requires redoing the X86CPU bus/device hierarchy again, just to work around device_add limitations. My other worry is if X86CPU/icc-bus hierarchy rework would be done in time for 2.1 (and not delay other work). The lack of proper host capability probing in the libvirt+QEMU stack is a bug, not just a nice new feature. --=20 Eduardo