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

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



Hi,

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

# 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,
 Kan

Attachment: pci_inactive_managed_domains.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®.