[virt-tools-list] [PATCH] VMM - Show host device information bits
Michal Novotny
minovotn at redhat.com
Tue Oct 27 06:44:24 UTC 2009
On 10/27/2009 07:26 AM, Michal Novotny wrote:
> On 10/27/2009 07:24 AM, Michal Novotny wrote:
>> On 10/26/2009 05:33 PM, Cole Robinson wrote:
>>> On 10/26/2009 12:29 PM, Michal Novotny wrote:
>>>> On 10/26/2009 05:20 PM, Cole Robinson wrote:
>>>>> On 10/26/2009 10:59 AM, Michal Novotny wrote:
>>>>>
>>>>>> Hi,
>>>>>> this is new version of host device information bits, tested with PCI
>>>>>> devices as well.
>>>>>>
>>>>>> Thanks,
>>>>>> Michal
>>>>>>
>>>>>>
>>>>> I think we should support USB devices by bus/addr and PCI devices
>>>>> before
>>>>> pushing.
>>>>>
>>>>>
>>>> Well, I didn't find it in devs (get_devices()) so that I can't
>>>> check how
>>>> to compare it using bus/addr. I've been using testdriver.xml you wrote
>>>> about but get_devices() returns empty list and I can't make PCI
>>>> passthrough working right on my machine.
>>> Make sure you pull down the updated testdriver, and are using libvirt
>>> 0.7.2. You should see results from get_devices.
>> Oh, although I've been using updated testdriver from yesterday (I've
>> downloaded it yesterday) I was using libvirt 0.7.0 so there were no
>> corresponding results for that. I'm pulling down the latest libvirt
>> to install it. Thanks for information
Well, I have downloaded and installed newest libvirt from git now,
downloaded the testdriver.xml file from location you gave me and I also
appended:
devs = self.vm.get_connection().get_devices( typ, None )
logging.debug("DEVS: %s" % devs)
to virtManager/details.py file but it's not working, it keeps showing
empty devices for this test driver:
[Tue, 27 Oct 2009 07:41:28 virt-manager 31507] DEBUG (details:1190) DEVS: []
How can I make it working for testdriver ? I don't know how to make PCI
passthrough working to be able to check bus/addr ...
Michal
>>>>> The libvirt test driver now supports host device routines as of
>>>>> 0.7.2,
>>>>> so if you pull that version and install, you should be able to use my
>>>>> updated test driver to emulate PCI and USB device passthrough:
>>>>>
>>>>> http://fedorapeople.org/~crobinso/virt-manager/testdriver.xml
>>>>>
>>>>> Another thing, after looking at the UI changes, we are exposing a
>>>>> lot of
>>>>> redundant info. If the device info lookup succeeds, we should just
>>>>> set
>>>>> 'Source Device' to use dev.pretty_name(), which gives all the info
>>>>> they
>>>>> might want. This saves us having to add a bunch of UI fields that may
>>>>> not be populated anyways.
>>>>>
>>>>>
>>>> What data would you like to limit it to? Source Device should be
>>>> dev.pretty_name() and what about other information? I have tested
>>>> it on
>>>> WinXP virtual machine with Bluetooth device passed to the VM and
>>>> all the
>>>> fields were populated. I am attaching a screenshot of my WinXP VM with
>>>> Bluetooth device assigned...
>>>>
>>> I would like to limit it to pretty_name only for now, since pretty name
>>> contains both the product and device name, so listing them
>>> separately is
>>> redundant.
>>>
>>> - Cole
>> So you suggest that just showing one column, pretty name is enough?
>> Not showing the Source Device that is identical to one in the list on
>> the left ? It may confuse users if "Source Device" is shown in the
>> left list and just pretty name is shown in the right details tab,
>> don't you think?
>>
> Sorry, I made a mistake. I didn't mean Source Device but Device Type
> (like on screenshot I posted yesterday).
>
> \Michal
>>
>> _______________________________________________
>> virt-tools-list mailing list
>> virt-tools-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/virt-tools-list
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
More information about the virt-tools-list
mailing list