[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list |
Date: |
Wed, 01 Jul 2009 02:12:35 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
Anthony Liguori <address@hidden> writes:
> Markus Armbruster wrote:
>> Paul Brook <address@hidden> writes:
>>
>>
>>> On Tuesday 30 June 2009, Markus Armbruster wrote:
>>>
>>>> Paul Brook <address@hidden> writes:
>>>>
>>>>> On Tuesday 30 June 2009, Gerd Hoffmann wrote:
>>>>>
>>>>>> * maintain a list of busses.
>>>>>> * maintain bus numbers.
>>>>>> * add function to find busses by type / name / number.
>>>>>> * add monitor command to list busses.
>>>>>>
>>>>> I still object to this patch. Busses should be identified by their
>>>>> location in the tree, not by number.
>>>>>
>>>>> Paul
>>>>>
>>>> Location in the tree can be uniquely identified by a number. Handy when
>>>> all you want is enumerate the buses, and you don't really care where
>>>> they're hanging out in the tree. Why should something like that not be
>>>> done?
>>>>
>>> The address of the BusState is also a locally unique
>>> identifier. That doesn't mean it's a good thing to expose to the
>>> user.
>>>
>>> Paul
>>>
>>
>> Red herring.
>>
>
> I don't think that's a very useful response.
>
> I think it's a perfectly valid suggestion that we should identify
> buses based on the their location in the tree to users verses a number
> generated based on some hashing algorithm.
>
> A tree location has meaning to a user. A random integer doesn't.
Numbering nodes according to a well-defined tree traversal is not
random. We can discuss whether using such a number in an interface is a
good idea (nobody suggested to use it *instead* of tree paths).
Rejecting the idea by comparing it to some internal address, however, is
not a very useful contribution to such a discussion.
But I figure I'm wasting my time and yours, so I'll shut up now.
- [Qemu-devel] [PATCH 3/8] qdev: remove DeviceType, (continued)
- [Qemu-devel] [PATCH 3/8] qdev: remove DeviceType, Gerd Hoffmann, 2009/06/30
- [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Gerd Hoffmann, 2009/06/30
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Paul Brook, 2009/06/30
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Markus Armbruster, 2009/06/30
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Paul Brook, 2009/06/30
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Markus Armbruster, 2009/06/30
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Anthony Liguori, 2009/06/30
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Gerd Hoffmann, 2009/06/30
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Anthony Liguori, 2009/06/30
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Paul Brook, 2009/06/30
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list,
Markus Armbruster <=
- Re: [Qemu-devel] [PATCH 4/8] qdev/core: bus list, Paul Brook, 2009/06/30
[Qemu-devel] [PATCH 6/8] qdev/pci: misc fixes., Gerd Hoffmann, 2009/06/30
[Qemu-devel] [PATCH 2/8] qdev: replace bus_type enum with bus_info struct., Gerd Hoffmann, 2009/06/30
[Qemu-devel] [PATCH 5/8] qdev/core: add monitor command to list all drivers, Gerd Hoffmann, 2009/06/30
[Qemu-devel] [PATCH 7/8] qdev: convert es1370., Gerd Hoffmann, 2009/06/30
[Qemu-devel] [PATCH 1/8] qdev: update pci device registration., Gerd Hoffmann, 2009/06/30
[Qemu-devel] [PATCH 8/8] qdev: convert ac97., Gerd Hoffmann, 2009/06/30
[Qemu-devel] [PATCH 0/7] qdev patches, batch #1, Gerd Hoffmann, 2009/06/30