[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] hw/vfio/pci-quirks: Set category of the "vfio-p
From: |
Thomas Huth |
Subject: |
Re: [Qemu-devel] [PATCH] hw/vfio/pci-quirks: Set category of the "vfio-pci-igd-lpc-bridge" device |
Date: |
Mon, 6 Feb 2017 11:09:45 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
On 03.02.2017 19:10, Alex Williamson wrote:
> On Tue, 24 Jan 2017 09:02:38 +0100
> Thomas Huth <address@hidden> 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.
Thomas