From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPT76-0002hm-FQ for qemu-devel@nongnu.org; Wed, 02 May 2012 02:32:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPT74-0005hg-QA for qemu-devel@nongnu.org; Wed, 02 May 2012 02:32:36 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:61060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPT74-0005hX-HK for qemu-devel@nongnu.org; Wed, 02 May 2012 02:32:34 -0400 Received: by pbbro12 with SMTP id ro12so750601pbb.4 for ; Tue, 01 May 2012 23:32:32 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4FA0D4F9.4010409@redhat.com> Date: Wed, 02 May 2012 08:32:25 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1335896294-9530-1-git-send-email-aliguori@us.ibm.com> <1335896294-9530-5-git-send-email-aliguori@us.ibm.com> <4FA04974.30503@redhat.com> <4FA04B92.3080200@us.ibm.com> <4FA059EA.1060900@redhat.com> <4FA0613E.9090500@us.ibm.com> In-Reply-To: <4FA0613E.9090500@us.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 04/14] qdev: don't allow globals to be set by bus name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Peter Maydell , Wanpeng Li , Andreas Faerber Il 02/05/2012 00:18, Anthony Liguori ha scritto: > anthony@titi:~/build/qemu$ x86_64-softmmu/qemu-system-x86_64 -device > rtl8139,? > I don't think this is a fair comparison, or makes sense at all. The cause of the bug in master is a cut-and-paste typo: @@ -157,7 +157,7 @@ int qdev_device_help(QemuOpts *opts) * for removal. This conditional should be removed along with * it. */ - if (!prop->info->parse) { + if (!prop->info->set) { continue; /* no way to set it, don't show */ } error_printf("%s.%s=%s\n", driver, prop->name, @@ -165,7 +165,7 @@ int qdev_device_help(QemuOpts *opts) } if (info->bus_info) { for (prop = info->bus_info->props; prop&& prop->name; prop++) { - if (!prop->info->parse) { + if (!prop->info->set) { continue; /* no way to set it, don't show */ } error_printf("%s.%s=%s\n", driver, prop->name, while here the problem is due to a half-baked change in this series. Since I redid the same change in my properties series, and I did it correctly, the only sensible solution is to rebase these patches on that one. > So my series makes the situation better and I think it's easier to fix > the full problem. I also don't view the current bug as a -rc0 blocker > (although it's obviously a release blocker). I can send a proper patch > later in the week but I'd still like to commit the bus changes before -rc0. Please don't. I have barely started reviewing this series and I have quite a few questions, though some may be trivial. In the meanwhile, I'll separate the early pieces of my series and rebase this one on top. Paolo