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/
Home Products Support Community News


[Xen-devel] [PATCH] Fix xm pci-attach/detach for inactive managed domain

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xm pci-attach/detach for inactive managed domains
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 09 Apr 2009 19:20:18 +0900
Delivery-date: Thu, 09 Apr 2009 03:21:03 -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

I found the following problems.  xm pci-attach command and xm pci-detach 
command fail on inactive managed domains.  An attaching patch solves the 

# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1024     2     r-----     51.5
vm1                                              512     2                 0.0
# xm pci-list vm1
VSlt domain   bus   slot   func
0x3    0x0  0x01   0x00    0x0    
0x4    0x0  0x01   0x00    0x1    
0x10    0x0  0x00   0x1a    0x0    
# xm pci-attach vm1 0:0:1a.1 11
Error: int argument required
Usage: xm pci-attach [-o|--options=<opt>] <Domain> <domain:bus:slot.func> 
[virtual slot]

Insert a new pass-through pci device.
# xm pci-detach vm1 0:0:1a.0   
Error: int argument required
Usage: xm pci-detach <Domain> <domain:bus:slot.func>

Remove a domain's pass-through pci device.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,

Attachment: pci_inactive_managed_domains.patch
Description: Binary data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix xm pci-attach/detach for inactive managed domains, Masaki Kanno <=