Revision 156681c1 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
536 536
    constants.HV_CPU_THREADS: hv_base.OPT_NONNEGATIVE_INT_CHECK,
537 537
    constants.HV_CPU_SOCKETS: hv_base.OPT_NONNEGATIVE_INT_CHECK,
538 538
    constants.HV_SOUNDHW: hv_base.NO_CHECK,
539
    constants.HV_USB_DEVICES: hv_base.NO_CHECK,
539 540
    }
540 541

  
541 542
  _MIGRATION_STATUS_RE = re.compile("Migration\s+status:\s+(\w+)",
......
1339 1340
    if hvp[constants.HV_SOUNDHW]:
1340 1341
      kvm_cmd.extend(["-soundhw", hvp[constants.HV_SOUNDHW]])
1341 1342

  
1343
    # Various types of usb devices, comma separated
1344
    if hvp[constants.HV_USB_DEVICES]:
1345
      for dev in hvp[constants.HV_USB_DEVICES].split(","):
1346
        kvm_cmd.extend(["-usbdevice", dev])
1347

  
1342 1348
    # Save the current instance nics, but defer their expansion as parameters,
1343 1349
    # as we'll need to generate executable temp files for them.
1344 1350
    kvm_nics = instance.nics

Also available in: Unified diff