[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix xm pci-list for inactive managed domains



Hi,

I found a problem of xm pci-list.  In inactive managed domains, 
I cannot confirm virtual slot numbers of PCI devices by using 
xm pci-list as follows.  In fact, I can confirm virtual slot 
numbers of PCI devices by using xm pci-list if active domains.

# cat /etc/xen/vm1 | grep pci
pci = [ '01:00.0@6','01:00.1@7' ]
# xm new vm1
Using config file "./vm1".
# xm pci-list vm1
domain   bus   slot   func
0x0  0x01   0x00    0x0
0x0  0x01   0x00    0x1
# xm list --long vm1
(domain
<<snip>>
    (device
        (pci
            (uuid 7887cf50-8919-0dee-9811-992cf259daf6)
            (dev
                (slot 0x00)
                (requested_vslot 0x6)
                (domain 0x0)
                (uuid 85352de7-53c7-8a94-96d2-68852825674c)
                (bus 0x01)
                (func 0x0)
            )
            (dev
                (slot 0x00)
                (requested_vslot 0x7)
                (domain 0x0)
                (uuid 62e52cb4-e47d-12ce-42ba-860ee44026c8)
                (bus 0x01)
                (func 0x1)
            )
        )
    )
)
# xm start vm1
# xm pci-list vm1
VSlt domain   bus   slot   func
0x06    0x0  0x01   0x00    0x0
0x07    0x0  0x01   0x00    0x1
# xm list --long vm1
(domain
<<snip>>
    (device
        (pci
            (dev
                (slot 0x00)
                (domain 0x0000)
                (uuid 85352de7-53c7-8a94-96d2-68852825674c)
                (vslot 0x06)
                (bus 0x01)
                (func 0x0)
            )
            (dev
                (slot 0x00)
                (domain 0x0000)
                (uuid 62e52cb4-e47d-12ce-42ba-860ee44026c8)
                (vslot 0x07)
                (bus 0x01)
                (func 0x1)
            )
            (uuid 7887cf50-8919-0dee-9811-992cf259daf6)
            (backend 0)
        )
    )
)


Virtual slot numbers of PCI devices in inactive managed domains 
are shown by this patch. 

# xm new vm1
Using config file "/etc/xen/vm1".
# xm pci-list vm1
VSlt domain   bus   slot   func
0x6    0x0  0x01   0x00    0x0
0x7    0x0  0x01   0x00    0x1

Cc: Simon Horman <horms@xxxxxxxxxxxx>
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm_pci_list.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.