Jump to: navigation, search

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

(Technical verification)
(Technical verification)
Line 16: Line 16:
  
 
2. Xml definition
 
2. Xml definition
 +
    (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
 
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 ===
 
=== Proposed solution ===

Revision as of 07:42, 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

   (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):