Xen 4.17 has strict parsing of 'soundhw' option that allows only
specific values (instead of passing through any value directly to
qemu's -soundhw option, it uses -device now). For 'intel-hda' audio
device, it requires "hda" string. "hda" works with older libxl too.
Other supported models are the same as in libvirt XML.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
* a single device. From the man page: soundhw=DEVICE
*/
virDomainSoundDef *snd = def->sounds[0];
+ const char *model = virDomainSoundModelTypeToString(snd->model);
- b_info->u.hvm.soundhw = g_strdup(virDomainSoundModelTypeToString(snd->model));
+ if (snd->model == VIR_DOMAIN_SOUND_MODEL_ICH6)
+ model = "hda";
+
+ b_info->u.hvm.soundhw = g_strdup(model);
}
for (i = 0; i < def->os.nBootDevs; i++) {