Revision 2fddb144 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
535 535
    constants.HV_CPU_CORES: hv_base.OPT_NONNEGATIVE_INT_CHECK,
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
    constants.HV_SOUNDHW: hv_base.NO_CHECK,
538 539
    }
539 540

  
540 541
  _MIGRATION_STATUS_RE = re.compile("Migration\s+status:\s+(\w+)",
......
1334 1335
    if hvp[constants.HV_CPU_TYPE]:
1335 1336
      kvm_cmd.extend(["-cpu", hvp[constants.HV_CPU_TYPE]])
1336 1337

  
1338
    # As requested by music lovers
1339
    if hvp[constants.HV_SOUNDHW]:
1340
      kvm_cmd.extend(["-soundhw", hvp[constants.HV_SOUNDHW]])
1341

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

Also available in: Unified diff