Received: from eggs.gnu.org ([140.186.70.92]:40860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt3JH-0006lI-HL for qemu-devel@nongnu.org; Thu, 02 Feb 2012 15:31:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rt3JF-0000JX-0p for qemu-devel@nongnu.org; Thu, 02 Feb 2012 15:31:11 -0500 Received: from cantor2.suse.de ([195.135.220.15]:42068 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt3JE-0000JH-Nl for qemu-devel@nongnu.org; Thu, 02 Feb 2012 15:31:08 -0500 Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Alexander Graf In-Reply-To: <4F2AEC08.4070802@codemonkey.ws> Date: Thu, 2 Feb 2012 21:31:06 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1328201142-26145-1-git-send-email-pbonzini@redhat.com> <1328201142-26145-2-git-send-email-pbonzini@redhat.com> <4F2AC1D2.9090606@codemonkey.ws> <4F2AC7F0.7080204@redhat.com> <4F2ADDA6.4070603@codemonkey.ws> <0225E1B3-010A-4A76-852A-60B6DBD3C331@suse.de> <4F2AEC08.4070802@codemonkey.ws> Subject: Re: [Qemu-devel] [PATCH 01/16] qdev: fix hot-unplug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Paolo Bonzini , qemu-devel@nongnu.org On 02.02.2012, at 21:03, Anthony Liguori wrote: > On 02/02/2012 01:07 PM, Alexander Graf wrote: >>=20 >> On 02.02.2012, at 20:01, Anthony Liguori wrote: >>=20 >>> On 02/02/2012 11:29 AM, Paolo Bonzini wrote: >>>> On 02/02/2012 06:03 PM, Anthony Liguori wrote: >>>>>>=20 >>>>>=20 >>>>> Is this still needed with qom-upstream.14? I fixed a bug on .14 = that >>>>> involved child properties that was making device-del sometimes = fail. >>>>=20 >>>> Not sure, I tried with .13 but, from the look of it, it should = still be there. >>>> Regarding the .13->.14 diff: >>>>=20 >>>> - you need QTAILQ_FOREACH_SAFE in object_property_del_child. >>>=20 >>> Ack. >>>=20 >>>>=20 >>>> - you need to check for the existence of the non-aliased name when = accessing the >>>> alias table, because s390 does not have PCI. >>>=20 >>> I don't think that's the right strategy as it means that s390 only = works if we don't include the PCI objects in the build (regardless of = whether it uses PCI). This would be defeated if/when we move to having = all device objects in a single shared library used by all of the qemu = executables. >>>=20 >>> I'd prefer to just drop the aliases for s390. I don't see a lot of = value in it and I don't think there are tons of s390 users that will be = affected. >>=20 >> The reason for the aliases is to make -drive and -net work. If you = have alternatives to aliases there, I'm happy to go with them. >=20 > We can simply do a const char *target_get_virtio_net_type(void) in = arch_init.c. >=20 > Not pretty, but we can later fix the -drive/-net calls to not require = this. Anything that works. The only reason to have the aliases for me really = was to not have target awareness in -drive and -net. So if you're = feeling better with an arch callback, I'm definitely fine with that too. Alex