WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xm pci-list for inactive managed domains
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 14 May 2009 11:41:11 +0900
Cc: horms@xxxxxxxxxxxx
Delivery-date: Wed, 13 May 2009 19:42:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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