Received: from eggs.gnu.org ([2001:4830:134:3::10]:60027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1camIr-0005Jm-9B for qemu-devel@nongnu.org; Mon, 06 Feb 2017 11:38:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1camIn-0007R7-E2 for qemu-devel@nongnu.org; Mon, 06 Feb 2017 11:38:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40686) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1camIn-0007QT-8F for qemu-devel@nongnu.org; Mon, 06 Feb 2017 11:38:05 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 98D0A83F38 for ; Mon, 6 Feb 2017 16:38:04 +0000 (UTC) Date: Mon, 6 Feb 2017 09:38:02 -0700 From: Alex Williamson Message-ID: <20170206093802.72366e44@t450s.home> In-Reply-To: <725c680a-f92d-3e64-439c-66cff5b5551c@redhat.com> References: <1485244958-25911-1-git-send-email-thuth@redhat.com> <20170203111045.4367eb34@t450s.home> <725c680a-f92d-3e64-439c-66cff5b5551c@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] hw/vfio/pci-quirks: Set category of the "vfio-pci-igd-lpc-bridge" device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org On Mon, 6 Feb 2017 11:09:45 +0100 Thomas Huth wrote: > On 03.02.2017 19:10, Alex Williamson wrote: > > On Tue, 24 Jan 2017 09:02:38 +0100 > > Thomas Huth wrote: > > > >> The device has "bridge" in its name, so it should obviously be in > >> the category DEVICE_CATEGORY_BRIDGE. > > > > Well, physical device is a bridge, but this is really just a stub. > > Does that count? It doesn't create a subordinate bus that can actually > > host devices. > > The device category is only used for sorting the device into a category > in the help output when the user runs QEMU with "-device ?". The > DEVICE_CATEGORY_BRIDGE is title there "Controller/Bridge/Hub devices", > so IMHO that should be fine for this device. Otherwise it should maybe > go into DEVICE_CATEGORY_MISC instead - but at least it should not stay > uncategorized, all devices that show up in the "-device ?" help text > should eventually get a category. Ok, I'll queue this for my next pull request. Thanks, Alex