Revision 2fddb144

b/lib/constants.py
830 830
HV_CPU_CORES = "cpu_cores"
831 831
HV_CPU_THREADS = "cpu_threads"
832 832
HV_CPU_SOCKETS = "cpu_sockets"
833
HV_SOUNDHW = "soundhw"
833 834

  
834 835

  
835 836
HVS_PARAMETER_TYPES = {
......
893 894
  HV_CPU_CORES: VTYPE_INT,
894 895
  HV_CPU_THREADS: VTYPE_INT,
895 896
  HV_CPU_SOCKETS: VTYPE_INT,
897
  HV_SOUNDHW: VTYPE_STRING,
896 898
  }
897 899

  
898 900
HVS_PARAMETERS = frozenset(HVS_PARAMETER_TYPES.keys())
......
1960 1962
    HV_CPU_CORES: 0,
1961 1963
    HV_CPU_THREADS: 0,
1962 1964
    HV_CPU_SOCKETS: 0,
1965
    HV_SOUNDHW: "",
1963 1966
    },
1964 1967
  HT_FAKE: {},
1965 1968
  HT_CHROOT: {
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
b/man/gnt-instance.rst
649 649

  
650 650
    Number of emulated CPU sockets.
651 651

  
652
soundhw
653
    Valid for the KVM hypervisor.
654

  
655
    Comma separated list of emulated sounds cards, or "all" to enable
656
    all the available ones.
657

  
652 658

  
653 659
The ``-O (--os-parameters)`` option allows customisation of the OS
654 660
parameters. The actual parameter names and values depends on the OS

Also available in: Unified diff