mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 05:45:46 +00:00
qemu: support use of <audio> elements
Currently the QEMU driver secretly sets the QEMU_AUDIO_DRV env variable depending on how <graphics> are configured. This introduces support for configuring audio backends from the <audio> elements in the XML config. The existing default behaviour is now only used if no <audio> element is present. All except the 'jack' audio driver are supported via QEMU's old env variable config. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
efdab67f44
commit
6be99c99c5
@ -226,6 +226,8 @@ virDiskNameParse;
|
|||||||
virDiskNameToBusDeviceIndex;
|
virDiskNameToBusDeviceIndex;
|
||||||
virDiskNameToIndex;
|
virDiskNameToIndex;
|
||||||
virDomainActualNetDefFree;
|
virDomainActualNetDefFree;
|
||||||
|
virDomainAudioSDLDriverTypeFromString;
|
||||||
|
virDomainAudioSDLDriverTypeToString;
|
||||||
virDomainAudioTypeTypeFromString;
|
virDomainAudioTypeTypeFromString;
|
||||||
virDomainAudioTypeTypeToString;
|
virDomainAudioTypeTypeToString;
|
||||||
virDomainBlockedReasonTypeFromString;
|
virDomainBlockedReasonTypeFromString;
|
||||||
|
@ -177,6 +177,21 @@ VIR_ENUM_IMPL(qemuNumaPolicy,
|
|||||||
"interleave",
|
"interleave",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
VIR_ENUM_DECL(qemuAudioDriver);
|
||||||
|
VIR_ENUM_IMPL(qemuAudioDriver,
|
||||||
|
VIR_DOMAIN_AUDIO_TYPE_LAST,
|
||||||
|
"none",
|
||||||
|
"alsa",
|
||||||
|
"coreaudio",
|
||||||
|
"jack",
|
||||||
|
"oss",
|
||||||
|
"pa",
|
||||||
|
"sdl",
|
||||||
|
"spice",
|
||||||
|
"wav",
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* qemuBuildMasterKeyCommandLine:
|
* qemuBuildMasterKeyCommandLine:
|
||||||
@ -7543,11 +7558,91 @@ qemuBuildMemoryDeviceCommandLine(virCommandPtr cmd,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
qemuBuildAudioOSSEnv(virCommandPtr cmd,
|
||||||
|
const char *prefix,
|
||||||
|
virDomainAudioIOOSSPtr def)
|
||||||
|
{
|
||||||
|
if (def->dev)
|
||||||
|
virCommandAddEnvFormat(cmd, "%sDEV=%s",
|
||||||
|
prefix, def->dev);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
qemuBuildAudioCommandLineEnv(virCommandPtr cmd,
|
||||||
|
virDomainDefPtr def)
|
||||||
|
{
|
||||||
|
virDomainAudioDefPtr audio;
|
||||||
|
if (def->naudios != 1)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
audio = def->audios[0];
|
||||||
|
virCommandAddEnvPair(cmd, "QEMU_AUDIO_DRV",
|
||||||
|
qemuAudioDriverTypeToString(audio->type));
|
||||||
|
|
||||||
|
switch ((virDomainAudioType)audio->type) {
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_NONE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_ALSA:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_COREAUDIO:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_JACK:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_OSS:
|
||||||
|
qemuBuildAudioOSSEnv(cmd, "QEMU_OSS_ADC_", &audio->backend.oss.input);
|
||||||
|
qemuBuildAudioOSSEnv(cmd, "QEMU_OSS_DAC_", &audio->backend.oss.output);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_SDL:
|
||||||
|
if (audio->backend.sdl.driver) {
|
||||||
|
/*
|
||||||
|
* Some SDL audio driver names are different on SDL 1.2
|
||||||
|
* vs 2.0. Given how old SDL 1.2 is, we're not going
|
||||||
|
* make any attempt to support it here as it is unlikely
|
||||||
|
* to have an real world users. We can assume libvirt
|
||||||
|
* driver name strings match SDL 2.0 names.
|
||||||
|
*/
|
||||||
|
virCommandAddEnvPair(cmd, "SDL_AUDIODRIVER",
|
||||||
|
virDomainAudioSDLDriverTypeToString(
|
||||||
|
audio->backend.sdl.driver));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_SPICE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_FILE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_LAST:
|
||||||
|
default:
|
||||||
|
virReportEnumRangeError(virDomainAudioType, audio->type);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
qemuBuildAudioCommandLine(virCommandPtr cmd,
|
||||||
|
virDomainDefPtr def)
|
||||||
|
{
|
||||||
|
return qemuBuildAudioCommandLineEnv(cmd, def);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfigPtr cfg G_GNUC_UNUSED,
|
qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfigPtr cfg G_GNUC_UNUSED,
|
||||||
virCommandPtr cmd,
|
virCommandPtr cmd,
|
||||||
virQEMUCapsPtr qemuCaps G_GNUC_UNUSED,
|
virQEMUCapsPtr qemuCaps G_GNUC_UNUSED,
|
||||||
|
virDomainDefPtr def,
|
||||||
virDomainGraphicsDefPtr graphics)
|
virDomainGraphicsDefPtr graphics)
|
||||||
{
|
{
|
||||||
g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER;
|
g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER;
|
||||||
@ -7559,12 +7654,14 @@ qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfigPtr cfg G_GNUC_UNUSED,
|
|||||||
if (graphics->data.sdl.fullscreen)
|
if (graphics->data.sdl.fullscreen)
|
||||||
virCommandAddArg(cmd, "-full-screen");
|
virCommandAddArg(cmd, "-full-screen");
|
||||||
|
|
||||||
|
if (def->naudios == 0) {
|
||||||
/* If using SDL for video, then we should just let it
|
/* If using SDL for video, then we should just let it
|
||||||
* use QEMU's host audio drivers, possibly SDL too
|
* use QEMU's host audio drivers, possibly SDL too
|
||||||
* User can set these two before starting libvirtd
|
* User can set these two before starting libvirtd
|
||||||
*/
|
*/
|
||||||
virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV");
|
virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV");
|
||||||
virCommandAddEnvPass(cmd, "SDL_AUDIODRIVER");
|
virCommandAddEnvPass(cmd, "SDL_AUDIODRIVER");
|
||||||
|
}
|
||||||
|
|
||||||
virCommandAddArg(cmd, "-display");
|
virCommandAddArg(cmd, "-display");
|
||||||
virBufferAddLit(&opt, "sdl");
|
virBufferAddLit(&opt, "sdl");
|
||||||
@ -7583,6 +7680,7 @@ static int
|
|||||||
qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg,
|
qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg,
|
||||||
virCommandPtr cmd,
|
virCommandPtr cmd,
|
||||||
virQEMUCapsPtr qemuCaps,
|
virQEMUCapsPtr qemuCaps,
|
||||||
|
virDomainDefPtr def,
|
||||||
virDomainGraphicsDefPtr graphics)
|
virDomainGraphicsDefPtr graphics)
|
||||||
{
|
{
|
||||||
g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER;
|
g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER;
|
||||||
@ -7709,6 +7807,7 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg,
|
|||||||
if (graphics->data.vnc.keymap)
|
if (graphics->data.vnc.keymap)
|
||||||
virCommandAddArgList(cmd, "-k", graphics->data.vnc.keymap, NULL);
|
virCommandAddArgList(cmd, "-k", graphics->data.vnc.keymap, NULL);
|
||||||
|
|
||||||
|
if (def->naudios == 0) {
|
||||||
/* Unless user requested it, set the audio backend to none, to
|
/* Unless user requested it, set the audio backend to none, to
|
||||||
* prevent it opening the host OS audio devices, since that causes
|
* prevent it opening the host OS audio devices, since that causes
|
||||||
* security issues and might not work when using VNC.
|
* security issues and might not work when using VNC.
|
||||||
@ -7717,6 +7816,7 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg,
|
|||||||
virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV");
|
virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV");
|
||||||
else
|
else
|
||||||
virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none");
|
virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none");
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -7725,6 +7825,7 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg,
|
|||||||
static int
|
static int
|
||||||
qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfigPtr cfg,
|
qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfigPtr cfg,
|
||||||
virCommandPtr cmd,
|
virCommandPtr cmd,
|
||||||
|
virDomainDefPtr def,
|
||||||
virDomainGraphicsDefPtr graphics)
|
virDomainGraphicsDefPtr graphics)
|
||||||
{
|
{
|
||||||
g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER;
|
g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER;
|
||||||
@ -7922,10 +8023,13 @@ qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfigPtr cfg,
|
|||||||
if (graphics->data.spice.keymap)
|
if (graphics->data.spice.keymap)
|
||||||
virCommandAddArgList(cmd, "-k",
|
virCommandAddArgList(cmd, "-k",
|
||||||
graphics->data.spice.keymap, NULL);
|
graphics->data.spice.keymap, NULL);
|
||||||
|
|
||||||
|
if (def->naudios == 0) {
|
||||||
/* SPICE includes native support for tunnelling audio, so we
|
/* SPICE includes native support for tunnelling audio, so we
|
||||||
* set the audio backend to point at SPICE's own driver
|
* set the audio backend to point at SPICE's own driver
|
||||||
*/
|
*/
|
||||||
virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=spice");
|
virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=spice");
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -7967,19 +8071,19 @@ qemuBuildGraphicsCommandLine(virQEMUDriverConfigPtr cfg,
|
|||||||
switch (graphics->type) {
|
switch (graphics->type) {
|
||||||
case VIR_DOMAIN_GRAPHICS_TYPE_SDL:
|
case VIR_DOMAIN_GRAPHICS_TYPE_SDL:
|
||||||
if (qemuBuildGraphicsSDLCommandLine(cfg, cmd,
|
if (qemuBuildGraphicsSDLCommandLine(cfg, cmd,
|
||||||
qemuCaps, graphics) < 0)
|
qemuCaps, def, graphics) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case VIR_DOMAIN_GRAPHICS_TYPE_VNC:
|
case VIR_DOMAIN_GRAPHICS_TYPE_VNC:
|
||||||
if (qemuBuildGraphicsVNCCommandLine(cfg, cmd,
|
if (qemuBuildGraphicsVNCCommandLine(cfg, cmd,
|
||||||
qemuCaps, graphics) < 0)
|
qemuCaps, def, graphics) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case VIR_DOMAIN_GRAPHICS_TYPE_SPICE:
|
case VIR_DOMAIN_GRAPHICS_TYPE_SPICE:
|
||||||
if (qemuBuildGraphicsSPICECommandLine(cfg, cmd,
|
if (qemuBuildGraphicsSPICECommandLine(cfg, cmd,
|
||||||
graphics) < 0)
|
def, graphics) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -9978,11 +10082,13 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
|
|||||||
virCommandAddArg(cmd, "-display");
|
virCommandAddArg(cmd, "-display");
|
||||||
virCommandAddArg(cmd, "none");
|
virCommandAddArg(cmd, "none");
|
||||||
|
|
||||||
|
if (def->naudios == 0) {
|
||||||
if (cfg->nogfxAllowHostAudio)
|
if (cfg->nogfxAllowHostAudio)
|
||||||
virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV");
|
virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV");
|
||||||
else
|
else
|
||||||
virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none");
|
virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Disable global config files and default devices */
|
/* Disable global config files and default devices */
|
||||||
virCommandAddArg(cmd, "-no-user-config");
|
virCommandAddArg(cmd, "-no-user-config");
|
||||||
@ -10056,6 +10162,9 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
|
|||||||
if (qemuBuildInputCommandLine(cmd, def, qemuCaps) < 0)
|
if (qemuBuildInputCommandLine(cmd, def, qemuCaps) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
if (qemuBuildAudioCommandLine(cmd, def) < 0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (qemuBuildGraphicsCommandLine(cfg, cmd, def, qemuCaps) < 0)
|
if (qemuBuildGraphicsCommandLine(cfg, cmd, def, qemuCaps) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
@ -1228,6 +1228,12 @@ qemuValidateDomainDef(const virDomainDef *def,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (def->naudios > 1) {
|
||||||
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
|
_("only one audio backend is supported with this QEMU binary"));
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4165,6 +4171,50 @@ qemuValidateDomainDeviceDefFS(virDomainFSDefPtr fs,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static int
|
||||||
|
qemuValidateDomainDeviceDefAudio(virDomainAudioDefPtr audio,
|
||||||
|
virQEMUCapsPtr qemuCaps G_GNUC_UNUSED)
|
||||||
|
{
|
||||||
|
switch ((virDomainAudioType)audio->type) {
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_NONE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_ALSA:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_COREAUDIO:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_JACK:
|
||||||
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
|
_("'jack' audio backend is not supported with this QEMU"));
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_OSS:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_SDL:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_SPICE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_FILE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_AUDIO_TYPE_LAST:
|
||||||
|
default:
|
||||||
|
virReportEnumRangeError(virDomainAudioType, audio->type);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
qemuSoundCodecTypeToCaps(int type)
|
qemuSoundCodecTypeToCaps(int type)
|
||||||
{
|
{
|
||||||
@ -4858,9 +4908,12 @@ qemuValidateDomainDeviceDef(const virDomainDeviceDef *dev,
|
|||||||
ret = qemuValidateDomainDeviceDefShmem(dev->data.shmem, qemuCaps);
|
ret = qemuValidateDomainDeviceDefShmem(dev->data.shmem, qemuCaps);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_DEVICE_AUDIO:
|
||||||
|
ret = qemuValidateDomainDeviceDefAudio(dev->data.audio, qemuCaps);
|
||||||
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_DEVICE_LEASE:
|
case VIR_DOMAIN_DEVICE_LEASE:
|
||||||
case VIR_DOMAIN_DEVICE_PANIC:
|
case VIR_DOMAIN_DEVICE_PANIC:
|
||||||
case VIR_DOMAIN_DEVICE_AUDIO:
|
|
||||||
case VIR_DOMAIN_DEVICE_NONE:
|
case VIR_DOMAIN_DEVICE_NONE:
|
||||||
case VIR_DOMAIN_DEVICE_LAST:
|
case VIR_DOMAIN_DEVICE_LAST:
|
||||||
break;
|
break;
|
||||||
|
29
tests/qemuxml2argvdata/audio-alsa-minimal.args
Normal file
29
tests/qemuxml2argvdata/audio-alsa-minimal.args
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=alsa \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
36
tests/qemuxml2argvdata/audio-alsa-minimal.xml
Normal file
36
tests/qemuxml2argvdata/audio-alsa-minimal.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='alsa'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
29
tests/qemuxml2argvdata/audio-coreaudio-minimal.args
Normal file
29
tests/qemuxml2argvdata/audio-coreaudio-minimal.args
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=coreaudio \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
36
tests/qemuxml2argvdata/audio-coreaudio-minimal.xml
Normal file
36
tests/qemuxml2argvdata/audio-coreaudio-minimal.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='coreaudio'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
29
tests/qemuxml2argvdata/audio-file-minimal.args
Normal file
29
tests/qemuxml2argvdata/audio-file-minimal.args
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=wav \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
36
tests/qemuxml2argvdata/audio-file-minimal.xml
Normal file
36
tests/qemuxml2argvdata/audio-file-minimal.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='file'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
1
tests/qemuxml2argvdata/audio-jack-minimal.err
Normal file
1
tests/qemuxml2argvdata/audio-jack-minimal.err
Normal file
@ -0,0 +1 @@
|
|||||||
|
unsupported configuration: 'jack' audio backend is not supported with this QEMU
|
36
tests/qemuxml2argvdata/audio-jack-minimal.xml
Normal file
36
tests/qemuxml2argvdata/audio-jack-minimal.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='jack'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
1
tests/qemuxml2argvdata/audio-many-backends.err
Normal file
1
tests/qemuxml2argvdata/audio-many-backends.err
Normal file
@ -0,0 +1 @@
|
|||||||
|
unsupported configuration: only one audio backend is supported with this QEMU binary
|
60
tests/qemuxml2argvdata/audio-many-backends.xml
Normal file
60
tests/qemuxml2argvdata/audio-many-backends.xml
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<cpu mode='custom' match='exact' check='none'>
|
||||||
|
<model fallback='forbid'>qemu64</model>
|
||||||
|
</cpu>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0' model='piix3-uhci'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<graphics type='vnc' port='-1' autoport='yes'>
|
||||||
|
<listen type='address'/>
|
||||||
|
<audio id='2'/>
|
||||||
|
</graphics>
|
||||||
|
<sound model='ac97'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
||||||
|
</sound>
|
||||||
|
<sound model='ich6'>
|
||||||
|
<audio id='2'/>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
|
||||||
|
</sound>
|
||||||
|
<sound model='es1370'>
|
||||||
|
<audio id='3'/>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|
||||||
|
</sound>
|
||||||
|
<audio id='1' type='none'/>
|
||||||
|
<audio id='2' type='alsa'/>
|
||||||
|
<audio id='3' type='pulseaudio'/>
|
||||||
|
<video>
|
||||||
|
<model type='cirrus' vram='16384' heads='1' primary='yes'/>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
||||||
|
</video>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
29
tests/qemuxml2argvdata/audio-none-minimal.args
Normal file
29
tests/qemuxml2argvdata/audio-none-minimal.args
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=none \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
36
tests/qemuxml2argvdata/audio-none-minimal.xml
Normal file
36
tests/qemuxml2argvdata/audio-none-minimal.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='none'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
31
tests/qemuxml2argvdata/audio-oss-best.args
Normal file
31
tests/qemuxml2argvdata/audio-oss-best.args
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=oss \
|
||||||
|
QEMU_OSS_ADC_DEV=/dev/dsp0 \
|
||||||
|
QEMU_OSS_DAC_DEV=/dev/dsp1 \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
39
tests/qemuxml2argvdata/audio-oss-best.xml
Normal file
39
tests/qemuxml2argvdata/audio-oss-best.xml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='oss'>
|
||||||
|
<input dev='/dev/dsp0'/>
|
||||||
|
<output dev='/dev/dsp1'/>
|
||||||
|
</audio>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
29
tests/qemuxml2argvdata/audio-oss-minimal.args
Normal file
29
tests/qemuxml2argvdata/audio-oss-minimal.args
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=oss \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
36
tests/qemuxml2argvdata/audio-oss-minimal.xml
Normal file
36
tests/qemuxml2argvdata/audio-oss-minimal.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='oss'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
29
tests/qemuxml2argvdata/audio-pulseaudio-minimal.args
Normal file
29
tests/qemuxml2argvdata/audio-pulseaudio-minimal.args
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=pa \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
36
tests/qemuxml2argvdata/audio-pulseaudio-minimal.xml
Normal file
36
tests/qemuxml2argvdata/audio-pulseaudio-minimal.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='pulseaudio'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
30
tests/qemuxml2argvdata/audio-sdl-best.args
Normal file
30
tests/qemuxml2argvdata/audio-sdl-best.args
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=sdl \
|
||||||
|
SDL_AUDIODRIVER=pulseaudio \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
36
tests/qemuxml2argvdata/audio-sdl-best.xml
Normal file
36
tests/qemuxml2argvdata/audio-sdl-best.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='sdl' driver='pulseaudio'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
29
tests/qemuxml2argvdata/audio-sdl-minimal.args
Normal file
29
tests/qemuxml2argvdata/audio-sdl-minimal.args
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=sdl \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
36
tests/qemuxml2argvdata/audio-sdl-minimal.xml
Normal file
36
tests/qemuxml2argvdata/audio-sdl-minimal.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='sdl'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
29
tests/qemuxml2argvdata/audio-spice-minimal.args
Normal file
29
tests/qemuxml2argvdata/audio-spice-minimal.args
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
LC_ALL=C \
|
||||||
|
PATH=/bin \
|
||||||
|
HOME=/tmp/lib/domain--1-QEMUGuest1 \
|
||||||
|
USER=test \
|
||||||
|
LOGNAME=test \
|
||||||
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
|
QEMU_AUDIO_DRV=spice \
|
||||||
|
/usr/bin/qemu-system-i386 \
|
||||||
|
-name QEMUGuest1 \
|
||||||
|
-S \
|
||||||
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
|
-display none \
|
||||||
|
-no-user-config \
|
||||||
|
-nodefaults \
|
||||||
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||||
|
server=on,wait=off \
|
||||||
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
|
-rtc base=utc \
|
||||||
|
-no-shutdown \
|
||||||
|
-no-acpi \
|
||||||
|
-usb \
|
||||||
|
-drive file=/dev/cdrom,format=raw,if=none,id=drive-ide0-1-0,readonly=on \
|
||||||
|
-device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
|
36
tests/qemuxml2argvdata/audio-spice-minimal.xml
Normal file
36
tests/qemuxml2argvdata/audio-spice-minimal.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<currentMemory unit='KiB'>219100</currentMemory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='i686' machine='pc'>hvm</type>
|
||||||
|
<boot dev='cdrom'/>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
|
<disk type='block' device='cdrom'>
|
||||||
|
<driver name='qemu' type='raw'/>
|
||||||
|
<source dev='/dev/cdrom'/>
|
||||||
|
<target dev='hdc' bus='ide'/>
|
||||||
|
<readonly/>
|
||||||
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
||||||
|
</disk>
|
||||||
|
<controller type='usb' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='ide' index='0'>
|
||||||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
|
</controller>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
|
<input type='mouse' bus='ps2'/>
|
||||||
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='spice'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
@ -1043,6 +1043,24 @@ mymain(void)
|
|||||||
QEMU_CAPS_BOOT_STRICT,
|
QEMU_CAPS_BOOT_STRICT,
|
||||||
QEMU_CAPS_VIRTIO_BLK_SCSI);
|
QEMU_CAPS_VIRTIO_BLK_SCSI);
|
||||||
|
|
||||||
|
/* Simplest possible <audio>, all supported with ENV */
|
||||||
|
DO_TEST("audio-none-minimal", NONE);
|
||||||
|
DO_TEST("audio-alsa-minimal", NONE);
|
||||||
|
DO_TEST("audio-coreaudio-minimal", NONE);
|
||||||
|
DO_TEST_PARSE_ERROR("audio-jack-minimal", NONE);
|
||||||
|
DO_TEST("audio-oss-minimal", NONE);
|
||||||
|
DO_TEST("audio-pulseaudio-minimal", NONE);
|
||||||
|
DO_TEST("audio-sdl-minimal", NONE);
|
||||||
|
DO_TEST("audio-spice-minimal", NONE);
|
||||||
|
DO_TEST("audio-file-minimal", NONE);
|
||||||
|
|
||||||
|
/* Best <audio> still compat with old ENV */
|
||||||
|
DO_TEST("audio-oss-best", NONE);
|
||||||
|
DO_TEST("audio-sdl-best", NONE);
|
||||||
|
|
||||||
|
/* Multiple backends not supported with ENV */
|
||||||
|
DO_TEST_PARSE_ERROR("audio-many-backends", NONE);
|
||||||
|
|
||||||
DO_TEST("reboot-timeout-disabled", QEMU_CAPS_REBOOT_TIMEOUT);
|
DO_TEST("reboot-timeout-disabled", QEMU_CAPS_REBOOT_TIMEOUT);
|
||||||
DO_TEST("reboot-timeout-enabled", QEMU_CAPS_REBOOT_TIMEOUT);
|
DO_TEST("reboot-timeout-enabled", QEMU_CAPS_REBOOT_TIMEOUT);
|
||||||
DO_TEST_PARSE_ERROR("reboot-timeout-enabled", NONE);
|
DO_TEST_PARSE_ERROR("reboot-timeout-enabled", NONE);
|
||||||
|
1
tests/qemuxml2xmloutdata/audio-alsa-minimal.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-alsa-minimal.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-alsa-minimal.xml
|
1
tests/qemuxml2xmloutdata/audio-coreaudio-minimal.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-coreaudio-minimal.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-coreaudio-minimal.xml
|
1
tests/qemuxml2xmloutdata/audio-file-minimal.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-file-minimal.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-file-minimal.xml
|
1
tests/qemuxml2xmloutdata/audio-none-minimal.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-none-minimal.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-none-minimal.xml
|
1
tests/qemuxml2xmloutdata/audio-oss-best.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-oss-best.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-oss-best.xml
|
1
tests/qemuxml2xmloutdata/audio-oss-minimal.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-oss-minimal.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-oss-minimal.xml
|
1
tests/qemuxml2xmloutdata/audio-pulseaudio-minimal.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-pulseaudio-minimal.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-pulseaudio-minimal.xml
|
1
tests/qemuxml2xmloutdata/audio-sdl-best.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-sdl-best.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-sdl-best.xml
|
1
tests/qemuxml2xmloutdata/audio-sdl-minimal.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-sdl-minimal.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-sdl-minimal.xml
|
1
tests/qemuxml2xmloutdata/audio-spice-minimal.xml
Symbolic link
1
tests/qemuxml2xmloutdata/audio-spice-minimal.xml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../qemuxml2argvdata/audio-spice-minimal.xml
|
@ -1463,6 +1463,20 @@ mymain(void)
|
|||||||
DO_TEST_CAPS_LATEST("virtio-9p-createmode");
|
DO_TEST_CAPS_LATEST("virtio-9p-createmode");
|
||||||
DO_TEST("downscript", NONE);
|
DO_TEST("downscript", NONE);
|
||||||
|
|
||||||
|
/* Simplest possible <audio>, all supported with ENV */
|
||||||
|
DO_TEST("audio-none-minimal", NONE);
|
||||||
|
DO_TEST("audio-alsa-minimal", NONE);
|
||||||
|
DO_TEST("audio-coreaudio-minimal", NONE);
|
||||||
|
DO_TEST("audio-oss-minimal", NONE);
|
||||||
|
DO_TEST("audio-pulseaudio-minimal", NONE);
|
||||||
|
DO_TEST("audio-sdl-minimal", NONE);
|
||||||
|
DO_TEST("audio-spice-minimal", NONE);
|
||||||
|
DO_TEST("audio-file-minimal", NONE);
|
||||||
|
|
||||||
|
/* Best <audio> still compat with old ENV */
|
||||||
|
DO_TEST("audio-oss-best", NONE);
|
||||||
|
DO_TEST("audio-sdl-best", NONE);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (getenv("LIBVIRT_SKIP_CLEANUP") == NULL)
|
if (getenv("LIBVIRT_SKIP_CLEANUP") == NULL)
|
||||||
virFileDeleteTree(fakerootdir);
|
virFileDeleteTree(fakerootdir);
|
||||||
|
Loading…
Reference in New Issue
Block a user