Jump to: navigation, search

Difference between revisions of "Nova/USB controller hot cold plug"

(Technical verification)
(Technical verification)
Line 15: Line 15:
 
     Add different type usb controller to vm when vm in diffrent status(running, stopped and so on).
 
     Add different type usb controller to vm when vm in diffrent status(running, stopped and so on).
  
2. Xml definition
+
2. Xml definition and commands
 
     (1)Sample of usb controller:
 
     (1)Sample of usb controller:
 
         <controller type='usb' index='6' model='nec-xhci'/>
 
         <controller type='usb' index='6' model='nec-xhci'/>

Revision as of 07:46, 4 March 2014

USB controller hot/cold plug features

Related Content

https://wiki.openstack.org/wiki/Nova/USB_device%26USB_controller https://wiki.openstack.org/wiki/Nova/USB_device_hot_cold_plug

Background

Add/remove usb controller is a necessary supplement function for usb-passthrough.

User scenarios

1. When a user wants to copy mass data to a removable media for business trip him may want to use usb data disk. But for high speed, he should first create a ehci usb controller for usb device.

Technical verification

1. Test case

   Add different type usb controller to vm when vm in diffrent status(running, stopped and so on).

2. Xml definition and commands

   (1)Sample of usb controller:
        <controller type='usb' index='6' model='nec-xhci'/>
   (2)Sample of add usb controller:
        virsh attach-device test ehci.xml --config
   (3)Sample of remove usb controller:
        virsh detach-device test ehci.xml --config

3. The test results

    (1)It only supports adding usb controllers or removing controllers to vm in stopped status.
    (2)Different usb controllers should have uniquet index property.

Proposed solution

1. Use cases

2. System requirements and things should be considered(An optional Implementation):