From: Isaku Yamahata Subject: Re: [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn Date: Tue, 24 Aug 2010 21:07:45 +0900 Message-ID: <20100824120745.GC7201@valinux.co.jp> References: <20100824063307.GA10815@kt> <20100824064927.GB11495@kt> <20100824113521.GA7201@valinux.co.jp> <4C73B01A.1050908@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ken CC , kvm@vger.kernel.org, qemu-devel@nongnu.org, "Michael S\. Tsirkin" To: Avi Kivity Return-path: Received: from mail.valinux.co.jp ([210.128.90.3]:53621 "EHLO mail.valinux.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751728Ab0HXL5T (ORCPT ); Tue, 24 Aug 2010 07:57:19 -0400 Content-Disposition: inline In-Reply-To: <4C73B01A.1050908@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Aug 24, 2010 at 02:42:18PM +0300, Avi Kivity wrote: > On 08/24/2010 02:35 PM, Isaku Yamahata wrote: >> Add Cc: mst@redhat.com. >> >> MAX_PCI_SLOTS should be in pci.h instead of qdev.h? >> And the name should be start with PCI_ prefix for consistency? >> >> Except that, the patches look okay. >> > > These aren't slots, are they? They are functions. The function checks if given $slot.$fn (or $slot) is valid. So it's slots. max 32. > There's a lot of slot/function confusion in qemu. Agreed. -- yamahata