From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCHv3 08/14] Add get_fw_dev_path callback for pci bus. Date: Thu, 11 Nov 2010 12:17:17 +0200 Message-ID: <20101111101717.GW9036@redhat.com> References: <1289409261-5418-1-git-send-email-gleb@redhat.com> <1289409261-5418-9-git-send-email-gleb@redhat.com> <20101110173412.GE3891@redhat.com> <4CDBC045.3070902@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Michael S. Tsirkin" , qemu-devel@nongnu.org, kvm@vger.kernel.org, blauwirbel@gmail.com, armbru@redhat.com, alex.williamson@redhat.com To: Gerd Hoffmann Return-path: Received: from mx1.redhat.com ([209.132.183.28]:8241 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754077Ab0KKKRV (ORCPT ); Thu, 11 Nov 2010 05:17:21 -0500 Content-Disposition: inline In-Reply-To: <4CDBC045.3070902@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Nov 11, 2010 at 11:07:01AM +0100, Gerd Hoffmann wrote: > On 11/10/10 18:34, Michael S. Tsirkin wrote: > >On Wed, Nov 10, 2010 at 07:14:15PM +0200, Gleb Natapov wrote: > >> > >>Signed-off-by: Gleb Natapov > > > >Good stuff. We should also consider using this for > >CLI and monitor. Some comments below. > > Oh, we already have a table to map pci classes to descriptions for > 'info pci'. I'd strongly suggest to just add the fw names to that > table instead of creating a second one ... > Do you mean pci_class_descriptions? For some classes open firmware spec defines single name for all subclasses. For instance all 0Axx should be called "dock" no matter what xx is. This can't be encoded in a simple table. -- Gleb.