[libvirt PATCH 00/18] qemu: add support for audio backend configuration

Historically we've done almost nothing with audio backend configuration. In QEMU we merely set QEMU_AUDIO_DRV to one of sdl, spice, none depending on <graphics>. We also have the somewhat crazy ability to let QEMU inherit the QEMU_AUDIO_DRV env variable from libvirtd. Fairly recently BHyve wanted audio backend config for OSS so introduced the <audio> element. We designed that to allow QEMU to later extend it, and that's what this series does. We add <audio> types for all the QEMU backends, except the Windows only DSound which isn't relevant for libvirt. The QEMU driver is updated to use this element to configure things. QEMU has many many many more env variables for configuring audio settings, which we can now support. These are all deprecated since 4.0.0 though, so we also add support for the new -audiodev argument. Unfortunately -audiodev isn't introspectable due to limits in QEMU fixed by: https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg00653.html The lack of introspection isn't critical though. We can detect existance of -audiodev by querying for '-vnc audiodev=3DNNN' argument support. We simply lack ability to determine what QEMU audio backends are compiled in. This means we have to delegate error reporting to QEMU itself, which is OK. We'll make use of the query-audiodev command at a later date to track future improvements to QEMU audiodev backends. Daniel P. Berrang=C3=A9 (18): config: cleanup some typos / baggage wrt compiler checks conf: stronger error reporting when parsing audio related params conf: don't force existance of audio child elements conf: add helper to test for sound device codec support conf: add missing iteration over audio backends conf: refactor OSS audio backend specific options conf: add coverage for all QEMU audio backend types conf: add support for audio backend for the VNC server conf: add validation of audio backend IDs conf: rename and improve virDomainDefFindAudioForSound qemu: support use of <audio> elements qemu: populate <audio> element with default config qemu: probe for -vnc audiodev property qemu: add support for generating -audiodev arguments conf: introduce support for common audio settings qemu: wire up support for common audio backend settings conf: add support for audio backend specific settings qemu: wire up support for backend specific audio settings config.h | 10 +- docs/formatdomain.rst | 322 +++++++- docs/schemas/domaincommon.rng | 384 +++++++++- src/bhyve/bhyve_command.c | 30 +- src/conf/domain_conf.c | 693 +++++++++++++++++- src/conf/domain_conf.h | 125 +++- src/conf/domain_validate.c | 67 +- src/libvirt_private.syms | 8 +- src/qemu/qemu_capabilities.c | 4 + src/qemu/qemu_capabilities.h | 3 + src/qemu/qemu_command.c | 484 +++++++++++- src/qemu/qemu_domain.c | 110 ++- src/qemu/qemu_validate.c | 136 +++- .../caps_4.2.0.aarch64.xml | 1 + .../qemucapabilitiesdata/caps_4.2.0.ppc64.xml | 1 + .../qemucapabilitiesdata/caps_4.2.0.s390x.xml | 1 + .../caps_4.2.0.x86_64.xml | 1 + .../caps_5.0.0.aarch64.xml | 1 + .../qemucapabilitiesdata/caps_5.0.0.ppc64.xml | 1 + .../caps_5.0.0.riscv64.xml | 1 + .../caps_5.0.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_5.1.0.sparc.xml | 1 + .../caps_5.1.0.x86_64.xml | 1 + .../caps_5.2.0.aarch64.xml | 1 + .../qemucapabilitiesdata/caps_5.2.0.ppc64.xml | 1 + .../caps_5.2.0.riscv64.xml | 1 + .../qemucapabilitiesdata/caps_5.2.0.s390x.xml | 1 + .../caps_5.2.0.x86_64.xml | 1 + .../caps_6.0.0.x86_64.xml | 1 + .../redefine.xml | 1 + .../disk_snapshot_redefine.xml | 1 + .../external_vm_redefine.xml | 1 + .../full_domain.xml | 1 + .../qemudomainsnapshotxml2xmlout/metadata.xml | 1 + .../ppc64-modern-bulk-result-conf.xml | 1 + .../ppc64-modern-bulk-result-live.xml | 1 + .../ppc64-modern-individual-result-conf.xml | 1 + .../ppc64-modern-individual-result-live.xml | 1 + .../x86-modern-bulk-result-conf.xml | 1 + .../x86-modern-bulk-result-live.xml | 1 + .../x86-modern-individual-add-result-conf.xml | 1 + .../x86-modern-individual-add-result-live.xml | 1 + .../x86-old-bulk-result-conf.xml | 1 + .../x86-old-bulk-result-live.xml | 1 + .../qemuhotplug-base-ccw-live+ccw-virtio.xml | 1 + ...with-2-ccw-virtio+ccw-virtio-1-reverse.xml | 1 + ...otplug-base-ccw-live-with-2-ccw-virtio.xml | 1 + ...-with-ccw-virtio+ccw-virtio-2-explicit.xml | 1 + ...-ccw-live-with-ccw-virtio+ccw-virtio-2.xml | 1 + ...uhotplug-base-ccw-live-with-ccw-virtio.xml | 1 + .../qemuhotplug-base-ccw-live.xml | 1 + ...uhotplug-base-live+disk-scsi-multipath.xml | 1 + ...+disk-scsi-wwn+disk-scsi-duplicate-wwn.xml | 1 + .../qemuhotplug-base-live+disk-scsi.xml | 1 + .../qemuhotplug-base-live+disk-usb.xml | 1 + .../qemuhotplug-base-live+disk-virtio.xml | 1 + .../qemuhotplug-base-live+guestfwd.xml | 1 + .../qemuhotplug-base-live+hostdev-pci.xml | 1 + .../qemuhotplug-base-live+interface-vdpa.xml | 1 + ...qemuhotplug-base-live+ivshmem-doorbell.xml | 1 + .../qemuhotplug-base-live+ivshmem-plain.xml | 1 + .../qemuhotplug-base-live+qemu-agent.xml | 1 + ...uhotplug-base-live+watchdog-user-alias.xml | 1 + .../qemuhotplug-base-live+watchdog.xml | 1 + .../qemuhotplug-base-live.xml | 1 + ...hotplug-base-with-scsi-controller-live.xml | 1 + ...thout-scsi-controller-live+disk-scsi-2.xml | 1 + ...g-console-compat-2-live+console-virtio.xml | 1 + .../qemuhotplug-console-compat-2-live.xml | 1 + ...uhotplug-pseries-base-live+hostdev-pci.xml | 1 + .../qemuhotplug-pseries-base-live.xml | 1 + .../full-xml2xml-out.xml | 1 + .../qemustatusxml2xmldata/backup-pull-in.xml | 1 + .../blockjob-blockdev-in.xml | 1 + .../blockjob-mirror-in.xml | 1 + .../migration-in-params-in.xml | 1 + .../migration-out-nbd-bitmaps-in.xml | 1 + .../migration-out-nbd-out.xml | 1 + .../migration-out-nbd-tls-out.xml | 1 + .../migration-out-params-in.xml | 1 + tests/qemustatusxml2xmldata/modern-in.xml | 1 + tests/qemustatusxml2xmldata/upgrade-out.xml | 1 + .../qemustatusxml2xmldata/vcpus-multi-in.xml | 1 + ...fault-cpu-kvm-virt-4.2.aarch64-latest.args | 2 +- ...fault-cpu-tcg-virt-4.2.aarch64-latest.args | 2 +- .../aarch64-features-sve.aarch64-latest.args | 2 +- tests/qemuxml2argvdata/aarch64-gic-host.xml | 1 + tests/qemuxml2argvdata/aarch64-gic-v2.xml | 1 + tests/qemuxml2argvdata/aarch64-gic-v3.xml | 1 + ...arch64-os-firmware-efi.aarch64-latest.args | 2 +- .../aarch64-tpm.aarch64-latest.args | 2 +- .../aarch64-virt-graphics.aarch64-latest.args | 4 +- .../aarch64-virt-headless.aarch64-latest.args | 2 +- tests/qemuxml2argvdata/audio-alsa-best.args | 41 ++ .../audio-alsa-best.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-alsa-best.xml | 43 ++ tests/qemuxml2argvdata/audio-alsa-full.args | 29 + tests/qemuxml2argvdata/audio-alsa-full.err | 1 + .../audio-alsa-full.x86_64-latest.args | 43 ++ tests/qemuxml2argvdata/audio-alsa-full.xml | 43 ++ .../qemuxml2argvdata/audio-alsa-minimal.args | 29 + .../audio-alsa-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-alsa-minimal.xml | 36 + .../audio-coreaudio-best.args | 41 ++ .../audio-coreaudio-best.x86_64-latest.args | 42 ++ .../qemuxml2argvdata/audio-coreaudio-best.xml | 43 ++ .../audio-coreaudio-full.args | 29 + .../qemuxml2argvdata/audio-coreaudio-full.err | 1 + .../audio-coreaudio-full.x86_64-latest.args | 43 ++ .../qemuxml2argvdata/audio-coreaudio-full.xml | 43 ++ .../audio-coreaudio-minimal.args | 29 + ...audio-coreaudio-minimal.x86_64-latest.args | 39 + .../audio-coreaudio-minimal.xml | 36 + .../audio-default-nographics.args | 29 + ...udio-default-nographics.x86_64-latest.args | 39 + .../audio-default-nographics.xml | 31 + tests/qemuxml2argvdata/audio-default-sdl.args | 31 + .../audio-default-sdl.x86_64-latest.args | 41 ++ tests/qemuxml2argvdata/audio-default-sdl.xml | 35 + .../qemuxml2argvdata/audio-default-spice.args | 30 + .../audio-default-spice.x86_64-latest.args | 40 + .../qemuxml2argvdata/audio-default-spice.xml | 35 + tests/qemuxml2argvdata/audio-default-vnc.args | 30 + .../audio-default-vnc.x86_64-latest.args | 40 + tests/qemuxml2argvdata/audio-default-vnc.xml | 35 + tests/qemuxml2argvdata/audio-file-best.args | 40 + .../audio-file-best.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-file-best.xml | 43 ++ tests/qemuxml2argvdata/audio-file-full.args | 29 + tests/qemuxml2argvdata/audio-file-full.err | 1 + .../audio-file-full.x86_64-latest.args | 43 ++ tests/qemuxml2argvdata/audio-file-full.xml | 43 ++ .../qemuxml2argvdata/audio-file-minimal.args | 29 + .../audio-file-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-file-minimal.xml | 36 + tests/qemuxml2argvdata/audio-jack-full.err | 1 + .../audio-jack-full.x86_64-latest.args | 44 ++ tests/qemuxml2argvdata/audio-jack-full.xml | 43 ++ tests/qemuxml2argvdata/audio-jack-minimal.err | 1 + .../audio-jack-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-jack-minimal.xml | 36 + .../qemuxml2argvdata/audio-many-backends.err | 1 + .../audio-many-backends.x86_64-latest.args | 46 ++ .../qemuxml2argvdata/audio-many-backends.xml | 60 ++ tests/qemuxml2argvdata/audio-none-best.args | 39 + .../audio-none-best.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-none-best.xml | 43 ++ tests/qemuxml2argvdata/audio-none-full.args | 29 + tests/qemuxml2argvdata/audio-none-full.err | 1 + .../audio-none-full.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-none-full.xml | 43 ++ .../qemuxml2argvdata/audio-none-minimal.args | 29 + .../audio-none-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-none-minimal.xml | 36 + tests/qemuxml2argvdata/audio-oss-best.args | 44 ++ .../audio-oss-best.x86_64-latest.args | 43 ++ tests/qemuxml2argvdata/audio-oss-best.xml | 43 ++ tests/qemuxml2argvdata/audio-oss-full.args | 31 + tests/qemuxml2argvdata/audio-oss-full.err | 1 + .../audio-oss-full.x86_64-latest.args | 44 ++ tests/qemuxml2argvdata/audio-oss-full.xml | 43 ++ tests/qemuxml2argvdata/audio-oss-minimal.args | 29 + .../audio-oss-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-oss-minimal.xml | 36 + .../audio-pulseaudio-best.args | 43 ++ .../audio-pulseaudio-best.x86_64-latest.args | 43 ++ .../audio-pulseaudio-best.xml | 43 ++ .../audio-pulseaudio-full.args | 29 + .../audio-pulseaudio-full.err | 1 + .../audio-pulseaudio-full.x86_64-latest.args | 44 ++ .../audio-pulseaudio-full.xml | 43 ++ .../audio-pulseaudio-minimal.args | 29 + ...udio-pulseaudio-minimal.x86_64-latest.args | 39 + .../audio-pulseaudio-minimal.xml | 36 + tests/qemuxml2argvdata/audio-sdl-best.args | 41 ++ .../audio-sdl-best.x86_64-latest.args | 43 ++ tests/qemuxml2argvdata/audio-sdl-best.xml | 43 ++ tests/qemuxml2argvdata/audio-sdl-full.args | 30 + tests/qemuxml2argvdata/audio-sdl-full.err | 1 + .../audio-sdl-full.x86_64-latest.args | 44 ++ tests/qemuxml2argvdata/audio-sdl-full.xml | 43 ++ tests/qemuxml2argvdata/audio-sdl-minimal.args | 29 + .../audio-sdl-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-sdl-minimal.xml | 36 + tests/qemuxml2argvdata/audio-spice-best.args | 39 + .../audio-spice-best.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-spice-best.xml | 43 ++ tests/qemuxml2argvdata/audio-spice-full.args | 29 + tests/qemuxml2argvdata/audio-spice-full.err | 1 + .../audio-spice-full.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-spice-full.xml | 43 ++ .../qemuxml2argvdata/audio-spice-minimal.args | 29 + .../audio-spice-minimal.x86_64-latest.args | 39 + .../qemuxml2argvdata/audio-spice-minimal.xml | 36 + .../blkdeviotune-group-num.x86_64-latest.args | 2 +- .../blkdeviotune-group-num.xml | 1 + ...blkdeviotune-max-length.x86_64-latest.args | 2 +- .../blkdeviotune-max-length.xml | 1 + .../blkdeviotune-max.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/blkdeviotune-max.xml | 1 + tests/qemuxml2argvdata/boot-floppy-q35.xml | 1 + .../channel-unix-guestfwd.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/clock-france.args | 2 +- tests/qemuxml2argvdata/clock-realtime.xml | 1 + .../clock-timer-armvtimer.aarch64-latest.args | 2 +- .../clock-timer-armvtimer.xml | 1 + .../console-virtio-unix.x86_64-latest.args | 2 +- .../controller-virtio-scsi.x86_64-latest.args | 2 +- ...-Icelake-Server-pconfig.x86_64-latest.args | 2 +- .../cpu-translation.x86_64-latest.args | 2 +- .../cpu-tsc-high-frequency.x86_64-latest.args | 2 +- .../cputune-cpuset-big-id.x86_64-latest.args | 2 +- ...ult-video-type-aarch64.aarch64-latest.args | 4 +- ...default-video-type-ppc64.ppc64-latest.args | 4 +- ...ult-video-type-riscv64.riscv64-latest.args | 2 +- ...default-video-type-s390x.s390x-latest.args | 4 +- .../disk-aio-io_uring.x86_64-latest.args | 2 +- .../disk-aio.x86_64-latest.args | 2 +- .../disk-arm-virtio-sd.aarch64-latest.args | 2 +- ...-backing-chains-noindex.x86_64-latest.args | 2 +- .../disk-cache.x86_64-latest.args | 2 +- .../disk-cdrom-bus-other.x86_64-latest.args | 2 +- ...m-empty-network-invalid.x86_64-latest.args | 2 +- .../disk-cdrom-network.x86_64-latest.args | 2 +- .../disk-cdrom-tray.x86_64-latest.args | 2 +- .../disk-cdrom.x86_64-latest.args | 2 +- .../disk-copy_on_read.x86_64-latest.args | 2 +- .../disk-detect-zeroes.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/disk-detect-zeroes.xml | 1 + .../disk-discard.x86_64-latest.args | 2 +- .../disk-error-policy-s390x.s390x-latest.args | 2 +- .../disk-error-policy.x86_64-latest.args | 2 +- .../disk-floppy-q35-2_11.x86_64-latest.args | 2 +- .../disk-floppy-q35-2_9.x86_64-latest.args | 2 +- .../disk-floppy.x86_64-latest.args | 2 +- .../disk-metadata-cache.x86_64-latest.args | 2 +- .../disk-network-gluster.x86_64-latest.args | 2 +- .../disk-network-http.x86_64-latest.args | 2 +- .../disk-network-iscsi.x86_64-latest.args | 2 +- .../disk-network-nbd.x86_64-latest.args | 2 +- .../disk-network-nfs.x86_64-latest.args | 2 +- .../disk-network-rbd.x86_64-latest.args | 2 +- .../disk-network-sheepdog.x86_64-latest.args | 2 +- ...isk-network-source-auth.x86_64-latest.args | 2 +- ...isk-network-tlsx509-nbd.x86_64-latest.args | 2 +- ...isk-network-tlsx509-vxhs.x86_64-5.0.0.args | 2 +- .../disk-nvme.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/disk-nvme.xml | 1 + .../disk-readonly-disk.x86_64-latest.args | 2 +- .../disk-scsi-device-auto.x86_64-latest.args | 2 +- .../disk-scsi.x86_64-latest.args | 2 +- .../disk-shared.x86_64-latest.args | 2 +- .../disk-slices.x86_64-latest.args | 2 +- .../disk-transient.x86_64-latest.args | 2 +- .../disk-vhostuser.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/disk-virtio-queues.xml | 1 + ...irtio-scsi-reservations.x86_64-latest.args | 2 +- .../disk-virtio-scsi-reservations.xml | 1 + tests/qemuxml2argvdata/downscript.xml | 1 + .../qemuxml2argvdata/encrypted-disk-usage.xml | 1 + .../eoi-disabled.x86_64-latest.args | 2 +- .../eoi-enabled.x86_64-latest.args | 2 +- .../fd-memory-no-numa-topology.xml | 1 + .../fd-memory-numa-topology.xml | 1 + .../fd-memory-numa-topology2.xml | 1 + .../fd-memory-numa-topology3.xml | 1 + .../fips-enabled.x86_64-5.1.0.args | 2 +- .../fips-enabled.x86_64-latest.args | 2 +- .../floppy-drive-fat.x86_64-latest.args | 2 +- .../fs9p-ccw.s390x-latest.args | 2 +- .../qemuxml2argvdata/fs9p.x86_64-latest.args | 2 +- .../genid-auto.x86_64-latest.args | 2 +- .../qemuxml2argvdata/genid.x86_64-latest.args | 2 +- ...pice-gl-auto-rendernode.x86_64-latest.args | 2 +- .../qemuxml2argvdata/graphics-spice-sasl.args | 2 +- tests/qemuxml2argvdata/graphics-vnc-sasl.args | 2 +- ...graphics-vnc-tls-secret.x86_64-latest.args | 4 +- tests/qemuxml2argvdata/graphics-vnc-tls.args | 2 +- .../graphics-vnc-tls.x86_64-2.4.0.args | 2 +- .../graphics-vnc-tls.x86_64-latest.args | 4 +- ...tdev-mdev-display-ramfb.x86_64-latest.args | 4 +- ...play-spice-egl-headless.x86_64-latest.args | 2 +- ...ev-display-spice-opengl.x86_64-latest.args | 2 +- ...isplay-vnc-egl-headless.x86_64-latest.args | 4 +- ...ostdev-mdev-display-vnc.x86_64-latest.args | 4 +- .../hostdev-scsi-lsi.x86_64-latest.args | 2 +- ...ostdev-scsi-virtio-scsi.x86_64-latest.args | 2 +- ...tdev-subsys-mdev-vfio-ap.s390x-latest.args | 2 +- ...ubsys-mdev-vfio-ccw-boot.s390x-latest.args | 2 +- .../qemuxml2argvdata/hugepages-default-2M.xml | 1 + .../hugepages-default-system-size.xml | 1 + .../qemuxml2argvdata/hugepages-memaccess.xml | 1 + .../qemuxml2argvdata/hugepages-memaccess2.xml | 1 + .../hugepages-memaccess3.x86_64-latest.args | 2 +- .../hugepages-numa-default-dimm.xml | 1 + .../hugepages-nvdimm.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/hugepages-nvdimm.xml | 1 + .../hyperv-off.x86_64-latest.args | 2 +- .../hyperv-panic.x86_64-latest.args | 2 +- .../hyperv-stimer-direct.x86_64-latest.args | 2 +- .../hyperv.x86_64-latest.args | 2 +- .../intel-iommu-aw-bits.x86_64-latest.args | 2 +- .../qemuxml2argvdata/intel-iommu-aw-bits.xml | 1 + ...ntel-iommu-caching-mode.x86_64-latest.args | 2 +- .../intel-iommu-caching-mode.xml | 1 + ...ntel-iommu-device-iotlb.x86_64-latest.args | 2 +- .../intel-iommu-device-iotlb.xml | 1 + .../intel-iommu-eim.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/intel-iommu-eim.xml | 1 + .../intel-iommu.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/intel-iommu.xml | 1 + .../iommu-smmuv3.aarch64-latest.args | 2 +- ...othreads-virtio-scsi-ccw.s390x-latest.args | 2 +- ...threads-virtio-scsi-pci.x86_64-latest.args | 2 +- .../kvmclock+eoi-disabled.x86_64-latest.args | 2 +- ...luks-disks-source-qcow2.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/luks-disks.xml | 1 + ...memory-default-hugepage.x86_64-latest.args | 2 +- .../memfd-memory-default-hugepage.xml | 1 + .../memfd-memory-numa.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/memfd-memory-numa.xml | 1 + ...y-hotplug-nvdimm-access.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-access.xml | 1 + ...ry-hotplug-nvdimm-align.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-align.xml | 1 + ...ry-hotplug-nvdimm-label.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-label.xml | 1 + ...ory-hotplug-nvdimm-pmem.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-pmem.xml | 1 + ...hotplug-nvdimm-readonly.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-readonly.xml | 1 + .../memory-hotplug-nvdimm.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm.xml | 1 + .../memory-hotplug-ppc64-nonuma.xml | 1 + ...ory-hotplug-virtio-pmem.x86_64-latest.args | 2 +- .../memory-hotplug-virtio-pmem.xml | 1 + .../mlock-off.x86_64-latest.args | 2 +- .../mlock-on.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/net-user-addr.xml | 1 + .../net-vdpa.x86_64-latest.args | 2 +- .../net-vhostuser.x86_64-latest.args | 2 +- .../net-virtio-teaming-hostdev.xml | 1 + .../numatune-hmat.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/numatune-hmat.xml | 1 + tests/qemuxml2argvdata/numatune-no-vcpu.xml | 1 + .../os-firmware-bios.x86_64-latest.args | 2 +- ...os-firmware-efi-secboot.x86_64-latest.args | 2 +- .../os-firmware-efi.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/pages-dimm-discard.xml | 1 + .../pages-discard-hugepages.xml | 1 + tests/qemuxml2argvdata/pages-discard.xml | 1 + .../parallel-unix-chardev.x86_64-latest.args | 2 +- ...cie-root-port-nohotplug.x86_64-latest.args | 2 +- ...ault-cpu-kvm-pseries-2.7.ppc64-latest.args | 2 +- ...ault-cpu-kvm-pseries-3.1.ppc64-latest.args | 2 +- ...ault-cpu-kvm-pseries-4.2.ppc64-latest.args | 2 +- ...ault-cpu-tcg-pseries-2.7.ppc64-latest.args | 2 +- ...ault-cpu-tcg-pseries-3.1.ppc64-latest.args | 2 +- ...ault-cpu-tcg-pseries-4.2.ppc64-latest.args | 2 +- .../ppc64-pseries-graphics.ppc64-latest.args | 4 +- .../ppc64-pseries-headless.ppc64-latest.args | 2 +- .../ppc64-tpmproxy-single.ppc64-latest.args | 2 +- .../ppc64-tpmproxy-with-tpm.ppc64-latest.args | 2 +- .../pv-spinlock-disabled.x86_64-latest.args | 2 +- .../pv-spinlock-enabled.x86_64-latest.args | 2 +- .../qemu-ns.x86_64-latest.args | 2 +- .../riscv64-virt-graphics.riscv64-latest.args | 4 +- .../riscv64-virt-headless.riscv64-latest.args | 2 +- ...t-cpu-kvm-ccw-virtio-2.7.s390x-latest.args | 2 +- ...t-cpu-kvm-ccw-virtio-4.2.s390x-latest.args | 2 +- ...t-cpu-tcg-ccw-virtio-2.7.s390x-latest.args | 2 +- ...t-cpu-tcg-ccw-virtio-4.2.s390x-latest.args | 2 +- .../s390x-ccw-graphics.s390x-latest.args | 4 +- .../s390x-ccw-headless.s390x-latest.args | 2 +- .../serial-tcp-tlsx509-chardev-notls.xml | 1 + .../serial-unix-chardev.x86_64-latest.args | 2 +- ...rtcard-passthrough-unix.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/smbios-type-fwcfg.xml | 1 + .../tpm-emulator-spapr.ppc64-latest.args | 2 +- .../tpm-emulator-tpm2-enc.x86_64-latest.args | 2 +- ...pm-emulator-tpm2-pstate.x86_64-latest.args | 2 +- .../tpm-emulator-tpm2.x86_64-latest.args | 2 +- .../tpm-emulator.x86_64-latest.args | 2 +- .../tpm-passthrough-crb.x86_64-latest.args | 2 +- .../tpm-passthrough.x86_64-latest.args | 2 +- .../tseg-explicit-size.x86_64-latest.args | 2 +- .../usb-redir-unix.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/user-aliases.xml | 1 + .../vcpu-placement-static.xml | 1 + ...vhost-user-fs-fd-memory.x86_64-latest.args | 2 +- .../vhost-user-fs-fd-memory.xml | 1 + ...vhost-user-fs-hugepages.x86_64-latest.args | 2 +- .../vhost-user-fs-hugepages.xml | 1 + ...host-user-gpu-secondary.x86_64-latest.args | 2 +- .../vhost-user-vga.x86_64-latest.args | 2 +- .../vhost-vsock-auto.x86_64-latest.args | 2 +- .../vhost-vsock-ccw-auto.s390x-latest.args | 2 +- .../vhost-vsock-ccw-iommu.s390x-latest.args | 2 +- .../vhost-vsock-ccw-iommu.xml | 1 + .../vhost-vsock-ccw.s390x-latest.args | 2 +- tests/qemuxml2argvdata/vhost-vsock-ccw.xml | 1 + .../vhost-vsock.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/vhost-vsock.xml | 1 + ...eo-bochs-display-device.x86_64-latest.args | 2 +- ...video-qxl-device-vram64.x86_64-latest.args | 2 +- .../qemuxml2argvdata/video-qxl-resolution.xml | 1 + ...o-qxl-sec-device-vram64.x86_64-latest.args | 2 +- ...eo-ramfb-display-device.x86_64-latest.args | 2 +- .../virtio-9p-createmode.x86_64-latest.args | 2 +- .../virtio-9p-multidevs.x86_64-latest.args | 2 +- ...virtio-non-transitional.x86_64-latest.args | 2 +- ...-options-controller-ats.x86_64-latest.args | 2 +- ...ptions-controller-iommu.x86_64-latest.args | 2 +- ...tions-controller-packed.x86_64-latest.args | 2 +- ...virtio-options-disk-ats.x86_64-latest.args | 2 +- ...rtio-options-disk-iommu.x86_64-latest.args | 2 +- ...tio-options-disk-packed.x86_64-latest.args | 2 +- .../virtio-options-fs-ats.x86_64-latest.args | 2 +- ...virtio-options-fs-iommu.x86_64-latest.args | 2 +- ...irtio-options-fs-packed.x86_64-latest.args | 2 +- ...irtio-options-input-ats.x86_64-latest.args | 2 +- ...tio-options-input-iommu.x86_64-latest.args | 2 +- ...io-options-input-packed.x86_64-latest.args | 2 +- ...-options-memballoon-ats.x86_64-latest.args | 2 +- ...loon-freepage-reporting.x86_64-latest.args | 2 +- ...ptions-memballoon-iommu.x86_64-latest.args | 2 +- ...tions-memballoon-packed.x86_64-latest.args | 2 +- .../virtio-options-net-ats.x86_64-latest.args | 2 +- ...irtio-options-net-iommu.x86_64-latest.args | 2 +- ...rtio-options-net-packed.x86_64-latest.args | 2 +- .../virtio-options-rng-ats.x86_64-latest.args | 2 +- ...irtio-options-rng-iommu.x86_64-latest.args | 2 +- ...rtio-options-rng-packed.x86_64-latest.args | 2 +- ...irtio-options-video-ats.x86_64-latest.args | 2 +- ...tio-options-video-iommu.x86_64-latest.args | 2 +- ...io-options-video-packed.x86_64-latest.args | 2 +- .../virtio-options.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/virtio-options.xml | 1 + .../virtio-rng-builtin.x86_64-latest.args | 2 +- .../virtio-rng-egd-unix.x86_64-latest.args | 2 +- .../virtio-transitional.x86_64-latest.args | 2 +- ...-default-cpu-kvm-pc-4.2.x86_64-latest.args | 2 +- ...default-cpu-kvm-q35-4.2.x86_64-latest.args | 2 +- ...-default-cpu-tcg-pc-4.2.x86_64-latest.args | 2 +- ...default-cpu-tcg-q35-4.2.x86_64-latest.args | 2 +- .../x86_64-pc-graphics.x86_64-latest.args | 4 +- .../x86_64-pc-headless.x86_64-latest.args | 2 +- .../x86_64-q35-graphics.x86_64-latest.args | 4 +- .../x86_64-q35-headless.x86_64-latest.args | 2 +- tests/qemuxml2argvtest.c | 90 +++ .../aarch64-aavmf-virtio-mmio.xml | 1 + ...efault-cpu-kvm-virt-4.2.aarch64-latest.xml | 1 + ...efault-cpu-tcg-virt-4.2.aarch64-latest.xml | 1 + .../aarch64-features-sve.aarch64-latest.xml | 1 + .../aarch64-gic-none-tcg.xml | 1 + ...aarch64-os-firmware-efi.aarch64-latest.xml | 1 + .../qemuxml2xmloutdata/aarch64-pci-serial.xml | 1 + .../aarch64-traditional-pci.xml | 1 + .../aarch64-video-default.xml | 1 + .../aarch64-video-virtio-gpu-pci.xml | 1 + .../aarch64-virt-graphics.aarch64-latest.xml | 1 + .../aarch64-virt-headless.aarch64-latest.xml | 1 + .../aarch64-virtio-pci-default.xml | 1 + .../aarch64-virtio-pci-manual-addresses.xml | 1 + tests/qemuxml2xmloutdata/acpi-table.xml | 1 + tests/qemuxml2xmloutdata/audio-alsa-best.xml | 1 + tests/qemuxml2xmloutdata/audio-alsa-full.xml | 1 + .../qemuxml2xmloutdata/audio-alsa-minimal.xml | 1 + .../audio-coreaudio-best.xml | 1 + .../audio-coreaudio-full.xml | 1 + .../audio-coreaudio-minimal.xml | 1 + ...audio-default-nographics.x86_64-latest.xml | 39 + .../audio-default-nographics.xml | 1 + .../audio-default-sdl.x86_64-latest.xml | 44 ++ .../qemuxml2xmloutdata/audio-default-sdl.xml | 1 + .../audio-default-spice.x86_64-latest.xml | 46 ++ .../audio-default-spice.xml | 1 + .../audio-default-vnc.x86_64-latest.xml | 46 ++ .../qemuxml2xmloutdata/audio-default-vnc.xml | 1 + tests/qemuxml2xmloutdata/audio-file-best.xml | 1 + tests/qemuxml2xmloutdata/audio-file-full.xml | 1 + .../qemuxml2xmloutdata/audio-file-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-jack-full.xml | 1 + .../audio-many-backends.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/audio-none-best.xml | 1 + tests/qemuxml2xmloutdata/audio-none-full.xml | 1 + .../qemuxml2xmloutdata/audio-none-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-oss-best.xml | 1 + tests/qemuxml2xmloutdata/audio-oss-full.xml | 1 + .../qemuxml2xmloutdata/audio-oss-minimal.xml | 1 + .../audio-pulseaudio-best.xml | 1 + .../audio-pulseaudio-full.xml | 1 + .../audio-pulseaudio-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-sdl-best.xml | 1 + tests/qemuxml2xmloutdata/audio-sdl-full.xml | 1 + .../qemuxml2xmloutdata/audio-sdl-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-spice-best.xml | 1 + tests/qemuxml2xmloutdata/audio-spice-full.xml | 1 + .../audio-spice-minimal.xml | 1 + tests/qemuxml2xmloutdata/autoindex.xml | 1 + .../balloon-device-auto.xml | 1 + .../balloon-device-period.xml | 1 + .../bios-nvram-os-interleave.xml | 1 + tests/qemuxml2xmloutdata/bios-nvram.xml | 1 + .../blkdeviotune.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/blkiotune-device.xml | 1 + tests/qemuxml2xmloutdata/blkiotune.xml | 1 + tests/qemuxml2xmloutdata/boot-cdrom.xml | 1 + tests/qemuxml2xmloutdata/boot-floppy.xml | 1 + .../boot-menu-disable-with-timeout.xml | 1 + .../qemuxml2xmloutdata/boot-menu-disable.xml | 1 + .../boot-menu-enable-with-timeout.xml | 1 + tests/qemuxml2xmloutdata/boot-multi.xml | 1 + tests/qemuxml2xmloutdata/boot-network.xml | 1 + tests/qemuxml2xmloutdata/boot-order.xml | 1 + tests/qemuxml2xmloutdata/channel-guestfwd.xml | 1 + .../channel-unix-source-path-active.xml | 1 + .../channel-unix-source-path-inactive.xml | 1 + .../channel-virtio-auto.xml | 1 + .../channel-virtio-state-active.xml | 1 + .../channel-virtio-state-inactive.xml | 1 + tests/qemuxml2xmloutdata/channel-virtio.xml | 1 + tests/qemuxml2xmloutdata/chardev-label.xml | 1 + tests/qemuxml2xmloutdata/clock-catchup.xml | 1 + tests/qemuxml2xmloutdata/clock-localtime.xml | 1 + .../clock-timer-hyperv-rtc.xml | 1 + tests/qemuxml2xmloutdata/clock-utc.xml | 1 + .../console-compat-auto.xml | 1 + tests/qemuxml2xmloutdata/console-compat.xml | 1 + tests/qemuxml2xmloutdata/console-compat2.xml | 1 + .../console-virtio-many.xml | 1 + tests/qemuxml2xmloutdata/console-virtio.xml | 1 + .../controller-usb-order.xml | 1 + .../controller-virtio-scsi.xml | 1 + ...pu-Icelake-Server-pconfig.x86_64-3.1.0.xml | 1 + ...u-Icelake-Server-pconfig.x86_64-latest.xml | 1 + .../cpu-check-default-none.xml | 1 + .../cpu-check-default-none2.xml | 1 + .../cpu-check-default-partial.xml | 1 + .../cpu-check-default-partial2.xml | 1 + tests/qemuxml2xmloutdata/cpu-check-full.xml | 1 + tests/qemuxml2xmloutdata/cpu-check-none.xml | 1 + .../qemuxml2xmloutdata/cpu-check-partial.xml | 1 + tests/qemuxml2xmloutdata/cpu-empty.xml | 1 + tests/qemuxml2xmloutdata/cpu-eoi-disabled.xml | 1 + tests/qemuxml2xmloutdata/cpu-eoi-enabled.xml | 1 + .../qemuxml2xmloutdata/cpu-host-kvmclock.xml | 1 + .../cpu-host-model-features.xml | 1 + .../cpu-host-model-vendor.xml | 1 + .../cpu-host-passthrough-features.xml | 1 + tests/qemuxml2xmloutdata/cpu-kvmclock.xml | 1 + .../qemuxml2xmloutdata/cpu-numa-disjoint.xml | 1 + .../cpu-numa-disordered.xml | 1 + .../qemuxml2xmloutdata/cpu-numa-memshared.xml | 1 + .../cpu-numa-no-memory-element.xml | 1 + tests/qemuxml2xmloutdata/cpu-numa1.xml | 1 + tests/qemuxml2xmloutdata/cpu-numa2.xml | 1 + .../cputune-cpuset-big-id.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/cputune-iothreads.xml | 1 + .../cputune-iothreadsched-zeropriority.xml | 1 + .../cputune-iothreadsched.xml | 1 + tests/qemuxml2xmloutdata/cputune-numatune.xml | 1 + .../cputune-zero-shares.xml | 1 + tests/qemuxml2xmloutdata/cputune.xml | 1 + .../default-kvm-host-arch.xml | 1 + .../default-qemu-host-arch.xml | 1 + ...ault-video-type-aarch64.aarch64-latest.xml | 1 + .../default-video-type-ppc64.ppc64-latest.xml | 1 + ...ault-video-type-riscv64.riscv64-latest.xml | 1 + .../default-video-type-s390x.s390x-latest.xml | 1 + .../default-video-type-x86_64-caps-test-0.xml | 1 + .../default-video-type-x86_64-caps-test-1.xml | 1 + .../disk-active-commit-active.xml | 1 + .../disk-active-commit-inactive.xml | 1 + .../disk-aio-io_uring.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-aio.xml | 1 + .../disk-arm-virtio-sd.aarch64-latest.xml | 1 + .../disk-backing-chains-active.xml | 1 + .../disk-backing-chains-inactive.xml | 1 + .../disk-backing-chains-index-active.xml | 1 + .../disk-backing-chains-index-inactive.xml | 1 + .../disk-backing-chains-noindex.xml | 1 + tests/qemuxml2xmloutdata/disk-boot-cdrom.xml | 1 + tests/qemuxml2xmloutdata/disk-boot-disk.xml | 1 + .../disk-cache.x86_64-1.5.3.xml | 1 + .../disk-cache.x86_64-2.12.0.xml | 1 + .../disk-cache.x86_64-2.6.0.xml | 1 + .../disk-cache.x86_64-2.7.0.xml | 1 + .../disk-cache.x86_64-latest.xml | 1 + .../disk-cdrom-bus-other.xml | 1 + ...om-empty-network-invalid.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-cdrom.xml | 1 + .../qemuxml2xmloutdata/disk-copy_on_read.xml | 1 + .../disk-discard.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/disk-error-policy.xml | 1 + tests/qemuxml2xmloutdata/disk-floppy.xml | 1 + tests/qemuxml2xmloutdata/disk-fmt-qcow.xml | 1 + .../disk-metadata-cache.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/disk-mirror-active.xml | 1 + .../disk-mirror-inactive.xml | 1 + .../disk-mirror-old-active.xml | 1 + .../disk-mirror-old-inactive.xml | 1 + .../disk-network-gluster.xml | 1 + .../disk-network-http.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/disk-network-iscsi.xml | 1 + tests/qemuxml2xmloutdata/disk-network-nbd.xml | 1 + ...isk-network-nfs-inactive.x86_64-latest.xml | 1 + .../disk-network-nfs.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-network-rbd.xml | 1 + .../disk-network-sheepdog.xml | 1 + .../disk-network-source-auth.xml | 1 + .../disk-network-tlsx509-nbd.xml | 1 + .../disk-network-tlsx509-vxhs.xml | 1 + .../qemuxml2xmloutdata/disk-network-vxhs.xml | 1 + .../disk-scsi-device-auto.xml | 1 + .../qemuxml2xmloutdata/disk-scsi-disk-vpd.xml | 1 + .../disk-scsi-lun-passthrough-sgio.xml | 1 + .../disk-scsi.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-serial.xml | 1 + .../disk-slices.x86_64-latest.xml | 1 + .../disk-source-pool-mode.xml | 1 + tests/qemuxml2xmloutdata/disk-source-pool.xml | 1 + tests/qemuxml2xmloutdata/disk-usb-device.xml | 1 + .../disk-vhostuser.x86_64-latest.xml | 1 + .../disk-virtio-s390-zpci.xml | 1 + tests/qemuxml2xmloutdata/disk-virtio.xml | 1 + tests/qemuxml2xmloutdata/encrypted-disk.xml | 1 + tests/qemuxml2xmloutdata/eoi-disabled.xml | 1 + tests/qemuxml2xmloutdata/eoi-enabled.xml | 1 + tests/qemuxml2xmloutdata/event_idx.xml | 1 + tests/qemuxml2xmloutdata/floppy-drive-fat.xml | 1 + .../genid-active.x86_64-latest.xml | 1 + .../genid-auto-active.x86_64-latest.xml | 1 + .../genid-auto-inactive.x86_64-latest.xml | 1 + .../genid-inactive.x86_64-latest.xml | 1 + .../graphics-listen-network.xml | 1 + .../graphics-listen-network2.xml | 1 + .../graphics-spice-auto-socket-cfg.xml | 1 + .../graphics-spice-auto-socket.xml | 1 + .../graphics-spice-compression.xml | 1 + .../graphics-spice-egl-headless.xml | 1 + .../graphics-spice-qxl-vga.xml | 1 + .../graphics-spice-socket.xml | 1 + .../graphics-spice-timeout.xml | 1 + tests/qemuxml2xmloutdata/graphics-spice.xml | 1 + .../graphics-vnc-auto-socket-cfg.xml | 1 + .../graphics-vnc-auto-socket.xml | 1 + .../graphics-vnc-egl-headless.xml | 1 + .../graphics-vnc-no-listen-attr.xml | 1 + ...ics-vnc-remove-generated-socket-active.xml | 1 + ...s-vnc-remove-generated-socket-inactive.xml | 1 + .../qemuxml2xmloutdata/graphics-vnc-sasl.xml | 1 + .../graphics-vnc-socket.xml | 1 + tests/qemuxml2xmloutdata/graphics-vnc-tls.xml | 1 + .../graphics-vnc-websocket.xml | 1 + tests/qemuxml2xmloutdata/graphics-vnc.xml | 1 + ...stdev-mdev-display-ramfb.x86_64-latest.xml | 1 + .../hostdev-mdev-display.xml | 1 + .../hostdev-mdev-precreated.xml | 1 + .../hostdev-pci-address-unassigned.xml | 1 + .../hostdev-pci-address.xml | 1 + .../hostdev-pci-multifunction.xml | 1 + .../hostdev-scsi-autogen-address.xml | 1 + .../hostdev-scsi-large-unit.xml | 1 + tests/qemuxml2xmloutdata/hostdev-scsi-lsi.xml | 1 + .../qemuxml2xmloutdata/hostdev-scsi-rawio.xml | 1 + .../qemuxml2xmloutdata/hostdev-scsi-sgio.xml | 1 + .../hostdev-scsi-shareable.xml | 1 + .../hostdev-scsi-vhost-scsi-ccw.xml | 1 + .../hostdev-scsi-vhost-scsi-pci.xml | 1 + .../hostdev-scsi-vhost-scsi-pcie.xml | 1 + .../hostdev-scsi-virtio-scsi.xml | 1 + .../hostdev-subsys-mdev-vfio-ap.xml | 1 + ...subsys-mdev-vfio-ccw-boot.s390x-latest.xml | 1 + .../hostdev-subsys-mdev-vfio-ccw.xml | 1 + .../hostdev-usb-address.xml | 1 + .../hostdev-vfio-zpci-autogenerate-fids.xml | 1 + .../hostdev-vfio-zpci-autogenerate-uids.xml | 1 + .../hostdev-vfio-zpci-autogenerate.xml | 1 + .../hostdev-vfio-zpci-boundaries.xml | 1 + .../hostdev-vfio-zpci-ccw-memballoon.xml | 1 + .../hostdev-vfio-zpci-multidomain-many.xml | 1 + .../qemuxml2xmloutdata/hostdev-vfio-zpci.xml | 1 + tests/qemuxml2xmloutdata/hostdev-vfio.xml | 1 + .../qemuxml2xmloutdata/hugepages-default.xml | 1 + .../qemuxml2xmloutdata/hugepages-nodeset.xml | 1 + .../hugepages-numa-default-2M.xml | 1 + .../hugepages-numa-nodeset-part.xml | 1 + .../hugepages-numa-nodeset.xml | 1 + tests/qemuxml2xmloutdata/hugepages-shared.xml | 1 + tests/qemuxml2xmloutdata/hyperv-off.xml | 1 + tests/qemuxml2xmloutdata/hyperv-panic.xml | 1 + .../hyperv-stimer-direct.xml | 1 + tests/qemuxml2xmloutdata/hyperv.xml | 1 + tests/qemuxml2xmloutdata/input-usbmouse.xml | 1 + tests/qemuxml2xmloutdata/input-usbtablet.xml | 1 + tests/qemuxml2xmloutdata/input-virtio-ccw.xml | 1 + .../intel-iommu.x86_64-2.6.0.xml | 1 + tests/qemuxml2xmloutdata/interface-driver.xml | 1 + tests/qemuxml2xmloutdata/interface-server.xml | 1 + .../iommu-smmuv3.aarch64-latest.xml | 1 + .../iothreads-disk-virtio-ccw.xml | 1 + tests/qemuxml2xmloutdata/iothreads-disk.xml | 1 + .../iothreads-ids-partial.xml | 1 + tests/qemuxml2xmloutdata/iothreads-ids.xml | 1 + .../iothreads-virtio-scsi-ccw.xml | 1 + .../iothreads-virtio-scsi-pci.xml | 1 + tests/qemuxml2xmloutdata/iothreads.xml | 1 + tests/qemuxml2xmloutdata/kvm-features-off.xml | 1 + tests/qemuxml2xmloutdata/kvm-features.xml | 1 + tests/qemuxml2xmloutdata/kvmclock.xml | 1 + tests/qemuxml2xmloutdata/lease.xml | 1 + .../luks-disks-source-qcow2.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/luks-disks-source.xml | 1 + .../mach-virt-console-virtio.xml | 1 + .../mach-virt-serial-compat.xml | 1 + .../mach-virt-serial-pci.xml | 1 + .../mach-virt-serial-usb.xml | 1 + tests/qemuxml2xmloutdata/machine-core-off.xml | 1 + tests/qemuxml2xmloutdata/machine-core-on.xml | 1 + ...hine-loadparm-multiple-disks-nets-s390.xml | 1 + .../memory-hotplug-dimm.xml | 1 + ...memory-hotplug-nvdimm-ppc64-abi-update.xml | 1 + .../memory-hotplug-nvdimm-ppc64.xml | 1 + ...memory-hotplug-ppc64-nonuma-abi-update.xml | 1 + tests/qemuxml2xmloutdata/memory-hotplug.xml | 1 + .../qemuxml2xmloutdata/memorybacking-set.xml | 1 + .../memorybacking-unset.xml | 1 + .../qemuxml2xmloutdata/memtune-unlimited.xml | 1 + tests/qemuxml2xmloutdata/memtune.xml | 1 + .../qemuxml2xmloutdata/metadata-duplicate.xml | 1 + tests/qemuxml2xmloutdata/metadata.xml | 1 + tests/qemuxml2xmloutdata/migrate.xml | 1 + tests/qemuxml2xmloutdata/minimal.xml | 1 + tests/qemuxml2xmloutdata/misc-acpi.xml | 1 + tests/qemuxml2xmloutdata/misc-disable-s3.xml | 1 + .../misc-disable-suspends.xml | 1 + tests/qemuxml2xmloutdata/misc-enable-s4.xml | 1 + tests/qemuxml2xmloutdata/misc-no-reboot.xml | 1 + tests/qemuxml2xmloutdata/misc-uuid.xml | 1 + tests/qemuxml2xmloutdata/net-bandwidth.xml | 1 + tests/qemuxml2xmloutdata/net-bandwidth2.xml | 1 + tests/qemuxml2xmloutdata/net-coalesce.xml | 1 + tests/qemuxml2xmloutdata/net-eth-hostip.xml | 1 + tests/qemuxml2xmloutdata/net-eth-ifname.xml | 1 + .../net-eth-unmanaged-tap.xml | 1 + tests/qemuxml2xmloutdata/net-eth.xml | 1 + .../net-hostdev-bootorder.xml | 1 + tests/qemuxml2xmloutdata/net-hostdev-vfio.xml | 1 + tests/qemuxml2xmloutdata/net-hostdev.xml | 1 + .../net-isolated-port.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/net-many-models.xml | 1 + tests/qemuxml2xmloutdata/net-midonet.xml | 1 + tests/qemuxml2xmloutdata/net-mtu.xml | 1 + tests/qemuxml2xmloutdata/net-openvswitch.xml | 1 + tests/qemuxml2xmloutdata/net-udp.xml | 1 + tests/qemuxml2xmloutdata/net-user.xml | 1 + tests/qemuxml2xmloutdata/net-vdpa.xml | 1 + tests/qemuxml2xmloutdata/net-vhostuser.xml | 1 + .../qemuxml2xmloutdata/net-virtio-device.xml | 1 + .../net-virtio-disable-offloads.xml | 1 + .../net-virtio-network-portgroup.xml | 1 + .../net-virtio-rxtxqueuesize.xml | 1 + .../net-virtio-teaming-network.xml | 1 + .../qemuxml2xmloutdata/net-virtio-teaming.xml | 1 + tests/qemuxml2xmloutdata/net-virtio.xml | 1 + tests/qemuxml2xmloutdata/nosharepages.xml | 1 + .../numad-auto-memory-vcpu-cpuset.xml | 1 + ...to-memory-vcpu-no-cpuset-and-placement.xml | 1 + .../numad-auto-vcpu-no-numatune.xml | 1 + .../numad-static-vcpu-no-numatune.xml | 1 + .../numatune-auto-prefer.xml | 1 + .../qemuxml2xmloutdata/numatune-distances.xml | 1 + .../numatune-memnode-no-memory.xml | 1 + tests/qemuxml2xmloutdata/numatune-memnode.xml | 1 + ...avcpus-topology-mismatch.x86_64-latest.xml | 1 + .../os-firmware-bios.x86_64-latest.xml | 1 + .../os-firmware-efi-secboot.x86_64-latest.xml | 1 + .../os-firmware-efi.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/panic-double.xml | 1 + tests/qemuxml2xmloutdata/panic-isa.xml | 1 + tests/qemuxml2xmloutdata/panic-no-address.xml | 1 + tests/qemuxml2xmloutdata/panic-pseries.xml | 1 + tests/qemuxml2xmloutdata/panic.xml | 1 + tests/qemuxml2xmloutdata/pci-autoadd-addr.xml | 1 + tests/qemuxml2xmloutdata/pci-autoadd-idx.xml | 1 + .../qemuxml2xmloutdata/pci-autofill-addr.xml | 1 + .../pci-bridge-many-disks.xml | 1 + tests/qemuxml2xmloutdata/pci-bridge.xml | 1 + tests/qemuxml2xmloutdata/pci-expander-bus.xml | 1 + tests/qemuxml2xmloutdata/pci-many.xml | 1 + .../pci-rom-disabled-invalid.xml | 1 + tests/qemuxml2xmloutdata/pci-rom-disabled.xml | 1 + tests/qemuxml2xmloutdata/pci-rom.xml | 1 + .../pci-serial-dev-chardev.xml | 1 + .../qemuxml2xmloutdata/pcie-expander-bus.xml | 1 + .../pcie-root-port-model-generic.xml | 1 + .../pcie-root-port-model-ioh3420.xml | 1 + ...pcie-root-port-nohotplug.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/pcie-root-port.xml | 1 + tests/qemuxml2xmloutdata/pcie-root.xml | 1 + .../pcie-switch-downstream-port.xml | 1 + .../pcie-switch-upstream-port.xml | 1 + tests/qemuxml2xmloutdata/pcihole64-gib.xml | 1 + tests/qemuxml2xmloutdata/pcihole64-none.xml | 1 + tests/qemuxml2xmloutdata/pcihole64-q35.xml | 1 + tests/qemuxml2xmloutdata/pcihole64.xml | 1 + tests/qemuxml2xmloutdata/pmu-feature-off.xml | 1 + tests/qemuxml2xmloutdata/pmu-feature.xml | 1 + ...fault-cpu-kvm-pseries-2.7.ppc64-latest.xml | 1 + ...fault-cpu-kvm-pseries-3.1.ppc64-latest.xml | 1 + ...fault-cpu-kvm-pseries-4.2.ppc64-latest.xml | 1 + ...fault-cpu-tcg-pseries-2.7.ppc64-latest.xml | 1 + ...fault-cpu-tcg-pseries-3.1.ppc64-latest.xml | 1 + ...fault-cpu-tcg-pseries-4.2.ppc64-latest.xml | 1 + .../ppc64-pseries-graphics.ppc64-latest.xml | 1 + .../ppc64-pseries-headless.ppc64-latest.xml | 1 + .../ppc64-tpmproxy-single.ppc64-latest.xml | 1 + .../ppc64-tpmproxy-with-tpm.ppc64-latest.xml | 1 + .../ppc64-usb-controller-legacy.xml | 1 + .../ppc64-usb-controller.xml | 1 + .../pseries-console-virtio.xml | 1 + .../pseries-cpu-compat-power9.xml | 1 + .../qemuxml2xmloutdata/pseries-cpu-compat.xml | 1 + .../qemuxml2xmloutdata/pseries-cpu-exact.xml | 1 + tests/qemuxml2xmloutdata/pseries-features.xml | 1 + .../qemuxml2xmloutdata/pseries-hostdevs-1.xml | 1 + .../qemuxml2xmloutdata/pseries-hostdevs-2.xml | 1 + .../qemuxml2xmloutdata/pseries-hostdevs-3.xml | 1 + .../pseries-many-buses-1.xml | 1 + .../pseries-many-buses-2.xml | 1 + .../pseries-many-devices.xml | 1 + tests/qemuxml2xmloutdata/pseries-nvram.xml | 1 + .../pseries-panic-missing.xml | 1 + .../pseries-panic-no-address.xml | 1 + .../pseries-phb-default-missing.xml | 1 + .../pseries-phb-numa-node.xml | 1 + .../qemuxml2xmloutdata/pseries-phb-simple.xml | 1 + .../pseries-serial-native.xml | 1 + .../qemuxml2xmloutdata/pseries-serial-pci.xml | 1 + .../qemuxml2xmloutdata/pseries-serial-usb.xml | 1 + .../pv-spinlock-disabled.xml | 1 + .../pv-spinlock-enabled.xml | 1 + .../q35-default-devices-only.xml | 1 + .../qemuxml2xmloutdata/q35-multifunction.xml | 1 + .../q35-pci-force-address.xml | 1 + tests/qemuxml2xmloutdata/q35-pcie-autoadd.xml | 1 + tests/qemuxml2xmloutdata/q35-pcie.xml | 1 + tests/qemuxml2xmloutdata/q35-usb2-multi.xml | 1 + tests/qemuxml2xmloutdata/q35-usb2-reorder.xml | 1 + tests/qemuxml2xmloutdata/q35-usb2.xml | 1 + .../q35-virt-manager-basic.xml | 1 + tests/qemuxml2xmloutdata/q35-virtio-pci.xml | 1 + tests/qemuxml2xmloutdata/q35.xml | 1 + tests/qemuxml2xmloutdata/qemu-ns-no-env.xml | 1 + .../reboot-timeout-disabled.xml | 1 + .../reboot-timeout-enabled.xml | 1 + tests/qemuxml2xmloutdata/restore-v2.xml | 1 + .../riscv64-virt-graphics.riscv64-latest.xml | 1 + .../riscv64-virt-headless.riscv64-latest.xml | 1 + tests/qemuxml2xmloutdata/riscv64-virt-pci.xml | 1 + tests/qemuxml2xmloutdata/riscv64-virt.xml | 1 + ...lt-cpu-kvm-ccw-virtio-2.7.s390x-latest.xml | 1 + ...lt-cpu-kvm-ccw-virtio-4.2.s390x-latest.xml | 1 + ...lt-cpu-tcg-ccw-virtio-2.7.s390x-latest.xml | 1 + ...lt-cpu-tcg-ccw-virtio-4.2.s390x-latest.xml | 1 + .../s390-defaultconsole.xml | 1 + .../qemuxml2xmloutdata/s390-panic-missing.xml | 1 + .../s390-panic-no-address.xml | 1 + tests/qemuxml2xmloutdata/s390-panic.xml | 1 + tests/qemuxml2xmloutdata/s390-serial-2.xml | 1 + .../s390-serial-console.xml | 1 + tests/qemuxml2xmloutdata/s390-serial.xml | 1 + .../s390x-ccw-graphics.s390x-latest.xml | 1 + .../s390x-ccw-headless.s390x-latest.xml | 1 + .../qemuxml2xmloutdata/seclabel-dac-none.xml | 1 + .../seclabel-device-multiple.xml | 1 + .../seclabel-dynamic-baselabel-inactive.xml | 1 + .../seclabel-dynamic-labelskip-inactive.xml | 1 + ...seclabel-dynamic-none-relabel-inactive.xml | 1 + .../seclabel-dynamic-none.xml | 1 + .../seclabel-dynamic-override-inactive.xml | 1 + .../seclabel-dynamic-relabel-inactive.xml | 1 + tests/qemuxml2xmloutdata/seclabel-none.xml | 1 + .../seclabel-static-labelskip-active.xml | 1 + .../seclabel-static-labelskip-inactive.xml | 1 + tests/qemuxml2xmloutdata/seclabel-static.xml | 1 + .../serial-spiceport-nospice.xml | 1 + tests/qemuxml2xmloutdata/serial-spiceport.xml | 1 + .../serial-target-port-auto.xml | 1 + .../serial-tcp-tlsx509-chardev.xml | 1 + .../shmem-plain-doorbell.xml | 1 + tests/qemuxml2xmloutdata/shmem.xml | 1 + .../smartcard-controller.xml | 1 + .../smartcard-host-certificates-database.xml | 1 + .../smartcard-host-certificates.xml | 1 + tests/qemuxml2xmloutdata/smartcard-host.xml | 1 + .../smartcard-passthrough-spicevmc.xml | 1 + .../smartcard-passthrough-tcp.xml | 1 + .../smbios-multiple-type2.xml | 1 + tests/qemuxml2xmloutdata/smbios.xml | 1 + tests/qemuxml2xmloutdata/smp.xml | 1 + tests/qemuxml2xmloutdata/sound-device.xml | 1 + tests/qemuxml2xmloutdata/sound.xml | 1 + .../tap-vhost-incorrect.xml | 1 + tests/qemuxml2xmloutdata/tap-vhost.xml | 1 + .../tpm-emulator-tpm2-enc.x86_64-latest.xml | 1 + ...tpm-emulator-tpm2-pstate.x86_64-latest.xml | 1 + .../tpm-emulator-tpm2.x86_64-latest.xml | 1 + .../tpm-emulator.x86_64-latest.xml | 1 + .../tpm-passthrough-crb.x86_64-latest.xml | 1 + .../tpm-passthrough.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/tseg-explicit-size.xml | 1 + .../usb-controller-default-q35.xml | 1 + .../usb-controller-explicit-q35.xml | 1 + tests/qemuxml2xmloutdata/usb-controller.xml | 1 + .../qemuxml2xmloutdata/usb-ich9-ehci-addr.xml | 1 + tests/qemuxml2xmloutdata/usb-none.xml | 1 + .../usb-piix3-controller.xml | 1 + tests/qemuxml2xmloutdata/usb-port-missing.xml | 1 + .../usb-redir-filter-version.xml | 1 + tests/qemuxml2xmloutdata/usb-redir-filter.xml | 1 + tests/qemuxml2xmloutdata/usb-redir.xml | 1 + tests/qemuxml2xmloutdata/vhost-vsock-auto.xml | 1 + .../vhost-vsock-ccw-auto.xml | 1 + tests/qemuxml2xmloutdata/vhost_queues.xml | 1 + .../video-device-pciaddr-default.xml | 1 + .../qemuxml2xmloutdata/video-none-device.xml | 1 + tests/qemuxml2xmloutdata/video-qxl-heads.xml | 1 + .../qemuxml2xmloutdata/video-qxl-noheads.xml | 1 + .../video-virtio-gpu-ccw-auto.xml | 1 + .../video-virtio-gpu-ccw.xml | 1 + .../video-virtio-gpu-device.xml | 1 + .../video-virtio-gpu-secondary.xml | 1 + .../video-virtio-gpu-spice-gl.xml | 1 + .../video-virtio-gpu-virgl.xml | 1 + .../virtio-9p-createmode.x86_64-latest.xml | 1 + .../virtio-9p-multidevs.x86_64-latest.xml | 1 + .../virtio-input-passthrough.xml | 1 + tests/qemuxml2xmloutdata/virtio-input.xml | 1 + tests/qemuxml2xmloutdata/virtio-lun.xml | 1 + .../virtio-non-transitional.x86_64-latest.xml | 1 + .../virtio-rng-builtin.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/virtio-rng-egd.xml | 1 + .../qemuxml2xmloutdata/virtio-rng-random.xml | 1 + .../virtio-transitional.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/vmcoreinfo.xml | 1 + tests/qemuxml2xmloutdata/watchdog.xml | 1 + ...4-default-cpu-kvm-pc-4.2.x86_64-latest.xml | 1 + ...-default-cpu-kvm-q35-4.2.x86_64-latest.xml | 1 + ...4-default-cpu-tcg-pc-4.2.x86_64-latest.xml | 1 + ...-default-cpu-tcg-q35-4.2.x86_64-latest.xml | 1 + .../x86_64-pc-graphics.x86_64-latest.xml | 1 + .../x86_64-pc-headless.x86_64-latest.xml | 1 + .../x86_64-q35-graphics.x86_64-latest.xml | 1 + .../x86_64-q35-headless.x86_64-latest.xml | 1 + tests/qemuxml2xmltest.c | 54 ++ 957 files changed, 6887 insertions(+), 341 deletions(-) create mode 100644 tests/qemuxml2argvdata/audio-alsa-best.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-best.xml create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.err create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.xml create mode 100644 tests/qemuxml2argvdata/audio-alsa-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-minimal.x86_64-latest.a= rgs create mode 100644 tests/qemuxml2argvdata/audio-alsa-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-best.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest= .args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-best.xml create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.err create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest= .args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.xml create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-minimal.x86_64-lat= est.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-default-nographics.args create mode 100644 tests/qemuxml2argvdata/audio-default-nographics.x86_64-la= test.args create mode 100644 tests/qemuxml2argvdata/audio-default-nographics.xml create mode 100644 tests/qemuxml2argvdata/audio-default-sdl.args create mode 100644 tests/qemuxml2argvdata/audio-default-sdl.x86_64-latest.ar= gs create mode 100644 tests/qemuxml2argvdata/audio-default-sdl.xml create mode 100644 tests/qemuxml2argvdata/audio-default-spice.args create mode 100644 tests/qemuxml2argvdata/audio-default-spice.x86_64-latest.= args create mode 100644 tests/qemuxml2argvdata/audio-default-spice.xml create mode 100644 tests/qemuxml2argvdata/audio-default-vnc.args create mode 100644 tests/qemuxml2argvdata/audio-default-vnc.x86_64-latest.ar= gs create mode 100644 tests/qemuxml2argvdata/audio-default-vnc.xml create mode 100644 tests/qemuxml2argvdata/audio-file-best.args create mode 100644 tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-file-best.xml create mode 100644 tests/qemuxml2argvdata/audio-file-full.args create mode 100644 tests/qemuxml2argvdata/audio-file-full.err create mode 100644 tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-file-full.xml create mode 100644 tests/qemuxml2argvdata/audio-file-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-file-minimal.x86_64-latest.a= rgs create mode 100644 tests/qemuxml2argvdata/audio-file-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-jack-full.err create mode 100644 tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-jack-full.xml create mode 100644 tests/qemuxml2argvdata/audio-jack-minimal.err create mode 100644 tests/qemuxml2argvdata/audio-jack-minimal.x86_64-latest.a= rgs create mode 100644 tests/qemuxml2argvdata/audio-jack-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-many-backends.err create mode 100644 tests/qemuxml2argvdata/audio-many-backends.x86_64-latest.= args create mode 100644 tests/qemuxml2argvdata/audio-many-backends.xml create mode 100644 tests/qemuxml2argvdata/audio-none-best.args create mode 100644 tests/qemuxml2argvdata/audio-none-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-none-best.xml create mode 100644 tests/qemuxml2argvdata/audio-none-full.args create mode 100644 tests/qemuxml2argvdata/audio-none-full.err create mode 100644 tests/qemuxml2argvdata/audio-none-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-none-full.xml create mode 100644 tests/qemuxml2argvdata/audio-none-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-none-minimal.x86_64-latest.a= rgs create mode 100644 tests/qemuxml2argvdata/audio-none-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-oss-best.args create mode 100644 tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-oss-best.xml create mode 100644 tests/qemuxml2argvdata/audio-oss-full.args create mode 100644 tests/qemuxml2argvdata/audio-oss-full.err create mode 100644 tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-oss-full.xml create mode 100644 tests/qemuxml2argvdata/audio-oss-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-oss-minimal.x86_64-latest.ar= gs create mode 100644 tests/qemuxml2argvdata/audio-oss-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-best.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-lates= t.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-best.xml create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.err create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-lates= t.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.xml create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-minimal.x86_64-la= test.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-sdl-best.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-best.xml create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.err create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.xml create mode 100644 tests/qemuxml2argvdata/audio-sdl-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-minimal.x86_64-latest.ar= gs create mode 100644 tests/qemuxml2argvdata/audio-sdl-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-spice-best.args create mode 100644 tests/qemuxml2argvdata/audio-spice-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-spice-best.xml create mode 100644 tests/qemuxml2argvdata/audio-spice-full.args create mode 100644 tests/qemuxml2argvdata/audio-spice-full.err create mode 100644 tests/qemuxml2argvdata/audio-spice-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-spice-full.xml create mode 100644 tests/qemuxml2argvdata/audio-spice-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-spice-minimal.x86_64-latest.= args create mode 100644 tests/qemuxml2argvdata/audio-spice-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-alsa-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-alsa-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-alsa-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-coreaudio-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-coreaudio-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-coreaudio-minimal.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-nographics.x86_64-= latest.xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-nographics.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-sdl.x86_64-latest.= xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-sdl.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-spice.x86_64-lates= t.xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-spice.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-vnc.x86_64-latest.= xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-vnc.xml create mode 120000 tests/qemuxml2xmloutdata/audio-file-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-file-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-file-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-jack-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-many-backends.x86_64-lates= t.xml create mode 120000 tests/qemuxml2xmloutdata/audio-none-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-none-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-none-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-oss-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-oss-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-oss-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-pulseaudio-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-pulseaudio-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-pulseaudio-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-sdl-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-sdl-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-sdl-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-spice-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-spice-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-spice-minimal.xml --=20 2.29.2

We had a copy and paste mistake from code we mirrored from QEMU, as well as failing to remove an earlier redundant check. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- config.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/config.h b/config.h index 2ee7f7bff6..ca6720f37d 100644 --- a/config.h +++ b/config.h @@ -25,10 +25,6 @@ # define _FORTIFY_SOURCE 2 #endif -#ifndef __GNUC__ -# error "Libvirt requires GCC >= 4.8, or Clang" -#endif - /* * Define __GNUC_PREREQ to a sane default if it isn't yet defined. * This is done here so that it's included as early as possible; @@ -41,16 +37,16 @@ #if defined(__clang_major__) && defined(__clang_minor__) # ifdef __apple_build_version__ # if __clang_major__ < 5 || (__clang_major__ == 5 && __clang_minor__ < 1) -# error You need at least XCode Clang v5.1 to compile QEMU +# error You need at least XCode Clang v5.1 to compile libvirt # endif # else # if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 4) -# error You need at least Clang v3.4 to compile QEMU +# error You need at least Clang v3.4 to compile libvirt # endif # endif #elif defined(__GNUC__) && defined(__GNUC_MINOR__) # if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8) -# error You need at least GCC v4.8 to compile QEMU +# error You need at least GCC v4.8 to compile libvirt # endif #else # error You either need at least GCC 4.8 or Clang 3.4 or XCode Clang 5.1 to compile libvirt -- 2.29.2

Check for varuous mandatory elements and improve error message clarity Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/conf/domain_conf.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index b731744f04..d30ca627aa 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -13794,6 +13794,11 @@ virDomainSoundDefParseXML(virDomainXMLOptionPtr xmlopt, if (audioNode) { g_autofree char *tmp = NULL; tmp = virXMLPropString(audioNode, "id"); + if (!tmp) { + virReportError(VIR_ERR_XML_ERROR, "%s", + _("missing audio 'id' attribute")); + goto error; + } if (virStrToLong_ui(tmp, NULL, 10, &def->audioId) < 0 || def->audioId == 0) { virReportError(VIR_ERR_XML_ERROR, @@ -13867,6 +13872,12 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, ctxt->node = node; type = virXMLPropString(node, "type"); + if (!type) { + virReportError(VIR_ERR_XML_ERROR, "%s", + _("missing audio 'type' attribute")); + goto error; + } + if ((def->type = virDomainAudioTypeTypeFromString(type)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("unknown audio type '%s'"), type); @@ -13874,6 +13885,11 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, } tmp = virXMLPropString(node, "id"); + if (!tmp) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("missing audio 'id' attribute")); + goto error; + } if (virStrToLong_ui(tmp, NULL, 10, &def->id) < 0 || def->id == 0) { virReportError(VIR_ERR_XML_ERROR, -- 2.29.2

The attributes on the elements are optional, so we should not force the elements themselves to be present, especially since we omit them when formating the XML thus breaking round-tripping. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/conf/domain_conf.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d30ca627aa..b6c50f54e5 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -13904,15 +13904,10 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, inputDevNode = virXPathNode("./input", ctxt); outputDevNode = virXPathNode("./output", ctxt); - if (!inputDevNode || !outputDevNode) { - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Audio type OSS requires to have <input> " - "and <output> specified")); - goto error; - } - - def->backend.oss.inputDev = virXMLPropString(inputDevNode, "dev"); - def->backend.oss.outputDev = virXMLPropString(outputDevNode, "dev"); + if (inputDevNode) + def->backend.oss.inputDev = virXMLPropString(inputDevNode, "dev"); + if (outputDevNode) + def->backend.oss.outputDev = virXMLPropString(outputDevNode, "dev"); break; } -- 2.29.2

The check for ICH6 || ICH9 is repeated in many places in the code. The new virDomainSoundModelSupportsCodecs() method provides a helper to standardize this check. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/conf/domain_conf.c | 11 +++++++++-- src/conf/domain_conf.h | 2 ++ src/libvirt_private.syms | 1 + src/qemu/qemu_command.c | 4 +--- src/qemu/qemu_validate.c | 3 +-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index b6c50f54e5..2837ad67a7 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -13764,8 +13764,7 @@ virDomainSoundDefParseXML(virDomainXMLOptionPtr xmlopt, goto error; } - if (def->model == VIR_DOMAIN_SOUND_MODEL_ICH6 || - def->model == VIR_DOMAIN_SOUND_MODEL_ICH9) { + if (virDomainSoundModelSupportsCodecs(def)) { int ncodecs; g_autofree xmlNodePtr *codecNodes = NULL; @@ -30376,6 +30375,14 @@ virDomainDefFindAudioForSound(virDomainDefPtr def, } +bool +virDomainSoundModelSupportsCodecs(virDomainSoundDefPtr def) +{ + return def->model == VIR_DOMAIN_SOUND_MODEL_ICH6 || + def->model == VIR_DOMAIN_SOUND_MODEL_ICH9; +} + + char * virDomainObjGetMetadata(virDomainObjPtr vm, int type, diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 930eed60de..8f2e559884 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -3785,6 +3785,8 @@ int virDomainDefFindDevice(virDomainDefPtr def, virDomainAudioDefPtr virDomainDefFindAudioForSound(virDomainDefPtr def, virDomainSoundDefPtr sound); +bool +virDomainSoundModelSupportsCodecs(virDomainSoundDefPtr def); const char *virDomainChrSourceDefGetPath(virDomainChrSourceDefPtr chr); diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 6b7261b987..2b7bfe76b5 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -618,6 +618,7 @@ virDomainSmbiosModeTypeToString; virDomainSoundDefFind; virDomainSoundDefFree; virDomainSoundDefRemove; +virDomainSoundModelSupportsCodecs; virDomainSoundModelTypeFromString; virDomainSoundModelTypeToString; virDomainStartupPolicyTypeFromString; diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index f255b0f881..4785dfb791 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4101,9 +4101,7 @@ qemuBuildSoundCommandLine(virCommandPtr cmd, return -1; virCommandAddArg(cmd, str); - if (sound->model == VIR_DOMAIN_SOUND_MODEL_ICH6 || - sound->model == VIR_DOMAIN_SOUND_MODEL_ICH9) { - + if (virDomainSoundModelSupportsCodecs(sound)) { for (j = 0; j < sound->ncodecs; j++) { g_autofree char *codecstr = NULL; virCommandAddArg(cmd, "-device"); diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index b9971b66bb..d24300b305 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -4199,8 +4199,7 @@ qemuValidateDomainDeviceDefSound(virDomainSoundDefPtr sound, return -1; } - if (sound->model == VIR_DOMAIN_SOUND_MODEL_ICH6 || - sound->model == VIR_DOMAIN_SOUND_MODEL_ICH9) { + if (virDomainSoundModelSupportsCodecs(sound)) { for (i = 0; i < sound->ncodecs; i++) { const char *stype; int type, flags; -- 2.29.2

Fixes 9375bc7373caddd31f1ac5c14a69eac5096ea416 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/conf/domain_conf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 2837ad67a7..34d1673546 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -4411,6 +4411,12 @@ virDomainDeviceInfoIterateFlags(virDomainDefPtr def, if ((rc = cb(def, &device, NULL, opaque)) != 0) return rc; } + device.type = VIR_DOMAIN_DEVICE_AUDIO; + for (i = 0; i < def->naudios; i++) { + device.data.audio = def->audios[i]; + if ((rc = cb(def, &device, NULL, opaque)) != 0) + return rc; + } device.type = VIR_DOMAIN_DEVICE_LEASE; for (i = 0; i < def->nleases; i++) { device.data.lease = def->leases[i]; -- 2.29.2

To prepare for the introduction for more backend specific audio options, move the OSS options into a dedicated struct and introduce separate helper methods for parse/format/free. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- docs/schemas/domaincommon.rng | 17 +++++--- src/bhyve/bhyve_command.c | 8 ++-- src/conf/domain_conf.c | 77 ++++++++++++++++++++++++++--------- src/conf/domain_conf.h | 9 +++- 4 files changed, 79 insertions(+), 32 deletions(-) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index d73db65742..efa1806a3a 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -4513,6 +4513,15 @@ </interleave> </element> </define> + + <define name="audiooss"> + <optional> + <attribute name="dev"> + <ref name="filePath"/> + </attribute> + </optional> + </define> + <define name="audio"> <element name="audio"> <attribute name="id"> @@ -4526,16 +4535,12 @@ <interleave> <optional> <element name="input"> - <attribute name="dev"> - <ref name="deviceName"/> - </attribute> + <ref name="audiooss"/> </element> </optional> <optional> <element name="output"> - <attribute name="dev"> - <ref name="deviceName"/> - </attribute> + <ref name="audiooss"/> </element> </optional> </interleave> diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c index a963338654..e60a6bd393 100644 --- a/src/bhyve/bhyve_command.c +++ b/src/bhyve/bhyve_command.c @@ -514,13 +514,13 @@ bhyveBuildSoundArgStr(const virDomainDef *def G_GNUC_UNUSED, if (audio) { switch ((virDomainAudioType) audio->type) { case VIR_DOMAIN_AUDIO_TYPE_OSS: - if (audio->backend.oss.inputDev) + if (audio->backend.oss.input.dev) virBufferAsprintf(¶ms, ",play=%s", - audio->backend.oss.inputDev); + audio->backend.oss.input.dev); - if (audio->backend.oss.outputDev) + if (audio->backend.oss.output.dev) virBufferAsprintf(¶ms, ",rec=%s", - audio->backend.oss.outputDev); + audio->backend.oss.output.dev); break; diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 34d1673546..d5969c79a0 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -2889,15 +2889,22 @@ void virDomainSoundDefFree(virDomainSoundDefPtr def) g_free(def); } -void virDomainAudioDefFree(virDomainAudioDefPtr def) +static void +virDomainAudioIOOSSFree(virDomainAudioIOOSS *def) +{ + g_free(def->dev); +} + +void +virDomainAudioDefFree(virDomainAudioDefPtr def) { if (!def) return; switch ((virDomainAudioType) def->type) { case VIR_DOMAIN_AUDIO_TYPE_OSS: - g_free(def->backend.oss.inputDev); - g_free(def->backend.oss.outputDev); + virDomainAudioIOOSSFree(&def->backend.oss.input); + virDomainAudioIOOSSFree(&def->backend.oss.output); break; case VIR_DOMAIN_AUDIO_TYPE_LAST: @@ -13863,6 +13870,16 @@ virDomainSoundDefFind(const virDomainDef *def, } +static int +virDomainAudioOSSParse(virDomainAudioIOOSS *def, + xmlNodePtr node) +{ + def->dev = virXMLPropString(node, "dev"); + + return 0; +} + + static virDomainAudioDefPtr virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, xmlNodePtr node G_GNUC_UNUSED, @@ -13872,6 +13889,7 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, VIR_XPATH_NODE_AUTORESTORE(ctxt) g_autofree char *tmp = NULL; g_autofree char *type = NULL; + xmlNodePtr inputNode, outputNode; def = g_new0(virDomainAudioDef, 1); ctxt->node = node; @@ -13902,19 +13920,16 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, goto error; } - switch ((virDomainAudioType) def->type) { - case VIR_DOMAIN_AUDIO_TYPE_OSS: { - xmlNodePtr inputDevNode, outputDevNode; - - inputDevNode = virXPathNode("./input", ctxt); - outputDevNode = virXPathNode("./output", ctxt); + inputNode = virXPathNode("./input", ctxt); + outputNode = virXPathNode("./output", ctxt); - if (inputDevNode) - def->backend.oss.inputDev = virXMLPropString(inputDevNode, "dev"); - if (outputDevNode) - def->backend.oss.outputDev = virXMLPropString(outputDevNode, "dev"); + switch ((virDomainAudioType) def->type) { + case VIR_DOMAIN_AUDIO_TYPE_OSS: + if (inputNode) + virDomainAudioOSSParse(&def->backend.oss.input, inputNode); + if (outputNode) + virDomainAudioOSSParse(&def->backend.oss.output, outputNode); break; - } case VIR_DOMAIN_AUDIO_TYPE_LAST: break; @@ -26381,11 +26396,34 @@ virDomainSoundDefFormat(virBufferPtr buf, } +static void +virDomainAudioCommonFormat(virBufferPtr childBuf, + virBufferPtr backendAttrBuf, + const char *direction) +{ + if (virBufferUse(backendAttrBuf)) { + virBufferAsprintf(childBuf, "<%s", direction); + virBufferAdd(childBuf, virBufferCurrentContent(backendAttrBuf), -1); + virBufferAddLit(childBuf, "/>\n"); + } +} + + +static void +virDomainAudioOSSFormat(virDomainAudioIOOSS *def, + virBufferPtr buf) +{ + virBufferEscapeString(buf, " dev='%s'", def->dev); +} + + static int virDomainAudioDefFormat(virBufferPtr buf, virDomainAudioDefPtr def) { g_auto(virBuffer) childBuf = VIR_BUFFER_INIT_CHILD(buf); + g_auto(virBuffer) inputBuf = VIR_BUFFER_INITIALIZER; + g_auto(virBuffer) outputBuf = VIR_BUFFER_INITIALIZER; const char *type = virDomainAudioTypeTypeToString(def->type); if (!type) { @@ -26398,15 +26436,14 @@ virDomainAudioDefFormat(virBufferPtr buf, switch (def->type) { case VIR_DOMAIN_AUDIO_TYPE_OSS: - if (def->backend.oss.inputDev) - virBufferAsprintf(&childBuf, "<input dev='%s'/>\n", - def->backend.oss.inputDev); - if (def->backend.oss.outputDev) - virBufferAsprintf(&childBuf, "<output dev='%s'/>\n", - def->backend.oss.outputDev); + virDomainAudioOSSFormat(&def->backend.oss.input, &inputBuf); + virDomainAudioOSSFormat(&def->backend.oss.output, &outputBuf); break; } + virDomainAudioCommonFormat(&childBuf, &inputBuf, "input"); + virDomainAudioCommonFormat(&childBuf, &outputBuf, "output"); + if (virBufferUse(&childBuf)) { virBufferAddLit(buf, ">\n"); virBufferAddBuffer(buf, &childBuf); diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 8f2e559884..977dd48cc3 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1451,6 +1451,11 @@ typedef enum { VIR_DOMAIN_AUDIO_TYPE_LAST } virDomainAudioType; +typedef struct _virDomainAudioIOOSS virDomainAudioIOOSS; +struct _virDomainAudioIOOSS { + char *dev; +}; + struct _virDomainAudioDef { int type; @@ -1458,8 +1463,8 @@ struct _virDomainAudioDef { union { struct { - char *inputDev; - char *outputDev; + virDomainAudioIOOSS input; + virDomainAudioIOOSS output; } oss; } backend; }; -- 2.29.2

To prepare for the introduction for more backend specific audio options, move the OSS options into a dedicated struct and introduce separate helper methods for parse/format/free.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- docs/schemas/domaincommon.rng | 17 +++++--- src/bhyve/bhyve_command.c | 8 ++-- src/conf/domain_conf.c | 77 ++++++++++++++++++++++++++--------- src/conf/domain_conf.h | 9 +++- 4 files changed, 79 insertions(+), 32 deletions(-)
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index d73db65742..efa1806a3a 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -4513,6 +4513,15 @@ </interleave> </element> </define> + + <define name="audiooss"> + <optional> + <attribute name="dev"> + <ref name="filePath"/> This previously allowed "deviceName" only. If this change is needed
On 3/3/21 7:18 PM, Daniel P. Berrangé wrote: please put reasoning into commit message. Looking into the future (next patch) - this change is needed. Please mention it in the commit message.
+ </attribute> + </optional> + </define> + <define name="audio"> <element name="audio"> <attribute name="id"> @@ -4526,16 +4535,12 @@ <interleave> <optional> <element name="input"> - <attribute name="dev"> - <ref name="deviceName"/> - </attribute> + <ref name="audiooss"/> </element> </optional> <optional> <element name="output"> - <attribute name="dev"> - <ref name="deviceName"/> - </attribute> + <ref name="audiooss"/> </element> </optional> </interleave> diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c index a963338654..e60a6bd393 100644 --- a/src/bhyve/bhyve_command.c +++ b/src/bhyve/bhyve_command.c @@ -514,13 +514,13 @@ bhyveBuildSoundArgStr(const virDomainDef *def G_GNUC_UNUSED, if (audio) { switch ((virDomainAudioType) audio->type) { case VIR_DOMAIN_AUDIO_TYPE_OSS: - if (audio->backend.oss.inputDev) + if (audio->backend.oss.input.dev) virBufferAsprintf(¶ms, ",play=%s", - audio->backend.oss.inputDev); + audio->backend.oss.input.dev);
- if (audio->backend.oss.outputDev) + if (audio->backend.oss.output.dev) virBufferAsprintf(¶ms, ",rec=%s", - audio->backend.oss.outputDev); + audio->backend.oss.output.dev);
break;
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 34d1673546..d5969c79a0 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -2889,15 +2889,22 @@ void virDomainSoundDefFree(virDomainSoundDefPtr def) g_free(def); }
-void virDomainAudioDefFree(virDomainAudioDefPtr def) +static void +virDomainAudioIOOSSFree(virDomainAudioIOOSS *def)
virDomainAudioIOOSSPtr perhaps?
+{ + g_free(def->dev); +} + +void +virDomainAudioDefFree(virDomainAudioDefPtr def) { if (!def) return;
switch ((virDomainAudioType) def->type) { case VIR_DOMAIN_AUDIO_TYPE_OSS: - g_free(def->backend.oss.inputDev); - g_free(def->backend.oss.outputDev); + virDomainAudioIOOSSFree(&def->backend.oss.input); + virDomainAudioIOOSSFree(&def->backend.oss.output); break;
case VIR_DOMAIN_AUDIO_TYPE_LAST: @@ -13863,6 +13870,16 @@ virDomainSoundDefFind(const virDomainDef *def, }
+static int +virDomainAudioOSSParse(virDomainAudioIOOSS *def,
virDomainAudioIOOSSPtr?
+ xmlNodePtr node) +{ + def->dev = virXMLPropString(node, "dev"); + + return 0; +} + + static virDomainAudioDefPtr virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, xmlNodePtr node G_GNUC_UNUSED, @@ -13872,6 +13889,7 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, VIR_XPATH_NODE_AUTORESTORE(ctxt) g_autofree char *tmp = NULL; g_autofree char *type = NULL; + xmlNodePtr inputNode, outputNode;
def = g_new0(virDomainAudioDef, 1); ctxt->node = node; @@ -13902,19 +13920,16 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, goto error; }
- switch ((virDomainAudioType) def->type) { - case VIR_DOMAIN_AUDIO_TYPE_OSS: { - xmlNodePtr inputDevNode, outputDevNode; - - inputDevNode = virXPathNode("./input", ctxt); - outputDevNode = virXPathNode("./output", ctxt); + inputNode = virXPathNode("./input", ctxt); + outputNode = virXPathNode("./output", ctxt);
- if (inputDevNode) - def->backend.oss.inputDev = virXMLPropString(inputDevNode, "dev"); - if (outputDevNode) - def->backend.oss.outputDev = virXMLPropString(outputDevNode, "dev"); + switch ((virDomainAudioType) def->type) { + case VIR_DOMAIN_AUDIO_TYPE_OSS: + if (inputNode) + virDomainAudioOSSParse(&def->backend.oss.input, inputNode); + if (outputNode) + virDomainAudioOSSParse(&def->backend.oss.output, outputNode); break; - }
case VIR_DOMAIN_AUDIO_TYPE_LAST: break; @@ -26381,11 +26396,34 @@ virDomainSoundDefFormat(virBufferPtr buf, }
+static void +virDomainAudioCommonFormat(virBufferPtr childBuf, + virBufferPtr backendAttrBuf, + const char *direction) +{ + if (virBufferUse(backendAttrBuf)) { + virBufferAsprintf(childBuf, "<%s", direction); + virBufferAdd(childBuf, virBufferCurrentContent(backendAttrBuf), -1); + virBufferAddLit(childBuf, "/>\n"); + } +} + + +static void +virDomainAudioOSSFormat(virDomainAudioIOOSS *def,
virDomainAudioIOOSSPtr?
+ virBufferPtr buf) +{ + virBufferEscapeString(buf, " dev='%s'", def->dev); +} + + static int virDomainAudioDefFormat(virBufferPtr buf, virDomainAudioDefPtr def) { g_auto(virBuffer) childBuf = VIR_BUFFER_INIT_CHILD(buf); + g_auto(virBuffer) inputBuf = VIR_BUFFER_INITIALIZER; + g_auto(virBuffer) outputBuf = VIR_BUFFER_INITIALIZER; const char *type = virDomainAudioTypeTypeToString(def->type);
if (!type) { @@ -26398,15 +26436,14 @@ virDomainAudioDefFormat(virBufferPtr buf,
switch (def->type) { case VIR_DOMAIN_AUDIO_TYPE_OSS: - if (def->backend.oss.inputDev) - virBufferAsprintf(&childBuf, "<input dev='%s'/>\n", - def->backend.oss.inputDev); - if (def->backend.oss.outputDev) - virBufferAsprintf(&childBuf, "<output dev='%s'/>\n", - def->backend.oss.outputDev); + virDomainAudioOSSFormat(&def->backend.oss.input, &inputBuf); + virDomainAudioOSSFormat(&def->backend.oss.output, &outputBuf); break; }
+ virDomainAudioCommonFormat(&childBuf, &inputBuf, "input"); + virDomainAudioCommonFormat(&childBuf, &outputBuf, "output"); + if (virBufferUse(&childBuf)) { virBufferAddLit(buf, ">\n"); virBufferAddBuffer(buf, &childBuf); diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 8f2e559884..977dd48cc3 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1451,6 +1451,11 @@ typedef enum { VIR_DOMAIN_AUDIO_TYPE_LAST } virDomainAudioType;
+typedef struct _virDomainAudioIOOSS virDomainAudioIOOSS;
typedef virDomainAudioIOOSS *virDomainAudioIOOSSPtr;
+struct _virDomainAudioIOOSS { + char *dev; +}; + struct _virDomainAudioDef { int type;
@@ -1458,8 +1463,8 @@ struct _virDomainAudioDef {
union { struct { - char *inputDev; - char *outputDev; + virDomainAudioIOOSS input; + virDomainAudioIOOSS output; } oss; } backend; };
Michal

On Tue, Mar 09, 2021 at 04:30:18PM +0100, Michal Privoznik wrote:
To prepare for the introduction for more backend specific audio options, move the OSS options into a dedicated struct and introduce separate helper methods for parse/format/free.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- docs/schemas/domaincommon.rng | 17 +++++--- src/bhyve/bhyve_command.c | 8 ++-- src/conf/domain_conf.c | 77 ++++++++++++++++++++++++++--------- src/conf/domain_conf.h | 9 +++- 4 files changed, 79 insertions(+), 32 deletions(-)
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index d73db65742..efa1806a3a 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -4513,6 +4513,15 @@ </interleave> </element> </define> + + <define name="audiooss"> + <optional> + <attribute name="dev"> + <ref name="filePath"/> This previously allowed "deviceName" only. If this change is needed please
On 3/3/21 7:18 PM, Daniel P. Berrangé wrote: put reasoning into commit message. Looking into the future (next patch) - this change is needed. Please mention it in the commit message.
Actually it isn't obviously needed - deviceName is sufficient for all tests to pass. I'll put it back to deviceName.
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 34d1673546..d5969c79a0 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -2889,15 +2889,22 @@ void virDomainSoundDefFree(virDomainSoundDefPtr def) g_free(def); } -void virDomainAudioDefFree(virDomainAudioDefPtr def) +static void +virDomainAudioIOOSSFree(virDomainAudioIOOSS *def)
virDomainAudioIOOSSPtr perhaps?
I was being lazy as its less typing :-) Reminds me to start the rfc about whether Ptr typedefs are actually useful or not.... https://listman.redhat.com/archives/libvir-list/2021-March/msg00427.html Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

The current <audio> element only allows an "OSS" audio backend, as this is all that BHyve needed. This is now extended to cover most QEMU audio backends. These backends all have a variety of attributes they support, but this initial impl does the bare minimum, relying on built-in defaults for everything. The only QEMU backend omitted is "dsound" since the libvirt QEMU driver is not built on Windows platforms. The SDL audio driver names are based on the SDL 2.0 drivers. It is not intended to support SDL 1.2 drivers. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- docs/formatdomain.rst | 113 +++++++++++++++++++++++++++++----- docs/schemas/domaincommon.rng | 88 +++++++++++++++++++++----- src/bhyve/bhyve_command.c | 13 +++- src/conf/domain_conf.c | 109 +++++++++++++++++++++++++++++++- src/conf/domain_conf.h | 22 +++++++ 5 files changed, 312 insertions(+), 33 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index e23bcc3e5a..0d1bdcb338 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -6822,32 +6822,117 @@ Audio devices ~~~~~~~~~~~~~ A virtual audio device corresponds to a host audio backend that is mapped -to the guest sound device. :since:`Since 6.7.0, bhyve only` +to the guest sound device. ``type`` The required ``type`` attribute specifies audio backend type. - Currently, the only supported value is 'oss'. + Currently, the supported values are 'none', 'alsa', 'coreaudio', + 'jack', 'oss', 'pulseaudio', 'sdl', 'spice', 'file'. ``id`` Integer id of the audio device. Must be greater than 0. -The 'oss' audio type supports additional configuration: +None audio backend +^^^^^^^^^^^^^^^^^^ + +The 'none' audio backend is a dummy backend that does not connect to +any host audio framework. It still allows a remote desktop server +like VNC to send and receive audio though. This is the default backend +when VNC graphics are enabled in QEMU. + +:since:`Since 7.2.0, qemu` + +ALSA audio backend +^^^^^^^^^^^^^^^^^^ + +The 'alsa' audio type uses the ALSA host audio device framework. + +:since:`Since 7.2.0, qemu` + +Coreaudio audio backend +^^^^^^^^^^^^^^^^^^^^^^^ + +The 'coreaudio' audio backend delegates to a CoreAudio host audio framework +for input and output on macOS. + +:since:`Since 7.2.0, qemu` + +Jack audio backend +^^^^^^^^^^^^^^^^^^ + +The 'jack' audio backend delegates to a Jack daemon for audio input +and output. + +:since:`Since 7.2.0, qemu` + +OSS audio backend +^^^^^^^^^^^^^^^^^ + +The 'oss' audio type uses the OSS host audio device framework. + +The following additional attributes are permitted on the ``<input>`` +and ``<output>`` elements + +* ``dev`` + + Path to the host device node to connect the backend to. A hypervisor + specific default applies if not specified. :: - ... - <devices> - <audio type='oss' id='1'> - <input dev='/dev/dsp0'/> - <output dev='/dev/dsp0'/> - </audio> - </devices> + <audio type='oss' id='1'> + <input dev='/dev/dsp0'/> + <output dev='/dev/dsp0'/> + </audio> -``input`` - Input device. The required ``dev`` attribute specifies device path. +:since:`Since 6.7.0, bhyve; Since 7.2.0, qemu` + +PulseAudio audio backend +^^^^^^^^^^^^^^^^^^^^^^^^ + +The 'pulseaudio' audio backend delegates to a PulseAudio daemon audio input +and output. + +:since:`Since 7.2.0, qemu` + +SDL audio backend +^^^^^^^^^^^^^^^^^ + +The 'sdl' audio backend delegates to the SDL library for audio input +and output. + +The following additional attributes are permitted on the ``<audio>`` +element + +* ``driver`` + + SDL audio driver. The ``name`` attribute specifies SDL driver name, + one of 'esd', 'alsa', 'arts', 'pulseaudio'. + +:: + + <audio type='sdl' id='1' driver='pulseaudio'/> + +:since:`Since 7.2.0, qemu` + +Spice audio backend +^^^^^^^^^^^^^^^^^^^ + +The 'spice' audio backend is similar to the 'none' backend in that +it does not connect to any host audio framework. It exclusively +allows a SPICE server to send and receive audio. This is the default +backend when SPICE graphics are enabled in QEMU. + +:since:`Since 7.2.0, qemu` + +File audio backend +^^^^^^^^^^^^^^^^^^ + +The 'file' audio backend is an output only driver which records +audio to a file. The file format is implementation defined, and +defaults to 'WAV' with QEMU. -``output`` - Output device. The required ``dev`` attribute specifies device path. +:since:`Since 7.2.0, qemu` :anchor:`<a id="elementsWatchdog"/>` diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index efa1806a3a..d27de58b42 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -4527,23 +4527,77 @@ <attribute name="id"> <ref name="uint8"/> </attribute> - <attribute name="type"> - <choice> - <value>oss</value> - </choice> - </attribute> - <interleave> - <optional> - <element name="input"> - <ref name="audiooss"/> - </element> - </optional> - <optional> - <element name="output"> - <ref name="audiooss"/> - </element> - </optional> - </interleave> + <choice> + <group> + <attribute name="type"> + <value>none</value> + </attribute> + </group> + <group> + <attribute name="type"> + <value>alsa</value> + </attribute> + </group> + <group> + <attribute name="type"> + <value>coreaudio</value> + </attribute> + </group> + <group> + <attribute name="type"> + <value>jack</value> + </attribute> + </group> + <group> + <attribute name="type"> + <choice> + <value>oss</value> + </choice> + </attribute> + <interleave> + <optional> + <element name="input"> + <ref name="audiooss"/> + </element> + </optional> + <optional> + <element name="output"> + <ref name="audiooss"/> + </element> + </optional> + </interleave> + </group> + <group> + <attribute name="type"> + <value>pulseaudio</value> + </attribute> + </group> + <group> + <attribute name="type"> + <value>sdl</value> + </attribute> + <optional> + <attribute name="driver"> + <choice> + <value>esd</value> + <value>alsa</value> + <value>arts</value> + <value>pulseaudio</value> + </choice> + </attribute> + </optional> + </group> + <group> + <attribute name="type"> + <value>spice</value> + </attribute> + </group> + <group> + <attribute name="type"> + <value>file</value> + </attribute> + </group> + </choice> </element> </define> <define name="watchdog"> diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c index e60a6bd393..b03a1f26b7 100644 --- a/src/bhyve/bhyve_command.c +++ b/src/bhyve/bhyve_command.c @@ -524,11 +524,22 @@ bhyveBuildSoundArgStr(const virDomainDef *def G_GNUC_UNUSED, break; - case VIR_DOMAIN_AUDIO_TYPE_LAST: + case VIR_DOMAIN_AUDIO_TYPE_NONE: + case VIR_DOMAIN_AUDIO_TYPE_ALSA: + case VIR_DOMAIN_AUDIO_TYPE_COREAUDIO: + case VIR_DOMAIN_AUDIO_TYPE_JACK: + case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + case VIR_DOMAIN_AUDIO_TYPE_SDL: + case VIR_DOMAIN_AUDIO_TYPE_SPICE: + case VIR_DOMAIN_AUDIO_TYPE_FILE: virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("unsupported audio backend '%s'"), virDomainAudioTypeTypeToString(audio->type)); return -1; + case VIR_DOMAIN_AUDIO_TYPE_LAST: + default: + virReportEnumRangeError(virDomainAudioType, def->type); + return -1; } } diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d5969c79a0..b2a232a8d0 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -736,7 +736,24 @@ VIR_ENUM_IMPL(virDomainSoundModel, VIR_ENUM_IMPL(virDomainAudioType, VIR_DOMAIN_AUDIO_TYPE_LAST, + "none", + "alsa", + "coreaudio", + "jack", "oss", + "pulseaudio", + "sdl", + "spice", + "file", +); + +VIR_ENUM_IMPL(virDomainAudioSDLDriver, + VIR_DOMAIN_AUDIO_SDL_DRIVER_LAST, + "", + "esd", + "alsa", + "arts", + "pulseaudio", ); VIR_ENUM_IMPL(virDomainKeyWrapCipherName, @@ -2902,11 +2919,35 @@ virDomainAudioDefFree(virDomainAudioDefPtr def) return; switch ((virDomainAudioType) def->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: virDomainAudioIOOSSFree(&def->backend.oss.input); virDomainAudioIOOSSFree(&def->backend.oss.output); 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: break; } @@ -13924,6 +13965,18 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, outputNode = virXPathNode("./output", ctxt); switch ((virDomainAudioType) def->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: if (inputNode) virDomainAudioOSSParse(&def->backend.oss.input, inputNode); @@ -13931,7 +13984,28 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, virDomainAudioOSSParse(&def->backend.oss.output, outputNode); break; + case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + break; + + case VIR_DOMAIN_AUDIO_TYPE_SDL: { + g_autofree char *driver = virXMLPropString(node, "driver"); + if (driver && + (def->backend.sdl.driver = + virDomainAudioSDLDriverTypeFromString(driver)) <= 0) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("unknown SDL driver '%s'"), driver); + goto error; + } + break; + } + + case VIR_DOMAIN_AUDIO_TYPE_SPICE: + case VIR_DOMAIN_AUDIO_TYPE_FILE: + break; + case VIR_DOMAIN_AUDIO_TYPE_LAST: + default: + virReportEnumRangeError(virDomainAudioType, def->type); break; } @@ -26434,11 +26508,44 @@ virDomainAudioDefFormat(virBufferPtr buf, virBufferAsprintf(buf, "<audio id='%d' type='%s'", def->id, type); - switch (def->type) { + switch ((virDomainAudioType)def->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: virDomainAudioOSSFormat(&def->backend.oss.input, &inputBuf); virDomainAudioOSSFormat(&def->backend.oss.output, &outputBuf); break; + + case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + break; + + case VIR_DOMAIN_AUDIO_TYPE_SDL: + if (def->backend.sdl.driver) + virBufferAsprintf(buf, " driver='%s'", + virDomainAudioSDLDriverTypeToString( + def->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, def->type); + return -1; } virDomainAudioCommonFormat(&childBuf, &inputBuf, "input"); diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 977dd48cc3..cebbe3de0b 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1446,11 +1446,29 @@ struct _virDomainSoundDef { }; typedef enum { + VIR_DOMAIN_AUDIO_TYPE_NONE, + VIR_DOMAIN_AUDIO_TYPE_ALSA, + VIR_DOMAIN_AUDIO_TYPE_COREAUDIO, + VIR_DOMAIN_AUDIO_TYPE_JACK, VIR_DOMAIN_AUDIO_TYPE_OSS, + VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO, + VIR_DOMAIN_AUDIO_TYPE_SDL, + VIR_DOMAIN_AUDIO_TYPE_SPICE, + VIR_DOMAIN_AUDIO_TYPE_FILE, VIR_DOMAIN_AUDIO_TYPE_LAST } virDomainAudioType; +typedef enum { + VIR_DOMAIN_AUDIO_SDL_DRIVER_DEFAULT, + VIR_DOMAIN_AUDIO_SDL_DRIVER_ESD, + VIR_DOMAIN_AUDIO_SDL_DRIVER_ALSA, + VIR_DOMAIN_AUDIO_SDL_DRIVER_ARTS, + VIR_DOMAIN_AUDIO_SDL_DRIVER_PULSEAUDIO, + + VIR_DOMAIN_AUDIO_SDL_DRIVER_LAST +} virDomainAudioSDLDriver; + typedef struct _virDomainAudioIOOSS virDomainAudioIOOSS; struct _virDomainAudioIOOSS { char *dev; @@ -1466,6 +1484,9 @@ struct _virDomainAudioDef { virDomainAudioIOOSS input; virDomainAudioIOOSS output; } oss; + struct { + int driver; /* virDomainAudioSDLDriver */ + } sdl; } backend; }; @@ -3694,6 +3715,7 @@ VIR_ENUM_DECL(virDomainChrSpicevmc); VIR_ENUM_DECL(virDomainSoundCodec); VIR_ENUM_DECL(virDomainSoundModel); VIR_ENUM_DECL(virDomainAudioType); +VIR_ENUM_DECL(virDomainAudioSDLDriver); VIR_ENUM_DECL(virDomainKeyWrapCipherName); VIR_ENUM_DECL(virDomainMemballoonModel); VIR_ENUM_DECL(virDomainSmbiosMode); -- 2.29.2

When there are multiple <audio> backends specified, it is possible to assign a specific one to the VNC server using <graphics type='vnc'...> <audio id='1'/> </graphics> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- docs/formatdomain.rst | 22 ++++++++++++++++++---- docs/schemas/domaincommon.rng | 11 ++++++++++- src/conf/domain_conf.c | 32 ++++++++++++++++++++++++++++++++ src/conf/domain_conf.h | 1 + 4 files changed, 61 insertions(+), 5 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 0d1bdcb338..eccd89921b 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -5795,6 +5795,19 @@ interaction with the admin. graphics type ``egl-headless`` (see below) which will instruct QEMU to open and use drm nodes for OpenGL rendering. + A VNC server could be optionally mapped to the specific host audio + backend using the ``<audio>`` sub-element: + + :: + + <graphics type='vnc' ...> + <audio id='1'> + </graphics> + + Where ``1`` is an id of the `audio device <#elementsAudio>`__. If no + ID is specified, then the default audio backend will be used. + :since:`Since 7.2.0, qemu`. + ``spice`` :since:`Since 0.8.6` Starts a SPICE server. The ``port`` attribute specifies the TCP port number (with -1 as legacy syntax indicating that it should be @@ -6800,8 +6813,8 @@ Valid values are: Each ``sound`` element has an optional sub-element ``<address>`` which can tie the device to a particular PCI slot, `documented above <#elementsAddress>`__. -:since:`Since 6.7.0`, a sound device could be optionally mapped to the specific -host audio backend using the ``<audio>`` sub-element: +A sound device could be optionally mapped to the specific host audio +backend using the ``<audio>`` sub-element: :: @@ -6813,8 +6826,9 @@ host audio backend using the ``<audio>`` sub-element: </devices> ... -Where ``1`` is an id of the `audio device <#elementsAudio>`__. -This is supported for bhyve only. +Where ``1`` is an id of the `audio device <#elementsAudio>`__. If no +ID is specified, then the default audio backend will be used. +:since:`Since 6.7.0, bhyve; Since 7.2.0, qemu`. :anchor:`<a id="elementsAudio"/>` diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index d27de58b42..330a600539 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -3692,7 +3692,16 @@ <value>keep</value> </attribute> </optional> - <ref name="listenElements"/> + <interleave> + <optional> + <element name="audio"> + <attribute name="id"> + <ref name="uint8"/> + </attribute> + </element> + </optional> + <ref name="listenElements"/> + </interleave> </group> <group> <attribute name="type"> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index b2a232a8d0..c3a21b4c78 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -13204,6 +13204,8 @@ virDomainGraphicsDefParseXMLVNC(virDomainGraphicsDefPtr def, g_autofree char *websocketGenerated = virXMLPropString(node, "websocketGenerated"); g_autofree char *sharePolicy = virXMLPropString(node, "sharePolicy"); g_autofree char *autoport = virXMLPropString(node, "autoport"); + xmlNodePtr audioNode; + VIR_XPATH_NODE_AUTORESTORE(ctxt) if (virDomainGraphicsListensParseXML(def, node, ctxt, flags) < 0) return -1; @@ -13262,6 +13264,24 @@ virDomainGraphicsDefParseXMLVNC(virDomainGraphicsDefPtr def, def->data.vnc.keymap = virXMLPropString(node, "keymap"); + ctxt->node = node; + audioNode = virXPathNode("./audio", ctxt); + if (audioNode) { + g_autofree char *tmp = NULL; + tmp = virXMLPropString(audioNode, "id"); + if (!tmp) { + virReportError(VIR_ERR_XML_ERROR, "%s", + _("missing audio 'id' attribute")); + return -1; + } + if (virStrToLong_ui(tmp, NULL, 10, &def->data.vnc.audioId) < 0 || + def->data.vnc.audioId == 0) { + virReportError(VIR_ERR_XML_ERROR, + _("Invalid audio 'id' value '%s'"), tmp); + return -1; + } + } + if (virDomainGraphicsAuthDefParseXML(node, &def->data.vnc.auth, def->type) < 0) return -1; @@ -27529,6 +27549,18 @@ virDomainGraphicsDefFormat(virBufferPtr buf, virDomainSpiceGLDefFormat(buf, def); } + if (def->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC) { + if (!children) { + virBufferAddLit(buf, ">\n"); + virBufferAdjustIndent(buf, 2); + children = true; + } + + if (def->data.vnc.audioId > 0) + virBufferAsprintf(buf, "<audio id='%d'/>\n", + def->data.vnc.audioId); + } + if (children) { virBufferAdjustIndent(buf, -2); virBufferAddLit(buf, "</graphics>\n"); diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index cebbe3de0b..a3432f7e8a 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1738,6 +1738,7 @@ struct _virDomainGraphicsDef { char *keymap; virDomainGraphicsAuthDef auth; int sharePolicy; + unsigned int audioId; } vnc; struct { char *display; -- 2.29.2

Validate that if a non-zero audio ID is given for <sound> or <graphics> elements, it must map to an <audio> backend that exists. Validate that audio IDs given in <audio> are unique. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/conf/domain_validate.c | 67 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 3 deletions(-) diff --git a/src/conf/domain_validate.c b/src/conf/domain_validate.c index b4e09e21fe..79732840eb 100644 --- a/src/conf/domain_validate.c +++ b/src/conf/domain_validate.c @@ -1783,6 +1783,62 @@ virDomainFSDefValidate(const virDomainFSDef *fs) return 0; } +static int +virDomainEnsureAudioID(const virDomainDef *def, + unsigned int id) +{ + size_t i; + + if (id == 0) + return 0; + + for (i = 0; i < def->naudios; i++) { + if (def->audios[i]->id == id) + return 0; + } + + virReportError(VIR_ERR_XML_ERROR, + _("no audio device with ID %u"), + id); + return -1; +} + +static int +virDomainSoundDefValidate(const virDomainDef *def, + const virDomainSoundDef *sound) +{ + return virDomainEnsureAudioID(def, sound->audioId); +} + +static int +virDomainAudioDefValidate(const virDomainDef *def, + const virDomainAudioDef *audio) +{ + size_t i; + + for (i = 0; i < def->naudios; i++) { + if (def->audios[i] == audio) + continue; + if (def->audios[i]->id == audio->id) { + virReportError(VIR_ERR_XML_ERROR, + _("audio ID %u is used multiple times"), + audio->id); + return -1; + } + } + + return 0; +} + +static int +virDomainGraphicsDefValidate(const virDomainDef *def, + const virDomainGraphicsDef *graphics) +{ + if (graphics->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC) + return virDomainEnsureAudioID(def, graphics->data.vnc.audioId); + + return 0; +} static int virDomainDeviceDefValidateInternal(const virDomainDeviceDef *dev, @@ -1832,11 +1888,16 @@ virDomainDeviceDefValidateInternal(const virDomainDeviceDef *dev, return virDomainFSDefValidate(dev->data.fs); case VIR_DOMAIN_DEVICE_AUDIO: - /* TODO: validate? */ - case VIR_DOMAIN_DEVICE_LEASE: + return virDomainAudioDefValidate(def, dev->data.audio); + case VIR_DOMAIN_DEVICE_SOUND: - case VIR_DOMAIN_DEVICE_WATCHDOG: + return virDomainSoundDefValidate(def, dev->data.sound); + case VIR_DOMAIN_DEVICE_GRAPHICS: + return virDomainGraphicsDefValidate(def, dev->data.graphics); + + case VIR_DOMAIN_DEVICE_LEASE: + case VIR_DOMAIN_DEVICE_WATCHDOG: case VIR_DOMAIN_DEVICE_HUB: case VIR_DOMAIN_DEVICE_MEMBALLOON: case VIR_DOMAIN_DEVICE_NVRAM: -- 2.29.2

The virDomainDefFindAudioForSound only takes a virDomainSoundDefPtr as its arg, but we want to use the same functionality for VNC graphics. In addition if audio ID is zero, then we want to return the first available audio backend. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/bhyve/bhyve_command.c | 2 +- src/conf/domain_conf.c | 14 +++++++++----- src/conf/domain_conf.h | 4 ++-- src/libvirt_private.syms | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c index b03a1f26b7..f5a20208d7 100644 --- a/src/bhyve/bhyve_command.c +++ b/src/bhyve/bhyve_command.c @@ -765,7 +765,7 @@ virBhyveProcessBuildBhyveCmd(bhyveConnPtr driver, virDomainDefPtr def, for (i = 0; i < def->nsounds; i++) { if (bhyveBuildSoundArgStr(def, def->sounds[i], - virDomainDefFindAudioForSound(def, def->sounds[i]), + virDomainDefFindAudioByID(def, def->sounds[i]->audioId), driver, cmd) < 0) goto error; } diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c3a21b4c78..c51a1d3bea 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -30545,13 +30545,17 @@ virDomainDefFindDevice(virDomainDefPtr def, virDomainAudioDefPtr -virDomainDefFindAudioForSound(virDomainDefPtr def, - virDomainSoundDefPtr sound) +virDomainDefFindAudioByID(const virDomainDef *def, + int id) { size_t i; - for (i = 0; i < def->naudios; i++) - if (def->audios[i]->id == sound->audioId) - return def->audios[i]; + if (id != 0) { + for (i = 0; i < def->naudios; i++) + if (def->audios[i]->id == id) + return def->audios[i]; + } else if (def->naudios) { + return def->audios[0]; + } return NULL; } diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index a3432f7e8a..586fd7761f 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -3811,8 +3811,8 @@ int virDomainDefFindDevice(virDomainDefPtr def, bool reportError); virDomainAudioDefPtr -virDomainDefFindAudioForSound(virDomainDefPtr def, - virDomainSoundDefPtr sound); +virDomainDefFindAudioByID(const virDomainDef *def, + int id); bool virDomainSoundModelSupportsCodecs(virDomainSoundDefPtr def); diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 2b7bfe76b5..5af6339674 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -300,7 +300,7 @@ virDomainDefCheckABIStability; virDomainDefCheckABIStabilityFlags; virDomainDefCompatibleDevice; virDomainDefCopy; -virDomainDefFindAudioForSound; +virDomainDefFindAudioByID; virDomainDefFindDevice; virDomainDefFormat; virDomainDefFormatConvertXMLFlags; -- 2.29.2

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. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/libvirt_private.syms | 2 + src/qemu/qemu_command.c | 158 +++++++++++++++--- src/qemu/qemu_validate.c | 55 +++++- .../qemuxml2argvdata/audio-alsa-minimal.args | 29 ++++ tests/qemuxml2argvdata/audio-alsa-minimal.xml | 36 ++++ .../audio-coreaudio-minimal.args | 29 ++++ .../audio-coreaudio-minimal.xml | 36 ++++ .../qemuxml2argvdata/audio-file-minimal.args | 29 ++++ tests/qemuxml2argvdata/audio-file-minimal.xml | 36 ++++ tests/qemuxml2argvdata/audio-jack-minimal.err | 1 + tests/qemuxml2argvdata/audio-jack-minimal.xml | 36 ++++ .../qemuxml2argvdata/audio-many-backends.err | 1 + .../qemuxml2argvdata/audio-many-backends.xml | 60 +++++++ .../qemuxml2argvdata/audio-none-minimal.args | 29 ++++ tests/qemuxml2argvdata/audio-none-minimal.xml | 36 ++++ tests/qemuxml2argvdata/audio-oss-best.args | 31 ++++ tests/qemuxml2argvdata/audio-oss-best.xml | 39 +++++ tests/qemuxml2argvdata/audio-oss-minimal.args | 29 ++++ tests/qemuxml2argvdata/audio-oss-minimal.xml | 36 ++++ .../audio-pulseaudio-minimal.args | 29 ++++ .../audio-pulseaudio-minimal.xml | 36 ++++ tests/qemuxml2argvdata/audio-sdl-best.args | 30 ++++ tests/qemuxml2argvdata/audio-sdl-best.xml | 36 ++++ tests/qemuxml2argvdata/audio-sdl-minimal.args | 29 ++++ tests/qemuxml2argvdata/audio-sdl-minimal.xml | 36 ++++ .../qemuxml2argvdata/audio-spice-minimal.args | 29 ++++ .../qemuxml2argvdata/audio-spice-minimal.xml | 36 ++++ tests/qemuxml2argvtest.c | 18 ++ .../qemuxml2xmloutdata/audio-alsa-minimal.xml | 1 + .../audio-coreaudio-minimal.xml | 1 + .../qemuxml2xmloutdata/audio-file-minimal.xml | 1 + .../qemuxml2xmloutdata/audio-none-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-oss-best.xml | 1 + .../qemuxml2xmloutdata/audio-oss-minimal.xml | 1 + .../audio-pulseaudio-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-sdl-best.xml | 1 + .../qemuxml2xmloutdata/audio-sdl-minimal.xml | 1 + .../audio-spice-minimal.xml | 1 + tests/qemuxml2xmltest.c | 14 ++ 39 files changed, 985 insertions(+), 26 deletions(-) create mode 100644 tests/qemuxml2argvdata/audio-alsa-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-file-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-file-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-jack-minimal.err create mode 100644 tests/qemuxml2argvdata/audio-jack-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-many-backends.err create mode 100644 tests/qemuxml2argvdata/audio-many-backends.xml create mode 100644 tests/qemuxml2argvdata/audio-none-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-none-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-oss-best.args create mode 100644 tests/qemuxml2argvdata/audio-oss-best.xml create mode 100644 tests/qemuxml2argvdata/audio-oss-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-oss-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-sdl-best.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-best.xml create mode 100644 tests/qemuxml2argvdata/audio-sdl-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-spice-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-spice-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-alsa-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-coreaudio-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-file-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-none-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-oss-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-oss-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-pulseaudio-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-sdl-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-sdl-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-spice-minimal.xml diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 5af6339674..7c289e6f34 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -226,6 +226,8 @@ virDiskNameParse; virDiskNameToBusDeviceIndex; virDiskNameToIndex; virDomainActualNetDefFree; +virDomainAudioSDLDriverTypeFromString; +virDomainAudioSDLDriverTypeToString; virDomainAudioTypeTypeFromString; virDomainAudioTypeTypeToString; virDomainBlockedReasonTypeFromString; diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 4785dfb791..8107e46036 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -177,6 +177,21 @@ VIR_ENUM_IMPL(qemuNumaPolicy, "interleave", ); +VIR_ENUM_DECL(qemuAudioDriver); +VIR_ENUM_IMPL(qemuAudioDriver, + VIR_DOMAIN_AUDIO_TYPE_LAST, + "none", + "alsa", + "coreaudio", + "jack", + "oss", + "pa", + "sdl", + "spice", + "wav", +); + + /** * qemuBuildMasterKeyCommandLine: @@ -7543,11 +7558,90 @@ qemuBuildMemoryDeviceCommandLine(virCommandPtr cmd, return 0; } +static void +qemuBuildAudioOSSEnv(virCommandPtr cmd, + const char *prefix, + virDomainAudioIOOSS *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 qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfigPtr cfg G_GNUC_UNUSED, virCommandPtr cmd, virQEMUCapsPtr qemuCaps G_GNUC_UNUSED, + virDomainDefPtr def, virDomainGraphicsDefPtr graphics) { g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER; @@ -7559,12 +7653,14 @@ qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfigPtr cfg G_GNUC_UNUSED, if (graphics->data.sdl.fullscreen) virCommandAddArg(cmd, "-full-screen"); - /* If using SDL for video, then we should just let it - * use QEMU's host audio drivers, possibly SDL too - * User can set these two before starting libvirtd - */ - virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV"); - virCommandAddEnvPass(cmd, "SDL_AUDIODRIVER"); + if (def->naudios == 0) { + /* If using SDL for video, then we should just let it + * use QEMU's host audio drivers, possibly SDL too + * User can set these two before starting libvirtd + */ + virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV"); + virCommandAddEnvPass(cmd, "SDL_AUDIODRIVER"); + } virCommandAddArg(cmd, "-display"); virBufferAddLit(&opt, "sdl"); @@ -7583,6 +7679,7 @@ static int qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg, virCommandPtr cmd, virQEMUCapsPtr qemuCaps, + virDomainDefPtr def, virDomainGraphicsDefPtr graphics) { g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER; @@ -7703,14 +7800,16 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg, if (graphics->data.vnc.keymap) virCommandAddArgList(cmd, "-k", graphics->data.vnc.keymap, NULL); - /* Unless user requested it, set the audio backend to none, to - * prevent it opening the host OS audio devices, since that causes - * security issues and might not work when using VNC. - */ - if (cfg->vncAllowHostAudio) - virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV"); - else - virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none"); + if (def->naudios == 0) { + /* Unless user requested it, set the audio backend to none, to + * prevent it opening the host OS audio devices, since that causes + * security issues and might not work when using VNC. + */ + if (cfg->vncAllowHostAudio) + virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV"); + else + virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none"); + } return 0; } @@ -7719,6 +7818,7 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg, static int qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfigPtr cfg, virCommandPtr cmd, + virDomainDefPtr def, virDomainGraphicsDefPtr graphics) { g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER; @@ -7916,10 +8016,13 @@ qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfigPtr cfg, if (graphics->data.spice.keymap) virCommandAddArgList(cmd, "-k", graphics->data.spice.keymap, NULL); - /* SPICE includes native support for tunnelling audio, so we - * set the audio backend to point at SPICE's own driver - */ - virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=spice"); + + if (def->naudios == 0) { + /* SPICE includes native support for tunnelling audio, so we + * set the audio backend to point at SPICE's own driver + */ + virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=spice"); + } return 0; } @@ -7961,19 +8064,19 @@ qemuBuildGraphicsCommandLine(virQEMUDriverConfigPtr cfg, switch (graphics->type) { case VIR_DOMAIN_GRAPHICS_TYPE_SDL: if (qemuBuildGraphicsSDLCommandLine(cfg, cmd, - qemuCaps, graphics) < 0) + qemuCaps, def, graphics) < 0) return -1; break; case VIR_DOMAIN_GRAPHICS_TYPE_VNC: if (qemuBuildGraphicsVNCCommandLine(cfg, cmd, - qemuCaps, graphics) < 0) + qemuCaps, def, graphics) < 0) return -1; break; case VIR_DOMAIN_GRAPHICS_TYPE_SPICE: if (qemuBuildGraphicsSPICECommandLine(cfg, cmd, - graphics) < 0) + def, graphics) < 0) return -1; break; @@ -9972,10 +10075,12 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, virCommandAddArg(cmd, "-display"); virCommandAddArg(cmd, "none"); - if (cfg->nogfxAllowHostAudio) - virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV"); - else - virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none"); + if (def->naudios == 0) { + if (cfg->nogfxAllowHostAudio) + virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV"); + else + virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none"); + } } /* Disable global config files and default devices */ @@ -10050,6 +10155,9 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, if (qemuBuildInputCommandLine(cmd, def, qemuCaps) < 0) return NULL; + if (qemuBuildAudioCommandLine(cmd, def) < 0) + return NULL; + if (qemuBuildGraphicsCommandLine(cfg, cmd, def, qemuCaps) < 0) return NULL; diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index d24300b305..ba3ef9067a 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -1228,6 +1228,12 @@ qemuValidateDomainDef(const virDomainDef *def, 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; } @@ -4145,6 +4151,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 qemuSoundCodecTypeToCaps(int type) { @@ -4838,9 +4888,12 @@ qemuValidateDomainDeviceDef(const virDomainDeviceDef *dev, ret = qemuValidateDomainDeviceDefShmem(dev->data.shmem, qemuCaps); break; + case VIR_DOMAIN_DEVICE_AUDIO: + ret = qemuValidateDomainDeviceDefAudio(dev->data.audio, qemuCaps); + break; + case VIR_DOMAIN_DEVICE_LEASE: case VIR_DOMAIN_DEVICE_PANIC: - case VIR_DOMAIN_DEVICE_AUDIO: case VIR_DOMAIN_DEVICE_NONE: case VIR_DOMAIN_DEVICE_LAST: break; diff --git a/tests/qemuxml2argvdata/audio-alsa-minimal.args b/tests/qemuxml2argvdata/audio-alsa-minimal.args new file mode 100644 index 0000000000..01fe6e2beb --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-minimal.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-alsa-minimal.xml b/tests/qemuxml2argvdata/audio-alsa-minimal.xml new file mode 100644 index 0000000000..ab26688317 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-minimal.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-coreaudio-minimal.args b/tests/qemuxml2argvdata/audio-coreaudio-minimal.args new file mode 100644 index 0000000000..c4d502b889 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-minimal.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-coreaudio-minimal.xml b/tests/qemuxml2argvdata/audio-coreaudio-minimal.xml new file mode 100644 index 0000000000..f271e995ff --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-minimal.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-file-minimal.args b/tests/qemuxml2argvdata/audio-file-minimal.args new file mode 100644 index 0000000000..fd504f50e7 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-minimal.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-file-minimal.xml b/tests/qemuxml2argvdata/audio-file-minimal.xml new file mode 100644 index 0000000000..3091b94cf3 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-minimal.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-jack-minimal.err b/tests/qemuxml2argvdata/audio-jack-minimal.err new file mode 100644 index 0000000000..0747113933 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-jack-minimal.err @@ -0,0 +1 @@ +unsupported configuration: 'jack' audio backend is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-jack-minimal.xml b/tests/qemuxml2argvdata/audio-jack-minimal.xml new file mode 100644 index 0000000000..d88d066008 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-jack-minimal.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-many-backends.err b/tests/qemuxml2argvdata/audio-many-backends.err new file mode 100644 index 0000000000..19b69e8b95 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-many-backends.err @@ -0,0 +1 @@ +unsupported configuration: only one audio backend is supported with this QEMU binary diff --git a/tests/qemuxml2argvdata/audio-many-backends.xml b/tests/qemuxml2argvdata/audio-many-backends.xml new file mode 100644 index 0000000000..86eef90e52 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-many-backends.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-none-minimal.args b/tests/qemuxml2argvdata/audio-none-minimal.args new file mode 100644 index 0000000000..00c6e37ccc --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-minimal.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-none-minimal.xml b/tests/qemuxml2argvdata/audio-none-minimal.xml new file mode 100644 index 0000000000..4729edaa63 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-minimal.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-oss-best.args b/tests/qemuxml2argvdata/audio-oss-best.args new file mode 100644 index 0000000000..e6a7bb4af8 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-best.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-oss-best.xml b/tests/qemuxml2argvdata/audio-oss-best.xml new file mode 100644 index 0000000000..0947bd6def --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-best.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-oss-minimal.args b/tests/qemuxml2argvdata/audio-oss-minimal.args new file mode 100644 index 0000000000..53c632e6d9 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-minimal.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-oss-minimal.xml b/tests/qemuxml2argvdata/audio-oss-minimal.xml new file mode 100644 index 0000000000..abddc1ac8c --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-minimal.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-minimal.args b/tests/qemuxml2argvdata/audio-pulseaudio-minimal.args new file mode 100644 index 0000000000..af274e4328 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-minimal.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-minimal.xml b/tests/qemuxml2argvdata/audio-pulseaudio-minimal.xml new file mode 100644 index 0000000000..013b708498 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-minimal.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-sdl-best.args b/tests/qemuxml2argvdata/audio-sdl-best.args new file mode 100644 index 0000000000..6aca7037a8 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-best.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-sdl-best.xml b/tests/qemuxml2argvdata/audio-sdl-best.xml new file mode 100644 index 0000000000..d6835a22bc --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-best.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-sdl-minimal.args b/tests/qemuxml2argvdata/audio-sdl-minimal.args new file mode 100644 index 0000000000..126c36ba7e --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-minimal.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-sdl-minimal.xml b/tests/qemuxml2argvdata/audio-sdl-minimal.xml new file mode 100644 index 0000000000..223e06196d --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-minimal.xml @@ -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> diff --git a/tests/qemuxml2argvdata/audio-spice-minimal.args b/tests/qemuxml2argvdata/audio-spice-minimal.args new file mode 100644 index 0000000000..a7a85959d6 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-minimal.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-spice-minimal.xml b/tests/qemuxml2argvdata/audio-spice-minimal.xml new file mode 100644 index 0000000000..eecae5ad12 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-minimal.xml @@ -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> diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index d6d707cd24..b7be131792 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1043,6 +1043,24 @@ mymain(void) QEMU_CAPS_BOOT_STRICT, 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-enabled", QEMU_CAPS_REBOOT_TIMEOUT); DO_TEST_PARSE_ERROR("reboot-timeout-enabled", NONE); diff --git a/tests/qemuxml2xmloutdata/audio-alsa-minimal.xml b/tests/qemuxml2xmloutdata/audio-alsa-minimal.xml new file mode 120000 index 0000000000..c4f64da11f --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-alsa-minimal.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-alsa-minimal.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-coreaudio-minimal.xml b/tests/qemuxml2xmloutdata/audio-coreaudio-minimal.xml new file mode 120000 index 0000000000..3d3078850f --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-coreaudio-minimal.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-coreaudio-minimal.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-file-minimal.xml b/tests/qemuxml2xmloutdata/audio-file-minimal.xml new file mode 120000 index 0000000000..0b187008a6 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-file-minimal.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-file-minimal.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-none-minimal.xml b/tests/qemuxml2xmloutdata/audio-none-minimal.xml new file mode 120000 index 0000000000..ce0a93c3e4 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-none-minimal.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-none-minimal.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-oss-best.xml b/tests/qemuxml2xmloutdata/audio-oss-best.xml new file mode 120000 index 0000000000..e716f61f72 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-oss-best.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-oss-best.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-oss-minimal.xml b/tests/qemuxml2xmloutdata/audio-oss-minimal.xml new file mode 120000 index 0000000000..d30a208e69 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-oss-minimal.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-oss-minimal.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-pulseaudio-minimal.xml b/tests/qemuxml2xmloutdata/audio-pulseaudio-minimal.xml new file mode 120000 index 0000000000..9cba6b5f00 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-pulseaudio-minimal.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-pulseaudio-minimal.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-sdl-best.xml b/tests/qemuxml2xmloutdata/audio-sdl-best.xml new file mode 120000 index 0000000000..0c90810974 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-sdl-best.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-sdl-best.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-sdl-minimal.xml b/tests/qemuxml2xmloutdata/audio-sdl-minimal.xml new file mode 120000 index 0000000000..787b220f0a --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-sdl-minimal.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-sdl-minimal.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-spice-minimal.xml b/tests/qemuxml2xmloutdata/audio-spice-minimal.xml new file mode 120000 index 0000000000..5f07fd844a --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-spice-minimal.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-spice-minimal.xml \ No newline at end of file diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 01ac5886f2..03ab424e1a 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -1463,6 +1463,20 @@ mymain(void) DO_TEST_CAPS_LATEST("virtio-9p-createmode"); 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: if (getenv("LIBVIRT_SKIP_CLEANUP") == NULL) virFileDeleteTree(fakerootdir); -- 2.29.2

Currently the QEMU driver secretly sets the QEMU_AUDIO_DRV env variable - VNC - set to "none", unless passthrough of host env variable is set - SPICE - always set to "spice" - SDL - always passthrough host env - No graphics - set to "none", unless passthrough of host env variable is set The setting of the QEMU_AUDIO_DRV env variable is done in the code which configures graphics. If no <audio> element is present, we now auto-populate <audio> elements to reflect this historical default config. This avoids need to set audio env when processing graphics. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/qemu/qemu_command.c | 44 +------ src/qemu/qemu_domain.c | 110 +++++++++++++++++- .../redefine.xml | 1 + .../disk_snapshot_redefine.xml | 1 + .../external_vm_redefine.xml | 1 + .../full_domain.xml | 1 + .../qemudomainsnapshotxml2xmlout/metadata.xml | 1 + .../ppc64-modern-bulk-result-conf.xml | 1 + .../ppc64-modern-bulk-result-live.xml | 1 + .../ppc64-modern-individual-result-conf.xml | 1 + .../ppc64-modern-individual-result-live.xml | 1 + .../x86-modern-bulk-result-conf.xml | 1 + .../x86-modern-bulk-result-live.xml | 1 + .../x86-modern-individual-add-result-conf.xml | 1 + .../x86-modern-individual-add-result-live.xml | 1 + .../x86-old-bulk-result-conf.xml | 1 + .../x86-old-bulk-result-live.xml | 1 + .../qemuhotplug-base-ccw-live+ccw-virtio.xml | 1 + ...with-2-ccw-virtio+ccw-virtio-1-reverse.xml | 1 + ...otplug-base-ccw-live-with-2-ccw-virtio.xml | 1 + ...-with-ccw-virtio+ccw-virtio-2-explicit.xml | 1 + ...-ccw-live-with-ccw-virtio+ccw-virtio-2.xml | 1 + ...uhotplug-base-ccw-live-with-ccw-virtio.xml | 1 + .../qemuhotplug-base-ccw-live.xml | 1 + ...uhotplug-base-live+disk-scsi-multipath.xml | 1 + ...+disk-scsi-wwn+disk-scsi-duplicate-wwn.xml | 1 + .../qemuhotplug-base-live+disk-scsi.xml | 1 + .../qemuhotplug-base-live+disk-usb.xml | 1 + .../qemuhotplug-base-live+disk-virtio.xml | 1 + .../qemuhotplug-base-live+guestfwd.xml | 1 + .../qemuhotplug-base-live+hostdev-pci.xml | 1 + .../qemuhotplug-base-live+interface-vdpa.xml | 1 + ...qemuhotplug-base-live+ivshmem-doorbell.xml | 1 + .../qemuhotplug-base-live+ivshmem-plain.xml | 1 + .../qemuhotplug-base-live+qemu-agent.xml | 1 + ...uhotplug-base-live+watchdog-user-alias.xml | 1 + .../qemuhotplug-base-live+watchdog.xml | 1 + .../qemuhotplug-base-live.xml | 1 + ...hotplug-base-with-scsi-controller-live.xml | 1 + ...thout-scsi-controller-live+disk-scsi-2.xml | 1 + ...g-console-compat-2-live+console-virtio.xml | 1 + .../qemuhotplug-console-compat-2-live.xml | 1 + ...uhotplug-pseries-base-live+hostdev-pci.xml | 1 + .../qemuhotplug-pseries-base-live.xml | 1 + .../full-xml2xml-out.xml | 1 + .../qemustatusxml2xmldata/backup-pull-in.xml | 1 + .../blockjob-blockdev-in.xml | 1 + .../blockjob-mirror-in.xml | 1 + .../migration-in-params-in.xml | 1 + .../migration-out-nbd-bitmaps-in.xml | 1 + .../migration-out-nbd-out.xml | 1 + .../migration-out-nbd-tls-out.xml | 1 + .../migration-out-params-in.xml | 1 + tests/qemustatusxml2xmldata/modern-in.xml | 1 + tests/qemustatusxml2xmldata/upgrade-out.xml | 1 + .../qemustatusxml2xmldata/vcpus-multi-in.xml | 1 + tests/qemuxml2argvdata/aarch64-gic-host.xml | 1 + tests/qemuxml2argvdata/aarch64-gic-v2.xml | 1 + tests/qemuxml2argvdata/aarch64-gic-v3.xml | 1 + .../audio-default-nographics.args | 29 +++++ .../audio-default-nographics.xml | 31 +++++ tests/qemuxml2argvdata/audio-default-sdl.args | 31 +++++ tests/qemuxml2argvdata/audio-default-sdl.xml | 35 ++++++ .../qemuxml2argvdata/audio-default-spice.args | 30 +++++ .../qemuxml2argvdata/audio-default-spice.xml | 35 ++++++ tests/qemuxml2argvdata/audio-default-vnc.args | 30 +++++ tests/qemuxml2argvdata/audio-default-vnc.xml | 35 ++++++ .../blkdeviotune-group-num.xml | 1 + .../blkdeviotune-max-length.xml | 1 + tests/qemuxml2argvdata/blkdeviotune-max.xml | 1 + tests/qemuxml2argvdata/boot-floppy-q35.xml | 1 + tests/qemuxml2argvdata/clock-france.args | 2 +- tests/qemuxml2argvdata/clock-realtime.xml | 1 + .../clock-timer-armvtimer.xml | 1 + tests/qemuxml2argvdata/disk-detect-zeroes.xml | 1 + tests/qemuxml2argvdata/disk-nvme.xml | 1 + tests/qemuxml2argvdata/disk-virtio-queues.xml | 1 + .../disk-virtio-scsi-reservations.xml | 1 + tests/qemuxml2argvdata/downscript.xml | 1 + .../qemuxml2argvdata/encrypted-disk-usage.xml | 1 + .../fd-memory-no-numa-topology.xml | 1 + .../fd-memory-numa-topology.xml | 1 + .../fd-memory-numa-topology2.xml | 1 + .../fd-memory-numa-topology3.xml | 1 + .../qemuxml2argvdata/graphics-spice-sasl.args | 2 +- tests/qemuxml2argvdata/graphics-vnc-sasl.args | 2 +- ...graphics-vnc-tls-secret.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/graphics-vnc-tls.args | 2 +- .../graphics-vnc-tls.x86_64-2.4.0.args | 2 +- .../graphics-vnc-tls.x86_64-latest.args | 2 +- .../qemuxml2argvdata/hugepages-default-2M.xml | 1 + .../hugepages-default-system-size.xml | 1 + .../qemuxml2argvdata/hugepages-memaccess.xml | 1 + .../qemuxml2argvdata/hugepages-memaccess2.xml | 1 + .../hugepages-numa-default-dimm.xml | 1 + tests/qemuxml2argvdata/hugepages-nvdimm.xml | 1 + .../qemuxml2argvdata/intel-iommu-aw-bits.xml | 1 + .../intel-iommu-caching-mode.xml | 1 + .../intel-iommu-device-iotlb.xml | 1 + tests/qemuxml2argvdata/intel-iommu-eim.xml | 1 + tests/qemuxml2argvdata/intel-iommu.xml | 1 + tests/qemuxml2argvdata/luks-disks.xml | 1 + .../memfd-memory-default-hugepage.xml | 1 + tests/qemuxml2argvdata/memfd-memory-numa.xml | 1 + .../memory-hotplug-nvdimm-access.xml | 1 + .../memory-hotplug-nvdimm-align.xml | 1 + .../memory-hotplug-nvdimm-label.xml | 1 + .../memory-hotplug-nvdimm-pmem.xml | 1 + .../memory-hotplug-nvdimm-readonly.xml | 1 + .../memory-hotplug-nvdimm.xml | 1 + .../memory-hotplug-ppc64-nonuma.xml | 1 + .../memory-hotplug-virtio-pmem.xml | 1 + tests/qemuxml2argvdata/net-user-addr.xml | 1 + .../net-virtio-teaming-hostdev.xml | 1 + tests/qemuxml2argvdata/numatune-hmat.xml | 1 + tests/qemuxml2argvdata/numatune-no-vcpu.xml | 1 + tests/qemuxml2argvdata/pages-dimm-discard.xml | 1 + .../pages-discard-hugepages.xml | 1 + tests/qemuxml2argvdata/pages-discard.xml | 1 + .../serial-tcp-tlsx509-chardev-notls.xml | 1 + tests/qemuxml2argvdata/smbios-type-fwcfg.xml | 1 + tests/qemuxml2argvdata/user-aliases.xml | 1 + .../vcpu-placement-static.xml | 1 + .../vhost-user-fs-fd-memory.xml | 1 + .../vhost-user-fs-hugepages.xml | 1 + .../vhost-vsock-ccw-iommu.xml | 1 + tests/qemuxml2argvdata/vhost-vsock-ccw.xml | 1 + tests/qemuxml2argvdata/vhost-vsock.xml | 1 + .../qemuxml2argvdata/video-qxl-resolution.xml | 1 + tests/qemuxml2argvdata/virtio-options.xml | 1 + tests/qemuxml2argvtest.c | 21 ++++ .../aarch64-aavmf-virtio-mmio.xml | 1 + ...efault-cpu-kvm-virt-4.2.aarch64-latest.xml | 1 + ...efault-cpu-tcg-virt-4.2.aarch64-latest.xml | 1 + .../aarch64-features-sve.aarch64-latest.xml | 1 + .../aarch64-gic-none-tcg.xml | 1 + ...aarch64-os-firmware-efi.aarch64-latest.xml | 1 + .../qemuxml2xmloutdata/aarch64-pci-serial.xml | 1 + .../aarch64-traditional-pci.xml | 1 + .../aarch64-video-default.xml | 1 + .../aarch64-video-virtio-gpu-pci.xml | 1 + .../aarch64-virt-graphics.aarch64-latest.xml | 1 + .../aarch64-virt-headless.aarch64-latest.xml | 1 + .../aarch64-virtio-pci-default.xml | 1 + .../aarch64-virtio-pci-manual-addresses.xml | 1 + tests/qemuxml2xmloutdata/acpi-table.xml | 1 + ...audio-default-nographics.x86_64-latest.xml | 39 +++++++ .../audio-default-nographics.xml | 1 + .../audio-default-sdl.x86_64-latest.xml | 44 +++++++ .../qemuxml2xmloutdata/audio-default-sdl.xml | 1 + .../audio-default-spice.x86_64-latest.xml | 46 ++++++++ .../audio-default-spice.xml | 1 + .../audio-default-vnc.x86_64-latest.xml | 46 ++++++++ .../qemuxml2xmloutdata/audio-default-vnc.xml | 1 + tests/qemuxml2xmloutdata/autoindex.xml | 1 + .../balloon-device-auto.xml | 1 + .../balloon-device-period.xml | 1 + .../bios-nvram-os-interleave.xml | 1 + tests/qemuxml2xmloutdata/bios-nvram.xml | 1 + .../blkdeviotune.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/blkiotune-device.xml | 1 + tests/qemuxml2xmloutdata/blkiotune.xml | 1 + tests/qemuxml2xmloutdata/boot-cdrom.xml | 1 + tests/qemuxml2xmloutdata/boot-floppy.xml | 1 + .../boot-menu-disable-with-timeout.xml | 1 + .../qemuxml2xmloutdata/boot-menu-disable.xml | 1 + .../boot-menu-enable-with-timeout.xml | 1 + tests/qemuxml2xmloutdata/boot-multi.xml | 1 + tests/qemuxml2xmloutdata/boot-network.xml | 1 + tests/qemuxml2xmloutdata/boot-order.xml | 1 + tests/qemuxml2xmloutdata/channel-guestfwd.xml | 1 + .../channel-unix-source-path-active.xml | 1 + .../channel-unix-source-path-inactive.xml | 1 + .../channel-virtio-auto.xml | 1 + .../channel-virtio-state-active.xml | 1 + .../channel-virtio-state-inactive.xml | 1 + tests/qemuxml2xmloutdata/channel-virtio.xml | 1 + tests/qemuxml2xmloutdata/chardev-label.xml | 1 + tests/qemuxml2xmloutdata/clock-catchup.xml | 1 + tests/qemuxml2xmloutdata/clock-localtime.xml | 1 + .../clock-timer-hyperv-rtc.xml | 1 + tests/qemuxml2xmloutdata/clock-utc.xml | 1 + .../console-compat-auto.xml | 1 + tests/qemuxml2xmloutdata/console-compat.xml | 1 + tests/qemuxml2xmloutdata/console-compat2.xml | 1 + .../console-virtio-many.xml | 1 + tests/qemuxml2xmloutdata/console-virtio.xml | 1 + .../controller-usb-order.xml | 1 + .../controller-virtio-scsi.xml | 1 + ...pu-Icelake-Server-pconfig.x86_64-3.1.0.xml | 1 + ...u-Icelake-Server-pconfig.x86_64-latest.xml | 1 + .../cpu-check-default-none.xml | 1 + .../cpu-check-default-none2.xml | 1 + .../cpu-check-default-partial.xml | 1 + .../cpu-check-default-partial2.xml | 1 + tests/qemuxml2xmloutdata/cpu-check-full.xml | 1 + tests/qemuxml2xmloutdata/cpu-check-none.xml | 1 + .../qemuxml2xmloutdata/cpu-check-partial.xml | 1 + tests/qemuxml2xmloutdata/cpu-empty.xml | 1 + tests/qemuxml2xmloutdata/cpu-eoi-disabled.xml | 1 + tests/qemuxml2xmloutdata/cpu-eoi-enabled.xml | 1 + .../qemuxml2xmloutdata/cpu-host-kvmclock.xml | 1 + .../cpu-host-model-features.xml | 1 + .../cpu-host-model-vendor.xml | 1 + .../cpu-host-passthrough-features.xml | 1 + tests/qemuxml2xmloutdata/cpu-kvmclock.xml | 1 + .../qemuxml2xmloutdata/cpu-numa-disjoint.xml | 1 + .../cpu-numa-disordered.xml | 1 + .../qemuxml2xmloutdata/cpu-numa-memshared.xml | 1 + .../cpu-numa-no-memory-element.xml | 1 + tests/qemuxml2xmloutdata/cpu-numa1.xml | 1 + tests/qemuxml2xmloutdata/cpu-numa2.xml | 1 + .../cputune-cpuset-big-id.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/cputune-iothreads.xml | 1 + .../cputune-iothreadsched-zeropriority.xml | 1 + .../cputune-iothreadsched.xml | 1 + tests/qemuxml2xmloutdata/cputune-numatune.xml | 1 + .../cputune-zero-shares.xml | 1 + tests/qemuxml2xmloutdata/cputune.xml | 1 + .../default-kvm-host-arch.xml | 1 + .../default-qemu-host-arch.xml | 1 + ...ault-video-type-aarch64.aarch64-latest.xml | 1 + .../default-video-type-ppc64.ppc64-latest.xml | 1 + ...ault-video-type-riscv64.riscv64-latest.xml | 1 + .../default-video-type-s390x.s390x-latest.xml | 1 + .../default-video-type-x86_64-caps-test-0.xml | 1 + .../default-video-type-x86_64-caps-test-1.xml | 1 + .../disk-active-commit-active.xml | 1 + .../disk-active-commit-inactive.xml | 1 + .../disk-aio-io_uring.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-aio.xml | 1 + .../disk-arm-virtio-sd.aarch64-latest.xml | 1 + .../disk-backing-chains-active.xml | 1 + .../disk-backing-chains-inactive.xml | 1 + .../disk-backing-chains-index-active.xml | 1 + .../disk-backing-chains-index-inactive.xml | 1 + .../disk-backing-chains-noindex.xml | 1 + tests/qemuxml2xmloutdata/disk-boot-cdrom.xml | 1 + tests/qemuxml2xmloutdata/disk-boot-disk.xml | 1 + .../disk-cache.x86_64-1.5.3.xml | 1 + .../disk-cache.x86_64-2.12.0.xml | 1 + .../disk-cache.x86_64-2.6.0.xml | 1 + .../disk-cache.x86_64-2.7.0.xml | 1 + .../disk-cache.x86_64-latest.xml | 1 + .../disk-cdrom-bus-other.xml | 1 + ...om-empty-network-invalid.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-cdrom.xml | 1 + .../qemuxml2xmloutdata/disk-copy_on_read.xml | 1 + .../disk-discard.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/disk-error-policy.xml | 1 + tests/qemuxml2xmloutdata/disk-floppy.xml | 1 + tests/qemuxml2xmloutdata/disk-fmt-qcow.xml | 1 + .../disk-metadata-cache.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/disk-mirror-active.xml | 1 + .../disk-mirror-inactive.xml | 1 + .../disk-mirror-old-active.xml | 1 + .../disk-mirror-old-inactive.xml | 1 + .../disk-network-gluster.xml | 1 + .../disk-network-http.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/disk-network-iscsi.xml | 1 + tests/qemuxml2xmloutdata/disk-network-nbd.xml | 1 + ...isk-network-nfs-inactive.x86_64-latest.xml | 1 + .../disk-network-nfs.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-network-rbd.xml | 1 + .../disk-network-sheepdog.xml | 1 + .../disk-network-source-auth.xml | 1 + .../disk-network-tlsx509-nbd.xml | 1 + .../disk-network-tlsx509-vxhs.xml | 1 + .../qemuxml2xmloutdata/disk-network-vxhs.xml | 1 + .../disk-scsi-device-auto.xml | 1 + .../qemuxml2xmloutdata/disk-scsi-disk-vpd.xml | 1 + .../disk-scsi-lun-passthrough-sgio.xml | 1 + .../disk-scsi.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-serial.xml | 1 + .../disk-slices.x86_64-latest.xml | 1 + .../disk-source-pool-mode.xml | 1 + tests/qemuxml2xmloutdata/disk-source-pool.xml | 1 + tests/qemuxml2xmloutdata/disk-usb-device.xml | 1 + .../disk-vhostuser.x86_64-latest.xml | 1 + .../disk-virtio-s390-zpci.xml | 1 + tests/qemuxml2xmloutdata/disk-virtio.xml | 1 + tests/qemuxml2xmloutdata/encrypted-disk.xml | 1 + tests/qemuxml2xmloutdata/eoi-disabled.xml | 1 + tests/qemuxml2xmloutdata/eoi-enabled.xml | 1 + tests/qemuxml2xmloutdata/event_idx.xml | 1 + tests/qemuxml2xmloutdata/floppy-drive-fat.xml | 1 + .../genid-active.x86_64-latest.xml | 1 + .../genid-auto-active.x86_64-latest.xml | 1 + .../genid-auto-inactive.x86_64-latest.xml | 1 + .../genid-inactive.x86_64-latest.xml | 1 + .../graphics-listen-network.xml | 1 + .../graphics-listen-network2.xml | 1 + .../graphics-spice-auto-socket-cfg.xml | 1 + .../graphics-spice-auto-socket.xml | 1 + .../graphics-spice-compression.xml | 1 + .../graphics-spice-egl-headless.xml | 1 + .../graphics-spice-qxl-vga.xml | 1 + .../graphics-spice-socket.xml | 1 + .../graphics-spice-timeout.xml | 1 + tests/qemuxml2xmloutdata/graphics-spice.xml | 1 + .../graphics-vnc-auto-socket-cfg.xml | 1 + .../graphics-vnc-auto-socket.xml | 1 + .../graphics-vnc-egl-headless.xml | 1 + .../graphics-vnc-no-listen-attr.xml | 1 + ...ics-vnc-remove-generated-socket-active.xml | 1 + ...s-vnc-remove-generated-socket-inactive.xml | 1 + .../qemuxml2xmloutdata/graphics-vnc-sasl.xml | 1 + .../graphics-vnc-socket.xml | 1 + tests/qemuxml2xmloutdata/graphics-vnc-tls.xml | 1 + .../graphics-vnc-websocket.xml | 1 + tests/qemuxml2xmloutdata/graphics-vnc.xml | 1 + ...stdev-mdev-display-ramfb.x86_64-latest.xml | 1 + .../hostdev-mdev-display.xml | 1 + .../hostdev-mdev-precreated.xml | 1 + .../hostdev-pci-address-unassigned.xml | 1 + .../hostdev-pci-address.xml | 1 + .../hostdev-pci-multifunction.xml | 1 + .../hostdev-scsi-autogen-address.xml | 1 + .../hostdev-scsi-large-unit.xml | 1 + tests/qemuxml2xmloutdata/hostdev-scsi-lsi.xml | 1 + .../qemuxml2xmloutdata/hostdev-scsi-rawio.xml | 1 + .../qemuxml2xmloutdata/hostdev-scsi-sgio.xml | 1 + .../hostdev-scsi-shareable.xml | 1 + .../hostdev-scsi-vhost-scsi-ccw.xml | 1 + .../hostdev-scsi-vhost-scsi-pci.xml | 1 + .../hostdev-scsi-vhost-scsi-pcie.xml | 1 + .../hostdev-scsi-virtio-scsi.xml | 1 + .../hostdev-subsys-mdev-vfio-ap.xml | 1 + ...subsys-mdev-vfio-ccw-boot.s390x-latest.xml | 1 + .../hostdev-subsys-mdev-vfio-ccw.xml | 1 + .../hostdev-usb-address.xml | 1 + .../hostdev-vfio-zpci-autogenerate-fids.xml | 1 + .../hostdev-vfio-zpci-autogenerate-uids.xml | 1 + .../hostdev-vfio-zpci-autogenerate.xml | 1 + .../hostdev-vfio-zpci-boundaries.xml | 1 + .../hostdev-vfio-zpci-ccw-memballoon.xml | 1 + .../hostdev-vfio-zpci-multidomain-many.xml | 1 + .../qemuxml2xmloutdata/hostdev-vfio-zpci.xml | 1 + tests/qemuxml2xmloutdata/hostdev-vfio.xml | 1 + .../qemuxml2xmloutdata/hugepages-default.xml | 1 + .../qemuxml2xmloutdata/hugepages-nodeset.xml | 1 + .../hugepages-numa-default-2M.xml | 1 + .../hugepages-numa-nodeset-part.xml | 1 + .../hugepages-numa-nodeset.xml | 1 + tests/qemuxml2xmloutdata/hugepages-shared.xml | 1 + tests/qemuxml2xmloutdata/hyperv-off.xml | 1 + tests/qemuxml2xmloutdata/hyperv-panic.xml | 1 + .../hyperv-stimer-direct.xml | 1 + tests/qemuxml2xmloutdata/hyperv.xml | 1 + tests/qemuxml2xmloutdata/input-usbmouse.xml | 1 + tests/qemuxml2xmloutdata/input-usbtablet.xml | 1 + tests/qemuxml2xmloutdata/input-virtio-ccw.xml | 1 + .../intel-iommu.x86_64-2.6.0.xml | 1 + tests/qemuxml2xmloutdata/interface-driver.xml | 1 + tests/qemuxml2xmloutdata/interface-server.xml | 1 + .../iommu-smmuv3.aarch64-latest.xml | 1 + .../iothreads-disk-virtio-ccw.xml | 1 + tests/qemuxml2xmloutdata/iothreads-disk.xml | 1 + .../iothreads-ids-partial.xml | 1 + tests/qemuxml2xmloutdata/iothreads-ids.xml | 1 + .../iothreads-virtio-scsi-ccw.xml | 1 + .../iothreads-virtio-scsi-pci.xml | 1 + tests/qemuxml2xmloutdata/iothreads.xml | 1 + tests/qemuxml2xmloutdata/kvm-features-off.xml | 1 + tests/qemuxml2xmloutdata/kvm-features.xml | 1 + tests/qemuxml2xmloutdata/kvmclock.xml | 1 + tests/qemuxml2xmloutdata/lease.xml | 1 + .../luks-disks-source-qcow2.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/luks-disks-source.xml | 1 + .../mach-virt-console-virtio.xml | 1 + .../mach-virt-serial-compat.xml | 1 + .../mach-virt-serial-pci.xml | 1 + .../mach-virt-serial-usb.xml | 1 + tests/qemuxml2xmloutdata/machine-core-off.xml | 1 + tests/qemuxml2xmloutdata/machine-core-on.xml | 1 + ...hine-loadparm-multiple-disks-nets-s390.xml | 1 + .../memory-hotplug-dimm.xml | 1 + ...memory-hotplug-nvdimm-ppc64-abi-update.xml | 1 + .../memory-hotplug-nvdimm-ppc64.xml | 1 + ...memory-hotplug-ppc64-nonuma-abi-update.xml | 1 + tests/qemuxml2xmloutdata/memory-hotplug.xml | 1 + .../qemuxml2xmloutdata/memorybacking-set.xml | 1 + .../memorybacking-unset.xml | 1 + .../qemuxml2xmloutdata/memtune-unlimited.xml | 1 + tests/qemuxml2xmloutdata/memtune.xml | 1 + .../qemuxml2xmloutdata/metadata-duplicate.xml | 1 + tests/qemuxml2xmloutdata/metadata.xml | 1 + tests/qemuxml2xmloutdata/migrate.xml | 1 + tests/qemuxml2xmloutdata/minimal.xml | 1 + tests/qemuxml2xmloutdata/misc-acpi.xml | 1 + tests/qemuxml2xmloutdata/misc-disable-s3.xml | 1 + .../misc-disable-suspends.xml | 1 + tests/qemuxml2xmloutdata/misc-enable-s4.xml | 1 + tests/qemuxml2xmloutdata/misc-no-reboot.xml | 1 + tests/qemuxml2xmloutdata/misc-uuid.xml | 1 + tests/qemuxml2xmloutdata/net-bandwidth.xml | 1 + tests/qemuxml2xmloutdata/net-bandwidth2.xml | 1 + tests/qemuxml2xmloutdata/net-coalesce.xml | 1 + tests/qemuxml2xmloutdata/net-eth-hostip.xml | 1 + tests/qemuxml2xmloutdata/net-eth-ifname.xml | 1 + .../net-eth-unmanaged-tap.xml | 1 + tests/qemuxml2xmloutdata/net-eth.xml | 1 + .../net-hostdev-bootorder.xml | 1 + tests/qemuxml2xmloutdata/net-hostdev-vfio.xml | 1 + tests/qemuxml2xmloutdata/net-hostdev.xml | 1 + .../net-isolated-port.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/net-many-models.xml | 1 + tests/qemuxml2xmloutdata/net-midonet.xml | 1 + tests/qemuxml2xmloutdata/net-mtu.xml | 1 + tests/qemuxml2xmloutdata/net-openvswitch.xml | 1 + tests/qemuxml2xmloutdata/net-udp.xml | 1 + tests/qemuxml2xmloutdata/net-user.xml | 1 + tests/qemuxml2xmloutdata/net-vdpa.xml | 1 + tests/qemuxml2xmloutdata/net-vhostuser.xml | 1 + .../qemuxml2xmloutdata/net-virtio-device.xml | 1 + .../net-virtio-disable-offloads.xml | 1 + .../net-virtio-network-portgroup.xml | 1 + .../net-virtio-rxtxqueuesize.xml | 1 + .../net-virtio-teaming-network.xml | 1 + .../qemuxml2xmloutdata/net-virtio-teaming.xml | 1 + tests/qemuxml2xmloutdata/net-virtio.xml | 1 + tests/qemuxml2xmloutdata/nosharepages.xml | 1 + .../numad-auto-memory-vcpu-cpuset.xml | 1 + ...to-memory-vcpu-no-cpuset-and-placement.xml | 1 + .../numad-auto-vcpu-no-numatune.xml | 1 + .../numad-static-vcpu-no-numatune.xml | 1 + .../numatune-auto-prefer.xml | 1 + .../qemuxml2xmloutdata/numatune-distances.xml | 1 + .../numatune-memnode-no-memory.xml | 1 + tests/qemuxml2xmloutdata/numatune-memnode.xml | 1 + ...avcpus-topology-mismatch.x86_64-latest.xml | 1 + .../os-firmware-bios.x86_64-latest.xml | 1 + .../os-firmware-efi-secboot.x86_64-latest.xml | 1 + .../os-firmware-efi.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/panic-double.xml | 1 + tests/qemuxml2xmloutdata/panic-isa.xml | 1 + tests/qemuxml2xmloutdata/panic-no-address.xml | 1 + tests/qemuxml2xmloutdata/panic-pseries.xml | 1 + tests/qemuxml2xmloutdata/panic.xml | 1 + tests/qemuxml2xmloutdata/pci-autoadd-addr.xml | 1 + tests/qemuxml2xmloutdata/pci-autoadd-idx.xml | 1 + .../qemuxml2xmloutdata/pci-autofill-addr.xml | 1 + .../pci-bridge-many-disks.xml | 1 + tests/qemuxml2xmloutdata/pci-bridge.xml | 1 + tests/qemuxml2xmloutdata/pci-expander-bus.xml | 1 + tests/qemuxml2xmloutdata/pci-many.xml | 1 + .../pci-rom-disabled-invalid.xml | 1 + tests/qemuxml2xmloutdata/pci-rom-disabled.xml | 1 + tests/qemuxml2xmloutdata/pci-rom.xml | 1 + .../pci-serial-dev-chardev.xml | 1 + .../qemuxml2xmloutdata/pcie-expander-bus.xml | 1 + .../pcie-root-port-model-generic.xml | 1 + .../pcie-root-port-model-ioh3420.xml | 1 + ...pcie-root-port-nohotplug.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/pcie-root-port.xml | 1 + tests/qemuxml2xmloutdata/pcie-root.xml | 1 + .../pcie-switch-downstream-port.xml | 1 + .../pcie-switch-upstream-port.xml | 1 + tests/qemuxml2xmloutdata/pcihole64-gib.xml | 1 + tests/qemuxml2xmloutdata/pcihole64-none.xml | 1 + tests/qemuxml2xmloutdata/pcihole64-q35.xml | 1 + tests/qemuxml2xmloutdata/pcihole64.xml | 1 + tests/qemuxml2xmloutdata/pmu-feature-off.xml | 1 + tests/qemuxml2xmloutdata/pmu-feature.xml | 1 + ...fault-cpu-kvm-pseries-2.7.ppc64-latest.xml | 1 + ...fault-cpu-kvm-pseries-3.1.ppc64-latest.xml | 1 + ...fault-cpu-kvm-pseries-4.2.ppc64-latest.xml | 1 + ...fault-cpu-tcg-pseries-2.7.ppc64-latest.xml | 1 + ...fault-cpu-tcg-pseries-3.1.ppc64-latest.xml | 1 + ...fault-cpu-tcg-pseries-4.2.ppc64-latest.xml | 1 + .../ppc64-pseries-graphics.ppc64-latest.xml | 1 + .../ppc64-pseries-headless.ppc64-latest.xml | 1 + .../ppc64-tpmproxy-single.ppc64-latest.xml | 1 + .../ppc64-tpmproxy-with-tpm.ppc64-latest.xml | 1 + .../ppc64-usb-controller-legacy.xml | 1 + .../ppc64-usb-controller.xml | 1 + .../pseries-console-virtio.xml | 1 + .../pseries-cpu-compat-power9.xml | 1 + .../qemuxml2xmloutdata/pseries-cpu-compat.xml | 1 + .../qemuxml2xmloutdata/pseries-cpu-exact.xml | 1 + tests/qemuxml2xmloutdata/pseries-features.xml | 1 + .../qemuxml2xmloutdata/pseries-hostdevs-1.xml | 1 + .../qemuxml2xmloutdata/pseries-hostdevs-2.xml | 1 + .../qemuxml2xmloutdata/pseries-hostdevs-3.xml | 1 + .../pseries-many-buses-1.xml | 1 + .../pseries-many-buses-2.xml | 1 + .../pseries-many-devices.xml | 1 + tests/qemuxml2xmloutdata/pseries-nvram.xml | 1 + .../pseries-panic-missing.xml | 1 + .../pseries-panic-no-address.xml | 1 + .../pseries-phb-default-missing.xml | 1 + .../pseries-phb-numa-node.xml | 1 + .../qemuxml2xmloutdata/pseries-phb-simple.xml | 1 + .../pseries-serial-native.xml | 1 + .../qemuxml2xmloutdata/pseries-serial-pci.xml | 1 + .../qemuxml2xmloutdata/pseries-serial-usb.xml | 1 + .../pv-spinlock-disabled.xml | 1 + .../pv-spinlock-enabled.xml | 1 + .../q35-default-devices-only.xml | 1 + .../qemuxml2xmloutdata/q35-multifunction.xml | 1 + .../q35-pci-force-address.xml | 1 + tests/qemuxml2xmloutdata/q35-pcie-autoadd.xml | 1 + tests/qemuxml2xmloutdata/q35-pcie.xml | 1 + tests/qemuxml2xmloutdata/q35-usb2-multi.xml | 1 + tests/qemuxml2xmloutdata/q35-usb2-reorder.xml | 1 + tests/qemuxml2xmloutdata/q35-usb2.xml | 1 + .../q35-virt-manager-basic.xml | 1 + tests/qemuxml2xmloutdata/q35-virtio-pci.xml | 1 + tests/qemuxml2xmloutdata/q35.xml | 1 + tests/qemuxml2xmloutdata/qemu-ns-no-env.xml | 1 + .../reboot-timeout-disabled.xml | 1 + .../reboot-timeout-enabled.xml | 1 + tests/qemuxml2xmloutdata/restore-v2.xml | 1 + .../riscv64-virt-graphics.riscv64-latest.xml | 1 + .../riscv64-virt-headless.riscv64-latest.xml | 1 + tests/qemuxml2xmloutdata/riscv64-virt-pci.xml | 1 + tests/qemuxml2xmloutdata/riscv64-virt.xml | 1 + ...lt-cpu-kvm-ccw-virtio-2.7.s390x-latest.xml | 1 + ...lt-cpu-kvm-ccw-virtio-4.2.s390x-latest.xml | 1 + ...lt-cpu-tcg-ccw-virtio-2.7.s390x-latest.xml | 1 + ...lt-cpu-tcg-ccw-virtio-4.2.s390x-latest.xml | 1 + .../s390-defaultconsole.xml | 1 + .../qemuxml2xmloutdata/s390-panic-missing.xml | 1 + .../s390-panic-no-address.xml | 1 + tests/qemuxml2xmloutdata/s390-panic.xml | 1 + tests/qemuxml2xmloutdata/s390-serial-2.xml | 1 + .../s390-serial-console.xml | 1 + tests/qemuxml2xmloutdata/s390-serial.xml | 1 + .../s390x-ccw-graphics.s390x-latest.xml | 1 + .../s390x-ccw-headless.s390x-latest.xml | 1 + .../qemuxml2xmloutdata/seclabel-dac-none.xml | 1 + .../seclabel-device-multiple.xml | 1 + .../seclabel-dynamic-baselabel-inactive.xml | 1 + .../seclabel-dynamic-labelskip-inactive.xml | 1 + ...seclabel-dynamic-none-relabel-inactive.xml | 1 + .../seclabel-dynamic-none.xml | 1 + .../seclabel-dynamic-override-inactive.xml | 1 + .../seclabel-dynamic-relabel-inactive.xml | 1 + tests/qemuxml2xmloutdata/seclabel-none.xml | 1 + .../seclabel-static-labelskip-active.xml | 1 + .../seclabel-static-labelskip-inactive.xml | 1 + tests/qemuxml2xmloutdata/seclabel-static.xml | 1 + .../serial-spiceport-nospice.xml | 1 + tests/qemuxml2xmloutdata/serial-spiceport.xml | 1 + .../serial-target-port-auto.xml | 1 + .../serial-tcp-tlsx509-chardev.xml | 1 + .../shmem-plain-doorbell.xml | 1 + tests/qemuxml2xmloutdata/shmem.xml | 1 + .../smartcard-controller.xml | 1 + .../smartcard-host-certificates-database.xml | 1 + .../smartcard-host-certificates.xml | 1 + tests/qemuxml2xmloutdata/smartcard-host.xml | 1 + .../smartcard-passthrough-spicevmc.xml | 1 + .../smartcard-passthrough-tcp.xml | 1 + .../smbios-multiple-type2.xml | 1 + tests/qemuxml2xmloutdata/smbios.xml | 1 + tests/qemuxml2xmloutdata/smp.xml | 1 + tests/qemuxml2xmloutdata/sound-device.xml | 1 + tests/qemuxml2xmloutdata/sound.xml | 1 + .../tap-vhost-incorrect.xml | 1 + tests/qemuxml2xmloutdata/tap-vhost.xml | 1 + .../tpm-emulator-tpm2-enc.x86_64-latest.xml | 1 + ...tpm-emulator-tpm2-pstate.x86_64-latest.xml | 1 + .../tpm-emulator-tpm2.x86_64-latest.xml | 1 + .../tpm-emulator.x86_64-latest.xml | 1 + .../tpm-passthrough-crb.x86_64-latest.xml | 1 + .../tpm-passthrough.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/tseg-explicit-size.xml | 1 + .../usb-controller-default-q35.xml | 1 + .../usb-controller-explicit-q35.xml | 1 + tests/qemuxml2xmloutdata/usb-controller.xml | 1 + .../qemuxml2xmloutdata/usb-ich9-ehci-addr.xml | 1 + tests/qemuxml2xmloutdata/usb-none.xml | 1 + .../usb-piix3-controller.xml | 1 + tests/qemuxml2xmloutdata/usb-port-missing.xml | 1 + .../usb-redir-filter-version.xml | 1 + tests/qemuxml2xmloutdata/usb-redir-filter.xml | 1 + tests/qemuxml2xmloutdata/usb-redir.xml | 1 + tests/qemuxml2xmloutdata/vhost-vsock-auto.xml | 1 + .../vhost-vsock-ccw-auto.xml | 1 + tests/qemuxml2xmloutdata/vhost_queues.xml | 1 + .../video-device-pciaddr-default.xml | 1 + .../qemuxml2xmloutdata/video-none-device.xml | 1 + tests/qemuxml2xmloutdata/video-qxl-heads.xml | 1 + .../qemuxml2xmloutdata/video-qxl-noheads.xml | 1 + .../video-virtio-gpu-ccw-auto.xml | 1 + .../video-virtio-gpu-ccw.xml | 1 + .../video-virtio-gpu-device.xml | 1 + .../video-virtio-gpu-secondary.xml | 1 + .../video-virtio-gpu-spice-gl.xml | 1 + .../video-virtio-gpu-virgl.xml | 1 + .../virtio-9p-createmode.x86_64-latest.xml | 1 + .../virtio-9p-multidevs.x86_64-latest.xml | 1 + .../virtio-input-passthrough.xml | 1 + tests/qemuxml2xmloutdata/virtio-input.xml | 1 + tests/qemuxml2xmloutdata/virtio-lun.xml | 1 + .../virtio-non-transitional.x86_64-latest.xml | 1 + .../virtio-rng-builtin.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/virtio-rng-egd.xml | 1 + .../qemuxml2xmloutdata/virtio-rng-random.xml | 1 + .../virtio-transitional.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/vmcoreinfo.xml | 1 + tests/qemuxml2xmloutdata/watchdog.xml | 1 + ...4-default-cpu-kvm-pc-4.2.x86_64-latest.xml | 1 + ...-default-cpu-kvm-q35-4.2.x86_64-latest.xml | 1 + ...4-default-cpu-tcg-pc-4.2.x86_64-latest.xml | 1 + ...-default-cpu-tcg-q35-4.2.x86_64-latest.xml | 1 + .../x86_64-pc-graphics.x86_64-latest.xml | 1 + .../x86_64-pc-headless.x86_64-latest.xml | 1 + .../x86_64-q35-graphics.x86_64-latest.xml | 1 + .../x86_64-q35-headless.x86_64-latest.xml | 1 + tests/qemuxml2xmltest.c | 22 ++++ 612 files changed, 1182 insertions(+), 49 deletions(-) create mode 100644 tests/qemuxml2argvdata/audio-default-nographics.args create mode 100644 tests/qemuxml2argvdata/audio-default-nographics.xml create mode 100644 tests/qemuxml2argvdata/audio-default-sdl.args create mode 100644 tests/qemuxml2argvdata/audio-default-sdl.xml create mode 100644 tests/qemuxml2argvdata/audio-default-spice.args create mode 100644 tests/qemuxml2argvdata/audio-default-spice.xml create mode 100644 tests/qemuxml2argvdata/audio-default-vnc.args create mode 100644 tests/qemuxml2argvdata/audio-default-vnc.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-nographics.x86_64-latest.xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-nographics.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-sdl.x86_64-latest.xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-sdl.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-spice.x86_64-latest.xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-spice.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-vnc.x86_64-latest.xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-vnc.xml diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 8107e46036..54cbc3ba90 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -7615,6 +7615,7 @@ qemuBuildAudioCommandLineEnv(virCommandPtr cmd, audio->backend.sdl.driver)); } break; + case VIR_DOMAIN_AUDIO_TYPE_SPICE: break; @@ -7641,7 +7642,6 @@ static int qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfigPtr cfg G_GNUC_UNUSED, virCommandPtr cmd, virQEMUCapsPtr qemuCaps G_GNUC_UNUSED, - virDomainDefPtr def, virDomainGraphicsDefPtr graphics) { g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER; @@ -7653,15 +7653,6 @@ qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfigPtr cfg G_GNUC_UNUSED, if (graphics->data.sdl.fullscreen) virCommandAddArg(cmd, "-full-screen"); - if (def->naudios == 0) { - /* If using SDL for video, then we should just let it - * use QEMU's host audio drivers, possibly SDL too - * User can set these two before starting libvirtd - */ - virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV"); - virCommandAddEnvPass(cmd, "SDL_AUDIODRIVER"); - } - virCommandAddArg(cmd, "-display"); virBufferAddLit(&opt, "sdl"); @@ -7679,7 +7670,6 @@ static int qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg, virCommandPtr cmd, virQEMUCapsPtr qemuCaps, - virDomainDefPtr def, virDomainGraphicsDefPtr graphics) { g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER; @@ -7800,17 +7790,6 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg, if (graphics->data.vnc.keymap) virCommandAddArgList(cmd, "-k", graphics->data.vnc.keymap, NULL); - if (def->naudios == 0) { - /* Unless user requested it, set the audio backend to none, to - * prevent it opening the host OS audio devices, since that causes - * security issues and might not work when using VNC. - */ - if (cfg->vncAllowHostAudio) - virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV"); - else - virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none"); - } - return 0; } @@ -7818,7 +7797,6 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg, static int qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfigPtr cfg, virCommandPtr cmd, - virDomainDefPtr def, virDomainGraphicsDefPtr graphics) { g_auto(virBuffer) opt = VIR_BUFFER_INITIALIZER; @@ -8017,13 +7995,6 @@ qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfigPtr cfg, virCommandAddArgList(cmd, "-k", graphics->data.spice.keymap, NULL); - if (def->naudios == 0) { - /* SPICE includes native support for tunnelling audio, so we - * set the audio backend to point at SPICE's own driver - */ - virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=spice"); - } - return 0; } @@ -8064,19 +8035,19 @@ qemuBuildGraphicsCommandLine(virQEMUDriverConfigPtr cfg, switch (graphics->type) { case VIR_DOMAIN_GRAPHICS_TYPE_SDL: if (qemuBuildGraphicsSDLCommandLine(cfg, cmd, - qemuCaps, def, graphics) < 0) + qemuCaps, graphics) < 0) return -1; break; case VIR_DOMAIN_GRAPHICS_TYPE_VNC: if (qemuBuildGraphicsVNCCommandLine(cfg, cmd, - qemuCaps, def, graphics) < 0) + qemuCaps, graphics) < 0) return -1; break; case VIR_DOMAIN_GRAPHICS_TYPE_SPICE: if (qemuBuildGraphicsSPICECommandLine(cfg, cmd, - def, graphics) < 0) + graphics) < 0) return -1; break; @@ -10074,13 +10045,6 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, if (!def->ngraphics) { virCommandAddArg(cmd, "-display"); virCommandAddArg(cmd, "none"); - - if (def->naudios == 0) { - if (cfg->nogfxAllowHostAudio) - virCommandAddEnvPass(cmd, "QEMU_AUDIO_DRV"); - else - virCommandAddEnvString(cmd, "QEMU_AUDIO_DRV=none"); - } } /* Disable global config files and default devices */ diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index bb14fe2e33..59071068c3 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -3573,9 +3573,112 @@ qemuDomainDefAddImplicitInputDevice(virDomainDef *def) return 0; } +static int +qemuDomainDefAddDefaultAudioBackend(virQEMUDriverPtr driver, + virDomainDefPtr def) +{ + size_t i; + bool addAudio = false; + bool audioPassthrough = false; + virDomainAudioType audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE; + g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver); + + if (def->naudios > 0) { + return 0; + } + + for (i = 0; i < def->ngraphics; i++) { + virDomainGraphicsDefPtr graph = def->graphics[i]; + + switch ((virDomainGraphicsType)graph->type) { + case VIR_DOMAIN_GRAPHICS_TYPE_VNC: + if (cfg->vncAllowHostAudio) { + audioPassthrough = true; + } else { + audioPassthrough = false; + audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE; + } + addAudio = true; + break; + case VIR_DOMAIN_GRAPHICS_TYPE_SPICE: + audioPassthrough = false; + audioBackend = VIR_DOMAIN_AUDIO_TYPE_SPICE; + addAudio = true; + break; + case VIR_DOMAIN_GRAPHICS_TYPE_SDL: + audioPassthrough = true; + addAudio = true; + break; + + case VIR_DOMAIN_GRAPHICS_TYPE_RDP: + case VIR_DOMAIN_GRAPHICS_TYPE_DESKTOP: + case VIR_DOMAIN_GRAPHICS_TYPE_EGL_HEADLESS: + break; + case VIR_DOMAIN_GRAPHICS_TYPE_LAST: + default: + virReportEnumRangeError(virDomainGraphicsType, graph->type); + return -1; + } + } + + if (!def->ngraphics) { + if (cfg->nogfxAllowHostAudio) { + audioPassthrough = true; + } else { + audioPassthrough = false; + audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE; + } + addAudio = true; + } + + if (addAudio && audioPassthrough) { + const char *audioenv = g_getenv("QEMU_AUDIO_DRV"); + if (audioenv == NULL) { + addAudio = false; + } else { + /* + * QEMU audio driver names are mostly the same as + * libvirt XML audio backend names + */ + if (STREQ(audioenv, "pa")) { + audioBackend = VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO; + } else { + if ((audioBackend = virDomainAudioTypeTypeFromString(audioenv)) < 0) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("unknown QEMU_AUDIO_DRV setting %s"), audioenv); + return -1; + } + } + } + } + if (addAudio) { + virDomainAudioDefPtr audio = g_new0(virDomainAudioDef, 1); + + audio->type = audioBackend; + audio->id = 1; + + def->naudios = 1; + def->audios = g_new0(virDomainAudioDefPtr, def->naudios); + def->audios[0] = audio; + + if (audioBackend == VIR_DOMAIN_AUDIO_TYPE_SDL) { + const char *sdldriver = g_getenv("SDL_AUDIODRIVER"); + if (sdldriver != NULL && + ((audio->backend.sdl.driver = + virDomainAudioSDLDriverTypeFromString(sdldriver)) <= 0)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("unknown SDL_AUDIODRIVER setting %s"), sdldriver); + return -1; + } + } + } + + return 0; +} static int -qemuDomainDefAddDefaultDevices(virDomainDefPtr def, +qemuDomainDefAddDefaultDevices(virQEMUDriverPtr driver, + virDomainDefPtr def, virQEMUCapsPtr qemuCaps) { bool addDefaultUSB = true; @@ -3827,6 +3930,9 @@ qemuDomainDefAddDefaultDevices(virDomainDefPtr def, } } + if (qemuDomainDefAddDefaultAudioBackend(driver, def) < 0) + return -1; + return 0; } @@ -4419,7 +4525,7 @@ qemuDomainDefPostParse(virDomainDefPtr def, qemuDomainNVRAMPathGenerate(cfg, def); - if (qemuDomainDefAddDefaultDevices(def, qemuCaps) < 0) + if (qemuDomainDefAddDefaultDevices(driver, def, qemuCaps) < 0) return -1; if (qemuCanonicalizeMachine(def, qemuCaps) < 0) diff --git a/tests/qemudomaincheckpointxml2xmlout/redefine.xml b/tests/qemudomaincheckpointxml2xmlout/redefine.xml index 524360fb4c..b7c9d9dc6c 100644 --- a/tests/qemudomaincheckpointxml2xmlout/redefine.xml +++ b/tests/qemudomaincheckpointxml2xmlout/redefine.xml @@ -57,6 +57,7 @@ <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> diff --git a/tests/qemudomainsnapshotxml2xmlout/disk_snapshot_redefine.xml b/tests/qemudomainsnapshotxml2xmlout/disk_snapshot_redefine.xml index 12bc6d953e..24b41ba7c5 100644 --- a/tests/qemudomainsnapshotxml2xmlout/disk_snapshot_redefine.xml +++ b/tests/qemudomainsnapshotxml2xmlout/disk_snapshot_redefine.xml @@ -85,6 +85,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemudomainsnapshotxml2xmlout/external_vm_redefine.xml b/tests/qemudomainsnapshotxml2xmlout/external_vm_redefine.xml index c165e1f81d..eae4691c1c 100644 --- a/tests/qemudomainsnapshotxml2xmlout/external_vm_redefine.xml +++ b/tests/qemudomainsnapshotxml2xmlout/external_vm_redefine.xml @@ -45,6 +45,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemudomainsnapshotxml2xmlout/full_domain.xml b/tests/qemudomainsnapshotxml2xmlout/full_domain.xml index 080f6d50a3..1ddaa2a9aa 100644 --- a/tests/qemudomainsnapshotxml2xmlout/full_domain.xml +++ b/tests/qemudomainsnapshotxml2xmlout/full_domain.xml @@ -38,6 +38,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemudomainsnapshotxml2xmlout/metadata.xml b/tests/qemudomainsnapshotxml2xmlout/metadata.xml index e5fa60819c..4b14c9efde 100644 --- a/tests/qemudomainsnapshotxml2xmlout/metadata.xml +++ b/tests/qemudomainsnapshotxml2xmlout/metadata.xml @@ -42,6 +42,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-conf.xml b/tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-conf.xml index f80c4367df..690c85cf85 100644 --- a/tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-conf.xml +++ b/tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-conf.xml @@ -57,6 +57,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-live.xml b/tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-live.xml index 7998b978fb..58e156203f 100644 --- a/tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-live.xml +++ b/tests/qemuhotplugtestcpus/ppc64-modern-bulk-result-live.xml @@ -64,6 +64,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> diff --git a/tests/qemuhotplugtestcpus/ppc64-modern-individual-result-conf.xml b/tests/qemuhotplugtestcpus/ppc64-modern-individual-result-conf.xml index 2a48a97eef..d1e6329812 100644 --- a/tests/qemuhotplugtestcpus/ppc64-modern-individual-result-conf.xml +++ b/tests/qemuhotplugtestcpus/ppc64-modern-individual-result-conf.xml @@ -57,6 +57,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuhotplugtestcpus/ppc64-modern-individual-result-live.xml b/tests/qemuhotplugtestcpus/ppc64-modern-individual-result-live.xml index 90518d1fa9..a119ae44d5 100644 --- a/tests/qemuhotplugtestcpus/ppc64-modern-individual-result-live.xml +++ b/tests/qemuhotplugtestcpus/ppc64-modern-individual-result-live.xml @@ -64,6 +64,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> diff --git a/tests/qemuhotplugtestcpus/x86-modern-bulk-result-conf.xml b/tests/qemuhotplugtestcpus/x86-modern-bulk-result-conf.xml index 0d622fc8ae..a0358df432 100644 --- a/tests/qemuhotplugtestcpus/x86-modern-bulk-result-conf.xml +++ b/tests/qemuhotplugtestcpus/x86-modern-bulk-result-conf.xml @@ -33,6 +33,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuhotplugtestcpus/x86-modern-bulk-result-live.xml b/tests/qemuhotplugtestcpus/x86-modern-bulk-result-live.xml index ed9deaea4a..a6c6c33a4b 100644 --- a/tests/qemuhotplugtestcpus/x86-modern-bulk-result-live.xml +++ b/tests/qemuhotplugtestcpus/x86-modern-bulk-result-live.xml @@ -40,6 +40,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> diff --git a/tests/qemuhotplugtestcpus/x86-modern-individual-add-result-conf.xml b/tests/qemuhotplugtestcpus/x86-modern-individual-add-result-conf.xml index 342f172108..d16832b116 100644 --- a/tests/qemuhotplugtestcpus/x86-modern-individual-add-result-conf.xml +++ b/tests/qemuhotplugtestcpus/x86-modern-individual-add-result-conf.xml @@ -33,6 +33,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuhotplugtestcpus/x86-modern-individual-add-result-live.xml b/tests/qemuhotplugtestcpus/x86-modern-individual-add-result-live.xml index b8341c74e5..5edb601297 100644 --- a/tests/qemuhotplugtestcpus/x86-modern-individual-add-result-live.xml +++ b/tests/qemuhotplugtestcpus/x86-modern-individual-add-result-live.xml @@ -40,6 +40,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> diff --git a/tests/qemuhotplugtestcpus/x86-old-bulk-result-conf.xml b/tests/qemuhotplugtestcpus/x86-old-bulk-result-conf.xml index 29da89f5bc..0c675c3db9 100644 --- a/tests/qemuhotplugtestcpus/x86-old-bulk-result-conf.xml +++ b/tests/qemuhotplugtestcpus/x86-old-bulk-result-conf.xml @@ -23,6 +23,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuhotplugtestcpus/x86-old-bulk-result-live.xml b/tests/qemuhotplugtestcpus/x86-old-bulk-result-live.xml index f81194db5b..5aca6ea5c5 100644 --- a/tests/qemuhotplugtestcpus/x86-old-bulk-result-live.xml +++ b/tests/qemuhotplugtestcpus/x86-old-bulk-result-live.xml @@ -30,6 +30,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live+ccw-virtio.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live+ccw-virtio.xml index 59c969e0f2..44f41c6ddd 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live+ccw-virtio.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live+ccw-virtio.xml @@ -44,6 +44,7 @@ <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml index 6eadbdcd18..0988f8681c 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml @@ -54,6 +54,7 @@ <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml index 68561b50a3..b0151cd690 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml @@ -44,6 +44,7 @@ <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml index 0900f3c8e3..0e8075caf6 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml @@ -53,6 +53,7 @@ <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml index 0900f3c8e3..0e8075caf6 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml @@ -53,6 +53,7 @@ <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio.xml index 31979c40f0..240dda4c72 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio.xml @@ -43,6 +43,7 @@ <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live.xml index 844b951940..9a650e340e 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live.xml @@ -34,6 +34,7 @@ <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi-multipath.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi-multipath.xml index 40af064d10..caf1c06c2f 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi-multipath.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi-multipath.xml @@ -56,6 +56,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi-wwn+disk-scsi-duplicate-wwn.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi-wwn+disk-scsi-duplicate-wwn.xml index 035ec25304..ba99d0c2e4 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi-wwn+disk-scsi-duplicate-wwn.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi-wwn+disk-scsi-duplicate-wwn.xml @@ -66,6 +66,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi.xml index dd65a48057..66302b3872 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-scsi.xml @@ -54,6 +54,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-usb.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-usb.xml index c161e5b289..b462ad48e4 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-usb.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-usb.xml @@ -54,6 +54,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-virtio.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-virtio.xml index 299d595d6e..5b573f1915 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-virtio.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+disk-virtio.xml @@ -54,6 +54,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+guestfwd.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+guestfwd.xml index 8d7294123b..3bf64326c5 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+guestfwd.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+guestfwd.xml @@ -49,6 +49,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+hostdev-pci.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+hostdev-pci.xml index 40dcc33595..62366bee05 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+hostdev-pci.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+hostdev-pci.xml @@ -44,6 +44,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+interface-vdpa.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+interface-vdpa.xml index 066180bb3c..54e5dabdfa 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+interface-vdpa.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+interface-vdpa.xml @@ -51,6 +51,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+ivshmem-doorbell.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+ivshmem-doorbell.xml index 8013264989..86b6ebe19a 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+ivshmem-doorbell.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+ivshmem-doorbell.xml @@ -44,6 +44,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> <shmem name='shmem0' role='peer'> <model type='ivshmem-plain'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+ivshmem-plain.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+ivshmem-plain.xml index 0490310760..3a208a8244 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+ivshmem-plain.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+ivshmem-plain.xml @@ -44,6 +44,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> <shmem name='shmem0' role='peer'> <model type='ivshmem-plain'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+qemu-agent.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+qemu-agent.xml index b1ba51b2d8..a0d7e3c704 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+qemu-agent.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+qemu-agent.xml @@ -50,6 +50,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+watchdog-user-alias.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+watchdog-user-alias.xml index 1fddd68a27..31bafb0814 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+watchdog-user-alias.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+watchdog-user-alias.xml @@ -44,6 +44,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <watchdog model='i6300esb' action='poweroff'> <alias name='ua-UserWatchdog'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+watchdog.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+watchdog.xml index 76b573f25c..c9a2e90433 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+watchdog.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+watchdog.xml @@ -44,6 +44,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <watchdog model='i6300esb' action='poweroff'> <alias name='watchdog0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live.xml index d46e20fa58..a02bc39663 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-live.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live.xml @@ -44,6 +44,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-with-scsi-controller-live.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-with-scsi-controller-live.xml index 5ee6ea25c3..0a04e2ac04 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-with-scsi-controller-live.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-with-scsi-controller-live.xml @@ -48,6 +48,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-without-scsi-controller-live+disk-scsi-2.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-without-scsi-controller-live+disk-scsi-2.xml index 72b5174825..f553229a31 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-base-without-scsi-controller-live+disk-scsi-2.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-without-scsi-controller-live+disk-scsi-2.xml @@ -58,6 +58,7 @@ <input type='keyboard' bus='ps2'> <alias name='input1'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> <seclabel type='none' model='none'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live+console-virtio.xml b/tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live+console-virtio.xml index abe68a0a07..5d688e7748 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live+console-virtio.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live+console-virtio.xml @@ -119,6 +119,7 @@ <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live.xml b/tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live.xml index 45161e1e2d..b916f30412 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live.xml @@ -114,6 +114,7 @@ <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live+hostdev-pci.xml b/tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live+hostdev-pci.xml index 483cb5d8f0..6a60a388a9 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live+hostdev-pci.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live+hostdev-pci.xml @@ -36,6 +36,7 @@ <alias name='input1'/> <address type='usb' bus='0' port='2'/> </input> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live.xml b/tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live.xml index 1dcc35f626..e9b89a7acc 100644 --- a/tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live.xml +++ b/tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live.xml @@ -36,6 +36,7 @@ <alias name='input1'/> <address type='usb' bus='0' port='2'/> </input> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemumigrationcookiexmldata/full-xml2xml-out.xml b/tests/qemumigrationcookiexmldata/full-xml2xml-out.xml index a07dd1f147..013cfb1eb2 100644 --- a/tests/qemumigrationcookiexmldata/full-xml2xml-out.xml +++ b/tests/qemumigrationcookiexmldata/full-xml2xml-out.xml @@ -142,6 +142,7 @@ <sound model='ich6'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemustatusxml2xmldata/backup-pull-in.xml b/tests/qemustatusxml2xmldata/backup-pull-in.xml index bb322f94d3..95afd3a51f 100644 --- a/tests/qemustatusxml2xmldata/backup-pull-in.xml +++ b/tests/qemustatusxml2xmldata/backup-pull-in.xml @@ -594,6 +594,7 @@ <listen type='address' address='127.0.0.1' fromConfig='1' autoGenerated='no'/> <image compression='off'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemustatusxml2xmldata/blockjob-blockdev-in.xml b/tests/qemustatusxml2xmldata/blockjob-blockdev-in.xml index c70742418b..52024f242c 100644 --- a/tests/qemustatusxml2xmldata/blockjob-blockdev-in.xml +++ b/tests/qemustatusxml2xmldata/blockjob-blockdev-in.xml @@ -694,6 +694,7 @@ <listen type='address' address='127.0.0.1' fromConfig='1' autoGenerated='no'/> <image compression='off'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemustatusxml2xmldata/blockjob-mirror-in.xml b/tests/qemustatusxml2xmldata/blockjob-mirror-in.xml index bcef338fda..00c8e69adc 100644 --- a/tests/qemustatusxml2xmldata/blockjob-mirror-in.xml +++ b/tests/qemustatusxml2xmldata/blockjob-mirror-in.xml @@ -103,6 +103,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemustatusxml2xmldata/migration-in-params-in.xml b/tests/qemustatusxml2xmldata/migration-in-params-in.xml index 93450c38d5..f4bc5753c4 100644 --- a/tests/qemustatusxml2xmldata/migration-in-params-in.xml +++ b/tests/qemustatusxml2xmldata/migration-in-params-in.xml @@ -375,6 +375,7 @@ <listen type='address' address='0.0.0.0' fromConfig='1' autoGenerated='no'/> <image compression='off'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemustatusxml2xmldata/migration-out-nbd-bitmaps-in.xml b/tests/qemustatusxml2xmldata/migration-out-nbd-bitmaps-in.xml index b3d24eda98..c88996f923 100644 --- a/tests/qemustatusxml2xmldata/migration-out-nbd-bitmaps-in.xml +++ b/tests/qemustatusxml2xmldata/migration-out-nbd-bitmaps-in.xml @@ -539,6 +539,7 @@ <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemustatusxml2xmldata/migration-out-nbd-out.xml b/tests/qemustatusxml2xmldata/migration-out-nbd-out.xml index 304fb1b77f..039dcacc58 100644 --- a/tests/qemustatusxml2xmldata/migration-out-nbd-out.xml +++ b/tests/qemustatusxml2xmldata/migration-out-nbd-out.xml @@ -420,6 +420,7 @@ <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemustatusxml2xmldata/migration-out-nbd-tls-out.xml b/tests/qemustatusxml2xmldata/migration-out-nbd-tls-out.xml index d69796e029..3d1ddd5771 100644 --- a/tests/qemustatusxml2xmldata/migration-out-nbd-tls-out.xml +++ b/tests/qemustatusxml2xmldata/migration-out-nbd-tls-out.xml @@ -457,6 +457,7 @@ <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemustatusxml2xmldata/migration-out-params-in.xml b/tests/qemustatusxml2xmldata/migration-out-params-in.xml index c1daab4dee..cd9dbccd3a 100644 --- a/tests/qemustatusxml2xmldata/migration-out-params-in.xml +++ b/tests/qemustatusxml2xmldata/migration-out-params-in.xml @@ -389,6 +389,7 @@ <listen type='address' address='0.0.0.0' fromConfig='1' autoGenerated='no'/> <image compression='off'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemustatusxml2xmldata/modern-in.xml b/tests/qemustatusxml2xmldata/modern-in.xml index 5a5d5b8983..ba0858a4ff 100644 --- a/tests/qemustatusxml2xmldata/modern-in.xml +++ b/tests/qemustatusxml2xmldata/modern-in.xml @@ -454,6 +454,7 @@ <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemustatusxml2xmldata/upgrade-out.xml b/tests/qemustatusxml2xmldata/upgrade-out.xml index 962d25ce2e..f9476731f6 100644 --- a/tests/qemustatusxml2xmldata/upgrade-out.xml +++ b/tests/qemustatusxml2xmldata/upgrade-out.xml @@ -509,6 +509,7 @@ <alias name='sound0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> diff --git a/tests/qemustatusxml2xmldata/vcpus-multi-in.xml b/tests/qemustatusxml2xmldata/vcpus-multi-in.xml index be48c55fe0..7f0208453f 100644 --- a/tests/qemustatusxml2xmldata/vcpus-multi-in.xml +++ b/tests/qemustatusxml2xmldata/vcpus-multi-in.xml @@ -335,6 +335,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> <iommu model='intel'> <driver intremap='on' eim='on'/> diff --git a/tests/qemuxml2argvdata/aarch64-gic-host.xml b/tests/qemuxml2argvdata/aarch64-gic-host.xml index 561f6edc6c..0598473318 100644 --- a/tests/qemuxml2argvdata/aarch64-gic-host.xml +++ b/tests/qemuxml2argvdata/aarch64-gic-host.xml @@ -19,6 +19,7 @@ <devices> <emulator>/usr/bin/qemu-system-aarch64</emulator> <controller type='usb' index='0' model='none'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/aarch64-gic-v2.xml b/tests/qemuxml2argvdata/aarch64-gic-v2.xml index f451c87b71..474e641ccd 100644 --- a/tests/qemuxml2argvdata/aarch64-gic-v2.xml +++ b/tests/qemuxml2argvdata/aarch64-gic-v2.xml @@ -19,6 +19,7 @@ <devices> <emulator>/usr/bin/qemu-system-aarch64</emulator> <controller type='usb' index='0' model='none'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/aarch64-gic-v3.xml b/tests/qemuxml2argvdata/aarch64-gic-v3.xml index f3a6b9283a..247d6025f7 100644 --- a/tests/qemuxml2argvdata/aarch64-gic-v3.xml +++ b/tests/qemuxml2argvdata/aarch64-gic-v3.xml @@ -19,6 +19,7 @@ <devices> <emulator>/usr/bin/qemu-system-aarch64</emulator> <controller type='usb' index='0' model='none'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/audio-default-nographics.args b/tests/qemuxml2argvdata/audio-default-nographics.args new file mode 100644 index 0000000000..01fe6e2beb --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-nographics.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-default-nographics.xml b/tests/qemuxml2argvdata/audio-default-nographics.xml new file mode 100644 index 0000000000..374c8c38ce --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-nographics.xml @@ -0,0 +1,31 @@ +<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'/> + <controller type='ide' index='0'/> + <controller type='pci' index='0' model='pci-root'/> + <input type='mouse' bus='ps2'/> + <input type='keyboard' bus='ps2'/> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-default-sdl.args b/tests/qemuxml2argvdata/audio-default-sdl.args new file mode 100644 index 0000000000..8793e9ce19 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-sdl.args @@ -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=sdl \ +SDL_AUDIODRIVER=esd \ +/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 \ +-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 \ +-display sdl \ +-vga cirrus diff --git a/tests/qemuxml2argvdata/audio-default-sdl.xml b/tests/qemuxml2argvdata/audio-default-sdl.xml new file mode 100644 index 0000000000..4a7e5ab259 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-sdl.xml @@ -0,0 +1,35 @@ +<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'/> + <controller type='ide' index='0'/> + <controller type='pci' index='0' model='pci-root'/> + <graphics type='sdl'/> + <video> + <model type='cirrus'/> + </video> + <input type='mouse' bus='ps2'/> + <input type='keyboard' bus='ps2'/> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-default-spice.args b/tests/qemuxml2argvdata/audio-default-spice.args new file mode 100644 index 0000000000..91a95d2050 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-spice.args @@ -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=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 \ +-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 \ +-spice port=0,seamless-migration=on \ +-vga cirrus diff --git a/tests/qemuxml2argvdata/audio-default-spice.xml b/tests/qemuxml2argvdata/audio-default-spice.xml new file mode 100644 index 0000000000..93c91376a7 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-spice.xml @@ -0,0 +1,35 @@ +<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'/> + <controller type='ide' index='0'/> + <controller type='pci' index='0' model='pci-root'/> + <graphics type='spice'/> + <video> + <model type='cirrus'/> + </video> + <input type='mouse' bus='ps2'/> + <input type='keyboard' bus='ps2'/> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-default-vnc.args b/tests/qemuxml2argvdata/audio-default-vnc.args new file mode 100644 index 0000000000..addff1c94b --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-vnc.args @@ -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=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 \ +-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 \ +-vnc 127.0.0.1:0 \ +-vga cirrus diff --git a/tests/qemuxml2argvdata/audio-default-vnc.xml b/tests/qemuxml2argvdata/audio-default-vnc.xml new file mode 100644 index 0000000000..89f1d77554 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-vnc.xml @@ -0,0 +1,35 @@ +<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'/> + <controller type='ide' index='0'/> + <controller type='pci' index='0' model='pci-root'/> + <graphics type='vnc'/> + <video> + <model type='cirrus'/> + </video> + <input type='mouse' bus='ps2'/> + <input type='keyboard' bus='ps2'/> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/blkdeviotune-group-num.xml b/tests/qemuxml2argvdata/blkdeviotune-group-num.xml index 7b43bfea87..374ef6cc7f 100644 --- a/tests/qemuxml2argvdata/blkdeviotune-group-num.xml +++ b/tests/qemuxml2argvdata/blkdeviotune-group-num.xml @@ -57,6 +57,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/blkdeviotune-max-length.xml b/tests/qemuxml2argvdata/blkdeviotune-max-length.xml index f891d15a81..fb6d28558e 100644 --- a/tests/qemuxml2argvdata/blkdeviotune-max-length.xml +++ b/tests/qemuxml2argvdata/blkdeviotune-max-length.xml @@ -61,6 +61,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/blkdeviotune-max.xml b/tests/qemuxml2argvdata/blkdeviotune-max.xml index 912f22e6cb..7616dbd9b5 100644 --- a/tests/qemuxml2argvdata/blkdeviotune-max.xml +++ b/tests/qemuxml2argvdata/blkdeviotune-max.xml @@ -55,6 +55,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/boot-floppy-q35.xml b/tests/qemuxml2argvdata/boot-floppy-q35.xml index af685d9c98..2cececf340 100644 --- a/tests/qemuxml2argvdata/boot-floppy-q35.xml +++ b/tests/qemuxml2argvdata/boot-floppy-q35.xml @@ -27,6 +27,7 @@ <controller type='fdc' index='0'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/clock-france.args b/tests/qemuxml2argvdata/clock-france.args index 54015426c8..ae6f4b41e2 100644 --- a/tests/qemuxml2argvdata/clock-france.args +++ b/tests/qemuxml2argvdata/clock-france.args @@ -6,8 +6,8 @@ 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 \ TZ=Europe/Paris \ +QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/clock-realtime.xml b/tests/qemuxml2argvdata/clock-realtime.xml index 3ba6b4cb54..2fc6f3df9e 100644 --- a/tests/qemuxml2argvdata/clock-realtime.xml +++ b/tests/qemuxml2argvdata/clock-realtime.xml @@ -31,6 +31,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/clock-timer-armvtimer.xml b/tests/qemuxml2argvdata/clock-timer-armvtimer.xml index 295ab64d75..56c5c933f7 100644 --- a/tests/qemuxml2argvdata/clock-timer-armvtimer.xml +++ b/tests/qemuxml2argvdata/clock-timer-armvtimer.xml @@ -22,6 +22,7 @@ <emulator>/usr/bin/qemu-system-aarch64</emulator> <controller type='usb' index='0' model='none'/> <controller type='pci' index='0' model='pcie-root'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/disk-detect-zeroes.xml b/tests/qemuxml2argvdata/disk-detect-zeroes.xml index 851077545e..ca3732c391 100644 --- a/tests/qemuxml2argvdata/disk-detect-zeroes.xml +++ b/tests/qemuxml2argvdata/disk-detect-zeroes.xml @@ -41,6 +41,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/disk-nvme.xml b/tests/qemuxml2argvdata/disk-nvme.xml index 4f4f8b917e..1ccbbfd598 100644 --- a/tests/qemuxml2argvdata/disk-nvme.xml +++ b/tests/qemuxml2argvdata/disk-nvme.xml @@ -58,6 +58,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/disk-virtio-queues.xml b/tests/qemuxml2argvdata/disk-virtio-queues.xml index 641204e71f..c758d21894 100644 --- a/tests/qemuxml2argvdata/disk-virtio-queues.xml +++ b/tests/qemuxml2argvdata/disk-virtio-queues.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2argvdata/disk-virtio-scsi-reservations.xml b/tests/qemuxml2argvdata/disk-virtio-scsi-reservations.xml index 590cb2cae5..eec608db0d 100644 --- a/tests/qemuxml2argvdata/disk-virtio-scsi-reservations.xml +++ b/tests/qemuxml2argvdata/disk-virtio-scsi-reservations.xml @@ -42,6 +42,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/downscript.xml b/tests/qemuxml2argvdata/downscript.xml index 4d0fb1beab..5bf74e3020 100644 --- a/tests/qemuxml2argvdata/downscript.xml +++ b/tests/qemuxml2argvdata/downscript.xml @@ -53,6 +53,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/encrypted-disk-usage.xml b/tests/qemuxml2argvdata/encrypted-disk-usage.xml index 9e9f757380..7c2da9ee83 100644 --- a/tests/qemuxml2argvdata/encrypted-disk-usage.xml +++ b/tests/qemuxml2argvdata/encrypted-disk-usage.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/fd-memory-no-numa-topology.xml b/tests/qemuxml2argvdata/fd-memory-no-numa-topology.xml index 0749952750..cf90ae9f3f 100644 --- a/tests/qemuxml2argvdata/fd-memory-no-numa-topology.xml +++ b/tests/qemuxml2argvdata/fd-memory-no-numa-topology.xml @@ -28,6 +28,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/fd-memory-numa-topology.xml b/tests/qemuxml2argvdata/fd-memory-numa-topology.xml index 05ea164abc..8bc0a68ed4 100644 --- a/tests/qemuxml2argvdata/fd-memory-numa-topology.xml +++ b/tests/qemuxml2argvdata/fd-memory-numa-topology.xml @@ -31,6 +31,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/fd-memory-numa-topology2.xml b/tests/qemuxml2argvdata/fd-memory-numa-topology2.xml index 904e64f0cc..d054963eb8 100644 --- a/tests/qemuxml2argvdata/fd-memory-numa-topology2.xml +++ b/tests/qemuxml2argvdata/fd-memory-numa-topology2.xml @@ -32,6 +32,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/fd-memory-numa-topology3.xml b/tests/qemuxml2argvdata/fd-memory-numa-topology3.xml index 9785609c16..139bdfd871 100644 --- a/tests/qemuxml2argvdata/fd-memory-numa-topology3.xml +++ b/tests/qemuxml2argvdata/fd-memory-numa-topology3.xml @@ -33,6 +33,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/graphics-spice-sasl.args b/tests/qemuxml2argvdata/graphics-spice-sasl.args index 024b775afd..229188856d 100644 --- a/tests/qemuxml2argvdata/graphics-spice-sasl.args +++ b/tests/qemuxml2argvdata/graphics-spice-sasl.args @@ -6,8 +6,8 @@ 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 \ -SASL_CONF_PATH=/root/.sasl2 \ QEMU_AUDIO_DRV=spice \ +SASL_CONF_PATH=/root/.sasl2 \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/graphics-vnc-sasl.args b/tests/qemuxml2argvdata/graphics-vnc-sasl.args index a915a857cb..1f16e05ae2 100644 --- a/tests/qemuxml2argvdata/graphics-vnc-sasl.args +++ b/tests/qemuxml2argvdata/graphics-vnc-sasl.args @@ -6,8 +6,8 @@ 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 \ -SASL_CONF_PATH=/root/.sasl2 \ QEMU_AUDIO_DRV=none \ +SASL_CONF_PATH=/root/.sasl2 \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/graphics-vnc-tls-secret.x86_64-latest.args b/tests/qemuxml2argvdata/graphics-vnc-tls-secret.x86_64-latest.args index c16e3e3ef4..ab106d4a7d 100644 --- a/tests/qemuxml2argvdata/graphics-vnc-tls-secret.x86_64-latest.args +++ b/tests/qemuxml2argvdata/graphics-vnc-tls-secret.x86_64-latest.args @@ -6,8 +6,8 @@ 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 \ -SASL_CONF_PATH=/root/.sasl2 \ QEMU_AUDIO_DRV=none \ +SASL_CONF_PATH=/root/.sasl2 \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ diff --git a/tests/qemuxml2argvdata/graphics-vnc-tls.args b/tests/qemuxml2argvdata/graphics-vnc-tls.args index 896ff60e53..2427733426 100644 --- a/tests/qemuxml2argvdata/graphics-vnc-tls.args +++ b/tests/qemuxml2argvdata/graphics-vnc-tls.args @@ -6,8 +6,8 @@ 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 \ -SASL_CONF_PATH=/root/.sasl2 \ QEMU_AUDIO_DRV=none \ +SASL_CONF_PATH=/root/.sasl2 \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-2.4.0.args b/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-2.4.0.args index 78a47f1d30..201248c567 100644 --- a/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-2.4.0.args +++ b/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-2.4.0.args @@ -6,8 +6,8 @@ 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 \ -SASL_CONF_PATH=/root/.sasl2 \ QEMU_AUDIO_DRV=none \ +SASL_CONF_PATH=/root/.sasl2 \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ diff --git a/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-latest.args b/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-latest.args index 31112ce85d..0b30273d99 100644 --- a/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-latest.args +++ b/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-latest.args @@ -6,8 +6,8 @@ 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 \ -SASL_CONF_PATH=/root/.sasl2 \ QEMU_AUDIO_DRV=none \ +SASL_CONF_PATH=/root/.sasl2 \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ diff --git a/tests/qemuxml2argvdata/hugepages-default-2M.xml b/tests/qemuxml2argvdata/hugepages-default-2M.xml index ce67853f26..fd3666c149 100644 --- a/tests/qemuxml2argvdata/hugepages-default-2M.xml +++ b/tests/qemuxml2argvdata/hugepages-default-2M.xml @@ -25,6 +25,7 @@ <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> diff --git a/tests/qemuxml2argvdata/hugepages-default-system-size.xml b/tests/qemuxml2argvdata/hugepages-default-system-size.xml index 5beeffed9c..ac34623ed9 100644 --- a/tests/qemuxml2argvdata/hugepages-default-system-size.xml +++ b/tests/qemuxml2argvdata/hugepages-default-system-size.xml @@ -25,6 +25,7 @@ <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> diff --git a/tests/qemuxml2argvdata/hugepages-memaccess.xml b/tests/qemuxml2argvdata/hugepages-memaccess.xml index 68ef572616..e09a8af8af 100644 --- a/tests/qemuxml2argvdata/hugepages-memaccess.xml +++ b/tests/qemuxml2argvdata/hugepages-memaccess.xml @@ -49,6 +49,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/hugepages-memaccess2.xml b/tests/qemuxml2argvdata/hugepages-memaccess2.xml index c7652847fa..714f70b31d 100644 --- a/tests/qemuxml2argvdata/hugepages-memaccess2.xml +++ b/tests/qemuxml2argvdata/hugepages-memaccess2.xml @@ -49,6 +49,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/hugepages-numa-default-dimm.xml b/tests/qemuxml2argvdata/hugepages-numa-default-dimm.xml index 14a3368678..51768334d2 100644 --- a/tests/qemuxml2argvdata/hugepages-numa-default-dimm.xml +++ b/tests/qemuxml2argvdata/hugepages-numa-default-dimm.xml @@ -29,6 +29,7 @@ <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'/> <memory model='dimm'> <source> diff --git a/tests/qemuxml2argvdata/hugepages-nvdimm.xml b/tests/qemuxml2argvdata/hugepages-nvdimm.xml index 144d02b56e..73cbd4f7c1 100644 --- a/tests/qemuxml2argvdata/hugepages-nvdimm.xml +++ b/tests/qemuxml2argvdata/hugepages-nvdimm.xml @@ -33,6 +33,7 @@ <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'/> <memory model='nvdimm'> <source> diff --git a/tests/qemuxml2argvdata/intel-iommu-aw-bits.xml b/tests/qemuxml2argvdata/intel-iommu-aw-bits.xml index 23e3ef5816..b4eb81ff5d 100644 --- a/tests/qemuxml2argvdata/intel-iommu-aw-bits.xml +++ b/tests/qemuxml2argvdata/intel-iommu-aw-bits.xml @@ -27,6 +27,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> <iommu model='intel'> <driver intremap='on' aw_bits='48'/> diff --git a/tests/qemuxml2argvdata/intel-iommu-caching-mode.xml b/tests/qemuxml2argvdata/intel-iommu-caching-mode.xml index ad2ce73aa6..4aa4bacf5b 100644 --- a/tests/qemuxml2argvdata/intel-iommu-caching-mode.xml +++ b/tests/qemuxml2argvdata/intel-iommu-caching-mode.xml @@ -27,6 +27,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> <iommu model='intel'> <driver intremap='on' caching_mode='on'/> diff --git a/tests/qemuxml2argvdata/intel-iommu-device-iotlb.xml b/tests/qemuxml2argvdata/intel-iommu-device-iotlb.xml index 1b5b3f04e9..e106737e6a 100644 --- a/tests/qemuxml2argvdata/intel-iommu-device-iotlb.xml +++ b/tests/qemuxml2argvdata/intel-iommu-device-iotlb.xml @@ -27,6 +27,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> <iommu model='intel'> <driver intremap='on' iotlb='on'/> diff --git a/tests/qemuxml2argvdata/intel-iommu-eim.xml b/tests/qemuxml2argvdata/intel-iommu-eim.xml index 81b1769c48..c4942e4c79 100644 --- a/tests/qemuxml2argvdata/intel-iommu-eim.xml +++ b/tests/qemuxml2argvdata/intel-iommu-eim.xml @@ -27,6 +27,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> <iommu model='intel'> <driver intremap='on' eim='on'/> diff --git a/tests/qemuxml2argvdata/intel-iommu.xml b/tests/qemuxml2argvdata/intel-iommu.xml index d8812ca81d..8badf6c970 100644 --- a/tests/qemuxml2argvdata/intel-iommu.xml +++ b/tests/qemuxml2argvdata/intel-iommu.xml @@ -24,6 +24,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> <iommu model='intel'/> </devices> diff --git a/tests/qemuxml2argvdata/luks-disks.xml b/tests/qemuxml2argvdata/luks-disks.xml index c84af442a6..ae6d3d996c 100644 --- a/tests/qemuxml2argvdata/luks-disks.xml +++ b/tests/qemuxml2argvdata/luks-disks.xml @@ -38,6 +38,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/memfd-memory-default-hugepage.xml b/tests/qemuxml2argvdata/memfd-memory-default-hugepage.xml index 69d27efbe1..6e2f83c8a9 100644 --- a/tests/qemuxml2argvdata/memfd-memory-default-hugepage.xml +++ b/tests/qemuxml2argvdata/memfd-memory-default-hugepage.xml @@ -35,6 +35,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/memfd-memory-numa.xml b/tests/qemuxml2argvdata/memfd-memory-numa.xml index e3d5d92393..3f448790a6 100644 --- a/tests/qemuxml2argvdata/memfd-memory-numa.xml +++ b/tests/qemuxml2argvdata/memfd-memory-numa.xml @@ -37,6 +37,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.xml b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.xml index a1cc1264eb..565a47dac0 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.xml +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.xml @@ -40,6 +40,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.xml b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.xml index 018a693aaf..af55370d2f 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.xml +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.xml @@ -40,6 +40,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.xml b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.xml index c9d54a6088..0da48f3920 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.xml +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.xml @@ -40,6 +40,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.xml b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.xml index 391d70f20e..e72a59b2c0 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.xml +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.xml @@ -40,6 +40,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.xml b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.xml index 09b2c5c833..d9e91dc653 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.xml +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.xml @@ -40,6 +40,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm.xml b/tests/qemuxml2argvdata/memory-hotplug-nvdimm.xml index a32474da06..0ca70535ac 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm.xml +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm.xml @@ -40,6 +40,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/memory-hotplug-ppc64-nonuma.xml b/tests/qemuxml2argvdata/memory-hotplug-ppc64-nonuma.xml index a0806c4b54..0623fde6ee 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-ppc64-nonuma.xml +++ b/tests/qemuxml2argvdata/memory-hotplug-ppc64-nonuma.xml @@ -20,6 +20,7 @@ <model name='spapr-pci-host-bridge'/> <target index='0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> <memory model='dimm'> diff --git a/tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.xml b/tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.xml index 23729ed799..5c99c8ace1 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.xml +++ b/tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.xml @@ -37,6 +37,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/net-user-addr.xml b/tests/qemuxml2argvdata/net-user-addr.xml index f20f820eaa..45e024d627 100644 --- a/tests/qemuxml2argvdata/net-user-addr.xml +++ b/tests/qemuxml2argvdata/net-user-addr.xml @@ -36,6 +36,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml b/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml index a7edab63bd..ed1d4c8c05 100644 --- a/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml +++ b/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml @@ -43,6 +43,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x03' slot='0x07' function='0x1'/> diff --git a/tests/qemuxml2argvdata/numatune-hmat.xml b/tests/qemuxml2argvdata/numatune-hmat.xml index 83f0b56c9b..51ff3c3425 100644 --- a/tests/qemuxml2argvdata/numatune-hmat.xml +++ b/tests/qemuxml2argvdata/numatune-hmat.xml @@ -45,6 +45,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/numatune-no-vcpu.xml b/tests/qemuxml2argvdata/numatune-no-vcpu.xml index f25a07d7ed..7d2627997c 100644 --- a/tests/qemuxml2argvdata/numatune-no-vcpu.xml +++ b/tests/qemuxml2argvdata/numatune-no-vcpu.xml @@ -35,6 +35,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/pages-dimm-discard.xml b/tests/qemuxml2argvdata/pages-dimm-discard.xml index 3d233687e1..75aa21f0c7 100644 --- a/tests/qemuxml2argvdata/pages-dimm-discard.xml +++ b/tests/qemuxml2argvdata/pages-dimm-discard.xml @@ -26,6 +26,7 @@ <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'/> <memory model='dimm' discard='no'> <source> diff --git a/tests/qemuxml2argvdata/pages-discard-hugepages.xml b/tests/qemuxml2argvdata/pages-discard-hugepages.xml index ae294c8f41..953d0c5d20 100644 --- a/tests/qemuxml2argvdata/pages-discard-hugepages.xml +++ b/tests/qemuxml2argvdata/pages-discard-hugepages.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2argvdata/pages-discard.xml b/tests/qemuxml2argvdata/pages-discard.xml index adb718887a..58a59a370c 100644 --- a/tests/qemuxml2argvdata/pages-discard.xml +++ b/tests/qemuxml2argvdata/pages-discard.xml @@ -31,6 +31,7 @@ <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> diff --git a/tests/qemuxml2argvdata/serial-tcp-tlsx509-chardev-notls.xml b/tests/qemuxml2argvdata/serial-tcp-tlsx509-chardev-notls.xml index 7a834f83a2..9b0b8b3e73 100644 --- a/tests/qemuxml2argvdata/serial-tcp-tlsx509-chardev-notls.xml +++ b/tests/qemuxml2argvdata/serial-tcp-tlsx509-chardev-notls.xml @@ -48,6 +48,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/smbios-type-fwcfg.xml b/tests/qemuxml2argvdata/smbios-type-fwcfg.xml index 72da0fe045..dcec9d2e0d 100644 --- a/tests/qemuxml2argvdata/smbios-type-fwcfg.xml +++ b/tests/qemuxml2argvdata/smbios-type-fwcfg.xml @@ -56,6 +56,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2argvdata/user-aliases.xml b/tests/qemuxml2argvdata/user-aliases.xml index 98b4845e52..47bfc56e73 100644 --- a/tests/qemuxml2argvdata/user-aliases.xml +++ b/tests/qemuxml2argvdata/user-aliases.xml @@ -146,6 +146,7 @@ <sound model='ich6'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2argvdata/vcpu-placement-static.xml b/tests/qemuxml2argvdata/vcpu-placement-static.xml index a777f50f86..ffdd6cc10a 100644 --- a/tests/qemuxml2argvdata/vcpu-placement-static.xml +++ b/tests/qemuxml2argvdata/vcpu-placement-static.xml @@ -28,6 +28,7 @@ <controller type='pci' index='0' model='pcie-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/vhost-user-fs-fd-memory.xml b/tests/qemuxml2argvdata/vhost-user-fs-fd-memory.xml index f6bb663e97..2277850c2c 100644 --- a/tests/qemuxml2argvdata/vhost-user-fs-fd-memory.xml +++ b/tests/qemuxml2argvdata/vhost-user-fs-fd-memory.xml @@ -38,6 +38,7 @@ </filesystem> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/vhost-user-fs-hugepages.xml b/tests/qemuxml2argvdata/vhost-user-fs-hugepages.xml index 3f130dd152..018611996d 100644 --- a/tests/qemuxml2argvdata/vhost-user-fs-hugepages.xml +++ b/tests/qemuxml2argvdata/vhost-user-fs-hugepages.xml @@ -71,6 +71,7 @@ </filesystem> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/vhost-vsock-ccw-iommu.xml b/tests/qemuxml2argvdata/vhost-vsock-ccw-iommu.xml index dbfe082a6f..cc299dcba9 100644 --- a/tests/qemuxml2argvdata/vhost-vsock-ccw-iommu.xml +++ b/tests/qemuxml2argvdata/vhost-vsock-ccw-iommu.xml @@ -24,6 +24,7 @@ <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/> </disk> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </memballoon> diff --git a/tests/qemuxml2argvdata/vhost-vsock-ccw.xml b/tests/qemuxml2argvdata/vhost-vsock-ccw.xml index 083061c6cc..1362523bed 100644 --- a/tests/qemuxml2argvdata/vhost-vsock-ccw.xml +++ b/tests/qemuxml2argvdata/vhost-vsock-ccw.xml @@ -20,6 +20,7 @@ <target dev='hda' bus='virtio'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/> </disk> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </memballoon> diff --git a/tests/qemuxml2argvdata/vhost-vsock.xml b/tests/qemuxml2argvdata/vhost-vsock.xml index 10de1fa2f2..68eab38319 100644 --- a/tests/qemuxml2argvdata/vhost-vsock.xml +++ b/tests/qemuxml2argvdata/vhost-vsock.xml @@ -27,6 +27,7 @@ <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'/> <vsock model='virtio'> <cid auto='no' address='4'/> diff --git a/tests/qemuxml2argvdata/video-qxl-resolution.xml b/tests/qemuxml2argvdata/video-qxl-resolution.xml index e693cbce47..020c2a3fe8 100644 --- a/tests/qemuxml2argvdata/video-qxl-resolution.xml +++ b/tests/qemuxml2argvdata/video-qxl-resolution.xml @@ -29,6 +29,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='8192' heads='1' primary='yes'> <resolution x='1280' y='720'/> diff --git a/tests/qemuxml2argvdata/virtio-options.xml b/tests/qemuxml2argvdata/virtio-options.xml index ba1bf7c036..9c9b80d5c4 100644 --- a/tests/qemuxml2argvdata/virtio-options.xml +++ b/tests/qemuxml2argvdata/virtio-options.xml @@ -75,6 +75,7 @@ </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <driver iommu='on' ats='on' packed='on' name='vhostuser'/> <model type='virtio' heads='1' primary='yes'> diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index b7be131792..2527bfd012 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1061,6 +1061,27 @@ mymain(void) /* Multiple backends not supported with ENV */ DO_TEST_PARSE_ERROR("audio-many-backends", NONE); + /* Validate auto-creation of <audio> for legacy compat */ + g_setenv("QEMU_AUDIO_DRV", "sdl", TRUE); + g_setenv("SDL_AUDIODRIVER", "esd", TRUE); + DO_TEST("audio-default-sdl", QEMU_CAPS_DEVICE_CIRRUS_VGA); + g_unsetenv("QEMU_AUDIO_DRV"); + g_unsetenv("SDL_AUDIODRIVER"); + + g_setenv("QEMU_AUDIO_DRV", "alsa", TRUE); + driver.config->vncAllowHostAudio = true; + DO_TEST("audio-default-vnc", QEMU_CAPS_VNC, QEMU_CAPS_DEVICE_CIRRUS_VGA); + driver.config->vncAllowHostAudio = false; + g_unsetenv("QEMU_AUDIO_DRV"); + + DO_TEST("audio-default-spice", QEMU_CAPS_SPICE, QEMU_CAPS_DEVICE_CIRRUS_VGA); + + g_setenv("QEMU_AUDIO_DRV", "alsa", TRUE); + driver.config->nogfxAllowHostAudio = true; + DO_TEST("audio-default-nographics", NONE); + driver.config->nogfxAllowHostAudio = false; + g_unsetenv("QEMU_AUDIO_DRV"); + DO_TEST("reboot-timeout-disabled", QEMU_CAPS_REBOOT_TIMEOUT); DO_TEST("reboot-timeout-enabled", QEMU_CAPS_REBOOT_TIMEOUT); DO_TEST_PARSE_ERROR("reboot-timeout-enabled", NONE); diff --git a/tests/qemuxml2xmloutdata/aarch64-aavmf-virtio-mmio.xml b/tests/qemuxml2xmloutdata/aarch64-aavmf-virtio-mmio.xml index c30690e7bc..f3eab7b59e 100644 --- a/tests/qemuxml2xmloutdata/aarch64-aavmf-virtio-mmio.xml +++ b/tests/qemuxml2xmloutdata/aarch64-aavmf-virtio-mmio.xml @@ -43,6 +43,7 @@ <console type='pty'> <target type='virtio' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='virtio-mmio'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/aarch64-default-cpu-kvm-virt-4.2.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-default-cpu-kvm-virt-4.2.aarch64-latest.xml index efbe726758..6738c5cd61 100644 --- a/tests/qemuxml2xmloutdata/aarch64-default-cpu-kvm-virt-4.2.aarch64-latest.xml +++ b/tests/qemuxml2xmloutdata/aarch64-default-cpu-kvm-virt-4.2.aarch64-latest.xml @@ -34,5 +34,6 @@ <target chassis='2' port='0x9'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> + <audio id='1' type='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/aarch64-default-cpu-tcg-virt-4.2.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-default-cpu-tcg-virt-4.2.aarch64-latest.xml index c0aa2f39ee..1b4edaff5f 100644 --- a/tests/qemuxml2xmloutdata/aarch64-default-cpu-tcg-virt-4.2.aarch64-latest.xml +++ b/tests/qemuxml2xmloutdata/aarch64-default-cpu-tcg-virt-4.2.aarch64-latest.xml @@ -37,5 +37,6 @@ <target chassis='2' port='0x9'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> + <audio id='1' type='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/aarch64-features-sve.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-features-sve.aarch64-latest.xml index 914cc7957a..9482828a0c 100644 --- a/tests/qemuxml2xmloutdata/aarch64-features-sve.aarch64-latest.xml +++ b/tests/qemuxml2xmloutdata/aarch64-features-sve.aarch64-latest.xml @@ -26,6 +26,7 @@ <emulator>/usr/bin/qemu-system-aarch64</emulator> <controller type='usb' index='0' model='none'/> <controller type='pci' index='0' model='pcie-root'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/aarch64-gic-none-tcg.xml b/tests/qemuxml2xmloutdata/aarch64-gic-none-tcg.xml index b978439707..c71b1cde62 100644 --- a/tests/qemuxml2xmloutdata/aarch64-gic-none-tcg.xml +++ b/tests/qemuxml2xmloutdata/aarch64-gic-none-tcg.xml @@ -21,6 +21,7 @@ <devices> <emulator>/usr/bin/qemu-system-aarch64</emulator> <controller type='usb' index='0' model='none'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/aarch64-os-firmware-efi.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-os-firmware-efi.aarch64-latest.xml index 1e51d55305..627e285ae1 100644 --- a/tests/qemuxml2xmloutdata/aarch64-os-firmware-efi.aarch64-latest.xml +++ b/tests/qemuxml2xmloutdata/aarch64-os-firmware-efi.aarch64-latest.xml @@ -28,5 +28,6 @@ <devices> <emulator>/usr/bin/qemu-system-aarch64</emulator> <controller type='pci' index='0' model='pcie-root'/> + <audio id='1' type='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/aarch64-pci-serial.xml b/tests/qemuxml2xmloutdata/aarch64-pci-serial.xml index b02a5a7db6..5d69c1cffa 100644 --- a/tests/qemuxml2xmloutdata/aarch64-pci-serial.xml +++ b/tests/qemuxml2xmloutdata/aarch64-pci-serial.xml @@ -39,5 +39,6 @@ </target> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </serial> + <audio id='1' type='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/aarch64-traditional-pci.xml b/tests/qemuxml2xmloutdata/aarch64-traditional-pci.xml index e0807308d9..7b2eea7ac7 100644 --- a/tests/qemuxml2xmloutdata/aarch64-traditional-pci.xml +++ b/tests/qemuxml2xmloutdata/aarch64-traditional-pci.xml @@ -38,6 +38,7 @@ </target> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </serial> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/aarch64-video-default.xml b/tests/qemuxml2xmloutdata/aarch64-video-default.xml index 47b46d0d06..13ac217b60 100644 --- a/tests/qemuxml2xmloutdata/aarch64-video-default.xml +++ b/tests/qemuxml2xmloutdata/aarch64-video-default.xml @@ -38,6 +38,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/aarch64-video-virtio-gpu-pci.xml b/tests/qemuxml2xmloutdata/aarch64-video-virtio-gpu-pci.xml index c5240a0c48..a3e3375f07 100644 --- a/tests/qemuxml2xmloutdata/aarch64-video-virtio-gpu-pci.xml +++ b/tests/qemuxml2xmloutdata/aarch64-video-virtio-gpu-pci.xml @@ -36,6 +36,7 @@ <boot order='1'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </interface> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/aarch64-virt-graphics.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-virt-graphics.aarch64-latest.xml index 3a343941bc..a3571c62d7 100644 --- a/tests/qemuxml2xmloutdata/aarch64-virt-graphics.aarch64-latest.xml +++ b/tests/qemuxml2xmloutdata/aarch64-virt-graphics.aarch64-latest.xml @@ -103,6 +103,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/aarch64-virt-headless.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-virt-headless.aarch64-latest.xml index dad8e605e5..4f1e9cc18b 100644 --- a/tests/qemuxml2xmloutdata/aarch64-virt-headless.aarch64-latest.xml +++ b/tests/qemuxml2xmloutdata/aarch64-virt-headless.aarch64-latest.xml @@ -93,6 +93,7 @@ <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/aarch64-virtio-pci-default.xml b/tests/qemuxml2xmloutdata/aarch64-virtio-pci-default.xml index c569a2886d..e49ecc4e15 100644 --- a/tests/qemuxml2xmloutdata/aarch64-virtio-pci-default.xml +++ b/tests/qemuxml2xmloutdata/aarch64-virtio-pci-default.xml @@ -82,6 +82,7 @@ <console type='pty'> <target type='virtio' port='1'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/aarch64-virtio-pci-manual-addresses.xml b/tests/qemuxml2xmloutdata/aarch64-virtio-pci-manual-addresses.xml index b28e644844..7c90f21f39 100644 --- a/tests/qemuxml2xmloutdata/aarch64-virtio-pci-manual-addresses.xml +++ b/tests/qemuxml2xmloutdata/aarch64-virtio-pci-manual-addresses.xml @@ -60,5 +60,6 @@ <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </interface> + <audio id='1' type='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/acpi-table.xml b/tests/qemuxml2xmloutdata/acpi-table.xml index 0933d8c664..5a6c859bad 100644 --- a/tests/qemuxml2xmloutdata/acpi-table.xml +++ b/tests/qemuxml2xmloutdata/acpi-table.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/audio-default-nographics.x86_64-latest.xml b/tests/qemuxml2xmloutdata/audio-default-nographics.x86_64-latest.xml new file mode 100644 index 0000000000..d9cadb1e45 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-default-nographics.x86_64-latest.xml @@ -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> + <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'/> + <audio id='1' type='alsa'/> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2xmloutdata/audio-default-nographics.xml b/tests/qemuxml2xmloutdata/audio-default-nographics.xml new file mode 120000 index 0000000000..9103458c39 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-default-nographics.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-default-nographics.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-default-sdl.x86_64-latest.xml b/tests/qemuxml2xmloutdata/audio-default-sdl.x86_64-latest.xml new file mode 100644 index 0000000000..f02f1fff0c --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-default-sdl.x86_64-latest.xml @@ -0,0 +1,44 @@ +<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='sdl'/> + <audio id='1' type='sdl' driver='esd'/> + <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> diff --git a/tests/qemuxml2xmloutdata/audio-default-sdl.xml b/tests/qemuxml2xmloutdata/audio-default-sdl.xml new file mode 120000 index 0000000000..b0e06aa348 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-default-sdl.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-default-sdl.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-default-spice.x86_64-latest.xml b/tests/qemuxml2xmloutdata/audio-default-spice.x86_64-latest.xml new file mode 100644 index 0000000000..0ea615e4b1 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-default-spice.x86_64-latest.xml @@ -0,0 +1,46 @@ +<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='spice'> + <listen type='none'/> + </graphics> + <audio id='1' type='spice'/> + <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> diff --git a/tests/qemuxml2xmloutdata/audio-default-spice.xml b/tests/qemuxml2xmloutdata/audio-default-spice.xml new file mode 120000 index 0000000000..93945463ef --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-default-spice.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-default-spice.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-default-vnc.x86_64-latest.xml b/tests/qemuxml2xmloutdata/audio-default-vnc.x86_64-latest.xml new file mode 100644 index 0000000000..c898f4004f --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-default-vnc.x86_64-latest.xml @@ -0,0 +1,46 @@ +<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'/> + </graphics> + <audio id='1' type='alsa'/> + <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> diff --git a/tests/qemuxml2xmloutdata/audio-default-vnc.xml b/tests/qemuxml2xmloutdata/audio-default-vnc.xml new file mode 120000 index 0000000000..3fdbfb6df4 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-default-vnc.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-default-vnc.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/autoindex.xml b/tests/qemuxml2xmloutdata/autoindex.xml index 382dc73f1c..3e1c2889cb 100644 --- a/tests/qemuxml2xmloutdata/autoindex.xml +++ b/tests/qemuxml2xmloutdata/autoindex.xml @@ -149,6 +149,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/balloon-device-auto.xml b/tests/qemuxml2xmloutdata/balloon-device-auto.xml index 974f94ed20..094ecb38db 100644 --- a/tests/qemuxml2xmloutdata/balloon-device-auto.xml +++ b/tests/qemuxml2xmloutdata/balloon-device-auto.xml @@ -29,6 +29,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/balloon-device-period.xml b/tests/qemuxml2xmloutdata/balloon-device-period.xml index bebb93071f..a6c6d6db67 100644 --- a/tests/qemuxml2xmloutdata/balloon-device-period.xml +++ b/tests/qemuxml2xmloutdata/balloon-device-period.xml @@ -29,6 +29,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <stats period='10'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x12' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/bios-nvram-os-interleave.xml b/tests/qemuxml2xmloutdata/bios-nvram-os-interleave.xml index dfa496a215..e5ee451722 100644 --- a/tests/qemuxml2xmloutdata/bios-nvram-os-interleave.xml +++ b/tests/qemuxml2xmloutdata/bios-nvram-os-interleave.xml @@ -44,6 +44,7 @@ <input type='tablet' bus='usb'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/bios-nvram.xml b/tests/qemuxml2xmloutdata/bios-nvram.xml index eabbf717f9..294e65cd13 100644 --- a/tests/qemuxml2xmloutdata/bios-nvram.xml +++ b/tests/qemuxml2xmloutdata/bios-nvram.xml @@ -36,6 +36,7 @@ <input type='tablet' bus='usb'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/blkdeviotune.x86_64-latest.xml b/tests/qemuxml2xmloutdata/blkdeviotune.x86_64-latest.xml index e27f61f2fd..a1032019d6 100644 --- a/tests/qemuxml2xmloutdata/blkdeviotune.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/blkdeviotune.x86_64-latest.xml @@ -47,6 +47,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/blkiotune-device.xml b/tests/qemuxml2xmloutdata/blkiotune-device.xml index c1fa4579c5..46b534d2c7 100644 --- a/tests/qemuxml2xmloutdata/blkiotune-device.xml +++ b/tests/qemuxml2xmloutdata/blkiotune-device.xml @@ -48,6 +48,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/blkiotune.xml b/tests/qemuxml2xmloutdata/blkiotune.xml index 8a80c8c15f..2f4d3f29d3 100644 --- a/tests/qemuxml2xmloutdata/blkiotune.xml +++ b/tests/qemuxml2xmloutdata/blkiotune.xml @@ -32,6 +32,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/boot-cdrom.xml b/tests/qemuxml2xmloutdata/boot-cdrom.xml index 5778f5da41..4729edaa63 100644 --- a/tests/qemuxml2xmloutdata/boot-cdrom.xml +++ b/tests/qemuxml2xmloutdata/boot-cdrom.xml @@ -30,6 +30,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/boot-floppy.xml b/tests/qemuxml2xmloutdata/boot-floppy.xml index 5af9ebb4b8..0bf53f50f1 100644 --- a/tests/qemuxml2xmloutdata/boot-floppy.xml +++ b/tests/qemuxml2xmloutdata/boot-floppy.xml @@ -36,6 +36,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/boot-menu-disable-with-timeout.xml b/tests/qemuxml2xmloutdata/boot-menu-disable-with-timeout.xml index fc9b2df8ce..631df4bbb4 100644 --- a/tests/qemuxml2xmloutdata/boot-menu-disable-with-timeout.xml +++ b/tests/qemuxml2xmloutdata/boot-menu-disable-with-timeout.xml @@ -31,6 +31,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/boot-menu-disable.xml b/tests/qemuxml2xmloutdata/boot-menu-disable.xml index fc9b2df8ce..631df4bbb4 100644 --- a/tests/qemuxml2xmloutdata/boot-menu-disable.xml +++ b/tests/qemuxml2xmloutdata/boot-menu-disable.xml @@ -31,6 +31,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/boot-menu-enable-with-timeout.xml b/tests/qemuxml2xmloutdata/boot-menu-enable-with-timeout.xml index 654b8fec27..b6775d3a47 100644 --- a/tests/qemuxml2xmloutdata/boot-menu-enable-with-timeout.xml +++ b/tests/qemuxml2xmloutdata/boot-menu-enable-with-timeout.xml @@ -31,6 +31,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/boot-multi.xml b/tests/qemuxml2xmloutdata/boot-multi.xml index 34f810c928..ebcbcb7e62 100644 --- a/tests/qemuxml2xmloutdata/boot-multi.xml +++ b/tests/qemuxml2xmloutdata/boot-multi.xml @@ -34,6 +34,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/boot-network.xml b/tests/qemuxml2xmloutdata/boot-network.xml index 4ac5309ce1..7df0512077 100644 --- a/tests/qemuxml2xmloutdata/boot-network.xml +++ b/tests/qemuxml2xmloutdata/boot-network.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/boot-order.xml b/tests/qemuxml2xmloutdata/boot-order.xml index fee34a4cea..bdd7e1b16f 100644 --- a/tests/qemuxml2xmloutdata/boot-order.xml +++ b/tests/qemuxml2xmloutdata/boot-order.xml @@ -59,6 +59,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/channel-guestfwd.xml b/tests/qemuxml2xmloutdata/channel-guestfwd.xml index 6a5a63eacf..baf99c58cc 100644 --- a/tests/qemuxml2xmloutdata/channel-guestfwd.xml +++ b/tests/qemuxml2xmloutdata/channel-guestfwd.xml @@ -33,6 +33,7 @@ </channel> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/channel-unix-source-path-active.xml b/tests/qemuxml2xmloutdata/channel-unix-source-path-active.xml index 4c2a02b49a..2917ed292a 100644 --- a/tests/qemuxml2xmloutdata/channel-unix-source-path-active.xml +++ b/tests/qemuxml2xmloutdata/channel-unix-source-path-active.xml @@ -43,6 +43,7 @@ </channel> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/channel-unix-source-path-inactive.xml b/tests/qemuxml2xmloutdata/channel-unix-source-path-inactive.xml index 2d8fa1e3ac..c5d219183e 100644 --- a/tests/qemuxml2xmloutdata/channel-unix-source-path-inactive.xml +++ b/tests/qemuxml2xmloutdata/channel-unix-source-path-inactive.xml @@ -40,6 +40,7 @@ </channel> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/channel-virtio-auto.xml b/tests/qemuxml2xmloutdata/channel-virtio-auto.xml index 38eccce8d3..94b0eaf34e 100644 --- a/tests/qemuxml2xmloutdata/channel-virtio-auto.xml +++ b/tests/qemuxml2xmloutdata/channel-virtio-auto.xml @@ -62,6 +62,7 @@ </channel> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/channel-virtio-state-active.xml b/tests/qemuxml2xmloutdata/channel-virtio-state-active.xml index 9a28e4f012..351a99b4c8 100644 --- a/tests/qemuxml2xmloutdata/channel-virtio-state-active.xml +++ b/tests/qemuxml2xmloutdata/channel-virtio-state-active.xml @@ -44,6 +44,7 @@ </channel> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/channel-virtio-state-inactive.xml b/tests/qemuxml2xmloutdata/channel-virtio-state-inactive.xml index 24925cc89a..18b799f066 100644 --- a/tests/qemuxml2xmloutdata/channel-virtio-state-inactive.xml +++ b/tests/qemuxml2xmloutdata/channel-virtio-state-inactive.xml @@ -44,6 +44,7 @@ </channel> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/channel-virtio.xml b/tests/qemuxml2xmloutdata/channel-virtio.xml index 3125261484..22e5f01db6 100644 --- a/tests/qemuxml2xmloutdata/channel-virtio.xml +++ b/tests/qemuxml2xmloutdata/channel-virtio.xml @@ -36,6 +36,7 @@ </channel> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/chardev-label.xml b/tests/qemuxml2xmloutdata/chardev-label.xml index 7d5bbdd0ab..e90f7c2b25 100644 --- a/tests/qemuxml2xmloutdata/chardev-label.xml +++ b/tests/qemuxml2xmloutdata/chardev-label.xml @@ -45,6 +45,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/clock-catchup.xml b/tests/qemuxml2xmloutdata/clock-catchup.xml index 0468b9129b..2b7633db12 100644 --- a/tests/qemuxml2xmloutdata/clock-catchup.xml +++ b/tests/qemuxml2xmloutdata/clock-catchup.xml @@ -39,6 +39,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/clock-localtime.xml b/tests/qemuxml2xmloutdata/clock-localtime.xml index 7a01365de8..1360343b3e 100644 --- a/tests/qemuxml2xmloutdata/clock-localtime.xml +++ b/tests/qemuxml2xmloutdata/clock-localtime.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/clock-timer-hyperv-rtc.xml b/tests/qemuxml2xmloutdata/clock-timer-hyperv-rtc.xml index e166eb4417..fc2a5efdcb 100644 --- a/tests/qemuxml2xmloutdata/clock-timer-hyperv-rtc.xml +++ b/tests/qemuxml2xmloutdata/clock-timer-hyperv-rtc.xml @@ -25,6 +25,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/clock-utc.xml b/tests/qemuxml2xmloutdata/clock-utc.xml index f8051b7607..95f886d23b 100644 --- a/tests/qemuxml2xmloutdata/clock-utc.xml +++ b/tests/qemuxml2xmloutdata/clock-utc.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/console-compat-auto.xml b/tests/qemuxml2xmloutdata/console-compat-auto.xml index ea9c6449fe..eebef5aa15 100644 --- a/tests/qemuxml2xmloutdata/console-compat-auto.xml +++ b/tests/qemuxml2xmloutdata/console-compat-auto.xml @@ -37,6 +37,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/console-compat.xml b/tests/qemuxml2xmloutdata/console-compat.xml index 06c4b0f6bc..ee731bf1da 100644 --- a/tests/qemuxml2xmloutdata/console-compat.xml +++ b/tests/qemuxml2xmloutdata/console-compat.xml @@ -37,6 +37,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/console-compat2.xml b/tests/qemuxml2xmloutdata/console-compat2.xml index e97f9cef31..b8f710abf6 100644 --- a/tests/qemuxml2xmloutdata/console-compat2.xml +++ b/tests/qemuxml2xmloutdata/console-compat2.xml @@ -43,6 +43,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/console-virtio-many.xml b/tests/qemuxml2xmloutdata/console-virtio-many.xml index 0bb429c2de..a2d72269b2 100644 --- a/tests/qemuxml2xmloutdata/console-virtio-many.xml +++ b/tests/qemuxml2xmloutdata/console-virtio-many.xml @@ -49,6 +49,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/console-virtio.xml b/tests/qemuxml2xmloutdata/console-virtio.xml index 23983f67ed..d540b81a4e 100644 --- a/tests/qemuxml2xmloutdata/console-virtio.xml +++ b/tests/qemuxml2xmloutdata/console-virtio.xml @@ -35,6 +35,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/controller-usb-order.xml b/tests/qemuxml2xmloutdata/controller-usb-order.xml index 31b79eab35..cb4d8a1e6e 100644 --- a/tests/qemuxml2xmloutdata/controller-usb-order.xml +++ b/tests/qemuxml2xmloutdata/controller-usb-order.xml @@ -31,6 +31,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/controller-virtio-scsi.xml b/tests/qemuxml2xmloutdata/controller-virtio-scsi.xml index 6a9f0963ca..207bc87cf5 100644 --- a/tests/qemuxml2xmloutdata/controller-virtio-scsi.xml +++ b/tests/qemuxml2xmloutdata/controller-virtio-scsi.xml @@ -69,6 +69,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-3.1.0.xml b/tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-3.1.0.xml index 3cb295e713..0a2d113339 100644 --- a/tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-3.1.0.xml +++ b/tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-3.1.0.xml @@ -24,6 +24,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-latest.xml b/tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-latest.xml index 77e5d66f88..f94c0b6d65 100644 --- a/tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/cpu-Icelake-Server-pconfig.x86_64-latest.xml @@ -24,6 +24,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-check-default-none.xml b/tests/qemuxml2xmloutdata/cpu-check-default-none.xml index 9f6b043f2c..473fb7e6f1 100644 --- a/tests/qemuxml2xmloutdata/cpu-check-default-none.xml +++ b/tests/qemuxml2xmloutdata/cpu-check-default-none.xml @@ -21,6 +21,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-check-default-none2.xml b/tests/qemuxml2xmloutdata/cpu-check-default-none2.xml index 483d219134..e87bf64416 100644 --- a/tests/qemuxml2xmloutdata/cpu-check-default-none2.xml +++ b/tests/qemuxml2xmloutdata/cpu-check-default-none2.xml @@ -23,6 +23,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-check-default-partial.xml b/tests/qemuxml2xmloutdata/cpu-check-default-partial.xml index b64a1f0ef7..2856fd4f43 100644 --- a/tests/qemuxml2xmloutdata/cpu-check-default-partial.xml +++ b/tests/qemuxml2xmloutdata/cpu-check-default-partial.xml @@ -21,6 +21,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-check-default-partial2.xml b/tests/qemuxml2xmloutdata/cpu-check-default-partial2.xml index 381e951a17..1423620aa8 100644 --- a/tests/qemuxml2xmloutdata/cpu-check-default-partial2.xml +++ b/tests/qemuxml2xmloutdata/cpu-check-default-partial2.xml @@ -23,6 +23,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-check-full.xml b/tests/qemuxml2xmloutdata/cpu-check-full.xml index 9d180d745f..a978f70135 100644 --- a/tests/qemuxml2xmloutdata/cpu-check-full.xml +++ b/tests/qemuxml2xmloutdata/cpu-check-full.xml @@ -23,6 +23,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-check-none.xml b/tests/qemuxml2xmloutdata/cpu-check-none.xml index 67994f67ba..c4ea77cdf9 100644 --- a/tests/qemuxml2xmloutdata/cpu-check-none.xml +++ b/tests/qemuxml2xmloutdata/cpu-check-none.xml @@ -23,6 +23,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-check-partial.xml b/tests/qemuxml2xmloutdata/cpu-check-partial.xml index 381e951a17..1423620aa8 100644 --- a/tests/qemuxml2xmloutdata/cpu-check-partial.xml +++ b/tests/qemuxml2xmloutdata/cpu-check-partial.xml @@ -23,6 +23,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-empty.xml b/tests/qemuxml2xmloutdata/cpu-empty.xml index c398a3b9c0..394588b8f5 100644 --- a/tests/qemuxml2xmloutdata/cpu-empty.xml +++ b/tests/qemuxml2xmloutdata/cpu-empty.xml @@ -20,6 +20,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-eoi-disabled.xml b/tests/qemuxml2xmloutdata/cpu-eoi-disabled.xml index f528efa8db..176c7c3cbf 100644 --- a/tests/qemuxml2xmloutdata/cpu-eoi-disabled.xml +++ b/tests/qemuxml2xmloutdata/cpu-eoi-disabled.xml @@ -28,6 +28,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-eoi-enabled.xml b/tests/qemuxml2xmloutdata/cpu-eoi-enabled.xml index 0353b72c02..84cd2106eb 100644 --- a/tests/qemuxml2xmloutdata/cpu-eoi-enabled.xml +++ b/tests/qemuxml2xmloutdata/cpu-eoi-enabled.xml @@ -28,6 +28,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-host-kvmclock.xml b/tests/qemuxml2xmloutdata/cpu-host-kvmclock.xml index 9414c41c7a..40148c3686 100644 --- a/tests/qemuxml2xmloutdata/cpu-host-kvmclock.xml +++ b/tests/qemuxml2xmloutdata/cpu-host-kvmclock.xml @@ -23,6 +23,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-host-model-features.xml b/tests/qemuxml2xmloutdata/cpu-host-model-features.xml index 635811ecbd..be51410d53 100644 --- a/tests/qemuxml2xmloutdata/cpu-host-model-features.xml +++ b/tests/qemuxml2xmloutdata/cpu-host-model-features.xml @@ -33,6 +33,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-host-model-vendor.xml b/tests/qemuxml2xmloutdata/cpu-host-model-vendor.xml index 2a7d0246cc..670c171ebc 100644 --- a/tests/qemuxml2xmloutdata/cpu-host-model-vendor.xml +++ b/tests/qemuxml2xmloutdata/cpu-host-model-vendor.xml @@ -23,6 +23,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-host-passthrough-features.xml b/tests/qemuxml2xmloutdata/cpu-host-passthrough-features.xml index bd1e50ef6a..cc217f41a1 100644 --- a/tests/qemuxml2xmloutdata/cpu-host-passthrough-features.xml +++ b/tests/qemuxml2xmloutdata/cpu-host-passthrough-features.xml @@ -39,6 +39,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-kvmclock.xml b/tests/qemuxml2xmloutdata/cpu-kvmclock.xml index 3f89c8fec7..090fff2d10 100644 --- a/tests/qemuxml2xmloutdata/cpu-kvmclock.xml +++ b/tests/qemuxml2xmloutdata/cpu-kvmclock.xml @@ -25,6 +25,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-numa-disjoint.xml b/tests/qemuxml2xmloutdata/cpu-numa-disjoint.xml index d7f5372fbc..8219c16939 100644 --- a/tests/qemuxml2xmloutdata/cpu-numa-disjoint.xml +++ b/tests/qemuxml2xmloutdata/cpu-numa-disjoint.xml @@ -27,6 +27,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-numa-disordered.xml b/tests/qemuxml2xmloutdata/cpu-numa-disordered.xml index 487ced1008..dd15201aad 100644 --- a/tests/qemuxml2xmloutdata/cpu-numa-disordered.xml +++ b/tests/qemuxml2xmloutdata/cpu-numa-disordered.xml @@ -28,6 +28,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-numa-memshared.xml b/tests/qemuxml2xmloutdata/cpu-numa-memshared.xml index f472bffec3..0c53679827 100644 --- a/tests/qemuxml2xmloutdata/cpu-numa-memshared.xml +++ b/tests/qemuxml2xmloutdata/cpu-numa-memshared.xml @@ -27,6 +27,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-numa-no-memory-element.xml b/tests/qemuxml2xmloutdata/cpu-numa-no-memory-element.xml index 2ef7f84646..99269812d9 100644 --- a/tests/qemuxml2xmloutdata/cpu-numa-no-memory-element.xml +++ b/tests/qemuxml2xmloutdata/cpu-numa-no-memory-element.xml @@ -27,6 +27,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-numa1.xml b/tests/qemuxml2xmloutdata/cpu-numa1.xml index 2ef7f84646..99269812d9 100644 --- a/tests/qemuxml2xmloutdata/cpu-numa1.xml +++ b/tests/qemuxml2xmloutdata/cpu-numa1.xml @@ -27,6 +27,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cpu-numa2.xml b/tests/qemuxml2xmloutdata/cpu-numa2.xml index 2ef7f84646..99269812d9 100644 --- a/tests/qemuxml2xmloutdata/cpu-numa2.xml +++ b/tests/qemuxml2xmloutdata/cpu-numa2.xml @@ -27,6 +27,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cputune-cpuset-big-id.x86_64-latest.xml b/tests/qemuxml2xmloutdata/cputune-cpuset-big-id.x86_64-latest.xml index 8405829bb6..8ef58393fe 100644 --- a/tests/qemuxml2xmloutdata/cputune-cpuset-big-id.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/cputune-cpuset-big-id.x86_64-latest.xml @@ -36,6 +36,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cputune-iothreads.xml b/tests/qemuxml2xmloutdata/cputune-iothreads.xml index 57649745f0..cc7b7a112f 100644 --- a/tests/qemuxml2xmloutdata/cputune-iothreads.xml +++ b/tests/qemuxml2xmloutdata/cputune-iothreads.xml @@ -40,6 +40,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cputune-iothreadsched-zeropriority.xml b/tests/qemuxml2xmloutdata/cputune-iothreadsched-zeropriority.xml index 694723d261..e4491a9eee 100644 --- a/tests/qemuxml2xmloutdata/cputune-iothreadsched-zeropriority.xml +++ b/tests/qemuxml2xmloutdata/cputune-iothreadsched-zeropriority.xml @@ -43,6 +43,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cputune-iothreadsched.xml b/tests/qemuxml2xmloutdata/cputune-iothreadsched.xml index 6103531ed1..da5f10ff64 100644 --- a/tests/qemuxml2xmloutdata/cputune-iothreadsched.xml +++ b/tests/qemuxml2xmloutdata/cputune-iothreadsched.xml @@ -43,6 +43,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cputune-numatune.xml b/tests/qemuxml2xmloutdata/cputune-numatune.xml index ff987e7d59..7a2a9d643f 100644 --- a/tests/qemuxml2xmloutdata/cputune-numatune.xml +++ b/tests/qemuxml2xmloutdata/cputune-numatune.xml @@ -28,6 +28,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/cputune-zero-shares.xml b/tests/qemuxml2xmloutdata/cputune-zero-shares.xml index 8837b69eb3..ce53f17cc9 100644 --- a/tests/qemuxml2xmloutdata/cputune-zero-shares.xml +++ b/tests/qemuxml2xmloutdata/cputune-zero-shares.xml @@ -37,6 +37,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/cputune.xml b/tests/qemuxml2xmloutdata/cputune.xml index ee789cdc85..2f4ef68679 100644 --- a/tests/qemuxml2xmloutdata/cputune.xml +++ b/tests/qemuxml2xmloutdata/cputune.xml @@ -41,6 +41,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/default-kvm-host-arch.xml b/tests/qemuxml2xmloutdata/default-kvm-host-arch.xml index a1af050430..756d3967cd 100644 --- a/tests/qemuxml2xmloutdata/default-kvm-host-arch.xml +++ b/tests/qemuxml2xmloutdata/default-kvm-host-arch.xml @@ -20,6 +20,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/default-qemu-host-arch.xml b/tests/qemuxml2xmloutdata/default-qemu-host-arch.xml index 5f433fc047..f392bc40ae 100644 --- a/tests/qemuxml2xmloutdata/default-qemu-host-arch.xml +++ b/tests/qemuxml2xmloutdata/default-qemu-host-arch.xml @@ -20,6 +20,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/default-video-type-aarch64.aarch64-latest.xml b/tests/qemuxml2xmloutdata/default-video-type-aarch64.aarch64-latest.xml index a47435163f..e8fb758a71 100644 --- a/tests/qemuxml2xmloutdata/default-video-type-aarch64.aarch64-latest.xml +++ b/tests/qemuxml2xmloutdata/default-video-type-aarch64.aarch64-latest.xml @@ -32,6 +32,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/default-video-type-ppc64.ppc64-latest.xml b/tests/qemuxml2xmloutdata/default-video-type-ppc64.ppc64-latest.xml index 52bf8a1590..4646c1366d 100644 --- a/tests/qemuxml2xmloutdata/default-video-type-ppc64.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/default-video-type-ppc64.ppc64-latest.xml @@ -27,6 +27,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='vga' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/default-video-type-riscv64.riscv64-latest.xml b/tests/qemuxml2xmloutdata/default-video-type-riscv64.riscv64-latest.xml index 56d4b34ab7..61d6e19972 100644 --- a/tests/qemuxml2xmloutdata/default-video-type-riscv64.riscv64-latest.xml +++ b/tests/qemuxml2xmloutdata/default-video-type-riscv64.riscv64-latest.xml @@ -29,6 +29,7 @@ <graphics type='spice'> <listen type='none'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/default-video-type-s390x.s390x-latest.xml b/tests/qemuxml2xmloutdata/default-video-type-s390x.s390x-latest.xml index bbc3b0586f..c8aac8f1bf 100644 --- a/tests/qemuxml2xmloutdata/default-video-type-s390x.s390x-latest.xml +++ b/tests/qemuxml2xmloutdata/default-video-type-s390x.s390x-latest.xml @@ -20,6 +20,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/> diff --git a/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-0.xml b/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-0.xml index 47b2c7cbc9..596364f7a2 100644 --- a/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-0.xml +++ b/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-0.xml @@ -21,6 +21,7 @@ <graphics type='spice'> <listen type='none'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='vga' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-1.xml b/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-1.xml index 340cfef56f..a86f785b44 100644 --- a/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-1.xml +++ b/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-1.xml @@ -21,6 +21,7 @@ <graphics type='spice'> <listen type='none'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/disk-active-commit-active.xml b/tests/qemuxml2xmloutdata/disk-active-commit-active.xml index 739941b470..010ab9fce0 100644 --- a/tests/qemuxml2xmloutdata/disk-active-commit-active.xml +++ b/tests/qemuxml2xmloutdata/disk-active-commit-active.xml @@ -38,6 +38,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-active-commit-inactive.xml b/tests/qemuxml2xmloutdata/disk-active-commit-inactive.xml index 5488e15b84..5479e8edfc 100644 --- a/tests/qemuxml2xmloutdata/disk-active-commit-inactive.xml +++ b/tests/qemuxml2xmloutdata/disk-active-commit-inactive.xml @@ -34,6 +34,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-aio-io_uring.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-aio-io_uring.x86_64-latest.xml index 5b691e1c35..0e0ef77eae 100644 --- a/tests/qemuxml2xmloutdata/disk-aio-io_uring.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-aio-io_uring.x86_64-latest.xml @@ -32,6 +32,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-aio.xml b/tests/qemuxml2xmloutdata/disk-aio.xml index 01c1468b09..8d6f8b5263 100644 --- a/tests/qemuxml2xmloutdata/disk-aio.xml +++ b/tests/qemuxml2xmloutdata/disk-aio.xml @@ -36,6 +36,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-arm-virtio-sd.aarch64-latest.xml b/tests/qemuxml2xmloutdata/disk-arm-virtio-sd.aarch64-latest.xml index 024db53ffb..7b07c8d3d7 100644 --- a/tests/qemuxml2xmloutdata/disk-arm-virtio-sd.aarch64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-arm-virtio-sd.aarch64-latest.xml @@ -37,5 +37,6 @@ <target dev='vda' bus='virtio'/> <address type='virtio-mmio'/> </disk> + <audio id='1' type='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/disk-backing-chains-active.xml b/tests/qemuxml2xmloutdata/disk-backing-chains-active.xml index 866bd9ca7e..ba23787ad0 100644 --- a/tests/qemuxml2xmloutdata/disk-backing-chains-active.xml +++ b/tests/qemuxml2xmloutdata/disk-backing-chains-active.xml @@ -102,6 +102,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-backing-chains-inactive.xml b/tests/qemuxml2xmloutdata/disk-backing-chains-inactive.xml index 0d5ca917d3..e4a8209bf3 100644 --- a/tests/qemuxml2xmloutdata/disk-backing-chains-inactive.xml +++ b/tests/qemuxml2xmloutdata/disk-backing-chains-inactive.xml @@ -102,6 +102,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-backing-chains-index-active.xml b/tests/qemuxml2xmloutdata/disk-backing-chains-index-active.xml index 2569185ddf..e5d0d73999 100644 --- a/tests/qemuxml2xmloutdata/disk-backing-chains-index-active.xml +++ b/tests/qemuxml2xmloutdata/disk-backing-chains-index-active.xml @@ -149,6 +149,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-backing-chains-index-inactive.xml b/tests/qemuxml2xmloutdata/disk-backing-chains-index-inactive.xml index a1c0fb4620..cc02b15991 100644 --- a/tests/qemuxml2xmloutdata/disk-backing-chains-index-inactive.xml +++ b/tests/qemuxml2xmloutdata/disk-backing-chains-index-inactive.xml @@ -149,6 +149,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-backing-chains-noindex.xml b/tests/qemuxml2xmloutdata/disk-backing-chains-noindex.xml index a1c0fb4620..cc02b15991 100644 --- a/tests/qemuxml2xmloutdata/disk-backing-chains-noindex.xml +++ b/tests/qemuxml2xmloutdata/disk-backing-chains-noindex.xml @@ -149,6 +149,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-boot-cdrom.xml b/tests/qemuxml2xmloutdata/disk-boot-cdrom.xml index 3c6b557e1f..fabd953ca3 100644 --- a/tests/qemuxml2xmloutdata/disk-boot-cdrom.xml +++ b/tests/qemuxml2xmloutdata/disk-boot-cdrom.xml @@ -36,6 +36,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-boot-disk.xml b/tests/qemuxml2xmloutdata/disk-boot-disk.xml index 86f3c878a8..62e19edb3d 100644 --- a/tests/qemuxml2xmloutdata/disk-boot-disk.xml +++ b/tests/qemuxml2xmloutdata/disk-boot-disk.xml @@ -36,6 +36,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-cache.x86_64-1.5.3.xml b/tests/qemuxml2xmloutdata/disk-cache.x86_64-1.5.3.xml index 749b931e42..a57c2cd5d0 100644 --- a/tests/qemuxml2xmloutdata/disk-cache.x86_64-1.5.3.xml +++ b/tests/qemuxml2xmloutdata/disk-cache.x86_64-1.5.3.xml @@ -55,6 +55,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.12.0.xml b/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.12.0.xml index dc45c829d1..7c835918af 100644 --- a/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.12.0.xml +++ b/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.12.0.xml @@ -55,6 +55,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.6.0.xml b/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.6.0.xml index ab86e3d787..e499c7b5a9 100644 --- a/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.6.0.xml +++ b/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.6.0.xml @@ -55,6 +55,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.7.0.xml b/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.7.0.xml index 6e76fa6251..3bf5792c60 100644 --- a/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.7.0.xml +++ b/tests/qemuxml2xmloutdata/disk-cache.x86_64-2.7.0.xml @@ -55,6 +55,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/disk-cache.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-cache.x86_64-latest.xml index 8ede745da4..708bc0bb88 100644 --- a/tests/qemuxml2xmloutdata/disk-cache.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-cache.x86_64-latest.xml @@ -58,6 +58,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/disk-cdrom-bus-other.xml b/tests/qemuxml2xmloutdata/disk-cdrom-bus-other.xml index ec86d19f1d..76621e1c1c 100644 --- a/tests/qemuxml2xmloutdata/disk-cdrom-bus-other.xml +++ b/tests/qemuxml2xmloutdata/disk-cdrom-bus-other.xml @@ -35,6 +35,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-cdrom-empty-network-invalid.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-cdrom-empty-network-invalid.x86_64-latest.xml index 34267e4d1d..1c8daede3c 100644 --- a/tests/qemuxml2xmloutdata/disk-cdrom-empty-network-invalid.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-cdrom-empty-network-invalid.x86_64-latest.xml @@ -32,6 +32,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-cdrom.xml b/tests/qemuxml2xmloutdata/disk-cdrom.xml index 3a8c34761d..c3ae560809 100644 --- a/tests/qemuxml2xmloutdata/disk-cdrom.xml +++ b/tests/qemuxml2xmloutdata/disk-cdrom.xml @@ -49,6 +49,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-copy_on_read.xml b/tests/qemuxml2xmloutdata/disk-copy_on_read.xml index 5d19f3251d..074d41b72e 100644 --- a/tests/qemuxml2xmloutdata/disk-copy_on_read.xml +++ b/tests/qemuxml2xmloutdata/disk-copy_on_read.xml @@ -47,6 +47,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-discard.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-discard.x86_64-latest.xml index e55c5bf6d3..047b11f8fd 100644 --- a/tests/qemuxml2xmloutdata/disk-discard.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-discard.x86_64-latest.xml @@ -41,6 +41,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-error-policy.xml b/tests/qemuxml2xmloutdata/disk-error-policy.xml index 2a091eb2db..03a093fe40 100644 --- a/tests/qemuxml2xmloutdata/disk-error-policy.xml +++ b/tests/qemuxml2xmloutdata/disk-error-policy.xml @@ -41,6 +41,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-floppy.xml b/tests/qemuxml2xmloutdata/disk-floppy.xml index 2c2402a671..2242b38272 100644 --- a/tests/qemuxml2xmloutdata/disk-floppy.xml +++ b/tests/qemuxml2xmloutdata/disk-floppy.xml @@ -42,6 +42,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-fmt-qcow.xml b/tests/qemuxml2xmloutdata/disk-fmt-qcow.xml index e10748ffce..7c0023f748 100644 --- a/tests/qemuxml2xmloutdata/disk-fmt-qcow.xml +++ b/tests/qemuxml2xmloutdata/disk-fmt-qcow.xml @@ -36,6 +36,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-metadata-cache.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-metadata-cache.x86_64-latest.xml index 7104151a10..64fc4f69e1 100644 --- a/tests/qemuxml2xmloutdata/disk-metadata-cache.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-metadata-cache.x86_64-latest.xml @@ -51,6 +51,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-mirror-active.xml b/tests/qemuxml2xmloutdata/disk-mirror-active.xml index 0e2669398c..dca166d7f1 100644 --- a/tests/qemuxml2xmloutdata/disk-mirror-active.xml +++ b/tests/qemuxml2xmloutdata/disk-mirror-active.xml @@ -86,6 +86,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-mirror-inactive.xml b/tests/qemuxml2xmloutdata/disk-mirror-inactive.xml index 6c7f92c1cc..ba47bbad1a 100644 --- a/tests/qemuxml2xmloutdata/disk-mirror-inactive.xml +++ b/tests/qemuxml2xmloutdata/disk-mirror-inactive.xml @@ -59,6 +59,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-mirror-old-active.xml b/tests/qemuxml2xmloutdata/disk-mirror-old-active.xml index 14d4ed3522..7e54cae592 100644 --- a/tests/qemuxml2xmloutdata/disk-mirror-old-active.xml +++ b/tests/qemuxml2xmloutdata/disk-mirror-old-active.xml @@ -60,6 +60,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-mirror-old-inactive.xml b/tests/qemuxml2xmloutdata/disk-mirror-old-inactive.xml index 157ffcf6b2..5aec616002 100644 --- a/tests/qemuxml2xmloutdata/disk-mirror-old-inactive.xml +++ b/tests/qemuxml2xmloutdata/disk-mirror-old-inactive.xml @@ -52,6 +52,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-network-gluster.xml b/tests/qemuxml2xmloutdata/disk-network-gluster.xml index 0b596df987..c4763fa78f 100644 --- a/tests/qemuxml2xmloutdata/disk-network-gluster.xml +++ b/tests/qemuxml2xmloutdata/disk-network-gluster.xml @@ -46,6 +46,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-http.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-network-http.x86_64-latest.xml index aaae21c5af..2c2ed4f17d 100644 --- a/tests/qemuxml2xmloutdata/disk-network-http.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-network-http.x86_64-latest.xml @@ -66,6 +66,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-iscsi.xml b/tests/qemuxml2xmloutdata/disk-network-iscsi.xml index 757b9b7b52..cbf26754cd 100644 --- a/tests/qemuxml2xmloutdata/disk-network-iscsi.xml +++ b/tests/qemuxml2xmloutdata/disk-network-iscsi.xml @@ -69,6 +69,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/disk-network-nbd.xml b/tests/qemuxml2xmloutdata/disk-network-nbd.xml index 0f169ca537..db088e0f85 100644 --- a/tests/qemuxml2xmloutdata/disk-network-nbd.xml +++ b/tests/qemuxml2xmloutdata/disk-network-nbd.xml @@ -63,6 +63,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-nfs-inactive.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-network-nfs-inactive.x86_64-latest.xml index 87e341411a..aeb073dc3b 100644 --- a/tests/qemuxml2xmloutdata/disk-network-nfs-inactive.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-network-nfs-inactive.x86_64-latest.xml @@ -49,6 +49,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-nfs.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-network-nfs.x86_64-latest.xml index d920d46adf..2916df8e0a 100644 --- a/tests/qemuxml2xmloutdata/disk-network-nfs.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-network-nfs.x86_64-latest.xml @@ -49,6 +49,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-rbd.xml b/tests/qemuxml2xmloutdata/disk-network-rbd.xml index 7c74604f43..01b1d66ece 100644 --- a/tests/qemuxml2xmloutdata/disk-network-rbd.xml +++ b/tests/qemuxml2xmloutdata/disk-network-rbd.xml @@ -85,6 +85,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-sheepdog.xml b/tests/qemuxml2xmloutdata/disk-network-sheepdog.xml index bbe3998e88..c1862e5a54 100644 --- a/tests/qemuxml2xmloutdata/disk-network-sheepdog.xml +++ b/tests/qemuxml2xmloutdata/disk-network-sheepdog.xml @@ -37,6 +37,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-source-auth.xml b/tests/qemuxml2xmloutdata/disk-network-source-auth.xml index d9c85c478d..59258733bd 100644 --- a/tests/qemuxml2xmloutdata/disk-network-source-auth.xml +++ b/tests/qemuxml2xmloutdata/disk-network-source-auth.xml @@ -57,6 +57,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-tlsx509-nbd.xml b/tests/qemuxml2xmloutdata/disk-network-tlsx509-nbd.xml index c4521aac1b..dc2412c988 100644 --- a/tests/qemuxml2xmloutdata/disk-network-tlsx509-nbd.xml +++ b/tests/qemuxml2xmloutdata/disk-network-tlsx509-nbd.xml @@ -28,6 +28,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-tlsx509-vxhs.xml b/tests/qemuxml2xmloutdata/disk-network-tlsx509-vxhs.xml index 7053affd17..d6a3a8e61d 100644 --- a/tests/qemuxml2xmloutdata/disk-network-tlsx509-vxhs.xml +++ b/tests/qemuxml2xmloutdata/disk-network-tlsx509-vxhs.xml @@ -47,6 +47,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-network-vxhs.xml b/tests/qemuxml2xmloutdata/disk-network-vxhs.xml index 160ed8d5f4..fe93a953d2 100644 --- a/tests/qemuxml2xmloutdata/disk-network-vxhs.xml +++ b/tests/qemuxml2xmloutdata/disk-network-vxhs.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/disk-scsi-device-auto.xml b/tests/qemuxml2xmloutdata/disk-scsi-device-auto.xml index d02db8fb0d..41bfcbaaf4 100644 --- a/tests/qemuxml2xmloutdata/disk-scsi-device-auto.xml +++ b/tests/qemuxml2xmloutdata/disk-scsi-device-auto.xml @@ -38,6 +38,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-scsi-disk-vpd.xml b/tests/qemuxml2xmloutdata/disk-scsi-disk-vpd.xml index 080d20d0df..80fbf927af 100644 --- a/tests/qemuxml2xmloutdata/disk-scsi-disk-vpd.xml +++ b/tests/qemuxml2xmloutdata/disk-scsi-disk-vpd.xml @@ -44,6 +44,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-scsi-lun-passthrough-sgio.xml b/tests/qemuxml2xmloutdata/disk-scsi-lun-passthrough-sgio.xml index 99bbd119eb..eb0c192d80 100644 --- a/tests/qemuxml2xmloutdata/disk-scsi-lun-passthrough-sgio.xml +++ b/tests/qemuxml2xmloutdata/disk-scsi-lun-passthrough-sgio.xml @@ -38,6 +38,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-scsi.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-scsi.x86_64-latest.xml index ff93277835..0fa36082e7 100644 --- a/tests/qemuxml2xmloutdata/disk-scsi.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-scsi.x86_64-latest.xml @@ -79,6 +79,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-serial.xml b/tests/qemuxml2xmloutdata/disk-serial.xml index e29cefe0e8..b4092eae24 100644 --- a/tests/qemuxml2xmloutdata/disk-serial.xml +++ b/tests/qemuxml2xmloutdata/disk-serial.xml @@ -42,6 +42,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-slices.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-slices.x86_64-latest.xml index a02820a104..5c200ad31c 100644 --- a/tests/qemuxml2xmloutdata/disk-slices.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-slices.x86_64-latest.xml @@ -88,6 +88,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-source-pool-mode.xml b/tests/qemuxml2xmloutdata/disk-source-pool-mode.xml index 35ffadc26c..046665f713 100644 --- a/tests/qemuxml2xmloutdata/disk-source-pool-mode.xml +++ b/tests/qemuxml2xmloutdata/disk-source-pool-mode.xml @@ -65,6 +65,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-source-pool.xml b/tests/qemuxml2xmloutdata/disk-source-pool.xml index d7d9457452..3f5aa73e55 100644 --- a/tests/qemuxml2xmloutdata/disk-source-pool.xml +++ b/tests/qemuxml2xmloutdata/disk-source-pool.xml @@ -60,6 +60,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-usb-device.xml b/tests/qemuxml2xmloutdata/disk-usb-device.xml index 60342112b3..ee19c37d9b 100644 --- a/tests/qemuxml2xmloutdata/disk-usb-device.xml +++ b/tests/qemuxml2xmloutdata/disk-usb-device.xml @@ -34,6 +34,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-vhostuser.x86_64-latest.xml b/tests/qemuxml2xmloutdata/disk-vhostuser.x86_64-latest.xml index 87f5ec46ac..b1df51570d 100644 --- a/tests/qemuxml2xmloutdata/disk-vhostuser.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/disk-vhostuser.x86_64-latest.xml @@ -41,6 +41,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-virtio-s390-zpci.xml b/tests/qemuxml2xmloutdata/disk-virtio-s390-zpci.xml index 37684c82b1..bf1fe681be 100644 --- a/tests/qemuxml2xmloutdata/disk-virtio-s390-zpci.xml +++ b/tests/qemuxml2xmloutdata/disk-virtio-s390-zpci.xml @@ -23,6 +23,7 @@ </address> </disk> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/disk-virtio.xml b/tests/qemuxml2xmloutdata/disk-virtio.xml index 884f7aadb4..d7abf57e4a 100644 --- a/tests/qemuxml2xmloutdata/disk-virtio.xml +++ b/tests/qemuxml2xmloutdata/disk-virtio.xml @@ -48,6 +48,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/encrypted-disk.xml b/tests/qemuxml2xmloutdata/encrypted-disk.xml index dbde16dbe3..59cae921fc 100644 --- a/tests/qemuxml2xmloutdata/encrypted-disk.xml +++ b/tests/qemuxml2xmloutdata/encrypted-disk.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/eoi-disabled.xml b/tests/qemuxml2xmloutdata/eoi-disabled.xml index 6bea44a47c..eedab82972 100644 --- a/tests/qemuxml2xmloutdata/eoi-disabled.xml +++ b/tests/qemuxml2xmloutdata/eoi-disabled.xml @@ -25,6 +25,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/eoi-enabled.xml b/tests/qemuxml2xmloutdata/eoi-enabled.xml index b416894d88..3c42a3c1c0 100644 --- a/tests/qemuxml2xmloutdata/eoi-enabled.xml +++ b/tests/qemuxml2xmloutdata/eoi-enabled.xml @@ -25,6 +25,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/event_idx.xml b/tests/qemuxml2xmloutdata/event_idx.xml index 5ba208e367..a8990cd639 100644 --- a/tests/qemuxml2xmloutdata/event_idx.xml +++ b/tests/qemuxml2xmloutdata/event_idx.xml @@ -47,6 +47,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/floppy-drive-fat.xml b/tests/qemuxml2xmloutdata/floppy-drive-fat.xml index 7e573d31d2..ff489ade6d 100644 --- a/tests/qemuxml2xmloutdata/floppy-drive-fat.xml +++ b/tests/qemuxml2xmloutdata/floppy-drive-fat.xml @@ -31,6 +31,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/genid-active.x86_64-latest.xml b/tests/qemuxml2xmloutdata/genid-active.x86_64-latest.xml index 84b988e5bb..06a01bb688 100644 --- a/tests/qemuxml2xmloutdata/genid-active.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/genid-active.x86_64-latest.xml @@ -30,6 +30,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/genid-auto-active.x86_64-latest.xml b/tests/qemuxml2xmloutdata/genid-auto-active.x86_64-latest.xml index ded700d247..ce3af24282 100644 --- a/tests/qemuxml2xmloutdata/genid-auto-active.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/genid-auto-active.x86_64-latest.xml @@ -30,6 +30,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/genid-auto-inactive.x86_64-latest.xml b/tests/qemuxml2xmloutdata/genid-auto-inactive.x86_64-latest.xml index aedf32e239..a0b9e156b7 100644 --- a/tests/qemuxml2xmloutdata/genid-auto-inactive.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/genid-auto-inactive.x86_64-latest.xml @@ -30,6 +30,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/genid-inactive.x86_64-latest.xml b/tests/qemuxml2xmloutdata/genid-inactive.x86_64-latest.xml index 6c64ce74a8..9406c6e48a 100644 --- a/tests/qemuxml2xmloutdata/genid-inactive.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/genid-inactive.x86_64-latest.xml @@ -30,6 +30,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/graphics-listen-network.xml b/tests/qemuxml2xmloutdata/graphics-listen-network.xml index 4df676b10e..e6ee05d97a 100644 --- a/tests/qemuxml2xmloutdata/graphics-listen-network.xml +++ b/tests/qemuxml2xmloutdata/graphics-listen-network.xml @@ -32,6 +32,7 @@ <graphics type='vnc' port='5903' autoport='no'> <listen type='network' network='Bobsnetwork'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-listen-network2.xml b/tests/qemuxml2xmloutdata/graphics-listen-network2.xml index a4a9ccea2e..cf01ea5d8b 100644 --- a/tests/qemuxml2xmloutdata/graphics-listen-network2.xml +++ b/tests/qemuxml2xmloutdata/graphics-listen-network2.xml @@ -33,6 +33,7 @@ <listen type='address' address='1.2.3.4'/> <listen type='network' network='Bobsnetwork'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-spice-auto-socket-cfg.xml b/tests/qemuxml2xmloutdata/graphics-spice-auto-socket-cfg.xml index 03bf7cf107..f55c4b28a0 100644 --- a/tests/qemuxml2xmloutdata/graphics-spice-auto-socket-cfg.xml +++ b/tests/qemuxml2xmloutdata/graphics-spice-auto-socket-cfg.xml @@ -26,6 +26,7 @@ <graphics type='spice' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-spice-auto-socket.xml b/tests/qemuxml2xmloutdata/graphics-spice-auto-socket.xml index e8534d961a..a2d6688ffe 100644 --- a/tests/qemuxml2xmloutdata/graphics-spice-auto-socket.xml +++ b/tests/qemuxml2xmloutdata/graphics-spice-auto-socket.xml @@ -26,6 +26,7 @@ <graphics type='spice'> <listen type='socket'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-spice-compression.xml b/tests/qemuxml2xmloutdata/graphics-spice-compression.xml index 83d656e4f0..8772cd3343 100644 --- a/tests/qemuxml2xmloutdata/graphics-spice-compression.xml +++ b/tests/qemuxml2xmloutdata/graphics-spice-compression.xml @@ -37,6 +37,7 @@ <playback compression='on'/> <streaming mode='filter'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-spice-egl-headless.xml b/tests/qemuxml2xmloutdata/graphics-spice-egl-headless.xml index cf3119ae8d..eee55cbeeb 100644 --- a/tests/qemuxml2xmloutdata/graphics-spice-egl-headless.xml +++ b/tests/qemuxml2xmloutdata/graphics-spice-egl-headless.xml @@ -33,6 +33,7 @@ <listen type='address' address='127.0.0.1'/> </graphics> <graphics type='egl-headless'/> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-spice-qxl-vga.xml b/tests/qemuxml2xmloutdata/graphics-spice-qxl-vga.xml index 9e311d8f2e..35038d128f 100644 --- a/tests/qemuxml2xmloutdata/graphics-spice-qxl-vga.xml +++ b/tests/qemuxml2xmloutdata/graphics-spice-qxl-vga.xml @@ -34,6 +34,7 @@ <channel name='main' mode='secure'/> <channel name='inputs' mode='insecure'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-spice-socket.xml b/tests/qemuxml2xmloutdata/graphics-spice-socket.xml index 2dd9beb37f..dc429d3953 100644 --- a/tests/qemuxml2xmloutdata/graphics-spice-socket.xml +++ b/tests/qemuxml2xmloutdata/graphics-spice-socket.xml @@ -26,6 +26,7 @@ <graphics type='spice'> <listen type='socket' socket='/tmp/spice.sock'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-spice-timeout.xml b/tests/qemuxml2xmloutdata/graphics-spice-timeout.xml index 6e23652448..63eba26668 100644 --- a/tests/qemuxml2xmloutdata/graphics-spice-timeout.xml +++ b/tests/qemuxml2xmloutdata/graphics-spice-timeout.xml @@ -77,6 +77,7 @@ <sound model='ac97'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </sound> + <audio id='1' type='spice'/> <video> <model type='vga' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-spice.xml b/tests/qemuxml2xmloutdata/graphics-spice.xml index c45c825644..81115dc4b5 100644 --- a/tests/qemuxml2xmloutdata/graphics-spice.xml +++ b/tests/qemuxml2xmloutdata/graphics-spice.xml @@ -41,6 +41,7 @@ <clipboard copypaste='no'/> <filetransfer enable='no'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-auto-socket-cfg.xml b/tests/qemuxml2xmloutdata/graphics-vnc-auto-socket-cfg.xml index 9a70bd510c..6d2fd39994 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-auto-socket-cfg.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-auto-socket-cfg.xml @@ -32,6 +32,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-auto-socket.xml b/tests/qemuxml2xmloutdata/graphics-vnc-auto-socket.xml index 57fe2ee0e6..ef63f11faf 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-auto-socket.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-auto-socket.xml @@ -26,6 +26,7 @@ <graphics type='vnc'> <listen type='socket'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-egl-headless.xml b/tests/qemuxml2xmloutdata/graphics-vnc-egl-headless.xml index 0376383722..e4e5b70ac2 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-egl-headless.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-egl-headless.xml @@ -33,6 +33,7 @@ <listen type='address' address='2001:1:2:3:4:5:1234:1234'/> </graphics> <graphics type='egl-headless'/> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-no-listen-attr.xml b/tests/qemuxml2xmloutdata/graphics-vnc-no-listen-attr.xml index cc83ca4b79..ef49c61c06 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-no-listen-attr.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-no-listen-attr.xml @@ -32,6 +32,7 @@ <graphics type='vnc' port='5903' autoport='no' listen='2001:1:2:3:4:5:1234:1234'> <listen type='address' address='2001:1:2:3:4:5:1234:1234'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-active.xml b/tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-active.xml index 4415aa9253..c3cd451bb5 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-active.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-active.xml @@ -32,6 +32,7 @@ <graphics type='vnc' socket='/tmp/lib/domain-99-QEMUGuest1/delete.this.socket'> <listen type='socket' socket='/tmp/lib/domain-99-QEMUGuest1/delete.this.socket'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-inactive.xml b/tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-inactive.xml index 9a70bd510c..6d2fd39994 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-inactive.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-remove-generated-socket-inactive.xml @@ -32,6 +32,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-sasl.xml b/tests/qemuxml2xmloutdata/graphics-vnc-sasl.xml index d46a2c4542..b2e6fa9961 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-sasl.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-sasl.xml @@ -32,6 +32,7 @@ <graphics type='vnc' port='5903' autoport='no' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-socket.xml b/tests/qemuxml2xmloutdata/graphics-vnc-socket.xml index 314fa84372..ec4c08f627 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-socket.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-socket.xml @@ -26,6 +26,7 @@ <graphics type='vnc' socket='/tmp/vnc.sock'> <listen type='socket' socket='/tmp/vnc.sock'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-tls.xml b/tests/qemuxml2xmloutdata/graphics-vnc-tls.xml index 42d1adceb8..7e4248c54d 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-tls.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-tls.xml @@ -26,6 +26,7 @@ <graphics type='vnc' port='5903' autoport='no' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc-websocket.xml b/tests/qemuxml2xmloutdata/graphics-vnc-websocket.xml index ddc4c67302..cf0650496f 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc-websocket.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc-websocket.xml @@ -23,6 +23,7 @@ <graphics type='vnc' port='5900' autoport='no' websocket='5700' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/graphics-vnc.xml b/tests/qemuxml2xmloutdata/graphics-vnc.xml index cc83ca4b79..ef49c61c06 100644 --- a/tests/qemuxml2xmloutdata/graphics-vnc.xml +++ b/tests/qemuxml2xmloutdata/graphics-vnc.xml @@ -32,6 +32,7 @@ <graphics type='vnc' port='5903' autoport='no' listen='2001:1:2:3:4:5:1234:1234'> <listen type='address' address='2001:1:2:3:4:5:1234:1234'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-mdev-display-ramfb.x86_64-latest.xml b/tests/qemuxml2xmloutdata/hostdev-mdev-display-ramfb.x86_64-latest.xml index c134400486..a60317d811 100644 --- a/tests/qemuxml2xmloutdata/hostdev-mdev-display-ramfb.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/hostdev-mdev-display-ramfb.x86_64-latest.xml @@ -29,6 +29,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-mdev-display.xml b/tests/qemuxml2xmloutdata/hostdev-mdev-display.xml index d8a71e1f25..48a1c87cae 100644 --- a/tests/qemuxml2xmloutdata/hostdev-mdev-display.xml +++ b/tests/qemuxml2xmloutdata/hostdev-mdev-display.xml @@ -26,6 +26,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-mdev-precreated.xml b/tests/qemuxml2xmloutdata/hostdev-mdev-precreated.xml index 2d66ebaac6..42286eeebf 100644 --- a/tests/qemuxml2xmloutdata/hostdev-mdev-precreated.xml +++ b/tests/qemuxml2xmloutdata/hostdev-mdev-precreated.xml @@ -23,6 +23,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-pci'> <source> <address uuid='53764d0e-85a0-42b4-af5c-2046b460b1dc'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-pci-address-unassigned.xml b/tests/qemuxml2xmloutdata/hostdev-pci-address-unassigned.xml index 2341e8432b..136481411e 100644 --- a/tests/qemuxml2xmloutdata/hostdev-pci-address-unassigned.xml +++ b/tests/qemuxml2xmloutdata/hostdev-pci-address-unassigned.xml @@ -23,6 +23,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hostdev-pci-address.xml b/tests/qemuxml2xmloutdata/hostdev-pci-address.xml index e923b50b05..6539069e09 100644 --- a/tests/qemuxml2xmloutdata/hostdev-pci-address.xml +++ b/tests/qemuxml2xmloutdata/hostdev-pci-address.xml @@ -29,6 +29,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x06' slot='0x12' function='0x5'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-pci-multifunction.xml b/tests/qemuxml2xmloutdata/hostdev-pci-multifunction.xml index 52ed86e305..1e5a2ca532 100644 --- a/tests/qemuxml2xmloutdata/hostdev-pci-multifunction.xml +++ b/tests/qemuxml2xmloutdata/hostdev-pci-multifunction.xml @@ -23,6 +23,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-autogen-address.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-autogen-address.xml index e23d3d3901..474cc88d32 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-autogen-address.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-autogen-address.xml @@ -35,6 +35,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi' managed='yes'> <source> <adapter name='scsi_host0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-large-unit.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-large-unit.xml index 6c76c5c592..575f9e778a 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-large-unit.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-large-unit.xml @@ -32,6 +32,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi' managed='yes'> <source> <adapter name='scsi_host0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-lsi.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-lsi.xml index 9cefc3471c..640f7ac9c7 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-lsi.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-lsi.xml @@ -32,6 +32,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi' managed='yes'> <source> <adapter name='scsi_host0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-rawio.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-rawio.xml index 16b27e72bf..d62652a27e 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-rawio.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-rawio.xml @@ -32,6 +32,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi' managed='yes' sgio='unfiltered' rawio='yes'> <source> <adapter name='scsi_host0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-sgio.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-sgio.xml index 1513429773..32790c8f3b 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-sgio.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-sgio.xml @@ -32,6 +32,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi' managed='yes' sgio='unfiltered'> <source> <adapter name='scsi_host0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-shareable.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-shareable.xml index f8f4389cd6..c1bf0bbc98 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-shareable.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-shareable.xml @@ -32,6 +32,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi' managed='yes'> <source> <adapter name='scsi_host0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-ccw.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-ccw.xml index 3723bd0a98..ee42e03f07 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-ccw.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-ccw.xml @@ -23,6 +23,7 @@ <controller type='scsi' index='0' model='virtio-scsi'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </controller> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi_host' managed='no'> <source protocol='vhost' wwpn='naa.5123456789abcde0'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0002'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-pci.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-pci.xml index 2d2bdbf0b6..23ec57651e 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-pci.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-pci.xml @@ -32,6 +32,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi_host' managed='no'> <source protocol='vhost' wwpn='naa.5123456789abcde0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-pcie.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-pcie.xml index ef48d81231..98c96605fb 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-pcie.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-vhost-scsi-pcie.xml @@ -31,6 +31,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi_host' managed='no'> <source protocol='vhost' wwpn='naa.5123456789abcde0'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-scsi-virtio-scsi.xml b/tests/qemuxml2xmloutdata/hostdev-scsi-virtio-scsi.xml index 3e2e21dc55..95cc6a4b79 100644 --- a/tests/qemuxml2xmloutdata/hostdev-scsi-virtio-scsi.xml +++ b/tests/qemuxml2xmloutdata/hostdev-scsi-virtio-scsi.xml @@ -32,6 +32,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi' managed='yes'> <source> <adapter name='scsi_host0'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ap.xml b/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ap.xml index afaa9c3e43..d8a3043718 100644 --- a/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ap.xml +++ b/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ap.xml @@ -14,6 +14,7 @@ <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-ap'> <source> <address uuid='90c6c135-ad44-41d0-b1b7-bae47de48627'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw-boot.s390x-latest.xml b/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw-boot.s390x-latest.xml index 0342217cd0..f2ae0b7d09 100644 --- a/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw-boot.s390x-latest.xml +++ b/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw-boot.s390x-latest.xml @@ -17,6 +17,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-ccw'> <source> <address uuid='90c6c135-ad44-41d0-b1b7-bae47de48627'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw.xml b/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw.xml index a14ab05caa..37f8385717 100644 --- a/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw.xml +++ b/tests/qemuxml2xmloutdata/hostdev-subsys-mdev-vfio-ccw.xml @@ -14,6 +14,7 @@ <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-ccw'> <source> <address uuid='90c6c135-ad44-41d0-b1b7-bae47de48627'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-usb-address.xml b/tests/qemuxml2xmloutdata/hostdev-usb-address.xml index 4a2d7f6439..e4a1f798b2 100644 --- a/tests/qemuxml2xmloutdata/hostdev-usb-address.xml +++ b/tests/qemuxml2xmloutdata/hostdev-usb-address.xml @@ -29,6 +29,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='usb' managed='no'> <source> <address bus='14' device='6'/> diff --git a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-fids.xml b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-fids.xml index 846b809e63..594be6a6b7 100644 --- a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-fids.xml +++ b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-fids.xml @@ -15,6 +15,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='no'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-uids.xml b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-uids.xml index 01647550a1..b0ec9850ee 100644 --- a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-uids.xml +++ b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate-uids.xml @@ -15,6 +15,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='no'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate.xml b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate.xml index e94e63bd0a..3cf7ada929 100644 --- a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate.xml +++ b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-autogenerate.xml @@ -15,6 +15,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='no'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-boundaries.xml b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-boundaries.xml index 81d2146188..094d6f1ce4 100644 --- a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-boundaries.xml +++ b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-boundaries.xml @@ -20,6 +20,7 @@ <target chassisNr='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> </controller> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='no'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-ccw-memballoon.xml b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-ccw-memballoon.xml index 0d18e2d686..276c9f3e69 100644 --- a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-ccw-memballoon.xml +++ b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-ccw-memballoon.xml @@ -15,6 +15,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='no'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-multidomain-many.xml b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-multidomain-many.xml index e56106d103..759589242d 100644 --- a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-multidomain-many.xml +++ b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci-multidomain-many.xml @@ -15,6 +15,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='no'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci.xml b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci.xml index fc8c38ab66..3b41c4e0c0 100644 --- a/tests/qemuxml2xmloutdata/hostdev-vfio-zpci.xml +++ b/tests/qemuxml2xmloutdata/hostdev-vfio-zpci.xml @@ -15,6 +15,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='no'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hostdev-vfio.xml b/tests/qemuxml2xmloutdata/hostdev-vfio.xml index aa17a3e212..d04ad74215 100644 --- a/tests/qemuxml2xmloutdata/hostdev-vfio.xml +++ b/tests/qemuxml2xmloutdata/hostdev-vfio.xml @@ -29,6 +29,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/hugepages-default.xml b/tests/qemuxml2xmloutdata/hugepages-default.xml index 89916f4581..18e6d13a84 100644 --- a/tests/qemuxml2xmloutdata/hugepages-default.xml +++ b/tests/qemuxml2xmloutdata/hugepages-default.xml @@ -26,6 +26,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/hugepages-nodeset.xml b/tests/qemuxml2xmloutdata/hugepages-nodeset.xml index ce67853f26..fd3666c149 100644 --- a/tests/qemuxml2xmloutdata/hugepages-nodeset.xml +++ b/tests/qemuxml2xmloutdata/hugepages-nodeset.xml @@ -25,6 +25,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/hugepages-numa-default-2M.xml b/tests/qemuxml2xmloutdata/hugepages-numa-default-2M.xml index b320f69a2d..b12b9735c8 100644 --- a/tests/qemuxml2xmloutdata/hugepages-numa-default-2M.xml +++ b/tests/qemuxml2xmloutdata/hugepages-numa-default-2M.xml @@ -31,6 +31,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/hugepages-numa-nodeset-part.xml b/tests/qemuxml2xmloutdata/hugepages-numa-nodeset-part.xml index 977f5ccd19..3ca5a1fcaf 100644 --- a/tests/qemuxml2xmloutdata/hugepages-numa-nodeset-part.xml +++ b/tests/qemuxml2xmloutdata/hugepages-numa-nodeset-part.xml @@ -31,6 +31,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/hugepages-numa-nodeset.xml b/tests/qemuxml2xmloutdata/hugepages-numa-nodeset.xml index e57bb55449..2122f76aee 100644 --- a/tests/qemuxml2xmloutdata/hugepages-numa-nodeset.xml +++ b/tests/qemuxml2xmloutdata/hugepages-numa-nodeset.xml @@ -34,6 +34,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/hugepages-shared.xml b/tests/qemuxml2xmloutdata/hugepages-shared.xml index 0382614c30..01ea3f0545 100644 --- a/tests/qemuxml2xmloutdata/hugepages-shared.xml +++ b/tests/qemuxml2xmloutdata/hugepages-shared.xml @@ -47,6 +47,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/hyperv-off.xml b/tests/qemuxml2xmloutdata/hyperv-off.xml index 7fd8748c6f..46eea5fe2f 100644 --- a/tests/qemuxml2xmloutdata/hyperv-off.xml +++ b/tests/qemuxml2xmloutdata/hyperv-off.xml @@ -39,6 +39,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/hyperv-panic.xml b/tests/qemuxml2xmloutdata/hyperv-panic.xml index c96a7506df..0455937d51 100644 --- a/tests/qemuxml2xmloutdata/hyperv-panic.xml +++ b/tests/qemuxml2xmloutdata/hyperv-panic.xml @@ -23,6 +23,7 @@ <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'/> <panic model='hyperv'/> </devices> diff --git a/tests/qemuxml2xmloutdata/hyperv-stimer-direct.xml b/tests/qemuxml2xmloutdata/hyperv-stimer-direct.xml index a04e80e575..d49eb75b12 100644 --- a/tests/qemuxml2xmloutdata/hyperv-stimer-direct.xml +++ b/tests/qemuxml2xmloutdata/hyperv-stimer-direct.xml @@ -30,6 +30,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/hyperv.xml b/tests/qemuxml2xmloutdata/hyperv.xml index 07cfcce320..00af005671 100644 --- a/tests/qemuxml2xmloutdata/hyperv.xml +++ b/tests/qemuxml2xmloutdata/hyperv.xml @@ -39,6 +39,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/input-usbmouse.xml b/tests/qemuxml2xmloutdata/input-usbmouse.xml index 3dbb0eee9e..d7646efce2 100644 --- a/tests/qemuxml2xmloutdata/input-usbmouse.xml +++ b/tests/qemuxml2xmloutdata/input-usbmouse.xml @@ -30,6 +30,7 @@ <input type='mouse' bus='usb'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/input-usbtablet.xml b/tests/qemuxml2xmloutdata/input-usbtablet.xml index 5b5b7bd77a..add2908f82 100644 --- a/tests/qemuxml2xmloutdata/input-usbtablet.xml +++ b/tests/qemuxml2xmloutdata/input-usbtablet.xml @@ -30,6 +30,7 @@ <input type='tablet' bus='usb'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/input-virtio-ccw.xml b/tests/qemuxml2xmloutdata/input-virtio-ccw.xml index 20aed31f3f..3a4fcadda6 100644 --- a/tests/qemuxml2xmloutdata/input-virtio-ccw.xml +++ b/tests/qemuxml2xmloutdata/input-virtio-ccw.xml @@ -29,6 +29,7 @@ <input type='tablet' bus='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0004'/> </input> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/intel-iommu.x86_64-2.6.0.xml b/tests/qemuxml2xmloutdata/intel-iommu.x86_64-2.6.0.xml index ea3576a52d..735f21be97 100644 --- a/tests/qemuxml2xmloutdata/intel-iommu.x86_64-2.6.0.xml +++ b/tests/qemuxml2xmloutdata/intel-iommu.x86_64-2.6.0.xml @@ -24,6 +24,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> <iommu model='intel'/> </devices> diff --git a/tests/qemuxml2xmloutdata/interface-driver.xml b/tests/qemuxml2xmloutdata/interface-driver.xml index 06606b7fbb..eb5d672ea4 100644 --- a/tests/qemuxml2xmloutdata/interface-driver.xml +++ b/tests/qemuxml2xmloutdata/interface-driver.xml @@ -56,6 +56,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/interface-server.xml b/tests/qemuxml2xmloutdata/interface-server.xml index 75b12bf96f..442f64afde 100644 --- a/tests/qemuxml2xmloutdata/interface-server.xml +++ b/tests/qemuxml2xmloutdata/interface-server.xml @@ -126,6 +126,7 @@ <sound model='ich6'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/iommu-smmuv3.aarch64-latest.xml b/tests/qemuxml2xmloutdata/iommu-smmuv3.aarch64-latest.xml index 53edd3f851..0314d06530 100644 --- a/tests/qemuxml2xmloutdata/iommu-smmuv3.aarch64-latest.xml +++ b/tests/qemuxml2xmloutdata/iommu-smmuv3.aarch64-latest.xml @@ -22,6 +22,7 @@ <emulator>/usr/bin/qemu-system-aarch64</emulator> <controller type='usb' index='0' model='none'/> <controller type='pci' index='0' model='pcie-root'/> + <audio id='1' type='none'/> <memballoon model='none'/> <iommu model='smmuv3'/> </devices> diff --git a/tests/qemuxml2xmloutdata/iothreads-disk-virtio-ccw.xml b/tests/qemuxml2xmloutdata/iothreads-disk-virtio-ccw.xml index 37d7d429a4..f711b34ffe 100644 --- a/tests/qemuxml2xmloutdata/iothreads-disk-virtio-ccw.xml +++ b/tests/qemuxml2xmloutdata/iothreads-disk-virtio-ccw.xml @@ -28,6 +28,7 @@ <address type='ccw' cssid='0x0' ssid='0x0' devno='0x0007'/> </disk> <controller type='usb' index='0' model='none'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x000a'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/iothreads-disk.xml b/tests/qemuxml2xmloutdata/iothreads-disk.xml index 3eeed00703..0aee306cf2 100644 --- a/tests/qemuxml2xmloutdata/iothreads-disk.xml +++ b/tests/qemuxml2xmloutdata/iothreads-disk.xml @@ -42,6 +42,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/iothreads-ids-partial.xml b/tests/qemuxml2xmloutdata/iothreads-ids-partial.xml index fbc4cb3ab9..b6afcf9cbb 100644 --- a/tests/qemuxml2xmloutdata/iothreads-ids-partial.xml +++ b/tests/qemuxml2xmloutdata/iothreads-ids-partial.xml @@ -36,6 +36,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/iothreads-ids.xml b/tests/qemuxml2xmloutdata/iothreads-ids.xml index 2b64bc446f..4f73431581 100644 --- a/tests/qemuxml2xmloutdata/iothreads-ids.xml +++ b/tests/qemuxml2xmloutdata/iothreads-ids.xml @@ -34,6 +34,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/iothreads-virtio-scsi-ccw.xml b/tests/qemuxml2xmloutdata/iothreads-virtio-scsi-ccw.xml index 1b4af03832..11fead6c8b 100644 --- a/tests/qemuxml2xmloutdata/iothreads-virtio-scsi-ccw.xml +++ b/tests/qemuxml2xmloutdata/iothreads-virtio-scsi-ccw.xml @@ -32,6 +32,7 @@ <driver iothread='2'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </controller> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x000a'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/iothreads-virtio-scsi-pci.xml b/tests/qemuxml2xmloutdata/iothreads-virtio-scsi-pci.xml index 2bdc91501c..39b4b2b61a 100644 --- a/tests/qemuxml2xmloutdata/iothreads-virtio-scsi-pci.xml +++ b/tests/qemuxml2xmloutdata/iothreads-virtio-scsi-pci.xml @@ -46,6 +46,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/iothreads.xml b/tests/qemuxml2xmloutdata/iothreads.xml index c2fc2e3918..17e5f8bce1 100644 --- a/tests/qemuxml2xmloutdata/iothreads.xml +++ b/tests/qemuxml2xmloutdata/iothreads.xml @@ -30,6 +30,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/kvm-features-off.xml b/tests/qemuxml2xmloutdata/kvm-features-off.xml index 2fc9468910..42afbab369 100644 --- a/tests/qemuxml2xmloutdata/kvm-features-off.xml +++ b/tests/qemuxml2xmloutdata/kvm-features-off.xml @@ -28,6 +28,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/kvm-features.xml b/tests/qemuxml2xmloutdata/kvm-features.xml index 458070ac46..88ee48c873 100644 --- a/tests/qemuxml2xmloutdata/kvm-features.xml +++ b/tests/qemuxml2xmloutdata/kvm-features.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/kvmclock.xml b/tests/qemuxml2xmloutdata/kvmclock.xml index 729b4eccd6..0152c59e47 100644 --- a/tests/qemuxml2xmloutdata/kvmclock.xml +++ b/tests/qemuxml2xmloutdata/kvmclock.xml @@ -25,6 +25,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/lease.xml b/tests/qemuxml2xmloutdata/lease.xml index 87258c8f7e..8d6c65e7ac 100644 --- a/tests/qemuxml2xmloutdata/lease.xml +++ b/tests/qemuxml2xmloutdata/lease.xml @@ -41,6 +41,7 @@ </lease> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/luks-disks-source-qcow2.x86_64-latest.xml b/tests/qemuxml2xmloutdata/luks-disks-source-qcow2.x86_64-latest.xml index 0a21f4544a..5f600f5ba7 100644 --- a/tests/qemuxml2xmloutdata/luks-disks-source-qcow2.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/luks-disks-source-qcow2.x86_64-latest.xml @@ -99,6 +99,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/luks-disks-source.xml b/tests/qemuxml2xmloutdata/luks-disks-source.xml index 1cad3af7a6..fbf01cb52a 100644 --- a/tests/qemuxml2xmloutdata/luks-disks-source.xml +++ b/tests/qemuxml2xmloutdata/luks-disks-source.xml @@ -77,6 +77,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/mach-virt-console-virtio.xml b/tests/qemuxml2xmloutdata/mach-virt-console-virtio.xml index 84e5c37ad9..6224089879 100644 --- a/tests/qemuxml2xmloutdata/mach-virt-console-virtio.xml +++ b/tests/qemuxml2xmloutdata/mach-virt-console-virtio.xml @@ -24,6 +24,7 @@ <console type='pty'> <target type='virtio' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/mach-virt-serial-compat.xml b/tests/qemuxml2xmloutdata/mach-virt-serial-compat.xml index 3d7325a8db..f66fe2916a 100644 --- a/tests/qemuxml2xmloutdata/mach-virt-serial-compat.xml +++ b/tests/qemuxml2xmloutdata/mach-virt-serial-compat.xml @@ -26,6 +26,7 @@ <console type='pty'> <target type='serial' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/mach-virt-serial-pci.xml b/tests/qemuxml2xmloutdata/mach-virt-serial-pci.xml index 4bcf69a3d1..09478419e2 100644 --- a/tests/qemuxml2xmloutdata/mach-virt-serial-pci.xml +++ b/tests/qemuxml2xmloutdata/mach-virt-serial-pci.xml @@ -39,6 +39,7 @@ </target> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </serial> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/mach-virt-serial-usb.xml b/tests/qemuxml2xmloutdata/mach-virt-serial-usb.xml index 01c2a52555..0578d7ad72 100644 --- a/tests/qemuxml2xmloutdata/mach-virt-serial-usb.xml +++ b/tests/qemuxml2xmloutdata/mach-virt-serial-usb.xml @@ -36,6 +36,7 @@ <model name='usb-serial'/> </target> </serial> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/machine-core-off.xml b/tests/qemuxml2xmloutdata/machine-core-off.xml index 2b7a1b4712..faae1accb0 100644 --- a/tests/qemuxml2xmloutdata/machine-core-off.xml +++ b/tests/qemuxml2xmloutdata/machine-core-off.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/machine-core-on.xml b/tests/qemuxml2xmloutdata/machine-core-on.xml index 37508e8782..d3d15a557e 100644 --- a/tests/qemuxml2xmloutdata/machine-core-on.xml +++ b/tests/qemuxml2xmloutdata/machine-core-on.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/machine-loadparm-multiple-disks-nets-s390.xml b/tests/qemuxml2xmloutdata/machine-loadparm-multiple-disks-nets-s390.xml index c4e08fd440..3ea2c8c1c4 100644 --- a/tests/qemuxml2xmloutdata/machine-loadparm-multiple-disks-nets-s390.xml +++ b/tests/qemuxml2xmloutdata/machine-loadparm-multiple-disks-nets-s390.xml @@ -38,6 +38,7 @@ <model type='virtio'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0004'/> </interface> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/memory-hotplug-dimm.xml b/tests/qemuxml2xmloutdata/memory-hotplug-dimm.xml index 326b5c954c..41399ff0d0 100644 --- a/tests/qemuxml2xmloutdata/memory-hotplug-dimm.xml +++ b/tests/qemuxml2xmloutdata/memory-hotplug-dimm.xml @@ -40,6 +40,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64-abi-update.xml b/tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64-abi-update.xml index 3999b1a99f..4c9a15da6f 100644 --- a/tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64-abi-update.xml +++ b/tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64-abi-update.xml @@ -26,6 +26,7 @@ <model name='spapr-pci-host-bridge'/> <target index='0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> <memory model='nvdimm'> diff --git a/tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64.xml b/tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64.xml index bf7df9a259..c15db20dad 100644 --- a/tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64.xml +++ b/tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-ppc64.xml @@ -26,6 +26,7 @@ <model name='spapr-pci-host-bridge'/> <target index='0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> <memory model='nvdimm'> diff --git a/tests/qemuxml2xmloutdata/memory-hotplug-ppc64-nonuma-abi-update.xml b/tests/qemuxml2xmloutdata/memory-hotplug-ppc64-nonuma-abi-update.xml index 4edb786e6f..0590940233 100644 --- a/tests/qemuxml2xmloutdata/memory-hotplug-ppc64-nonuma-abi-update.xml +++ b/tests/qemuxml2xmloutdata/memory-hotplug-ppc64-nonuma-abi-update.xml @@ -20,6 +20,7 @@ <model name='spapr-pci-host-bridge'/> <target index='0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> <memory model='dimm'> diff --git a/tests/qemuxml2xmloutdata/memory-hotplug.xml b/tests/qemuxml2xmloutdata/memory-hotplug.xml index 0e5295dcd0..660e45205c 100644 --- a/tests/qemuxml2xmloutdata/memory-hotplug.xml +++ b/tests/qemuxml2xmloutdata/memory-hotplug.xml @@ -36,6 +36,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/memorybacking-set.xml b/tests/qemuxml2xmloutdata/memorybacking-set.xml index da1ebadfd1..1924f75779 100644 --- a/tests/qemuxml2xmloutdata/memorybacking-set.xml +++ b/tests/qemuxml2xmloutdata/memorybacking-set.xml @@ -25,6 +25,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/memorybacking-unset.xml b/tests/qemuxml2xmloutdata/memorybacking-unset.xml index b90988d3f1..19dfa64f64 100644 --- a/tests/qemuxml2xmloutdata/memorybacking-unset.xml +++ b/tests/qemuxml2xmloutdata/memorybacking-unset.xml @@ -25,6 +25,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/memtune-unlimited.xml b/tests/qemuxml2xmloutdata/memtune-unlimited.xml index 24e5aadcdf..e65d09eb6c 100644 --- a/tests/qemuxml2xmloutdata/memtune-unlimited.xml +++ b/tests/qemuxml2xmloutdata/memtune-unlimited.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/memtune.xml b/tests/qemuxml2xmloutdata/memtune.xml index 59de8b2c02..afe9468d8e 100644 --- a/tests/qemuxml2xmloutdata/memtune.xml +++ b/tests/qemuxml2xmloutdata/memtune.xml @@ -34,6 +34,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/metadata-duplicate.xml b/tests/qemuxml2xmloutdata/metadata-duplicate.xml index 8955445eb0..bbd77393e7 100644 --- a/tests/qemuxml2xmloutdata/metadata-duplicate.xml +++ b/tests/qemuxml2xmloutdata/metadata-duplicate.xml @@ -33,6 +33,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/metadata.xml b/tests/qemuxml2xmloutdata/metadata.xml index 8955445eb0..bbd77393e7 100644 --- a/tests/qemuxml2xmloutdata/metadata.xml +++ b/tests/qemuxml2xmloutdata/metadata.xml @@ -33,6 +33,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/migrate.xml b/tests/qemuxml2xmloutdata/migrate.xml index 757791af10..7f512929aa 100644 --- a/tests/qemuxml2xmloutdata/migrate.xml +++ b/tests/qemuxml2xmloutdata/migrate.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/minimal.xml b/tests/qemuxml2xmloutdata/minimal.xml index aae7d84719..86a0656c10 100644 --- a/tests/qemuxml2xmloutdata/minimal.xml +++ b/tests/qemuxml2xmloutdata/minimal.xml @@ -34,6 +34,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/misc-acpi.xml b/tests/qemuxml2xmloutdata/misc-acpi.xml index 6114d43b13..5c7a1c7494 100644 --- a/tests/qemuxml2xmloutdata/misc-acpi.xml +++ b/tests/qemuxml2xmloutdata/misc-acpi.xml @@ -32,6 +32,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/misc-disable-s3.xml b/tests/qemuxml2xmloutdata/misc-disable-s3.xml index efdcc3bd37..0aa5a98159 100644 --- a/tests/qemuxml2xmloutdata/misc-disable-s3.xml +++ b/tests/qemuxml2xmloutdata/misc-disable-s3.xml @@ -32,6 +32,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/misc-disable-suspends.xml b/tests/qemuxml2xmloutdata/misc-disable-suspends.xml index 6e94800d6f..10241eb72f 100644 --- a/tests/qemuxml2xmloutdata/misc-disable-suspends.xml +++ b/tests/qemuxml2xmloutdata/misc-disable-suspends.xml @@ -33,6 +33,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/misc-enable-s4.xml b/tests/qemuxml2xmloutdata/misc-enable-s4.xml index e9c5d5e63f..464aa2482e 100644 --- a/tests/qemuxml2xmloutdata/misc-enable-s4.xml +++ b/tests/qemuxml2xmloutdata/misc-enable-s4.xml @@ -32,6 +32,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/misc-no-reboot.xml b/tests/qemuxml2xmloutdata/misc-no-reboot.xml index 9f3a4d487a..c597ee4fd6 100644 --- a/tests/qemuxml2xmloutdata/misc-no-reboot.xml +++ b/tests/qemuxml2xmloutdata/misc-no-reboot.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/misc-uuid.xml b/tests/qemuxml2xmloutdata/misc-uuid.xml index 6114d43b13..5c7a1c7494 100644 --- a/tests/qemuxml2xmloutdata/misc-uuid.xml +++ b/tests/qemuxml2xmloutdata/misc-uuid.xml @@ -32,6 +32,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/net-bandwidth.xml b/tests/qemuxml2xmloutdata/net-bandwidth.xml index 906081c33d..7d5c552202 100644 --- a/tests/qemuxml2xmloutdata/net-bandwidth.xml +++ b/tests/qemuxml2xmloutdata/net-bandwidth.xml @@ -71,6 +71,7 @@ <sound model='ac97'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </sound> + <audio id='1' type='none'/> <video> <model type='vga' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/net-bandwidth2.xml b/tests/qemuxml2xmloutdata/net-bandwidth2.xml index e9c8388078..7d5209a64a 100644 --- a/tests/qemuxml2xmloutdata/net-bandwidth2.xml +++ b/tests/qemuxml2xmloutdata/net-bandwidth2.xml @@ -60,6 +60,7 @@ <sound model='ac97'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </sound> + <audio id='1' type='none'/> <video> <model type='vga' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/net-coalesce.xml b/tests/qemuxml2xmloutdata/net-coalesce.xml index 3a37587dde..146fcaae25 100644 --- a/tests/qemuxml2xmloutdata/net-coalesce.xml +++ b/tests/qemuxml2xmloutdata/net-coalesce.xml @@ -66,6 +66,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-eth-hostip.xml b/tests/qemuxml2xmloutdata/net-eth-hostip.xml index 3990dfbdf9..a144b5fc91 100644 --- a/tests/qemuxml2xmloutdata/net-eth-hostip.xml +++ b/tests/qemuxml2xmloutdata/net-eth-hostip.xml @@ -39,6 +39,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/net-eth-ifname.xml b/tests/qemuxml2xmloutdata/net-eth-ifname.xml index 275f0c9b0c..51b1679012 100644 --- a/tests/qemuxml2xmloutdata/net-eth-ifname.xml +++ b/tests/qemuxml2xmloutdata/net-eth-ifname.xml @@ -36,6 +36,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/net-eth-unmanaged-tap.xml b/tests/qemuxml2xmloutdata/net-eth-unmanaged-tap.xml index 061d1b5954..de176f851b 100644 --- a/tests/qemuxml2xmloutdata/net-eth-unmanaged-tap.xml +++ b/tests/qemuxml2xmloutdata/net-eth-unmanaged-tap.xml @@ -35,6 +35,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/net-eth.xml b/tests/qemuxml2xmloutdata/net-eth.xml index 8e84643c98..3703834d14 100644 --- a/tests/qemuxml2xmloutdata/net-eth.xml +++ b/tests/qemuxml2xmloutdata/net-eth.xml @@ -35,6 +35,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/net-hostdev-bootorder.xml b/tests/qemuxml2xmloutdata/net-hostdev-bootorder.xml index f6ddad49c0..7caf0c050b 100644 --- a/tests/qemuxml2xmloutdata/net-hostdev-bootorder.xml +++ b/tests/qemuxml2xmloutdata/net-hostdev-bootorder.xml @@ -37,6 +37,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/net-hostdev-vfio.xml b/tests/qemuxml2xmloutdata/net-hostdev-vfio.xml index 324c75e990..65dd69aae2 100644 --- a/tests/qemuxml2xmloutdata/net-hostdev-vfio.xml +++ b/tests/qemuxml2xmloutdata/net-hostdev-vfio.xml @@ -44,6 +44,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-hostdev.xml b/tests/qemuxml2xmloutdata/net-hostdev.xml index 7403bff9a0..47d35d2d08 100644 --- a/tests/qemuxml2xmloutdata/net-hostdev.xml +++ b/tests/qemuxml2xmloutdata/net-hostdev.xml @@ -43,6 +43,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-isolated-port.x86_64-latest.xml b/tests/qemuxml2xmloutdata/net-isolated-port.x86_64-latest.xml index d21a5a395b..b2eb8516b8 100644 --- a/tests/qemuxml2xmloutdata/net-isolated-port.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/net-isolated-port.x86_64-latest.xml @@ -54,6 +54,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/net-many-models.xml b/tests/qemuxml2xmloutdata/net-many-models.xml index 3f2a642574..e3c1e96c7d 100644 --- a/tests/qemuxml2xmloutdata/net-many-models.xml +++ b/tests/qemuxml2xmloutdata/net-many-models.xml @@ -48,6 +48,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/net-midonet.xml b/tests/qemuxml2xmloutdata/net-midonet.xml index 61e3ec8919..9410b98f38 100644 --- a/tests/qemuxml2xmloutdata/net-midonet.xml +++ b/tests/qemuxml2xmloutdata/net-midonet.xml @@ -38,6 +38,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-mtu.xml b/tests/qemuxml2xmloutdata/net-mtu.xml index e729d5b6fa..3fe5da65b4 100644 --- a/tests/qemuxml2xmloutdata/net-mtu.xml +++ b/tests/qemuxml2xmloutdata/net-mtu.xml @@ -63,6 +63,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-openvswitch.xml b/tests/qemuxml2xmloutdata/net-openvswitch.xml index 7b53846a08..0f84b34ce1 100644 --- a/tests/qemuxml2xmloutdata/net-openvswitch.xml +++ b/tests/qemuxml2xmloutdata/net-openvswitch.xml @@ -43,6 +43,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-udp.xml b/tests/qemuxml2xmloutdata/net-udp.xml index fedb99f001..8a6654831a 100644 --- a/tests/qemuxml2xmloutdata/net-udp.xml +++ b/tests/qemuxml2xmloutdata/net-udp.xml @@ -37,6 +37,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-user.xml b/tests/qemuxml2xmloutdata/net-user.xml index 35283da488..0c52ebf2a4 100644 --- a/tests/qemuxml2xmloutdata/net-user.xml +++ b/tests/qemuxml2xmloutdata/net-user.xml @@ -34,6 +34,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/net-vdpa.xml b/tests/qemuxml2xmloutdata/net-vdpa.xml index b362405c14..c9de151a08 100644 --- a/tests/qemuxml2xmloutdata/net-vdpa.xml +++ b/tests/qemuxml2xmloutdata/net-vdpa.xml @@ -29,6 +29,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/net-vhostuser.xml b/tests/qemuxml2xmloutdata/net-vhostuser.xml index e0a5335896..637935b641 100644 --- a/tests/qemuxml2xmloutdata/net-vhostuser.xml +++ b/tests/qemuxml2xmloutdata/net-vhostuser.xml @@ -41,6 +41,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/net-virtio-device.xml b/tests/qemuxml2xmloutdata/net-virtio-device.xml index 9caa289116..dd94a8d6d1 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-device.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-device.xml @@ -35,6 +35,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-virtio-disable-offloads.xml b/tests/qemuxml2xmloutdata/net-virtio-disable-offloads.xml index 15958be87b..40e57db44a 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-disable-offloads.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-disable-offloads.xml @@ -38,6 +38,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-virtio-network-portgroup.xml b/tests/qemuxml2xmloutdata/net-virtio-network-portgroup.xml index d298204250..334745d8f8 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-network-portgroup.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-network-portgroup.xml @@ -59,6 +59,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-virtio-rxtxqueuesize.xml b/tests/qemuxml2xmloutdata/net-virtio-rxtxqueuesize.xml index fce6d083ae..a9dffc0062 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-rxtxqueuesize.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-rxtxqueuesize.xml @@ -35,6 +35,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml b/tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml index e0dbeafe02..72791868e0 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml @@ -44,6 +44,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-virtio-teaming.xml b/tests/qemuxml2xmloutdata/net-virtio-teaming.xml index 5a5695794a..39dd50ade6 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-teaming.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-teaming.xml @@ -59,6 +59,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/net-virtio.xml b/tests/qemuxml2xmloutdata/net-virtio.xml index 2ed622e923..5e3d407cb0 100644 --- a/tests/qemuxml2xmloutdata/net-virtio.xml +++ b/tests/qemuxml2xmloutdata/net-virtio.xml @@ -34,6 +34,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/nosharepages.xml b/tests/qemuxml2xmloutdata/nosharepages.xml index dd5d24eaee..6610d7df87 100644 --- a/tests/qemuxml2xmloutdata/nosharepages.xml +++ b/tests/qemuxml2xmloutdata/nosharepages.xml @@ -32,6 +32,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-cpuset.xml b/tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-cpuset.xml index 841ea699a1..fc9ef86568 100644 --- a/tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-cpuset.xml +++ b/tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-cpuset.xml @@ -35,6 +35,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-no-cpuset-and-placement.xml b/tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-no-cpuset-and-placement.xml index 2e3998e155..724112b3a2 100644 --- a/tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-no-cpuset-and-placement.xml +++ b/tests/qemuxml2xmloutdata/numad-auto-memory-vcpu-no-cpuset-and-placement.xml @@ -35,6 +35,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/numad-auto-vcpu-no-numatune.xml b/tests/qemuxml2xmloutdata/numad-auto-vcpu-no-numatune.xml index 7c1f18c216..b054099f0a 100644 --- a/tests/qemuxml2xmloutdata/numad-auto-vcpu-no-numatune.xml +++ b/tests/qemuxml2xmloutdata/numad-auto-vcpu-no-numatune.xml @@ -35,6 +35,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/numad-static-vcpu-no-numatune.xml b/tests/qemuxml2xmloutdata/numad-static-vcpu-no-numatune.xml index 3d05790c0e..d0dfb88682 100644 --- a/tests/qemuxml2xmloutdata/numad-static-vcpu-no-numatune.xml +++ b/tests/qemuxml2xmloutdata/numad-static-vcpu-no-numatune.xml @@ -32,6 +32,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/numatune-auto-prefer.xml b/tests/qemuxml2xmloutdata/numatune-auto-prefer.xml index 8bd3c6e8cb..c289664f93 100644 --- a/tests/qemuxml2xmloutdata/numatune-auto-prefer.xml +++ b/tests/qemuxml2xmloutdata/numatune-auto-prefer.xml @@ -28,6 +28,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/numatune-distances.xml b/tests/qemuxml2xmloutdata/numatune-distances.xml index 48f89cb015..ee2d956d7e 100644 --- a/tests/qemuxml2xmloutdata/numatune-distances.xml +++ b/tests/qemuxml2xmloutdata/numatune-distances.xml @@ -89,6 +89,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/numatune-memnode-no-memory.xml b/tests/qemuxml2xmloutdata/numatune-memnode-no-memory.xml index b96436d1b1..880d8e2947 100644 --- a/tests/qemuxml2xmloutdata/numatune-memnode-no-memory.xml +++ b/tests/qemuxml2xmloutdata/numatune-memnode-no-memory.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/numatune-memnode.xml b/tests/qemuxml2xmloutdata/numatune-memnode.xml index 338d7acb72..297ad6b9c8 100644 --- a/tests/qemuxml2xmloutdata/numatune-memnode.xml +++ b/tests/qemuxml2xmloutdata/numatune-memnode.xml @@ -32,6 +32,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-latest.xml b/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-latest.xml index 2d2245b10c..fdf7e83587 100644 --- a/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-latest.xml @@ -31,6 +31,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/os-firmware-bios.x86_64-latest.xml b/tests/qemuxml2xmloutdata/os-firmware-bios.x86_64-latest.xml index 60d3498765..df6f61421a 100644 --- a/tests/qemuxml2xmloutdata/os-firmware-bios.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/os-firmware-bios.x86_64-latest.xml @@ -64,6 +64,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/os-firmware-efi-secboot.x86_64-latest.xml b/tests/qemuxml2xmloutdata/os-firmware-efi-secboot.x86_64-latest.xml index 938da73711..c383546cc6 100644 --- a/tests/qemuxml2xmloutdata/os-firmware-efi-secboot.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/os-firmware-efi-secboot.x86_64-latest.xml @@ -64,6 +64,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/os-firmware-efi.x86_64-latest.xml b/tests/qemuxml2xmloutdata/os-firmware-efi.x86_64-latest.xml index 97ce8a75c7..04d57860e7 100644 --- a/tests/qemuxml2xmloutdata/os-firmware-efi.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/os-firmware-efi.x86_64-latest.xml @@ -64,6 +64,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/panic-double.xml b/tests/qemuxml2xmloutdata/panic-double.xml index b3d0f79ee3..9cef24a5d1 100644 --- a/tests/qemuxml2xmloutdata/panic-double.xml +++ b/tests/qemuxml2xmloutdata/panic-double.xml @@ -23,6 +23,7 @@ <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'/> <panic model='hyperv'/> <panic model='isa'> diff --git a/tests/qemuxml2xmloutdata/panic-isa.xml b/tests/qemuxml2xmloutdata/panic-isa.xml index ef75c59046..2efcc47df8 100644 --- a/tests/qemuxml2xmloutdata/panic-isa.xml +++ b/tests/qemuxml2xmloutdata/panic-isa.xml @@ -30,6 +30,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/panic-no-address.xml b/tests/qemuxml2xmloutdata/panic-no-address.xml index 129e66cd99..8093ac85f3 100644 --- a/tests/qemuxml2xmloutdata/panic-no-address.xml +++ b/tests/qemuxml2xmloutdata/panic-no-address.xml @@ -30,6 +30,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/panic-pseries.xml b/tests/qemuxml2xmloutdata/panic-pseries.xml index 484fe4cfa6..cebb977d5a 100644 --- a/tests/qemuxml2xmloutdata/panic-pseries.xml +++ b/tests/qemuxml2xmloutdata/panic-pseries.xml @@ -31,6 +31,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/panic.xml b/tests/qemuxml2xmloutdata/panic.xml index ef75c59046..2efcc47df8 100644 --- a/tests/qemuxml2xmloutdata/panic.xml +++ b/tests/qemuxml2xmloutdata/panic.xml @@ -30,6 +30,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/pci-autoadd-addr.xml b/tests/qemuxml2xmloutdata/pci-autoadd-addr.xml index 33a2344181..cff6b2fa4d 100644 --- a/tests/qemuxml2xmloutdata/pci-autoadd-addr.xml +++ b/tests/qemuxml2xmloutdata/pci-autoadd-addr.xml @@ -70,6 +70,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/pci-autoadd-idx.xml b/tests/qemuxml2xmloutdata/pci-autoadd-idx.xml index c6437391cd..f42c77d219 100644 --- a/tests/qemuxml2xmloutdata/pci-autoadd-idx.xml +++ b/tests/qemuxml2xmloutdata/pci-autoadd-idx.xml @@ -75,6 +75,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/pci-autofill-addr.xml b/tests/qemuxml2xmloutdata/pci-autofill-addr.xml index 84cf1043e3..30dc7625ec 100644 --- a/tests/qemuxml2xmloutdata/pci-autofill-addr.xml +++ b/tests/qemuxml2xmloutdata/pci-autofill-addr.xml @@ -30,6 +30,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/pci-bridge-many-disks.xml b/tests/qemuxml2xmloutdata/pci-bridge-many-disks.xml index 87077add03..8e31e4e83b 100644 --- a/tests/qemuxml2xmloutdata/pci-bridge-many-disks.xml +++ b/tests/qemuxml2xmloutdata/pci-bridge-many-disks.xml @@ -673,6 +673,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/pci-bridge.xml b/tests/qemuxml2xmloutdata/pci-bridge.xml index 0a1591a0c7..d95660a381 100644 --- a/tests/qemuxml2xmloutdata/pci-bridge.xml +++ b/tests/qemuxml2xmloutdata/pci-bridge.xml @@ -208,6 +208,7 @@ <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='en-us'> <listen type='address' address='127.0.0.1'/> </graphics> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/pci-expander-bus.xml b/tests/qemuxml2xmloutdata/pci-expander-bus.xml index 60e4e4af7f..80dc73edc2 100644 --- a/tests/qemuxml2xmloutdata/pci-expander-bus.xml +++ b/tests/qemuxml2xmloutdata/pci-expander-bus.xml @@ -200,6 +200,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/pci-many.xml b/tests/qemuxml2xmloutdata/pci-many.xml index 08fcedce90..b610e3aa3c 100644 --- a/tests/qemuxml2xmloutdata/pci-many.xml +++ b/tests/qemuxml2xmloutdata/pci-many.xml @@ -203,6 +203,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/pci-rom-disabled-invalid.xml b/tests/qemuxml2xmloutdata/pci-rom-disabled-invalid.xml index 745d19d8ad..b26016ecb6 100644 --- a/tests/qemuxml2xmloutdata/pci-rom-disabled-invalid.xml +++ b/tests/qemuxml2xmloutdata/pci-rom-disabled-invalid.xml @@ -24,6 +24,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/pci-rom-disabled.xml b/tests/qemuxml2xmloutdata/pci-rom-disabled.xml index 6a95064ebf..cba9199f3f 100644 --- a/tests/qemuxml2xmloutdata/pci-rom-disabled.xml +++ b/tests/qemuxml2xmloutdata/pci-rom-disabled.xml @@ -24,6 +24,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/pci-rom.xml b/tests/qemuxml2xmloutdata/pci-rom.xml index 62945054d4..198c2e6ce0 100644 --- a/tests/qemuxml2xmloutdata/pci-rom.xml +++ b/tests/qemuxml2xmloutdata/pci-rom.xml @@ -41,6 +41,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x06' slot='0x12' function='0x5'/> diff --git a/tests/qemuxml2xmloutdata/pci-serial-dev-chardev.xml b/tests/qemuxml2xmloutdata/pci-serial-dev-chardev.xml index 9fe7fd5cc1..1a1b4f2b70 100644 --- a/tests/qemuxml2xmloutdata/pci-serial-dev-chardev.xml +++ b/tests/qemuxml2xmloutdata/pci-serial-dev-chardev.xml @@ -41,6 +41,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/pcie-expander-bus.xml b/tests/qemuxml2xmloutdata/pcie-expander-bus.xml index 452d476da6..45b03a1fb8 100644 --- a/tests/qemuxml2xmloutdata/pcie-expander-bus.xml +++ b/tests/qemuxml2xmloutdata/pcie-expander-bus.xml @@ -369,6 +369,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/pcie-root-port-model-generic.xml b/tests/qemuxml2xmloutdata/pcie-root-port-model-generic.xml index 0de0d3e276..6560d6a84f 100644 --- a/tests/qemuxml2xmloutdata/pcie-root-port-model-generic.xml +++ b/tests/qemuxml2xmloutdata/pcie-root-port-model-generic.xml @@ -35,6 +35,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/pcie-root-port-model-ioh3420.xml b/tests/qemuxml2xmloutdata/pcie-root-port-model-ioh3420.xml index 3bbecf7b69..303107514f 100644 --- a/tests/qemuxml2xmloutdata/pcie-root-port-model-ioh3420.xml +++ b/tests/qemuxml2xmloutdata/pcie-root-port-model-ioh3420.xml @@ -30,6 +30,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/pcie-root-port-nohotplug.x86_64-latest.xml b/tests/qemuxml2xmloutdata/pcie-root-port-nohotplug.x86_64-latest.xml index 9e22a4181c..83ae6c91ae 100644 --- a/tests/qemuxml2xmloutdata/pcie-root-port-nohotplug.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/pcie-root-port-nohotplug.x86_64-latest.xml @@ -65,6 +65,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/pcie-root-port.xml b/tests/qemuxml2xmloutdata/pcie-root-port.xml index 1424b9e22e..45ab6c3080 100644 --- a/tests/qemuxml2xmloutdata/pcie-root-port.xml +++ b/tests/qemuxml2xmloutdata/pcie-root-port.xml @@ -36,6 +36,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/pcie-root.xml b/tests/qemuxml2xmloutdata/pcie-root.xml index 4e3bad7fea..a177902947 100644 --- a/tests/qemuxml2xmloutdata/pcie-root.xml +++ b/tests/qemuxml2xmloutdata/pcie-root.xml @@ -20,6 +20,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/pcie-switch-downstream-port.xml b/tests/qemuxml2xmloutdata/pcie-switch-downstream-port.xml index ca49d04a76..ba63acfe16 100644 --- a/tests/qemuxml2xmloutdata/pcie-switch-downstream-port.xml +++ b/tests/qemuxml2xmloutdata/pcie-switch-downstream-port.xml @@ -74,6 +74,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/pcie-switch-upstream-port.xml b/tests/qemuxml2xmloutdata/pcie-switch-upstream-port.xml index f994957c32..298db1df5e 100644 --- a/tests/qemuxml2xmloutdata/pcie-switch-upstream-port.xml +++ b/tests/qemuxml2xmloutdata/pcie-switch-upstream-port.xml @@ -44,6 +44,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/pcihole64-gib.xml b/tests/qemuxml2xmloutdata/pcihole64-gib.xml index 2018e4329c..239e9e693f 100644 --- a/tests/qemuxml2xmloutdata/pcihole64-gib.xml +++ b/tests/qemuxml2xmloutdata/pcihole64-gib.xml @@ -22,6 +22,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/pcihole64-none.xml b/tests/qemuxml2xmloutdata/pcihole64-none.xml index 0fc7262f61..62b6ef9040 100644 --- a/tests/qemuxml2xmloutdata/pcihole64-none.xml +++ b/tests/qemuxml2xmloutdata/pcihole64-none.xml @@ -22,6 +22,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/pcihole64-q35.xml b/tests/qemuxml2xmloutdata/pcihole64-q35.xml index b3f591c451..5c3947f7f8 100644 --- a/tests/qemuxml2xmloutdata/pcihole64-q35.xml +++ b/tests/qemuxml2xmloutdata/pcihole64-q35.xml @@ -28,6 +28,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/pcihole64.xml b/tests/qemuxml2xmloutdata/pcihole64.xml index aa626ab88e..be70336738 100644 --- a/tests/qemuxml2xmloutdata/pcihole64.xml +++ b/tests/qemuxml2xmloutdata/pcihole64.xml @@ -22,6 +22,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/pmu-feature-off.xml b/tests/qemuxml2xmloutdata/pmu-feature-off.xml index 9398014694..1aaa377290 100644 --- a/tests/qemuxml2xmloutdata/pmu-feature-off.xml +++ b/tests/qemuxml2xmloutdata/pmu-feature-off.xml @@ -24,6 +24,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/pmu-feature.xml b/tests/qemuxml2xmloutdata/pmu-feature.xml index 7fee1ae0ac..bd87c33bd5 100644 --- a/tests/qemuxml2xmloutdata/pmu-feature.xml +++ b/tests/qemuxml2xmloutdata/pmu-feature.xml @@ -24,6 +24,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-2.7.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-2.7.ppc64-latest.xml index 6c401a8060..ceaae0f6c8 100644 --- a/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-2.7.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-2.7.ppc64-latest.xml @@ -40,6 +40,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-3.1.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-3.1.ppc64-latest.xml index 98280d3ec9..695d998f6f 100644 --- a/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-3.1.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-3.1.ppc64-latest.xml @@ -40,6 +40,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-4.2.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-4.2.ppc64-latest.xml index 035013aa44..868dd29a32 100644 --- a/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-4.2.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-default-cpu-kvm-pseries-4.2.ppc64-latest.xml @@ -40,6 +40,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-2.7.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-2.7.ppc64-latest.xml index e76766ff5a..f04ef099a3 100644 --- a/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-2.7.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-2.7.ppc64-latest.xml @@ -40,6 +40,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-3.1.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-3.1.ppc64-latest.xml index c1d619a9cb..a6498da466 100644 --- a/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-3.1.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-3.1.ppc64-latest.xml @@ -40,6 +40,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-4.2.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-4.2.ppc64-latest.xml index 311a7ad9da..fe7fb67d6c 100644 --- a/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-4.2.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-default-cpu-tcg-pseries-4.2.ppc64-latest.xml @@ -40,6 +40,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-pseries-graphics.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-pseries-graphics.ppc64-latest.xml index 052bb34a8a..984a233b07 100644 --- a/tests/qemuxml2xmloutdata/ppc64-pseries-graphics.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-pseries-graphics.ppc64-latest.xml @@ -62,6 +62,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='vga' vram='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/ppc64-pseries-headless.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-pseries-headless.ppc64-latest.xml index aa6f51c7e6..bb45c4e12c 100644 --- a/tests/qemuxml2xmloutdata/ppc64-pseries-headless.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-pseries-headless.ppc64-latest.xml @@ -57,6 +57,7 @@ <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-tpmproxy-single.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-tpmproxy-single.ppc64-latest.xml index 4e0e5f24b8..04d769831c 100644 --- a/tests/qemuxml2xmloutdata/ppc64-tpmproxy-single.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-tpmproxy-single.ppc64-latest.xml @@ -34,6 +34,7 @@ <device path='/dev/tpmrm0'/> </backend> </tpm> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-tpmproxy-with-tpm.ppc64-latest.xml b/tests/qemuxml2xmloutdata/ppc64-tpmproxy-with-tpm.ppc64-latest.xml index 9b64f914f0..067ab07af2 100644 --- a/tests/qemuxml2xmloutdata/ppc64-tpmproxy-with-tpm.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/ppc64-tpmproxy-with-tpm.ppc64-latest.xml @@ -38,6 +38,7 @@ <backend type='emulator' version='2.0'/> <address type='spapr-vio' reg='0x00004000'/> </tpm> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-usb-controller-legacy.xml b/tests/qemuxml2xmloutdata/ppc64-usb-controller-legacy.xml index 673b81dbc9..2caf95d961 100644 --- a/tests/qemuxml2xmloutdata/ppc64-usb-controller-legacy.xml +++ b/tests/qemuxml2xmloutdata/ppc64-usb-controller-legacy.xml @@ -26,6 +26,7 @@ <model name='spapr-pci-host-bridge'/> <target index='0'/> </controller> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/ppc64-usb-controller.xml b/tests/qemuxml2xmloutdata/ppc64-usb-controller.xml index 68995a9ce0..ec50384dd1 100644 --- a/tests/qemuxml2xmloutdata/ppc64-usb-controller.xml +++ b/tests/qemuxml2xmloutdata/ppc64-usb-controller.xml @@ -26,6 +26,7 @@ <model name='spapr-pci-host-bridge'/> <target index='0'/> </controller> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/pseries-console-virtio.xml b/tests/qemuxml2xmloutdata/pseries-console-virtio.xml index 48760f2824..0a44ea36bc 100644 --- a/tests/qemuxml2xmloutdata/pseries-console-virtio.xml +++ b/tests/qemuxml2xmloutdata/pseries-console-virtio.xml @@ -25,6 +25,7 @@ <console type='pty'> <target type='virtio' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-cpu-compat-power9.xml b/tests/qemuxml2xmloutdata/pseries-cpu-compat-power9.xml index 404bb0c768..93d692be0c 100644 --- a/tests/qemuxml2xmloutdata/pseries-cpu-compat-power9.xml +++ b/tests/qemuxml2xmloutdata/pseries-cpu-compat-power9.xml @@ -34,6 +34,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-cpu-compat.xml b/tests/qemuxml2xmloutdata/pseries-cpu-compat.xml index 1891fa5f48..4b880df610 100644 --- a/tests/qemuxml2xmloutdata/pseries-cpu-compat.xml +++ b/tests/qemuxml2xmloutdata/pseries-cpu-compat.xml @@ -34,6 +34,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-cpu-exact.xml b/tests/qemuxml2xmloutdata/pseries-cpu-exact.xml index f08f3e005f..a8e88d012f 100644 --- a/tests/qemuxml2xmloutdata/pseries-cpu-exact.xml +++ b/tests/qemuxml2xmloutdata/pseries-cpu-exact.xml @@ -35,6 +35,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-features.xml b/tests/qemuxml2xmloutdata/pseries-features.xml index e1c1d7306e..94a8f6a66f 100644 --- a/tests/qemuxml2xmloutdata/pseries-features.xml +++ b/tests/qemuxml2xmloutdata/pseries-features.xml @@ -30,6 +30,7 @@ <target index='0'/> </controller> <controller type='usb' index='0' model='none'/> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-hostdevs-1.xml b/tests/qemuxml2xmloutdata/pseries-hostdevs-1.xml index e77a060a38..cff29a97c2 100644 --- a/tests/qemuxml2xmloutdata/pseries-hostdevs-1.xml +++ b/tests/qemuxml2xmloutdata/pseries-hostdevs-1.xml @@ -35,6 +35,7 @@ </source> <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/> </interface> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/pseries-hostdevs-2.xml b/tests/qemuxml2xmloutdata/pseries-hostdevs-2.xml index cfa395b001..598513d784 100644 --- a/tests/qemuxml2xmloutdata/pseries-hostdevs-2.xml +++ b/tests/qemuxml2xmloutdata/pseries-hostdevs-2.xml @@ -30,6 +30,7 @@ <model name='spapr-pci-host-bridge'/> <target index='2'/> </controller> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/pseries-hostdevs-3.xml b/tests/qemuxml2xmloutdata/pseries-hostdevs-3.xml index f91959b805..a1f00ddc7f 100644 --- a/tests/qemuxml2xmloutdata/pseries-hostdevs-3.xml +++ b/tests/qemuxml2xmloutdata/pseries-hostdevs-3.xml @@ -27,6 +27,7 @@ <model name='spapr-pci-host-bridge'/> <target index='2'/> </controller> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> diff --git a/tests/qemuxml2xmloutdata/pseries-many-buses-1.xml b/tests/qemuxml2xmloutdata/pseries-many-buses-1.xml index eb7bb80541..45521c907a 100644 --- a/tests/qemuxml2xmloutdata/pseries-many-buses-1.xml +++ b/tests/qemuxml2xmloutdata/pseries-many-buses-1.xml @@ -26,6 +26,7 @@ <model name='spapr-pci-host-bridge'/> <target index='1'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-many-buses-2.xml b/tests/qemuxml2xmloutdata/pseries-many-buses-2.xml index 14f3e36244..0b1f670b3f 100644 --- a/tests/qemuxml2xmloutdata/pseries-many-buses-2.xml +++ b/tests/qemuxml2xmloutdata/pseries-many-buses-2.xml @@ -27,6 +27,7 @@ <model name='spapr-pci-host-bridge'/> <target index='2'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-many-devices.xml b/tests/qemuxml2xmloutdata/pseries-many-devices.xml index ff7a08fec1..3c23523c60 100644 --- a/tests/qemuxml2xmloutdata/pseries-many-devices.xml +++ b/tests/qemuxml2xmloutdata/pseries-many-devices.xml @@ -119,6 +119,7 @@ <model name='spapr-pci-host-bridge'/> <target index='1'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-nvram.xml b/tests/qemuxml2xmloutdata/pseries-nvram.xml index fd77c7aa89..278222ddea 100644 --- a/tests/qemuxml2xmloutdata/pseries-nvram.xml +++ b/tests/qemuxml2xmloutdata/pseries-nvram.xml @@ -21,6 +21,7 @@ <model name='spapr-pci-host-bridge'/> <target index='0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <nvram> <address type='spapr-vio' reg='0x00004000'/> diff --git a/tests/qemuxml2xmloutdata/pseries-panic-missing.xml b/tests/qemuxml2xmloutdata/pseries-panic-missing.xml index 484fe4cfa6..cebb977d5a 100644 --- a/tests/qemuxml2xmloutdata/pseries-panic-missing.xml +++ b/tests/qemuxml2xmloutdata/pseries-panic-missing.xml @@ -31,6 +31,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-panic-no-address.xml b/tests/qemuxml2xmloutdata/pseries-panic-no-address.xml index 484fe4cfa6..cebb977d5a 100644 --- a/tests/qemuxml2xmloutdata/pseries-panic-no-address.xml +++ b/tests/qemuxml2xmloutdata/pseries-panic-no-address.xml @@ -31,6 +31,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-phb-default-missing.xml b/tests/qemuxml2xmloutdata/pseries-phb-default-missing.xml index 62708b4a46..9966c89167 100644 --- a/tests/qemuxml2xmloutdata/pseries-phb-default-missing.xml +++ b/tests/qemuxml2xmloutdata/pseries-phb-default-missing.xml @@ -27,6 +27,7 @@ <model name='spapr-pci-host-bridge'/> <target index='0'/> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-phb-numa-node.xml b/tests/qemuxml2xmloutdata/pseries-phb-numa-node.xml index b05ac334a6..56d8ee9f86 100644 --- a/tests/qemuxml2xmloutdata/pseries-phb-numa-node.xml +++ b/tests/qemuxml2xmloutdata/pseries-phb-numa-node.xml @@ -46,6 +46,7 @@ <node>0</node> </target> </controller> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-phb-simple.xml b/tests/qemuxml2xmloutdata/pseries-phb-simple.xml index 2c1e64e88d..9fa36ca3df 100644 --- a/tests/qemuxml2xmloutdata/pseries-phb-simple.xml +++ b/tests/qemuxml2xmloutdata/pseries-phb-simple.xml @@ -27,6 +27,7 @@ <target index='2'/> </controller> <controller type='usb' index='0' model='none'/> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-serial-native.xml b/tests/qemuxml2xmloutdata/pseries-serial-native.xml index fae7c54d5b..299ae61081 100644 --- a/tests/qemuxml2xmloutdata/pseries-serial-native.xml +++ b/tests/qemuxml2xmloutdata/pseries-serial-native.xml @@ -29,6 +29,7 @@ <target type='serial' port='0'/> <address type='spapr-vio' reg='0x30000000'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-serial-pci.xml b/tests/qemuxml2xmloutdata/pseries-serial-pci.xml index cba7ea96bb..e7517008ca 100644 --- a/tests/qemuxml2xmloutdata/pseries-serial-pci.xml +++ b/tests/qemuxml2xmloutdata/pseries-serial-pci.xml @@ -25,6 +25,7 @@ </target> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> </serial> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pseries-serial-usb.xml b/tests/qemuxml2xmloutdata/pseries-serial-usb.xml index 34f651308d..4d5989ef4f 100644 --- a/tests/qemuxml2xmloutdata/pseries-serial-usb.xml +++ b/tests/qemuxml2xmloutdata/pseries-serial-usb.xml @@ -26,6 +26,7 @@ <model name='usb-serial'/> </target> </serial> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='pseries'/> </devices> diff --git a/tests/qemuxml2xmloutdata/pv-spinlock-disabled.xml b/tests/qemuxml2xmloutdata/pv-spinlock-disabled.xml index b8f23b070b..a95825e57c 100644 --- a/tests/qemuxml2xmloutdata/pv-spinlock-disabled.xml +++ b/tests/qemuxml2xmloutdata/pv-spinlock-disabled.xml @@ -25,6 +25,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/pv-spinlock-enabled.xml b/tests/qemuxml2xmloutdata/pv-spinlock-enabled.xml index 5d30fa0f10..02e4bf2ccb 100644 --- a/tests/qemuxml2xmloutdata/pv-spinlock-enabled.xml +++ b/tests/qemuxml2xmloutdata/pv-spinlock-enabled.xml @@ -25,6 +25,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/q35-default-devices-only.xml b/tests/qemuxml2xmloutdata/q35-default-devices-only.xml index ff9252de05..cf8646e833 100644 --- a/tests/qemuxml2xmloutdata/q35-default-devices-only.xml +++ b/tests/qemuxml2xmloutdata/q35-default-devices-only.xml @@ -38,6 +38,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/q35-multifunction.xml b/tests/qemuxml2xmloutdata/q35-multifunction.xml index 4f1e8b44ac..b98405b257 100644 --- a/tests/qemuxml2xmloutdata/q35-multifunction.xml +++ b/tests/qemuxml2xmloutdata/q35-multifunction.xml @@ -113,6 +113,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/q35-pci-force-address.xml b/tests/qemuxml2xmloutdata/q35-pci-force-address.xml index c5102105ca..425c7dfedd 100644 --- a/tests/qemuxml2xmloutdata/q35-pci-force-address.xml +++ b/tests/qemuxml2xmloutdata/q35-pci-force-address.xml @@ -43,6 +43,7 @@ <sound model='ich6'> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </sound> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/q35-pcie-autoadd.xml b/tests/qemuxml2xmloutdata/q35-pcie-autoadd.xml index 9ce1c317b2..f9131d3e4f 100644 --- a/tests/qemuxml2xmloutdata/q35-pcie-autoadd.xml +++ b/tests/qemuxml2xmloutdata/q35-pcie-autoadd.xml @@ -133,6 +133,7 @@ </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/q35-pcie.xml b/tests/qemuxml2xmloutdata/q35-pcie.xml index 75ca42a20e..76dbfd5c8c 100644 --- a/tests/qemuxml2xmloutdata/q35-pcie.xml +++ b/tests/qemuxml2xmloutdata/q35-pcie.xml @@ -137,6 +137,7 @@ </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/q35-usb2-multi.xml b/tests/qemuxml2xmloutdata/q35-usb2-multi.xml index 2ad1ddec21..aadba41023 100644 --- a/tests/qemuxml2xmloutdata/q35-usb2-multi.xml +++ b/tests/qemuxml2xmloutdata/q35-usb2-multi.xml @@ -80,6 +80,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/q35-usb2-reorder.xml b/tests/qemuxml2xmloutdata/q35-usb2-reorder.xml index 912ae8a890..92f07cade5 100644 --- a/tests/qemuxml2xmloutdata/q35-usb2-reorder.xml +++ b/tests/qemuxml2xmloutdata/q35-usb2-reorder.xml @@ -80,6 +80,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/q35-usb2.xml b/tests/qemuxml2xmloutdata/q35-usb2.xml index 3d5407609e..f5e6442008 100644 --- a/tests/qemuxml2xmloutdata/q35-usb2.xml +++ b/tests/qemuxml2xmloutdata/q35-usb2.xml @@ -50,6 +50,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/q35-virt-manager-basic.xml b/tests/qemuxml2xmloutdata/q35-virt-manager-basic.xml index 2437fdec44..b63da06027 100644 --- a/tests/qemuxml2xmloutdata/q35-virt-manager-basic.xml +++ b/tests/qemuxml2xmloutdata/q35-virt-manager-basic.xml @@ -106,6 +106,7 @@ <sound model='ich9'> <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/> </sound> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/q35-virtio-pci.xml b/tests/qemuxml2xmloutdata/q35-virtio-pci.xml index f534a54c0f..d0f7bdb486 100644 --- a/tests/qemuxml2xmloutdata/q35-virtio-pci.xml +++ b/tests/qemuxml2xmloutdata/q35-virtio-pci.xml @@ -137,6 +137,7 @@ </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/q35.xml b/tests/qemuxml2xmloutdata/q35.xml index fa230ce9b5..3a37173da2 100644 --- a/tests/qemuxml2xmloutdata/q35.xml +++ b/tests/qemuxml2xmloutdata/q35.xml @@ -41,6 +41,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/qemu-ns-no-env.xml b/tests/qemuxml2xmloutdata/qemu-ns-no-env.xml index f4e95d92c0..54a41c5968 100644 --- a/tests/qemuxml2xmloutdata/qemu-ns-no-env.xml +++ b/tests/qemuxml2xmloutdata/qemu-ns-no-env.xml @@ -29,6 +29,7 @@ <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> <qemu:commandline> diff --git a/tests/qemuxml2xmloutdata/reboot-timeout-disabled.xml b/tests/qemuxml2xmloutdata/reboot-timeout-disabled.xml index 5a5e2ffd9d..88f0268b8d 100644 --- a/tests/qemuxml2xmloutdata/reboot-timeout-disabled.xml +++ b/tests/qemuxml2xmloutdata/reboot-timeout-disabled.xml @@ -21,6 +21,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/reboot-timeout-enabled.xml b/tests/qemuxml2xmloutdata/reboot-timeout-enabled.xml index a2383d57bf..73505cbffd 100644 --- a/tests/qemuxml2xmloutdata/reboot-timeout-enabled.xml +++ b/tests/qemuxml2xmloutdata/reboot-timeout-enabled.xml @@ -21,6 +21,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/restore-v2.xml b/tests/qemuxml2xmloutdata/restore-v2.xml index 757791af10..7f512929aa 100644 --- a/tests/qemuxml2xmloutdata/restore-v2.xml +++ b/tests/qemuxml2xmloutdata/restore-v2.xml @@ -29,6 +29,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/riscv64-virt-graphics.riscv64-latest.xml b/tests/qemuxml2xmloutdata/riscv64-virt-graphics.riscv64-latest.xml index c51ddd8f83..4d5afe25bb 100644 --- a/tests/qemuxml2xmloutdata/riscv64-virt-graphics.riscv64-latest.xml +++ b/tests/qemuxml2xmloutdata/riscv64-virt-graphics.riscv64-latest.xml @@ -94,6 +94,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/riscv64-virt-headless.riscv64-latest.xml b/tests/qemuxml2xmloutdata/riscv64-virt-headless.riscv64-latest.xml index 5e09ea3c6f..3808cb775b 100644 --- a/tests/qemuxml2xmloutdata/riscv64-virt-headless.riscv64-latest.xml +++ b/tests/qemuxml2xmloutdata/riscv64-virt-headless.riscv64-latest.xml @@ -84,6 +84,7 @@ <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/riscv64-virt-pci.xml b/tests/qemuxml2xmloutdata/riscv64-virt-pci.xml index 163dc0a530..7eda6081db 100644 --- a/tests/qemuxml2xmloutdata/riscv64-virt-pci.xml +++ b/tests/qemuxml2xmloutdata/riscv64-virt-pci.xml @@ -23,6 +23,7 @@ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> </disk> <controller type='pci' index='0' model='pcie-root'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/riscv64-virt.xml b/tests/qemuxml2xmloutdata/riscv64-virt.xml index ec41f211c2..8a5c5dd985 100644 --- a/tests/qemuxml2xmloutdata/riscv64-virt.xml +++ b/tests/qemuxml2xmloutdata/riscv64-virt.xml @@ -30,6 +30,7 @@ <console type='pty'> <target type='serial' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='virtio-mmio'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.xml b/tests/qemuxml2xmloutdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.xml index 8799584c11..ae39e6277d 100644 --- a/tests/qemuxml2xmloutdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.xml +++ b/tests/qemuxml2xmloutdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.xml @@ -16,6 +16,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/s390-default-cpu-kvm-ccw-virtio-4.2.s390x-latest.xml b/tests/qemuxml2xmloutdata/s390-default-cpu-kvm-ccw-virtio-4.2.s390x-latest.xml index 1cc2edd893..4906206ada 100644 --- a/tests/qemuxml2xmloutdata/s390-default-cpu-kvm-ccw-virtio-4.2.s390x-latest.xml +++ b/tests/qemuxml2xmloutdata/s390-default-cpu-kvm-ccw-virtio-4.2.s390x-latest.xml @@ -16,6 +16,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/s390-default-cpu-tcg-ccw-virtio-2.7.s390x-latest.xml b/tests/qemuxml2xmloutdata/s390-default-cpu-tcg-ccw-virtio-2.7.s390x-latest.xml index 5048b09e15..f4f9e724a9 100644 --- a/tests/qemuxml2xmloutdata/s390-default-cpu-tcg-ccw-virtio-2.7.s390x-latest.xml +++ b/tests/qemuxml2xmloutdata/s390-default-cpu-tcg-ccw-virtio-2.7.s390x-latest.xml @@ -18,6 +18,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/s390-default-cpu-tcg-ccw-virtio-4.2.s390x-latest.xml b/tests/qemuxml2xmloutdata/s390-default-cpu-tcg-ccw-virtio-4.2.s390x-latest.xml index 8ccd460d01..65dd30a3fb 100644 --- a/tests/qemuxml2xmloutdata/s390-default-cpu-tcg-ccw-virtio-4.2.s390x-latest.xml +++ b/tests/qemuxml2xmloutdata/s390-default-cpu-tcg-ccw-virtio-4.2.s390x-latest.xml @@ -18,6 +18,7 @@ <devices> <emulator>/usr/bin/qemu-system-s390x</emulator> <controller type='pci' index='0' model='pci-root'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/s390-defaultconsole.xml b/tests/qemuxml2xmloutdata/s390-defaultconsole.xml index 0f278f2c9d..d34299116c 100644 --- a/tests/qemuxml2xmloutdata/s390-defaultconsole.xml +++ b/tests/qemuxml2xmloutdata/s390-defaultconsole.xml @@ -22,6 +22,7 @@ <console type='pty'> <target type='serial' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuxml2xmloutdata/s390-panic-missing.xml b/tests/qemuxml2xmloutdata/s390-panic-missing.xml index 886415725f..1929826541 100644 --- a/tests/qemuxml2xmloutdata/s390-panic-missing.xml +++ b/tests/qemuxml2xmloutdata/s390-panic-missing.xml @@ -21,6 +21,7 @@ <target type='virtio' port='0'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0002'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/s390-panic-no-address.xml b/tests/qemuxml2xmloutdata/s390-panic-no-address.xml index 3ae36ba675..1610eacdef 100644 --- a/tests/qemuxml2xmloutdata/s390-panic-no-address.xml +++ b/tests/qemuxml2xmloutdata/s390-panic-no-address.xml @@ -20,6 +20,7 @@ <console type='pty'> <target type='virtio' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/s390-panic.xml b/tests/qemuxml2xmloutdata/s390-panic.xml index b08c40780e..1c31685fb5 100644 --- a/tests/qemuxml2xmloutdata/s390-panic.xml +++ b/tests/qemuxml2xmloutdata/s390-panic.xml @@ -20,6 +20,7 @@ <console type='pty'> <target type='virtio' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/s390-serial-2.xml b/tests/qemuxml2xmloutdata/s390-serial-2.xml index bb9ca30f1d..2ca82ecf03 100644 --- a/tests/qemuxml2xmloutdata/s390-serial-2.xml +++ b/tests/qemuxml2xmloutdata/s390-serial-2.xml @@ -27,6 +27,7 @@ <console type='pty'> <target type='serial' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuxml2xmloutdata/s390-serial-console.xml b/tests/qemuxml2xmloutdata/s390-serial-console.xml index 9c9b4dd27a..f29565f5c2 100644 --- a/tests/qemuxml2xmloutdata/s390-serial-console.xml +++ b/tests/qemuxml2xmloutdata/s390-serial-console.xml @@ -22,6 +22,7 @@ <console type='pty'> <target type='serial' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuxml2xmloutdata/s390-serial.xml b/tests/qemuxml2xmloutdata/s390-serial.xml index 9c9b4dd27a..f29565f5c2 100644 --- a/tests/qemuxml2xmloutdata/s390-serial.xml +++ b/tests/qemuxml2xmloutdata/s390-serial.xml @@ -22,6 +22,7 @@ <console type='pty'> <target type='serial' port='0'/> </console> + <audio id='1' type='none'/> <memballoon model='none'/> <panic model='s390'/> </devices> diff --git a/tests/qemuxml2xmloutdata/s390x-ccw-graphics.s390x-latest.xml b/tests/qemuxml2xmloutdata/s390x-ccw-graphics.s390x-latest.xml index 74118349af..c4c4c4cfdb 100644 --- a/tests/qemuxml2xmloutdata/s390x-ccw-graphics.s390x-latest.xml +++ b/tests/qemuxml2xmloutdata/s390x-ccw-graphics.s390x-latest.xml @@ -53,6 +53,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0002'/> diff --git a/tests/qemuxml2xmloutdata/s390x-ccw-headless.s390x-latest.xml b/tests/qemuxml2xmloutdata/s390x-ccw-headless.s390x-latest.xml index 6ab1b46c95..48d9cb86f2 100644 --- a/tests/qemuxml2xmloutdata/s390x-ccw-headless.s390x-latest.xml +++ b/tests/qemuxml2xmloutdata/s390x-ccw-headless.s390x-latest.xml @@ -44,6 +44,7 @@ <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0003'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-dac-none.xml b/tests/qemuxml2xmloutdata/seclabel-dac-none.xml index a82cdf167f..1e19106341 100644 --- a/tests/qemuxml2xmloutdata/seclabel-dac-none.xml +++ b/tests/qemuxml2xmloutdata/seclabel-dac-none.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-device-multiple.xml b/tests/qemuxml2xmloutdata/seclabel-device-multiple.xml index eaec802054..81413fe58f 100644 --- a/tests/qemuxml2xmloutdata/seclabel-device-multiple.xml +++ b/tests/qemuxml2xmloutdata/seclabel-device-multiple.xml @@ -34,6 +34,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-dynamic-baselabel-inactive.xml b/tests/qemuxml2xmloutdata/seclabel-dynamic-baselabel-inactive.xml index db8d3f3bf9..23e59182f6 100644 --- a/tests/qemuxml2xmloutdata/seclabel-dynamic-baselabel-inactive.xml +++ b/tests/qemuxml2xmloutdata/seclabel-dynamic-baselabel-inactive.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-dynamic-labelskip-inactive.xml b/tests/qemuxml2xmloutdata/seclabel-dynamic-labelskip-inactive.xml index db8d3f3bf9..23e59182f6 100644 --- a/tests/qemuxml2xmloutdata/seclabel-dynamic-labelskip-inactive.xml +++ b/tests/qemuxml2xmloutdata/seclabel-dynamic-labelskip-inactive.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-dynamic-none-relabel-inactive.xml b/tests/qemuxml2xmloutdata/seclabel-dynamic-none-relabel-inactive.xml index bfa66b8deb..e232a41500 100644 --- a/tests/qemuxml2xmloutdata/seclabel-dynamic-none-relabel-inactive.xml +++ b/tests/qemuxml2xmloutdata/seclabel-dynamic-none-relabel-inactive.xml @@ -41,6 +41,7 @@ <graphics type='spice' autoport='yes' listen='0.0.0.0'> <listen type='address' address='0.0.0.0'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='cirrus' vram='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/seclabel-dynamic-none.xml b/tests/qemuxml2xmloutdata/seclabel-dynamic-none.xml index ce7b409947..b1e477ebe5 100644 --- a/tests/qemuxml2xmloutdata/seclabel-dynamic-none.xml +++ b/tests/qemuxml2xmloutdata/seclabel-dynamic-none.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-dynamic-override-inactive.xml b/tests/qemuxml2xmloutdata/seclabel-dynamic-override-inactive.xml index aadcf5a516..b074e4f6ca 100644 --- a/tests/qemuxml2xmloutdata/seclabel-dynamic-override-inactive.xml +++ b/tests/qemuxml2xmloutdata/seclabel-dynamic-override-inactive.xml @@ -41,6 +41,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-dynamic-relabel-inactive.xml b/tests/qemuxml2xmloutdata/seclabel-dynamic-relabel-inactive.xml index ce7b409947..b1e477ebe5 100644 --- a/tests/qemuxml2xmloutdata/seclabel-dynamic-relabel-inactive.xml +++ b/tests/qemuxml2xmloutdata/seclabel-dynamic-relabel-inactive.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-none.xml b/tests/qemuxml2xmloutdata/seclabel-none.xml index ce7b409947..b1e477ebe5 100644 --- a/tests/qemuxml2xmloutdata/seclabel-none.xml +++ b/tests/qemuxml2xmloutdata/seclabel-none.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-static-labelskip-active.xml b/tests/qemuxml2xmloutdata/seclabel-static-labelskip-active.xml index 48ffcded63..853ec24ba9 100644 --- a/tests/qemuxml2xmloutdata/seclabel-static-labelskip-active.xml +++ b/tests/qemuxml2xmloutdata/seclabel-static-labelskip-active.xml @@ -32,6 +32,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-static-labelskip-inactive.xml b/tests/qemuxml2xmloutdata/seclabel-static-labelskip-inactive.xml index d8d93fe016..fb17c41c1d 100644 --- a/tests/qemuxml2xmloutdata/seclabel-static-labelskip-inactive.xml +++ b/tests/qemuxml2xmloutdata/seclabel-static-labelskip-inactive.xml @@ -30,6 +30,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/seclabel-static.xml b/tests/qemuxml2xmloutdata/seclabel-static.xml index b633a9f829..a9af42aa3b 100644 --- a/tests/qemuxml2xmloutdata/seclabel-static.xml +++ b/tests/qemuxml2xmloutdata/seclabel-static.xml @@ -29,6 +29,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/serial-spiceport-nospice.xml b/tests/qemuxml2xmloutdata/serial-spiceport-nospice.xml index 5ab1ecae7f..76a40b7fa7 100644 --- a/tests/qemuxml2xmloutdata/serial-spiceport-nospice.xml +++ b/tests/qemuxml2xmloutdata/serial-spiceport-nospice.xml @@ -39,6 +39,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/serial-spiceport.xml b/tests/qemuxml2xmloutdata/serial-spiceport.xml index 5fca7b19c5..ec76a3bff7 100644 --- a/tests/qemuxml2xmloutdata/serial-spiceport.xml +++ b/tests/qemuxml2xmloutdata/serial-spiceport.xml @@ -43,6 +43,7 @@ <graphics type='spice' port='5903' tlsPort='5904' autoport='no' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/serial-target-port-auto.xml b/tests/qemuxml2xmloutdata/serial-target-port-auto.xml index 9aae2ac044..5cd283838a 100644 --- a/tests/qemuxml2xmloutdata/serial-target-port-auto.xml +++ b/tests/qemuxml2xmloutdata/serial-target-port-auto.xml @@ -47,6 +47,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/serial-tcp-tlsx509-chardev.xml b/tests/qemuxml2xmloutdata/serial-tcp-tlsx509-chardev.xml index 4823338365..97e793382f 100644 --- a/tests/qemuxml2xmloutdata/serial-tcp-tlsx509-chardev.xml +++ b/tests/qemuxml2xmloutdata/serial-tcp-tlsx509-chardev.xml @@ -48,6 +48,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/shmem-plain-doorbell.xml b/tests/qemuxml2xmloutdata/shmem-plain-doorbell.xml index 64c0a7d753..f244533f4d 100644 --- a/tests/qemuxml2xmloutdata/shmem-plain-doorbell.xml +++ b/tests/qemuxml2xmloutdata/shmem-plain-doorbell.xml @@ -20,6 +20,7 @@ <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'/> <shmem name='shmem0'> <model type='ivshmem-plain'/> diff --git a/tests/qemuxml2xmloutdata/shmem.xml b/tests/qemuxml2xmloutdata/shmem.xml index 3145b3fc21..d7b02ffa4d 100644 --- a/tests/qemuxml2xmloutdata/shmem.xml +++ b/tests/qemuxml2xmloutdata/shmem.xml @@ -20,6 +20,7 @@ <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'/> <shmem name='shmem0'> <model type='ivshmem'/> diff --git a/tests/qemuxml2xmloutdata/smartcard-controller.xml b/tests/qemuxml2xmloutdata/smartcard-controller.xml index b996c5b3db..2094f3ea7a 100644 --- a/tests/qemuxml2xmloutdata/smartcard-controller.xml +++ b/tests/qemuxml2xmloutdata/smartcard-controller.xml @@ -24,6 +24,7 @@ </smartcard> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/smartcard-host-certificates-database.xml b/tests/qemuxml2xmloutdata/smartcard-host-certificates-database.xml index 6d22110698..c798a3e6a1 100644 --- a/tests/qemuxml2xmloutdata/smartcard-host-certificates-database.xml +++ b/tests/qemuxml2xmloutdata/smartcard-host-certificates-database.xml @@ -28,6 +28,7 @@ </smartcard> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/smartcard-host-certificates.xml b/tests/qemuxml2xmloutdata/smartcard-host-certificates.xml index d0e545da61..3e7bc87d5d 100644 --- a/tests/qemuxml2xmloutdata/smartcard-host-certificates.xml +++ b/tests/qemuxml2xmloutdata/smartcard-host-certificates.xml @@ -27,6 +27,7 @@ </smartcard> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/smartcard-host.xml b/tests/qemuxml2xmloutdata/smartcard-host.xml index acd5675ff4..088aa4c07b 100644 --- a/tests/qemuxml2xmloutdata/smartcard-host.xml +++ b/tests/qemuxml2xmloutdata/smartcard-host.xml @@ -24,6 +24,7 @@ </smartcard> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/smartcard-passthrough-spicevmc.xml b/tests/qemuxml2xmloutdata/smartcard-passthrough-spicevmc.xml index 0de8c9d270..73cf4733ee 100644 --- a/tests/qemuxml2xmloutdata/smartcard-passthrough-spicevmc.xml +++ b/tests/qemuxml2xmloutdata/smartcard-passthrough-spicevmc.xml @@ -24,6 +24,7 @@ </smartcard> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/smartcard-passthrough-tcp.xml b/tests/qemuxml2xmloutdata/smartcard-passthrough-tcp.xml index c02f1e2526..d6f07fafdb 100644 --- a/tests/qemuxml2xmloutdata/smartcard-passthrough-tcp.xml +++ b/tests/qemuxml2xmloutdata/smartcard-passthrough-tcp.xml @@ -26,6 +26,7 @@ </smartcard> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/smbios-multiple-type2.xml b/tests/qemuxml2xmloutdata/smbios-multiple-type2.xml index 62dcf0d176..2ddc55eced 100644 --- a/tests/qemuxml2xmloutdata/smbios-multiple-type2.xml +++ b/tests/qemuxml2xmloutdata/smbios-multiple-type2.xml @@ -60,6 +60,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/smbios.xml b/tests/qemuxml2xmloutdata/smbios.xml index 5385556b39..9e50b5a70e 100644 --- a/tests/qemuxml2xmloutdata/smbios.xml +++ b/tests/qemuxml2xmloutdata/smbios.xml @@ -65,6 +65,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/smp.xml b/tests/qemuxml2xmloutdata/smp.xml index 3e00f578e5..951a30bfd0 100644 --- a/tests/qemuxml2xmloutdata/smp.xml +++ b/tests/qemuxml2xmloutdata/smp.xml @@ -32,6 +32,7 @@ <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> diff --git a/tests/qemuxml2xmloutdata/sound-device.xml b/tests/qemuxml2xmloutdata/sound-device.xml index 62d658b9cd..598c7711ba 100644 --- a/tests/qemuxml2xmloutdata/sound-device.xml +++ b/tests/qemuxml2xmloutdata/sound-device.xml @@ -56,6 +56,7 @@ <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </sound> <sound model='usb'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/sound.xml b/tests/qemuxml2xmloutdata/sound.xml index d1d208322b..3f20a0fd24 100644 --- a/tests/qemuxml2xmloutdata/sound.xml +++ b/tests/qemuxml2xmloutdata/sound.xml @@ -37,6 +37,7 @@ <sound model='ac97'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/tap-vhost-incorrect.xml b/tests/qemuxml2xmloutdata/tap-vhost-incorrect.xml index b312ea4d15..76289dfb74 100644 --- a/tests/qemuxml2xmloutdata/tap-vhost-incorrect.xml +++ b/tests/qemuxml2xmloutdata/tap-vhost-incorrect.xml @@ -51,6 +51,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/tap-vhost.xml b/tests/qemuxml2xmloutdata/tap-vhost.xml index 32fe224cf9..6746736443 100644 --- a/tests/qemuxml2xmloutdata/tap-vhost.xml +++ b/tests/qemuxml2xmloutdata/tap-vhost.xml @@ -57,6 +57,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/tpm-emulator-tpm2-enc.x86_64-latest.xml b/tests/qemuxml2xmloutdata/tpm-emulator-tpm2-enc.x86_64-latest.xml index 8a842e4d22..9c2279b28b 100644 --- a/tests/qemuxml2xmloutdata/tpm-emulator-tpm2-enc.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/tpm-emulator-tpm2-enc.x86_64-latest.xml @@ -32,6 +32,7 @@ <encryption secret='32ee7e76-2178-47a1-ab7b-269e6e348015'/> </backend> </tpm> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/tpm-emulator-tpm2-pstate.x86_64-latest.xml b/tests/qemuxml2xmloutdata/tpm-emulator-tpm2-pstate.x86_64-latest.xml index 08bc8d690c..42e93cfcbe 100644 --- a/tests/qemuxml2xmloutdata/tpm-emulator-tpm2-pstate.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/tpm-emulator-tpm2-pstate.x86_64-latest.xml @@ -30,6 +30,7 @@ <tpm model='tpm-tis'> <backend type='emulator' version='2.0' persistent_state='yes'/> </tpm> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/tpm-emulator-tpm2.x86_64-latest.xml b/tests/qemuxml2xmloutdata/tpm-emulator-tpm2.x86_64-latest.xml index 9143a1dde1..fe4e1aba19 100644 --- a/tests/qemuxml2xmloutdata/tpm-emulator-tpm2.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/tpm-emulator-tpm2.x86_64-latest.xml @@ -30,6 +30,7 @@ <tpm model='tpm-tis'> <backend type='emulator' version='2.0'/> </tpm> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/tpm-emulator.x86_64-latest.xml b/tests/qemuxml2xmloutdata/tpm-emulator.x86_64-latest.xml index ff4006b2e3..b98a3693b7 100644 --- a/tests/qemuxml2xmloutdata/tpm-emulator.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/tpm-emulator.x86_64-latest.xml @@ -30,6 +30,7 @@ <tpm model='tpm-tis'> <backend type='emulator' version='1.2'/> </tpm> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/tpm-passthrough-crb.x86_64-latest.xml b/tests/qemuxml2xmloutdata/tpm-passthrough-crb.x86_64-latest.xml index b8be67acfd..47c622bd84 100644 --- a/tests/qemuxml2xmloutdata/tpm-passthrough-crb.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/tpm-passthrough-crb.x86_64-latest.xml @@ -32,6 +32,7 @@ <device path='/dev/tpm0'/> </backend> </tpm> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/tpm-passthrough.x86_64-latest.xml b/tests/qemuxml2xmloutdata/tpm-passthrough.x86_64-latest.xml index 030ab3e605..1555de4e86 100644 --- a/tests/qemuxml2xmloutdata/tpm-passthrough.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/tpm-passthrough.x86_64-latest.xml @@ -32,6 +32,7 @@ <device path='/dev/tpm0'/> </backend> </tpm> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/tseg-explicit-size.xml b/tests/qemuxml2xmloutdata/tseg-explicit-size.xml index e1a6e15b61..6c6abcd33b 100644 --- a/tests/qemuxml2xmloutdata/tseg-explicit-size.xml +++ b/tests/qemuxml2xmloutdata/tseg-explicit-size.xml @@ -39,6 +39,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/usb-controller-default-q35.xml b/tests/qemuxml2xmloutdata/usb-controller-default-q35.xml index 787bb95554..2122d7ecd9 100644 --- a/tests/qemuxml2xmloutdata/usb-controller-default-q35.xml +++ b/tests/qemuxml2xmloutdata/usb-controller-default-q35.xml @@ -23,6 +23,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/usb-controller-explicit-q35.xml b/tests/qemuxml2xmloutdata/usb-controller-explicit-q35.xml index 394a1f8317..328bcaee9c 100644 --- a/tests/qemuxml2xmloutdata/usb-controller-explicit-q35.xml +++ b/tests/qemuxml2xmloutdata/usb-controller-explicit-q35.xml @@ -23,6 +23,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2xmloutdata/usb-controller.xml b/tests/qemuxml2xmloutdata/usb-controller.xml index 2041803aad..192d885210 100644 --- a/tests/qemuxml2xmloutdata/usb-controller.xml +++ b/tests/qemuxml2xmloutdata/usb-controller.xml @@ -20,6 +20,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/usb-ich9-ehci-addr.xml b/tests/qemuxml2xmloutdata/usb-ich9-ehci-addr.xml index da6705fe54..6ce966f1d4 100644 --- a/tests/qemuxml2xmloutdata/usb-ich9-ehci-addr.xml +++ b/tests/qemuxml2xmloutdata/usb-ich9-ehci-addr.xml @@ -62,6 +62,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/usb-none.xml b/tests/qemuxml2xmloutdata/usb-none.xml index 4ccaf8d1a0..c3a985cb46 100644 --- a/tests/qemuxml2xmloutdata/usb-none.xml +++ b/tests/qemuxml2xmloutdata/usb-none.xml @@ -18,6 +18,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/usb-piix3-controller.xml b/tests/qemuxml2xmloutdata/usb-piix3-controller.xml index 903cf80e70..8ae380770f 100644 --- a/tests/qemuxml2xmloutdata/usb-piix3-controller.xml +++ b/tests/qemuxml2xmloutdata/usb-piix3-controller.xml @@ -20,6 +20,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/usb-port-missing.xml b/tests/qemuxml2xmloutdata/usb-port-missing.xml index 74f88e6ac1..1621779c03 100644 --- a/tests/qemuxml2xmloutdata/usb-port-missing.xml +++ b/tests/qemuxml2xmloutdata/usb-port-missing.xml @@ -23,6 +23,7 @@ </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hub type='usb'> <address type='usb' bus='0'/> </hub> diff --git a/tests/qemuxml2xmloutdata/usb-redir-filter-version.xml b/tests/qemuxml2xmloutdata/usb-redir-filter-version.xml index fb2bfd7ad7..e0a424d3be 100644 --- a/tests/qemuxml2xmloutdata/usb-redir-filter-version.xml +++ b/tests/qemuxml2xmloutdata/usb-redir-filter-version.xml @@ -20,6 +20,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <redirdev bus='usb' type='spicevmc'> <address type='usb' bus='0' port='1'/> </redirdev> diff --git a/tests/qemuxml2xmloutdata/usb-redir-filter.xml b/tests/qemuxml2xmloutdata/usb-redir-filter.xml index 56cfbac2bc..37a192ded0 100644 --- a/tests/qemuxml2xmloutdata/usb-redir-filter.xml +++ b/tests/qemuxml2xmloutdata/usb-redir-filter.xml @@ -32,6 +32,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <redirdev bus='usb' type='spicevmc'> <address type='usb' bus='0' port='4'/> </redirdev> diff --git a/tests/qemuxml2xmloutdata/usb-redir.xml b/tests/qemuxml2xmloutdata/usb-redir.xml index 45c44721f4..e40969cb58 100644 --- a/tests/qemuxml2xmloutdata/usb-redir.xml +++ b/tests/qemuxml2xmloutdata/usb-redir.xml @@ -32,6 +32,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <redirdev bus='usb' type='tcp'> <source mode='connect' host='localhost' service='4000'/> <protocol type='raw'/> diff --git a/tests/qemuxml2xmloutdata/vhost-vsock-auto.xml b/tests/qemuxml2xmloutdata/vhost-vsock-auto.xml index ef50065063..bd0602b7fa 100644 --- a/tests/qemuxml2xmloutdata/vhost-vsock-auto.xml +++ b/tests/qemuxml2xmloutdata/vhost-vsock-auto.xml @@ -27,6 +27,7 @@ <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'/> <vsock model='virtio'> <cid auto='yes'/> diff --git a/tests/qemuxml2xmloutdata/vhost-vsock-ccw-auto.xml b/tests/qemuxml2xmloutdata/vhost-vsock-ccw-auto.xml index 38a0fb3808..e2111dc738 100644 --- a/tests/qemuxml2xmloutdata/vhost-vsock-ccw-auto.xml +++ b/tests/qemuxml2xmloutdata/vhost-vsock-ccw-auto.xml @@ -20,6 +20,7 @@ <target dev='hda' bus='virtio'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0000'/> </disk> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/vhost_queues.xml b/tests/qemuxml2xmloutdata/vhost_queues.xml index 8bfeb5bc89..b940f05dee 100644 --- a/tests/qemuxml2xmloutdata/vhost_queues.xml +++ b/tests/qemuxml2xmloutdata/vhost_queues.xml @@ -55,6 +55,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/video-device-pciaddr-default.xml b/tests/qemuxml2xmloutdata/video-device-pciaddr-default.xml index b278f2a06d..431661e29d 100644 --- a/tests/qemuxml2xmloutdata/video-device-pciaddr-default.xml +++ b/tests/qemuxml2xmloutdata/video-device-pciaddr-default.xml @@ -32,6 +32,7 @@ <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/video-none-device.xml b/tests/qemuxml2xmloutdata/video-none-device.xml index 06d088a94f..841a95a511 100644 --- a/tests/qemuxml2xmloutdata/video-none-device.xml +++ b/tests/qemuxml2xmloutdata/video-none-device.xml @@ -32,6 +32,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='none'/> <alias name='ua-user-video-alias'/> diff --git a/tests/qemuxml2xmloutdata/video-qxl-heads.xml b/tests/qemuxml2xmloutdata/video-qxl-heads.xml index 0dd35c184b..bfe8a9b846 100644 --- a/tests/qemuxml2xmloutdata/video-qxl-heads.xml +++ b/tests/qemuxml2xmloutdata/video-qxl-heads.xml @@ -29,6 +29,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/video-qxl-noheads.xml b/tests/qemuxml2xmloutdata/video-qxl-noheads.xml index 293ffe4743..566773d949 100644 --- a/tests/qemuxml2xmloutdata/video-qxl-noheads.xml +++ b/tests/qemuxml2xmloutdata/video-qxl-noheads.xml @@ -29,6 +29,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='8192' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/video-virtio-gpu-ccw-auto.xml b/tests/qemuxml2xmloutdata/video-virtio-gpu-ccw-auto.xml index b373275a1c..47c70a9301 100644 --- a/tests/qemuxml2xmloutdata/video-virtio-gpu-ccw-auto.xml +++ b/tests/qemuxml2xmloutdata/video-virtio-gpu-ccw-auto.xml @@ -23,6 +23,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/> diff --git a/tests/qemuxml2xmloutdata/video-virtio-gpu-ccw.xml b/tests/qemuxml2xmloutdata/video-virtio-gpu-ccw.xml index d34be843e7..ccc58a4a5d 100644 --- a/tests/qemuxml2xmloutdata/video-virtio-gpu-ccw.xml +++ b/tests/qemuxml2xmloutdata/video-virtio-gpu-ccw.xml @@ -23,6 +23,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0002'/> diff --git a/tests/qemuxml2xmloutdata/video-virtio-gpu-device.xml b/tests/qemuxml2xmloutdata/video-virtio-gpu-device.xml index 17d826ba69..827ed19153 100644 --- a/tests/qemuxml2xmloutdata/video-virtio-gpu-device.xml +++ b/tests/qemuxml2xmloutdata/video-virtio-gpu-device.xml @@ -29,6 +29,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/video-virtio-gpu-secondary.xml b/tests/qemuxml2xmloutdata/video-virtio-gpu-secondary.xml index e546acb293..413296a925 100644 --- a/tests/qemuxml2xmloutdata/video-virtio-gpu-secondary.xml +++ b/tests/qemuxml2xmloutdata/video-virtio-gpu-secondary.xml @@ -20,6 +20,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/video-virtio-gpu-spice-gl.xml b/tests/qemuxml2xmloutdata/video-virtio-gpu-spice-gl.xml index b570c535fd..9d8cb40620 100644 --- a/tests/qemuxml2xmloutdata/video-virtio-gpu-spice-gl.xml +++ b/tests/qemuxml2xmloutdata/video-virtio-gpu-spice-gl.xml @@ -33,6 +33,7 @@ <listen type='none'/> <gl enable='yes' rendernode='/dev/dri/foo'/> </graphics> + <audio id='1' type='spice'/> <video> <model type='virtio' heads='1' primary='yes'> <acceleration accel3d='yes'/> diff --git a/tests/qemuxml2xmloutdata/video-virtio-gpu-virgl.xml b/tests/qemuxml2xmloutdata/video-virtio-gpu-virgl.xml index c63c450385..c4db021fe4 100644 --- a/tests/qemuxml2xmloutdata/video-virtio-gpu-virgl.xml +++ b/tests/qemuxml2xmloutdata/video-virtio-gpu-virgl.xml @@ -29,6 +29,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <video> <model type='virtio' heads='1' primary='yes'> <acceleration accel3d='yes'/> diff --git a/tests/qemuxml2xmloutdata/virtio-9p-createmode.x86_64-latest.xml b/tests/qemuxml2xmloutdata/virtio-9p-createmode.x86_64-latest.xml index 7c374ca3a6..06f4074ea1 100644 --- a/tests/qemuxml2xmloutdata/virtio-9p-createmode.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/virtio-9p-createmode.x86_64-latest.xml @@ -54,6 +54,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/virtio-9p-multidevs.x86_64-latest.xml b/tests/qemuxml2xmloutdata/virtio-9p-multidevs.x86_64-latest.xml index 4ea75ff8e3..7d5b59c5bd 100644 --- a/tests/qemuxml2xmloutdata/virtio-9p-multidevs.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/virtio-9p-multidevs.x86_64-latest.xml @@ -49,6 +49,7 @@ </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/virtio-input-passthrough.xml b/tests/qemuxml2xmloutdata/virtio-input-passthrough.xml index 9778dd3da9..b94b0c8aac 100644 --- a/tests/qemuxml2xmloutdata/virtio-input-passthrough.xml +++ b/tests/qemuxml2xmloutdata/virtio-input-passthrough.xml @@ -24,6 +24,7 @@ </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/virtio-input.xml b/tests/qemuxml2xmloutdata/virtio-input.xml index a08d1f741c..9d8db57981 100644 --- a/tests/qemuxml2xmloutdata/virtio-input.xml +++ b/tests/qemuxml2xmloutdata/virtio-input.xml @@ -29,6 +29,7 @@ </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/virtio-lun.xml b/tests/qemuxml2xmloutdata/virtio-lun.xml index 23052cd519..e1e28c33b9 100644 --- a/tests/qemuxml2xmloutdata/virtio-lun.xml +++ b/tests/qemuxml2xmloutdata/virtio-lun.xml @@ -46,6 +46,7 @@ </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/virtio-non-transitional.x86_64-latest.xml b/tests/qemuxml2xmloutdata/virtio-non-transitional.x86_64-latest.xml index d84ed2223c..f100819fa9 100644 --- a/tests/qemuxml2xmloutdata/virtio-non-transitional.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/virtio-non-transitional.x86_64-latest.xml @@ -105,6 +105,7 @@ </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi_host' managed='no' model='virtio-non-transitional'> <source protocol='vhost' wwpn='naa.5123456789abcde0'/> <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/virtio-rng-builtin.x86_64-latest.xml b/tests/qemuxml2xmloutdata/virtio-rng-builtin.x86_64-latest.xml index 19dd8e85bf..81c0b4d5b5 100644 --- a/tests/qemuxml2xmloutdata/virtio-rng-builtin.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/virtio-rng-builtin.x86_64-latest.xml @@ -23,6 +23,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/virtio-rng-egd.xml b/tests/qemuxml2xmloutdata/virtio-rng-egd.xml index d7302d0ad9..2658bf8ecc 100644 --- a/tests/qemuxml2xmloutdata/virtio-rng-egd.xml +++ b/tests/qemuxml2xmloutdata/virtio-rng-egd.xml @@ -20,6 +20,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/virtio-rng-random.xml b/tests/qemuxml2xmloutdata/virtio-rng-random.xml index 959d79e6ee..4ba8aa522f 100644 --- a/tests/qemuxml2xmloutdata/virtio-rng-random.xml +++ b/tests/qemuxml2xmloutdata/virtio-rng-random.xml @@ -20,6 +20,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/virtio-transitional.x86_64-latest.xml b/tests/qemuxml2xmloutdata/virtio-transitional.x86_64-latest.xml index af3218a027..8928809e91 100644 --- a/tests/qemuxml2xmloutdata/virtio-transitional.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/virtio-transitional.x86_64-latest.xml @@ -64,6 +64,7 @@ </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <hostdev mode='subsystem' type='scsi_host' managed='no' model='virtio-transitional'> <source protocol='vhost' wwpn='naa.5123456789abcde0'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x06' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/vmcoreinfo.xml b/tests/qemuxml2xmloutdata/vmcoreinfo.xml index ec0f9559dd..6be4d36325 100644 --- a/tests/qemuxml2xmloutdata/vmcoreinfo.xml +++ b/tests/qemuxml2xmloutdata/vmcoreinfo.xml @@ -32,6 +32,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/watchdog.xml b/tests/qemuxml2xmloutdata/watchdog.xml index 657ff5397f..2e89a54dea 100644 --- a/tests/qemuxml2xmloutdata/watchdog.xml +++ b/tests/qemuxml2xmloutdata/watchdog.xml @@ -29,6 +29,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <watchdog model='ib700' action='poweroff'/> <memballoon model='none'/> </devices> diff --git a/tests/qemuxml2xmloutdata/x86_64-default-cpu-kvm-pc-4.2.x86_64-latest.xml b/tests/qemuxml2xmloutdata/x86_64-default-cpu-kvm-pc-4.2.x86_64-latest.xml index c7b0f11cf8..3a610ab49f 100644 --- a/tests/qemuxml2xmloutdata/x86_64-default-cpu-kvm-pc-4.2.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/x86_64-default-cpu-kvm-pc-4.2.x86_64-latest.xml @@ -33,6 +33,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/x86_64-default-cpu-kvm-q35-4.2.x86_64-latest.xml b/tests/qemuxml2xmloutdata/x86_64-default-cpu-kvm-q35-4.2.x86_64-latest.xml index be211acd29..61b9077597 100644 --- a/tests/qemuxml2xmloutdata/x86_64-default-cpu-kvm-q35-4.2.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/x86_64-default-cpu-kvm-q35-4.2.x86_64-latest.xml @@ -56,6 +56,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/x86_64-default-cpu-tcg-pc-4.2.x86_64-latest.xml b/tests/qemuxml2xmloutdata/x86_64-default-cpu-tcg-pc-4.2.x86_64-latest.xml index 159270b83a..634b59efa7 100644 --- a/tests/qemuxml2xmloutdata/x86_64-default-cpu-tcg-pc-4.2.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/x86_64-default-cpu-tcg-pc-4.2.x86_64-latest.xml @@ -33,6 +33,7 @@ <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='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/x86_64-default-cpu-tcg-q35-4.2.x86_64-latest.xml b/tests/qemuxml2xmloutdata/x86_64-default-cpu-tcg-q35-4.2.x86_64-latest.xml index b95e146c81..04335f6244 100644 --- a/tests/qemuxml2xmloutdata/x86_64-default-cpu-tcg-q35-4.2.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/x86_64-default-cpu-tcg-q35-4.2.x86_64-latest.xml @@ -56,6 +56,7 @@ </controller> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/x86_64-pc-graphics.x86_64-latest.xml b/tests/qemuxml2xmloutdata/x86_64-pc-graphics.x86_64-latest.xml index 28c23af12a..dd6b07ef1d 100644 --- a/tests/qemuxml2xmloutdata/x86_64-pc-graphics.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/x86_64-pc-graphics.x86_64-latest.xml @@ -70,6 +70,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/x86_64-pc-headless.x86_64-latest.xml b/tests/qemuxml2xmloutdata/x86_64-pc-headless.x86_64-latest.xml index cd46399fe6..ca86ec3e09 100644 --- a/tests/qemuxml2xmloutdata/x86_64-pc-headless.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/x86_64-pc-headless.x86_64-latest.xml @@ -66,6 +66,7 @@ </channel> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmloutdata/x86_64-q35-graphics.x86_64-latest.xml b/tests/qemuxml2xmloutdata/x86_64-q35-graphics.x86_64-latest.xml index e14c57d87e..02485adb98 100644 --- a/tests/qemuxml2xmloutdata/x86_64-q35-graphics.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/x86_64-q35-graphics.x86_64-latest.xml @@ -108,6 +108,7 @@ <graphics type='vnc' port='-1' autoport='yes'> <listen type='address'/> </graphics> + <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> diff --git a/tests/qemuxml2xmloutdata/x86_64-q35-headless.x86_64-latest.xml b/tests/qemuxml2xmloutdata/x86_64-q35-headless.x86_64-latest.xml index 664a12e1e6..0eedb748dd 100644 --- a/tests/qemuxml2xmloutdata/x86_64-q35-headless.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/x86_64-q35-headless.x86_64-latest.xml @@ -104,6 +104,7 @@ </channel> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> + <audio id='1' type='none'/> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/> </memballoon> diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 03ab424e1a..2188f69281 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -1477,6 +1477,28 @@ mymain(void) DO_TEST("audio-oss-best", NONE); DO_TEST("audio-sdl-best", NONE); + + /* Validate auto-creation of <audio> for legacy compat */ + g_setenv("QEMU_AUDIO_DRV", "sdl", TRUE); + g_setenv("SDL_AUDIODRIVER", "esd", TRUE); + DO_TEST_CAPS_LATEST("audio-default-sdl"); + g_unsetenv("QEMU_AUDIO_DRV"); + g_unsetenv("SDL_AUDIODRIVER"); + + g_setenv("QEMU_AUDIO_DRV", "alsa", TRUE); + driver.config->vncAllowHostAudio = true; + DO_TEST_CAPS_LATEST("audio-default-vnc"); + driver.config->vncAllowHostAudio = false; + g_unsetenv("QEMU_AUDIO_DRV"); + + DO_TEST_CAPS_LATEST("audio-default-spice"); + + g_setenv("QEMU_AUDIO_DRV", "alsa", TRUE); + driver.config->nogfxAllowHostAudio = true; + DO_TEST_CAPS_LATEST("audio-default-nographics"); + driver.config->nogfxAllowHostAudio = false; + g_unsetenv("QEMU_AUDIO_DRV"); + cleanup: if (getenv("LIBVIRT_SKIP_CLEANUP") == NULL) virFileDeleteTree(fakerootdir); -- 2.29.2

On Wed, Mar 03, 2021 at 06:18:28PM +0000, Daniel P. Berrangé wrote:
Currently the QEMU driver secretly sets the QEMU_AUDIO_DRV env variable
- VNC - set to "none", unless passthrough of host env variable is set - SPICE - always set to "spice" - SDL - always passthrough host env - No graphics - set to "none", unless passthrough of host env variable is set
The setting of the QEMU_AUDIO_DRV env variable is done in the code which configures graphics.
If no <audio> element is present, we now auto-populate <audio> elements to reflect this historical default config. This avoids need to set audio env when processing graphics.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index bb14fe2e33..59071068c3 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -3573,9 +3573,112 @@ qemuDomainDefAddImplicitInputDevice(virDomainDef *def) return 0; }
+static int +qemuDomainDefAddDefaultAudioBackend(virQEMUDriverPtr driver, + virDomainDefPtr def) +{ + size_t i; + bool addAudio = false; + bool audioPassthrough = false; + virDomainAudioType audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE;
This var should be a plain 'int' otherwise the later....
+ g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver); + + if (def->naudios > 0) { + return 0; + } + + for (i = 0; i < def->ngraphics; i++) { + virDomainGraphicsDefPtr graph = def->graphics[i]; + + switch ((virDomainGraphicsType)graph->type) { + case VIR_DOMAIN_GRAPHICS_TYPE_VNC: + if (cfg->vncAllowHostAudio) { + audioPassthrough = true; + } else { + audioPassthrough = false; + audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE; + } + addAudio = true; + break; + case VIR_DOMAIN_GRAPHICS_TYPE_SPICE: + audioPassthrough = false; + audioBackend = VIR_DOMAIN_AUDIO_TYPE_SPICE; + addAudio = true; + break; + case VIR_DOMAIN_GRAPHICS_TYPE_SDL: + audioPassthrough = true; + addAudio = true; + break; + + case VIR_DOMAIN_GRAPHICS_TYPE_RDP: + case VIR_DOMAIN_GRAPHICS_TYPE_DESKTOP: + case VIR_DOMAIN_GRAPHICS_TYPE_EGL_HEADLESS: + break; + case VIR_DOMAIN_GRAPHICS_TYPE_LAST: + default: + virReportEnumRangeError(virDomainGraphicsType, graph->type); + return -1; + } + } + + if (!def->ngraphics) { + if (cfg->nogfxAllowHostAudio) { + audioPassthrough = true; + } else { + audioPassthrough = false; + audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE; + } + addAudio = true; + } + + if (addAudio && audioPassthrough) { + const char *audioenv = g_getenv("QEMU_AUDIO_DRV"); + if (audioenv == NULL) { + addAudio = false; + } else { + /* + * QEMU audio driver names are mostly the same as + * libvirt XML audio backend names + */ + if (STREQ(audioenv, "pa")) { + audioBackend = VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO; + } else { + if ((audioBackend = virDomainAudioTypeTypeFromString(audioenv)) < 0) {
...check here causes warning from clang about comparing an unsigned enum type to -1.
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("unknown QEMU_AUDIO_DRV setting %s"), audioenv); + return -1; + } + } + } + }
Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

The -audiodev arg is a new way to configure audio devices in QEMU to replace the QEMU_AUDIO_DRV env variable. This arg is not visible in the "query-command-line-options" output since it is entirely QAPI driven, not QemuOpts. It also isn't in "query-qmp-schema" though since there's no QMP command that uses the Audiodev type yet. So probe for the existance of this feature by looking for the -vnc "audiodev" property. This won't let us determine which precise audio backends QEMU has been built with, but for now that's no worse than with env variables today. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/qemu/qemu_capabilities.c | 4 ++++ src/qemu/qemu_capabilities.h | 3 +++ tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml | 1 + tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml | 1 + tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_5.0.0.riscv64.xml | 1 + tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml | 1 + tests/qemucapabilitiesdata/caps_5.1.0.sparc.xml | 1 + tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml | 1 + tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_5.2.0.riscv64.xml | 1 + tests/qemucapabilitiesdata/caps_5.2.0.s390x.xml | 1 + tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml | 1 + tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml | 1 + 18 files changed, 23 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index f40d6d77be..bc4488dccb 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -618,6 +618,9 @@ VIR_ENUM_IMPL(virQEMUCaps, "memory-backend-file.x-use-canonical-path-for-ramblock-id", "vnc-opts", "migration-param.block-bitmap-mapping", + + /* 395 */ + "audiodev", ); @@ -3300,6 +3303,7 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = { { "fw_cfg", "file", QEMU_CAPS_FW_CFG }, { "fsdev", "fmode", QEMU_CAPS_FSDEV_CREATEMODE }, /* Could have also checked fsdev->dmode */ { "vnc", "display", QEMU_CAPS_VNC_OPTS }, + { "vnc", "audiodev", QEMU_CAPS_AUDIODEV }, }; static int diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index a5b6c7f104..a3922bac81 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -599,6 +599,9 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */ QEMU_CAPS_VNC_OPTS, /* -vnc uses QemuOpts parser instead of custom code */ QEMU_CAPS_MIGRATION_PARAM_BLOCK_BITMAP_MAPPING, /* block-bitmap-mapping in migrate-set-parameters */ + /* 395 */ + QEMU_CAPS_AUDIODEV, /* -audiodev instead of QEMU_AUDIO_DRV */ + QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml index 56922178ff..b53584cfb8 100644 --- a/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml @@ -197,6 +197,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>4001050</version> <kvmVersion>0</kvmVersion> <microcodeVersion>61700242</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml index 080e3364d9..83f914cabe 100644 --- a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml @@ -198,6 +198,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>4001050</version> <kvmVersion>0</kvmVersion> <microcodeVersion>42900242</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml b/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml index 2dfdc6f2ba..363c4372c1 100644 --- a/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml +++ b/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml @@ -159,6 +159,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>4002000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>39100242</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml index ce6336d483..4443974912 100644 --- a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml @@ -245,6 +245,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>4002000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>43100242</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml index 7031031716..9a2b1f2061 100644 --- a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml @@ -207,6 +207,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5000000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>61700241</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml index 4f690108e0..ab12f7e72c 100644 --- a/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml @@ -216,6 +216,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5000000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>42900241</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.riscv64.xml b/tests/qemucapabilitiesdata/caps_5.0.0.riscv64.xml index 6fb46102e7..a5e0853a42 100644 --- a/tests/qemucapabilitiesdata/caps_5.0.0.riscv64.xml +++ b/tests/qemucapabilitiesdata/caps_5.0.0.riscv64.xml @@ -202,6 +202,7 @@ <flag name='vhost-user-blk'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5000000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>0</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml index 8fd9afdf15..7c84402f63 100644 --- a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml @@ -252,6 +252,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5000000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>43100241</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.1.0.sparc.xml b/tests/qemucapabilitiesdata/caps_5.1.0.sparc.xml index 66b62ff387..35ed8312c1 100644 --- a/tests/qemucapabilitiesdata/caps_5.1.0.sparc.xml +++ b/tests/qemucapabilitiesdata/caps_5.1.0.sparc.xml @@ -117,6 +117,7 @@ <flag name='ncr53c90'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5001000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>0</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml index d1096c3cb7..dd91777c9b 100644 --- a/tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml @@ -254,6 +254,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5001000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>43100242</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml index 44cd217efb..2247606310 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml @@ -211,6 +211,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5002000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>61700243</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml index 8fad127015..419d05380c 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml @@ -218,6 +218,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5002000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>42900243</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.riscv64.xml b/tests/qemucapabilitiesdata/caps_5.2.0.riscv64.xml index c939ed2db7..8a6ea5450b 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.riscv64.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.riscv64.xml @@ -204,6 +204,7 @@ <flag name='vhost-user-blk'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5002000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>0</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.s390x.xml b/tests/qemucapabilitiesdata/caps_5.2.0.s390x.xml index 4c91abc6f1..2fd360f690 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.s390x.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.s390x.xml @@ -166,6 +166,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5002000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>39100243</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml index 853f73fa53..17cec44cd8 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml @@ -255,6 +255,7 @@ <flag name='cpu-max'/> <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> + <flag name='audiodev'/> <version>5002000</version> <kvmVersion>0</kvmVersion> <microcodeVersion>43100243</microcodeVersion> diff --git a/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml index e7e6254293..5f459c7f87 100644 --- a/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml @@ -257,6 +257,7 @@ <flag name='memory-backend-file.x-use-canonical-path-for-ramblock-id'/> <flag name='vnc-opts'/> <flag name='migration-param.block-bitmap-mapping'/> + <flag name='audiodev'/> <version>5002050</version> <kvmVersion>0</kvmVersion> <microcodeVersion>43100242</microcodeVersion> -- 2.29.2

The -audiodev argument is replacing the QEMU_AUDIO_DRV env variable (and its relations). Sadly we still have to use the SDL_AUDIODRIVER env variable because that wasn't mapped into QAPI schema. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/qemu/qemu_command.c | 142 +++++++++++++++++- src/qemu/qemu_validate.c | 12 +- ...fault-cpu-kvm-virt-4.2.aarch64-latest.args | 2 +- ...fault-cpu-tcg-virt-4.2.aarch64-latest.args | 2 +- .../aarch64-features-sve.aarch64-latest.args | 2 +- ...arch64-os-firmware-efi.aarch64-latest.args | 2 +- .../aarch64-tpm.aarch64-latest.args | 2 +- .../aarch64-virt-graphics.aarch64-latest.args | 4 +- .../aarch64-virt-headless.aarch64-latest.args | 2 +- .../audio-alsa-minimal.x86_64-latest.args | 39 +++++ ...audio-coreaudio-minimal.x86_64-latest.args | 39 +++++ ...udio-default-nographics.x86_64-latest.args | 39 +++++ .../audio-default-sdl.x86_64-latest.args | 41 +++++ .../audio-default-spice.x86_64-latest.args | 40 +++++ .../audio-default-vnc.x86_64-latest.args | 40 +++++ .../audio-file-minimal.x86_64-latest.args | 39 +++++ .../audio-jack-minimal.x86_64-latest.args | 39 +++++ .../audio-many-backends.x86_64-latest.args | 46 ++++++ .../audio-none-minimal.x86_64-latest.args | 39 +++++ .../audio-oss-best.x86_64-latest.args | 39 +++++ .../audio-oss-minimal.x86_64-latest.args | 39 +++++ ...udio-pulseaudio-minimal.x86_64-latest.args | 39 +++++ .../audio-sdl-best.x86_64-latest.args | 40 +++++ .../audio-sdl-minimal.x86_64-latest.args | 39 +++++ .../audio-spice-minimal.x86_64-latest.args | 39 +++++ .../blkdeviotune-group-num.x86_64-latest.args | 2 +- ...blkdeviotune-max-length.x86_64-latest.args | 2 +- .../blkdeviotune-max.x86_64-latest.args | 2 +- .../channel-unix-guestfwd.x86_64-latest.args | 2 +- .../clock-timer-armvtimer.aarch64-latest.args | 2 +- .../console-virtio-unix.x86_64-latest.args | 2 +- .../controller-virtio-scsi.x86_64-latest.args | 2 +- ...-Icelake-Server-pconfig.x86_64-latest.args | 2 +- .../cpu-translation.x86_64-latest.args | 2 +- .../cpu-tsc-high-frequency.x86_64-latest.args | 2 +- .../cputune-cpuset-big-id.x86_64-latest.args | 2 +- ...ult-video-type-aarch64.aarch64-latest.args | 4 +- ...default-video-type-ppc64.ppc64-latest.args | 4 +- ...ult-video-type-riscv64.riscv64-latest.args | 2 +- ...default-video-type-s390x.s390x-latest.args | 4 +- .../disk-aio-io_uring.x86_64-latest.args | 2 +- .../disk-aio.x86_64-latest.args | 2 +- .../disk-arm-virtio-sd.aarch64-latest.args | 2 +- ...-backing-chains-noindex.x86_64-latest.args | 2 +- .../disk-cache.x86_64-latest.args | 2 +- .../disk-cdrom-bus-other.x86_64-latest.args | 2 +- ...m-empty-network-invalid.x86_64-latest.args | 2 +- .../disk-cdrom-network.x86_64-latest.args | 2 +- .../disk-cdrom-tray.x86_64-latest.args | 2 +- .../disk-cdrom.x86_64-latest.args | 2 +- .../disk-copy_on_read.x86_64-latest.args | 2 +- .../disk-detect-zeroes.x86_64-latest.args | 2 +- .../disk-discard.x86_64-latest.args | 2 +- .../disk-error-policy-s390x.s390x-latest.args | 2 +- .../disk-error-policy.x86_64-latest.args | 2 +- .../disk-floppy-q35-2_11.x86_64-latest.args | 2 +- .../disk-floppy-q35-2_9.x86_64-latest.args | 2 +- .../disk-floppy.x86_64-latest.args | 2 +- .../disk-metadata-cache.x86_64-latest.args | 2 +- .../disk-network-gluster.x86_64-latest.args | 2 +- .../disk-network-http.x86_64-latest.args | 2 +- .../disk-network-iscsi.x86_64-latest.args | 2 +- .../disk-network-nbd.x86_64-latest.args | 2 +- .../disk-network-nfs.x86_64-latest.args | 2 +- .../disk-network-rbd.x86_64-latest.args | 2 +- .../disk-network-sheepdog.x86_64-latest.args | 2 +- ...isk-network-source-auth.x86_64-latest.args | 2 +- ...isk-network-tlsx509-nbd.x86_64-latest.args | 2 +- ...isk-network-tlsx509-vxhs.x86_64-5.0.0.args | 2 +- .../disk-nvme.x86_64-latest.args | 2 +- .../disk-readonly-disk.x86_64-latest.args | 2 +- .../disk-scsi-device-auto.x86_64-latest.args | 2 +- .../disk-scsi.x86_64-latest.args | 2 +- .../disk-shared.x86_64-latest.args | 2 +- .../disk-slices.x86_64-latest.args | 2 +- .../disk-transient.x86_64-latest.args | 2 +- .../disk-vhostuser.x86_64-latest.args | 2 +- ...irtio-scsi-reservations.x86_64-latest.args | 2 +- .../eoi-disabled.x86_64-latest.args | 2 +- .../eoi-enabled.x86_64-latest.args | 2 +- .../fips-enabled.x86_64-5.1.0.args | 2 +- .../fips-enabled.x86_64-latest.args | 2 +- .../floppy-drive-fat.x86_64-latest.args | 2 +- .../fs9p-ccw.s390x-latest.args | 2 +- .../qemuxml2argvdata/fs9p.x86_64-latest.args | 2 +- .../genid-auto.x86_64-latest.args | 2 +- .../qemuxml2argvdata/genid.x86_64-latest.args | 2 +- ...pice-gl-auto-rendernode.x86_64-latest.args | 2 +- ...graphics-vnc-tls-secret.x86_64-latest.args | 4 +- .../graphics-vnc-tls.x86_64-latest.args | 4 +- ...tdev-mdev-display-ramfb.x86_64-latest.args | 4 +- ...play-spice-egl-headless.x86_64-latest.args | 2 +- ...ev-display-spice-opengl.x86_64-latest.args | 2 +- ...isplay-vnc-egl-headless.x86_64-latest.args | 4 +- ...ostdev-mdev-display-vnc.x86_64-latest.args | 4 +- .../hostdev-scsi-lsi.x86_64-latest.args | 2 +- ...ostdev-scsi-virtio-scsi.x86_64-latest.args | 2 +- ...tdev-subsys-mdev-vfio-ap.s390x-latest.args | 2 +- ...ubsys-mdev-vfio-ccw-boot.s390x-latest.args | 2 +- .../hugepages-memaccess3.x86_64-latest.args | 2 +- .../hugepages-nvdimm.x86_64-latest.args | 2 +- .../hyperv-off.x86_64-latest.args | 2 +- .../hyperv-panic.x86_64-latest.args | 2 +- .../hyperv-stimer-direct.x86_64-latest.args | 2 +- .../hyperv.x86_64-latest.args | 2 +- .../intel-iommu-aw-bits.x86_64-latest.args | 2 +- ...ntel-iommu-caching-mode.x86_64-latest.args | 2 +- ...ntel-iommu-device-iotlb.x86_64-latest.args | 2 +- .../intel-iommu-eim.x86_64-latest.args | 2 +- .../intel-iommu.x86_64-latest.args | 2 +- .../iommu-smmuv3.aarch64-latest.args | 2 +- ...othreads-virtio-scsi-ccw.s390x-latest.args | 2 +- ...threads-virtio-scsi-pci.x86_64-latest.args | 2 +- .../kvmclock+eoi-disabled.x86_64-latest.args | 2 +- ...luks-disks-source-qcow2.x86_64-latest.args | 2 +- ...memory-default-hugepage.x86_64-latest.args | 2 +- .../memfd-memory-numa.x86_64-latest.args | 2 +- ...y-hotplug-nvdimm-access.x86_64-latest.args | 2 +- ...ry-hotplug-nvdimm-align.x86_64-latest.args | 2 +- ...ry-hotplug-nvdimm-label.x86_64-latest.args | 2 +- ...ory-hotplug-nvdimm-pmem.x86_64-latest.args | 2 +- ...hotplug-nvdimm-readonly.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm.x86_64-latest.args | 2 +- ...ory-hotplug-virtio-pmem.x86_64-latest.args | 2 +- .../mlock-off.x86_64-latest.args | 2 +- .../mlock-on.x86_64-latest.args | 2 +- .../net-vdpa.x86_64-latest.args | 2 +- .../net-vhostuser.x86_64-latest.args | 2 +- .../numatune-hmat.x86_64-latest.args | 2 +- .../os-firmware-bios.x86_64-latest.args | 2 +- ...os-firmware-efi-secboot.x86_64-latest.args | 2 +- .../os-firmware-efi.x86_64-latest.args | 2 +- .../parallel-unix-chardev.x86_64-latest.args | 2 +- ...cie-root-port-nohotplug.x86_64-latest.args | 2 +- ...ault-cpu-kvm-pseries-2.7.ppc64-latest.args | 2 +- ...ault-cpu-kvm-pseries-3.1.ppc64-latest.args | 2 +- ...ault-cpu-kvm-pseries-4.2.ppc64-latest.args | 2 +- ...ault-cpu-tcg-pseries-2.7.ppc64-latest.args | 2 +- ...ault-cpu-tcg-pseries-3.1.ppc64-latest.args | 2 +- ...ault-cpu-tcg-pseries-4.2.ppc64-latest.args | 2 +- .../ppc64-pseries-graphics.ppc64-latest.args | 4 +- .../ppc64-pseries-headless.ppc64-latest.args | 2 +- .../ppc64-tpmproxy-single.ppc64-latest.args | 2 +- .../ppc64-tpmproxy-with-tpm.ppc64-latest.args | 2 +- .../pv-spinlock-disabled.x86_64-latest.args | 2 +- .../pv-spinlock-enabled.x86_64-latest.args | 2 +- .../qemu-ns.x86_64-latest.args | 2 +- .../riscv64-virt-graphics.riscv64-latest.args | 4 +- .../riscv64-virt-headless.riscv64-latest.args | 2 +- ...t-cpu-kvm-ccw-virtio-2.7.s390x-latest.args | 2 +- ...t-cpu-kvm-ccw-virtio-4.2.s390x-latest.args | 2 +- ...t-cpu-tcg-ccw-virtio-2.7.s390x-latest.args | 2 +- ...t-cpu-tcg-ccw-virtio-4.2.s390x-latest.args | 2 +- .../s390x-ccw-graphics.s390x-latest.args | 4 +- .../s390x-ccw-headless.s390x-latest.args | 2 +- .../serial-unix-chardev.x86_64-latest.args | 2 +- ...rtcard-passthrough-unix.x86_64-latest.args | 2 +- .../tpm-emulator-spapr.ppc64-latest.args | 2 +- .../tpm-emulator-tpm2-enc.x86_64-latest.args | 2 +- ...pm-emulator-tpm2-pstate.x86_64-latest.args | 2 +- .../tpm-emulator-tpm2.x86_64-latest.args | 2 +- .../tpm-emulator.x86_64-latest.args | 2 +- .../tpm-passthrough-crb.x86_64-latest.args | 2 +- .../tpm-passthrough.x86_64-latest.args | 2 +- .../tseg-explicit-size.x86_64-latest.args | 2 +- .../usb-redir-unix.x86_64-latest.args | 2 +- ...vhost-user-fs-fd-memory.x86_64-latest.args | 2 +- ...vhost-user-fs-hugepages.x86_64-latest.args | 2 +- ...host-user-gpu-secondary.x86_64-latest.args | 2 +- .../vhost-user-vga.x86_64-latest.args | 2 +- .../vhost-vsock-auto.x86_64-latest.args | 2 +- .../vhost-vsock-ccw-auto.s390x-latest.args | 2 +- .../vhost-vsock-ccw-iommu.s390x-latest.args | 2 +- .../vhost-vsock-ccw.s390x-latest.args | 2 +- .../vhost-vsock.x86_64-latest.args | 2 +- ...eo-bochs-display-device.x86_64-latest.args | 2 +- ...video-qxl-device-vram64.x86_64-latest.args | 2 +- ...o-qxl-sec-device-vram64.x86_64-latest.args | 2 +- ...eo-ramfb-display-device.x86_64-latest.args | 2 +- .../virtio-9p-createmode.x86_64-latest.args | 2 +- .../virtio-9p-multidevs.x86_64-latest.args | 2 +- ...virtio-non-transitional.x86_64-latest.args | 2 +- ...-options-controller-ats.x86_64-latest.args | 2 +- ...ptions-controller-iommu.x86_64-latest.args | 2 +- ...tions-controller-packed.x86_64-latest.args | 2 +- ...virtio-options-disk-ats.x86_64-latest.args | 2 +- ...rtio-options-disk-iommu.x86_64-latest.args | 2 +- ...tio-options-disk-packed.x86_64-latest.args | 2 +- .../virtio-options-fs-ats.x86_64-latest.args | 2 +- ...virtio-options-fs-iommu.x86_64-latest.args | 2 +- ...irtio-options-fs-packed.x86_64-latest.args | 2 +- ...irtio-options-input-ats.x86_64-latest.args | 2 +- ...tio-options-input-iommu.x86_64-latest.args | 2 +- ...io-options-input-packed.x86_64-latest.args | 2 +- ...-options-memballoon-ats.x86_64-latest.args | 2 +- ...loon-freepage-reporting.x86_64-latest.args | 2 +- ...ptions-memballoon-iommu.x86_64-latest.args | 2 +- ...tions-memballoon-packed.x86_64-latest.args | 2 +- .../virtio-options-net-ats.x86_64-latest.args | 2 +- ...irtio-options-net-iommu.x86_64-latest.args | 2 +- ...rtio-options-net-packed.x86_64-latest.args | 2 +- .../virtio-options-rng-ats.x86_64-latest.args | 2 +- ...irtio-options-rng-iommu.x86_64-latest.args | 2 +- ...rtio-options-rng-packed.x86_64-latest.args | 2 +- ...irtio-options-video-ats.x86_64-latest.args | 2 +- ...tio-options-video-iommu.x86_64-latest.args | 2 +- ...io-options-video-packed.x86_64-latest.args | 2 +- .../virtio-options.x86_64-latest.args | 2 +- .../virtio-rng-builtin.x86_64-latest.args | 2 +- .../virtio-rng-egd-unix.x86_64-latest.args | 2 +- .../virtio-transitional.x86_64-latest.args | 2 +- ...-default-cpu-kvm-pc-4.2.x86_64-latest.args | 2 +- ...default-cpu-kvm-q35-4.2.x86_64-latest.args | 2 +- ...-default-cpu-tcg-pc-4.2.x86_64-latest.args | 2 +- ...default-cpu-tcg-q35-4.2.x86_64-latest.args | 2 +- .../x86_64-pc-graphics.x86_64-latest.args | 4 +- .../x86_64-pc-headless.x86_64-latest.args | 2 +- .../x86_64-q35-graphics.x86_64-latest.args | 4 +- .../x86_64-q35-headless.x86_64-latest.args | 2 +- tests/qemuxml2argvtest.c | 18 +++ .../audio-many-backends.x86_64-latest.xml | 1 + tests/qemuxml2xmltest.c | 1 + 222 files changed, 1013 insertions(+), 227 deletions(-) create mode 100644 tests/qemuxml2argvdata/audio-alsa-minimal.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-minimal.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-default-nographics.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-default-sdl.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-default-spice.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-default-vnc.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-file-minimal.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-jack-minimal.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-many-backends.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-none-minimal.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-oss-minimal.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-minimal.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-minimal.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-spice-minimal.x86_64-latest.args create mode 120000 tests/qemuxml2xmloutdata/audio-many-backends.x86_64-latest.xml diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 54cbc3ba90..8a013c4ff4 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4030,6 +4030,17 @@ qemuBuildInputCommandLine(virCommandPtr cmd, return 0; } +static char * +qemuGetAudioIDString(const virDomainDef *def, int id) +{ + virDomainAudioDefPtr audio = virDomainDefFindAudioByID(def, id); + if (!audio) { + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + _("unable to find audio backend for sound device")); + return NULL; + } + return g_strdup_printf("audio%d", audio->id); +} static char * qemuBuildSoundDevStr(const virDomainDef *def, @@ -4066,6 +4077,13 @@ qemuBuildSoundDevStr(const virDomainDef *def, } virBufferAsprintf(&buf, "%s,id=%s", model, sound->info.alias); + if (!virDomainSoundModelSupportsCodecs(sound) && + virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + g_autofree char *audioid = qemuGetAudioIDString(def, sound->audioId); + if (!audioid) + return NULL; + virBufferAsprintf(&buf, ",audiodev=%s", audioid); + } if (qemuBuildDeviceAddressStr(&buf, def, &sound->info, qemuCaps) < 0) return NULL; @@ -4074,8 +4092,10 @@ qemuBuildSoundDevStr(const virDomainDef *def, static char * -qemuBuildSoundCodecStr(virDomainSoundDefPtr sound, - virDomainSoundCodecDefPtr codec) +qemuBuildSoundCodecStr(const virDomainDef *def, + virDomainSoundDefPtr sound, + virDomainSoundCodecDefPtr codec, + virQEMUCapsPtr qemuCaps) { g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER; const char *stype; @@ -4087,6 +4107,13 @@ qemuBuildSoundCodecStr(virDomainSoundDefPtr sound, virBufferAsprintf(&buf, "%s,id=%s-codec%d,bus=%s.0,cad=%d", stype, sound->info.alias, codec->cad, sound->info.alias, codec->cad); + if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + g_autofree char *audioid = qemuGetAudioIDString(def, sound->audioId); + if (!audioid) + return NULL; + virBufferAsprintf(&buf, ",audiodev=%s", audioid); + } + return virBufferContentAndReset(&buf); } @@ -4121,7 +4148,8 @@ qemuBuildSoundCommandLine(virCommandPtr cmd, g_autofree char *codecstr = NULL; virCommandAddArg(cmd, "-device"); if (!(codecstr = - qemuBuildSoundCodecStr(sound, sound->codecs[j]))) { + qemuBuildSoundCodecStr(def, sound, + sound->codecs[j], qemuCaps))) { return -1; } @@ -4135,7 +4163,8 @@ qemuBuildSoundCommandLine(virCommandPtr cmd, }; virCommandAddArg(cmd, "-device"); if (!(codecstr = - qemuBuildSoundCodecStr(sound, &codec))) { + qemuBuildSoundCodecStr(def, sound, + &codec, qemuCaps))) { return -1; } @@ -7558,6 +7587,91 @@ qemuBuildMemoryDeviceCommandLine(virCommandPtr cmd, return 0; } +static void +qemuBuildAudioOSSArg(virBufferPtr buf, + const char *prefix, + virDomainAudioIOOSS *def) +{ + if (def->dev) + virBufferAsprintf(buf, ",%s.dev=%s", prefix, def->dev); +} + +static int +qemuBuildAudioCommandLineArg(virCommandPtr cmd, + virDomainAudioDefPtr def) +{ + g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER; + + virCommandAddArg(cmd, "-audiodev"); + + virBufferAsprintf(&buf, "id=audio%d,driver=%s", + def->id, + qemuAudioDriverTypeToString(def->type)); + + switch ((virDomainAudioType)def->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: + qemuBuildAudioOSSArg(&buf, "in", &def->backend.oss.input); + qemuBuildAudioOSSArg(&buf, "out", &def->backend.oss.output); + break; + + case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + break; + + case VIR_DOMAIN_AUDIO_TYPE_SDL: + if (def->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( + def->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, def->type); + return -1; + } + + virCommandAddArgBuffer(cmd, &buf); + return 0; +} + +static int +qemuBuildAudioCommandLineArgs(virCommandPtr cmd, + virDomainDefPtr def) +{ + size_t i; + for (i = 0; i < def->naudios; i++) { + if (qemuBuildAudioCommandLineArg(cmd, def->audios[i]) < 0) + return -1; + } + return 0; +} + static void qemuBuildAudioOSSEnv(virCommandPtr cmd, const char *prefix, @@ -7632,9 +7746,13 @@ qemuBuildAudioCommandLineEnv(virCommandPtr cmd, static int qemuBuildAudioCommandLine(virCommandPtr cmd, - virDomainDefPtr def) + virDomainDefPtr def, + virQEMUCapsPtr qemuCaps) { - return qemuBuildAudioCommandLineEnv(cmd, def); + if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) + return qemuBuildAudioCommandLineArgs(cmd, def); + else + return qemuBuildAudioCommandLineEnv(cmd, def); } @@ -7668,6 +7786,7 @@ qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfigPtr cfg G_GNUC_UNUSED, static int qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg, + const virDomainDef *def, virCommandPtr cmd, virQEMUCapsPtr qemuCaps, virDomainGraphicsDefPtr graphics) @@ -7785,6 +7904,13 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg, /* TODO: Support ACLs later */ } + if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + g_autofree char *audioid = qemuGetAudioIDString(def, graphics->data.vnc.audioId); + if (!audioid) + return -1; + virBufferAsprintf(&opt, ",audiodev=%s", audioid); + } + virCommandAddArg(cmd, "-vnc"); virCommandAddArgBuffer(cmd, &opt); if (graphics->data.vnc.keymap) @@ -8040,7 +8166,7 @@ qemuBuildGraphicsCommandLine(virQEMUDriverConfigPtr cfg, break; case VIR_DOMAIN_GRAPHICS_TYPE_VNC: - if (qemuBuildGraphicsVNCCommandLine(cfg, cmd, + if (qemuBuildGraphicsVNCCommandLine(cfg, def, cmd, qemuCaps, graphics) < 0) return -1; @@ -10119,7 +10245,7 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, if (qemuBuildInputCommandLine(cmd, def, qemuCaps) < 0) return NULL; - if (qemuBuildAudioCommandLine(cmd, def) < 0) + if (qemuBuildAudioCommandLine(cmd, def, qemuCaps) < 0) return NULL; if (qemuBuildGraphicsCommandLine(cfg, cmd, def, qemuCaps) < 0) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index ba3ef9067a..e88f393fba 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -1228,7 +1228,8 @@ qemuValidateDomainDef(const virDomainDef *def, return -1; } - if (def->naudios > 1) { + if (def->naudios > 1 && + !virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("only one audio backend is supported with this QEMU binary")); return -1; @@ -4166,9 +4167,12 @@ qemuValidateDomainDeviceDefAudio(virDomainAudioDefPtr audio, break; case VIR_DOMAIN_AUDIO_TYPE_JACK: - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("'jack' audio backend is not supported with this QEMU")); - return -1; + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("'jack' audio backend is not supported with this QEMU")); + return -1; + } + break; case VIR_DOMAIN_AUDIO_TYPE_OSS: break; diff --git a/tests/qemuxml2argvdata/aarch64-default-cpu-kvm-virt-4.2.aarch64-latest.args b/tests/qemuxml2argvdata/aarch64-default-cpu-kvm-virt-4.2.aarch64-latest.args index 39f4702e99..bb6dbc9b15 100644 --- a/tests/qemuxml2argvdata/aarch64-default-cpu-kvm-virt-4.2.aarch64-latest.args +++ b/tests/qemuxml2argvdata/aarch64-default-cpu-kvm-virt-4.2.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=guest,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ addr=0x1 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.1,addr=0x0,drive=libvirt-1-format,\ id=virtio-disk0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/aarch64-default-cpu-tcg-virt-4.2.aarch64-latest.args b/tests/qemuxml2argvdata/aarch64-default-cpu-tcg-virt-4.2.aarch64-latest.args index 84beed0dff..c6f1a93c19 100644 --- a/tests/qemuxml2argvdata/aarch64-default-cpu-tcg-virt-4.2.aarch64-latest.args +++ b/tests/qemuxml2argvdata/aarch64-default-cpu-tcg-virt-4.2.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=guest,debug-threads=on \ -S \ @@ -38,6 +37,7 @@ addr=0x1 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.1,addr=0x0,drive=libvirt-1-format,\ id=virtio-disk0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/aarch64-features-sve.aarch64-latest.args b/tests/qemuxml2argvdata/aarch64-features-sve.aarch64-latest.args index 8619fcd5f3..b23318b1f4 100644 --- a/tests/qemuxml2argvdata/aarch64-features-sve.aarch64-latest.args +++ b/tests/qemuxml2argvdata/aarch64-features-sve.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=guest,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ memory-backend=mach-virt.ram \ -no-shutdown \ -no-acpi \ -boot strict=on \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/aarch64-os-firmware-efi.aarch64-latest.args b/tests/qemuxml2argvdata/aarch64-os-firmware-efi.aarch64-latest.args index c5c7234a86..0bcdf9ea76 100644 --- a/tests/qemuxml2argvdata/aarch64-os-firmware-efi.aarch64-latest.args +++ b/tests/qemuxml2argvdata/aarch64-os-firmware-efi.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-aarch64test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-aarch64test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-aarch64test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=aarch64test,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ memory-backend=mach-virt.ram \ -initrd /aarch64.initrd \ -append 'earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait' \ -dtb /aarch64.dtb \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/aarch64-tpm.aarch64-latest.args b/tests/qemuxml2argvdata/aarch64-tpm.aarch64-latest.args index 2419d6b22f..aa12bc26c7 100644 --- a/tests/qemuxml2argvdata/aarch64-tpm.aarch64-latest.args +++ b/tests/qemuxml2argvdata/aarch64-tpm.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-aarch64test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-aarch64test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-aarch64test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=aarch64test,debug-threads=on \ -S \ @@ -32,6 +31,7 @@ memory-backend=mach-virt.ram \ -tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \ -chardev socket,id=chrtpm,path=/dev/test \ -device tpm-tis-device,tpmdev=tpm-tpm0,id=tpm0 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/aarch64-virt-graphics.aarch64-latest.args b/tests/qemuxml2argvdata/aarch64-virt-graphics.aarch64-latest.args index c8cff9500c..b9de92a8d4 100644 --- a/tests/qemuxml2argvdata/aarch64-virt-graphics.aarch64-latest.args +++ b/tests/qemuxml2argvdata/aarch64-virt-graphics.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=guest,debug-threads=on \ -S \ @@ -66,7 +65,8 @@ addr=0x0 \ id=channel0,name=org.qemu.guest_agent.0 \ -device usb-tablet,id=input0,bus=usb.0,port=1 \ -device usb-kbd,id=input1,bus=usb.0,port=2 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device virtio-gpu-pci,id=video0,max_outputs=1,bus=pci.7,addr=0x0 \ -device virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 \ -object rng-random,id=objrng0,filename=/dev/urandom \ diff --git a/tests/qemuxml2argvdata/aarch64-virt-headless.aarch64-latest.args b/tests/qemuxml2argvdata/aarch64-virt-headless.aarch64-latest.args index fe25594c92..6c8151cf45 100644 --- a/tests/qemuxml2argvdata/aarch64-virt-headless.aarch64-latest.args +++ b/tests/qemuxml2argvdata/aarch64-virt-headless.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=guest,debug-threads=on \ -S \ @@ -64,6 +63,7 @@ addr=0x0 \ -chardev socket,id=charchannel0,fd=1729,server=on,wait=off \ -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,\ id=channel0,name=org.qemu.guest_agent.0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 \ -object rng-random,id=objrng0,filename=/dev/urandom \ -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.6,addr=0x0 \ diff --git a/tests/qemuxml2argvdata/audio-alsa-minimal.x86_64-latest.args b/tests/qemuxml2argvdata/audio-alsa-minimal.x86_64-latest.args new file mode 100644 index 0000000000..d2146a1f77 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-minimal.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=alsa \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-coreaudio-minimal.x86_64-latest.args b/tests/qemuxml2argvdata/audio-coreaudio-minimal.x86_64-latest.args new file mode 100644 index 0000000000..7654b330b0 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-minimal.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=coreaudio \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-default-nographics.x86_64-latest.args b/tests/qemuxml2argvdata/audio-default-nographics.x86_64-latest.args new file mode 100644 index 0000000000..d2146a1f77 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-nographics.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=alsa \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-default-sdl.x86_64-latest.args b/tests/qemuxml2argvdata/audio-default-sdl.x86_64-latest.args new file mode 100644 index 0000000000..1016430f96 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-sdl.x86_64-latest.args @@ -0,0 +1,41 @@ +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 \ +SDL_AUDIODRIVER=esd \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=off \ +-smp 1,sockets=1,cores=1,threads=1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=sdl \ +-display sdl \ +-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-default-spice.x86_64-latest.args b/tests/qemuxml2argvdata/audio-default-spice.x86_64-latest.args new file mode 100644 index 0000000000..f3aa6ab04d --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-spice.x86_64-latest.args @@ -0,0 +1,40 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=off \ +-smp 1,sockets=1,cores=1,threads=1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=spice \ +-spice port=0,seamless-migration=on \ +-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-default-vnc.x86_64-latest.args b/tests/qemuxml2argvdata/audio-default-vnc.x86_64-latest.args new file mode 100644 index 0000000000..9eae9d2cb2 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-default-vnc.x86_64-latest.args @@ -0,0 +1,40 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=off \ +-smp 1,sockets=1,cores=1,threads=1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=alsa \ +-vnc 127.0.0.1:0,audiodev=audio1 \ +-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-file-minimal.x86_64-latest.args b/tests/qemuxml2argvdata/audio-file-minimal.x86_64-latest.args new file mode 100644 index 0000000000..87f930b0be --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-minimal.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=wav \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-jack-minimal.x86_64-latest.args b/tests/qemuxml2argvdata/audio-jack-minimal.x86_64-latest.args new file mode 100644 index 0000000000..e45dc5e241 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-jack-minimal.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=jack \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-many-backends.x86_64-latest.args b/tests/qemuxml2argvdata/audio-many-backends.x86_64-latest.args new file mode 100644 index 0000000000..231e379488 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-many-backends.x86_64-latest.args @@ -0,0 +1,46 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=off \ +-smp 1,sockets=1,cores=1,threads=1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ +-audiodev id=audio2,driver=alsa \ +-audiodev id=audio3,driver=pa \ +-vnc 127.0.0.1:0,audiodev=audio2 \ +-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \ +-device AC97,id=sound0,audiodev=audio1,bus=pci.0,addr=0x3 \ +-device intel-hda,id=sound1,bus=pci.0,addr=0x4 \ +-device hda-duplex,id=sound1-codec0,bus=sound1.0,cad=0,audiodev=audio2 \ +-device ES1370,id=sound2,audiodev=audio3,bus=pci.0,addr=0x5 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-none-minimal.x86_64-latest.args b/tests/qemuxml2argvdata/audio-none-minimal.x86_64-latest.args new file mode 100644 index 0000000000..64b85da14a --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-minimal.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args new file mode 100644 index 0000000000..fe78b3a738 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=oss,in.dev=/dev/dsp0,out.dev=/dev/dsp1 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-oss-minimal.x86_64-latest.args b/tests/qemuxml2argvdata/audio-oss-minimal.x86_64-latest.args new file mode 100644 index 0000000000..1f9d52672e --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-minimal.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=oss \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-minimal.x86_64-latest.args b/tests/qemuxml2argvdata/audio-pulseaudio-minimal.x86_64-latest.args new file mode 100644 index 0000000000..5eda5edcfb --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-minimal.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=pa \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args new file mode 100644 index 0000000000..53b29b9843 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args @@ -0,0 +1,40 @@ +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 \ +SDL_AUDIODRIVER=pulseaudio \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=sdl \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-sdl-minimal.x86_64-latest.args b/tests/qemuxml2argvdata/audio-sdl-minimal.x86_64-latest.args new file mode 100644 index 0000000000..1b36024843 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-minimal.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=sdl \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-spice-minimal.x86_64-latest.args b/tests/qemuxml2argvdata/audio-spice-minimal.x86_64-latest.args new file mode 100644 index 0000000000..2d9050b8e0 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-minimal.x86_64-latest.args @@ -0,0 +1,39 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=spice \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/blkdeviotune-group-num.x86_64-latest.args b/tests/qemuxml2argvdata/blkdeviotune-group-num.x86_64-latest.args index f62ddf9bc7..a3289bbf6b 100644 --- a/tests/qemuxml2argvdata/blkdeviotune-group-num.x86_64-latest.args +++ b/tests/qemuxml2argvdata/blkdeviotune-group-num.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -45,6 +44,7 @@ write-cache=on \ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=1,drive=libvirt-1-format,id=ide0-0-1,\ write-cache=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/blkdeviotune-max-length.x86_64-latest.args b/tests/qemuxml2argvdata/blkdeviotune-max-length.x86_64-latest.args index f62ddf9bc7..a3289bbf6b 100644 --- a/tests/qemuxml2argvdata/blkdeviotune-max-length.x86_64-latest.args +++ b/tests/qemuxml2argvdata/blkdeviotune-max-length.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -45,6 +44,7 @@ write-cache=on \ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=1,drive=libvirt-1-format,id=ide0-0-1,\ write-cache=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/blkdeviotune-max.x86_64-latest.args b/tests/qemuxml2argvdata/blkdeviotune-max.x86_64-latest.args index f62ddf9bc7..a3289bbf6b 100644 --- a/tests/qemuxml2argvdata/blkdeviotune-max.x86_64-latest.args +++ b/tests/qemuxml2argvdata/blkdeviotune-max.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -45,6 +44,7 @@ write-cache=on \ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=1,drive=libvirt-1-format,id=ide0-0-1,\ write-cache=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/channel-unix-guestfwd.x86_64-latest.args b/tests/qemuxml2argvdata/channel-unix-guestfwd.x86_64-latest.args index 14f0987cf6..6f1191984a 100644 --- a/tests/qemuxml2argvdata/channel-unix-guestfwd.x86_64-latest.args +++ b/tests/qemuxml2argvdata/channel-unix-guestfwd.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -netdev user,guestfwd=tcp:10.0.2.1:4600-chardev:charchannel0,id=channel0 \ -chardev socket,id=charchannel1,path=/tmp/guestfwd-connect.socket \ -netdev user,guestfwd=tcp:10.0.2.1:4601-chardev:charchannel1,id=channel1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/clock-timer-armvtimer.aarch64-latest.args b/tests/qemuxml2argvdata/clock-timer-armvtimer.aarch64-latest.args index 2a4dd152dd..b82a6ea6d0 100644 --- a/tests/qemuxml2argvdata/clock-timer-armvtimer.aarch64-latest.args +++ b/tests/qemuxml2argvdata/clock-timer-armvtimer.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=guest,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ memory-backend=mach-virt.ram \ -no-shutdown \ -no-acpi \ -boot strict=on \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/console-virtio-unix.x86_64-latest.args b/tests/qemuxml2argvdata/console-virtio-unix.x86_64-latest.args index 3fbb87dea1..2d68464dda 100644 --- a/tests/qemuxml2argvdata/console-virtio-unix.x86_64-latest.args +++ b/tests/qemuxml2argvdata/console-virtio-unix.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -34,6 +33,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device virtconsole,chardev=charconsole0,id=console0 \ -chardev socket,id=charconsole1,path=/tmp/connect.socket \ -device virtconsole,chardev=charconsole1,id=console1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/controller-virtio-scsi.x86_64-latest.args b/tests/qemuxml2argvdata/controller-virtio-scsi.x86_64-latest.args index 7f7c2df762..2e49ce1476 100644 --- a/tests/qemuxml2argvdata/controller-virtio-scsi.x86_64-latest.args +++ b/tests/qemuxml2argvdata/controller-virtio-scsi.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -64,6 +63,7 @@ device_id=drive-scsi3-0-0-0,drive=libvirt-2-format,id=scsi3-0-0-0 \ "file":"libvirt-1-storage"}' \ -device scsi-hd,bus=scsi4.0,channel=0,scsi-id=0,lun=0,\ device_id=drive-scsi4-0-0-0,drive=libvirt-1-format,id=scsi4-0-0-0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-latest.args b/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-latest.args index 2444404ddc..c3672983d8 100644 --- a/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-latest.args +++ b/tests/qemuxml2argvdata/cpu-Icelake-Server-pconfig.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=test,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-test/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/cpu-translation.x86_64-latest.args b/tests/qemuxml2argvdata/cpu-translation.x86_64-latest.args index d2e1331187..661acad35a 100644 --- a/tests/qemuxml2argvdata/cpu-translation.x86_64-latest.args +++ b/tests/qemuxml2argvdata/cpu-translation.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -31,6 +30,7 @@ kvm-pv-unhalt=on \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/cpu-tsc-high-frequency.x86_64-latest.args b/tests/qemuxml2argvdata/cpu-tsc-high-frequency.x86_64-latest.args index 628ca2680a..40a413d97a 100644 --- a/tests/qemuxml2argvdata/cpu-tsc-high-frequency.x86_64-latest.args +++ b/tests/qemuxml2argvdata/cpu-tsc-high-frequency.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -32,6 +31,7 @@ tsc-frequency=4567890000 \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/cputune-cpuset-big-id.x86_64-latest.args b/tests/qemuxml2argvdata/cputune-cpuset-big-id.x86_64-latest.args index 38c1525036..ef00c6e162 100644 --- a/tests/qemuxml2argvdata/cputune-cpuset-big-id.x86_64-latest.args +++ b/tests/qemuxml2argvdata/cputune-cpuset-big-id.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -34,6 +33,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/default-video-type-aarch64.aarch64-latest.args b/tests/qemuxml2argvdata/default-video-type-aarch64.aarch64-latest.args index bcd6e534e4..07a2f065aa 100644 --- a/tests/qemuxml2argvdata/default-video-type-aarch64.aarch64-latest.args +++ b/tests/qemuxml2argvdata/default-video-type-aarch64.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-default-video-type-a/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-default-video-type-a/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-default-video-type-a/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=default-video-type-aarch64-test,debug-threads=on \ -S \ @@ -30,7 +29,8 @@ memory-backend=mach-virt.ram \ -device pcie-root-port,port=0x8,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,\ addr=0x1 \ -device pcie-root-port,port=0x9,chassis=2,id=pci.2,bus=pcie.0,addr=0x1.0x1 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device virtio-gpu-pci,id=video0,max_outputs=1,bus=pci.1,addr=0x0 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/default-video-type-ppc64.ppc64-latest.args b/tests/qemuxml2argvdata/default-video-type-ppc64.ppc64-latest.args index ead604874a..4401e6a607 100644 --- a/tests/qemuxml2argvdata/default-video-type-ppc64.ppc64-latest.args +++ b/tests/qemuxml2argvdata/default-video-type-ppc64.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-default-video-type-p/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-default-video-type-p/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-default-video-type-p/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=default-video-type-ppc64-test,debug-threads=on \ -S \ @@ -30,7 +29,8 @@ memory-backend=ppc_spapr.ram \ -device pci-ohci,id=usb,bus=pci.0,addr=0x1 \ -device usb-kbd,id=input0,bus=usb.0,port=1 \ -device usb-mouse,id=input1,bus=usb.0,port=2 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device VGA,id=video0,vgamem_mb=16,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/default-video-type-riscv64.riscv64-latest.args b/tests/qemuxml2argvdata/default-video-type-riscv64.riscv64-latest.args index cc332b369b..0a55aed757 100644 --- a/tests/qemuxml2argvdata/default-video-type-riscv64.riscv64-latest.args +++ b/tests/qemuxml2argvdata/default-video-type-riscv64.riscv64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-default-video-type-r/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-default-video-type-r/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-default-video-type-r/.config \ -QEMU_AUDIO_DRV=spice \ /usr/bin/qemu-system-riscv64 \ -name guest=default-video-type-riscv64-test,debug-threads=on \ -S \ @@ -27,6 +26,7 @@ file=/tmp/lib/domain--1-default-video-type-r/master-key.aes \ -device pcie-root-port,port=0x8,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,\ addr=0x1 \ -device pcie-root-port,port=0x9,chassis=2,id=pci.2,bus=pcie.0,addr=0x1.0x1 \ +-audiodev id=audio1,driver=spice \ -spice port=0,seamless-migration=on \ -device virtio-gpu-pci,id=video0,max_outputs=1,bus=pci.1,addr=0x0 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ diff --git a/tests/qemuxml2argvdata/default-video-type-s390x.s390x-latest.args b/tests/qemuxml2argvdata/default-video-type-s390x.s390x-latest.args index 2cbd533c52..fb5afb0650 100644 --- a/tests/qemuxml2argvdata/default-video-type-s390x.s390x-latest.args +++ b/tests/qemuxml2argvdata/default-video-type-s390x.s390x-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-default-video-type-s/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-default-video-type-s/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-default-video-type-s/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-s390x \ -name guest=default-video-type-s390x-test,debug-threads=on \ -S \ @@ -32,7 +31,8 @@ cmm=on \ -rtc base=utc \ -no-shutdown \ -boot strict=on \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device virtio-gpu-ccw,id=video0,max_outputs=1,devno=fe.0.0000 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-aio-io_uring.x86_64-latest.args b/tests/qemuxml2argvdata/disk-aio-io_uring.x86_64-latest.args index 933cbdf37e..fb9ee0eda4 100644 --- a/tests/qemuxml2argvdata/disk-aio-io_uring.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-aio-io_uring.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -36,6 +35,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x9,drive=libvirt-1-format,\ id=virtio-disk0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-aio.x86_64-latest.args b/tests/qemuxml2argvdata/disk-aio.x86_64-latest.args index a26086db22..581ff06314 100644 --- a/tests/qemuxml2argvdata/disk-aio.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-aio.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -43,6 +42,7 @@ write-cache=on \ -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-arm-virtio-sd.aarch64-latest.args b/tests/qemuxml2argvdata/disk-arm-virtio-sd.aarch64-latest.args index fa1749e94f..e7a81c8d7f 100644 --- a/tests/qemuxml2argvdata/disk-arm-virtio-sd.aarch64-latest.args +++ b/tests/qemuxml2argvdata/disk-arm-virtio-sd.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-armtest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-armtest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-armtest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-arm \ -name guest=armtest,debug-threads=on \ -S \ @@ -40,6 +39,7 @@ memory-backend=vexpress.highmem \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2",\ "file":"libvirt-1-storage"}' \ -device virtio-blk-device,drive=libvirt-1-format,id=virtio-disk0 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args index 927b338380..e1f59c3ff0 100644 --- a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -162,6 +161,7 @@ id=virtio-disk4 \ "file":"libvirt-1-storage","backing":"libvirt-2-format"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=libvirt-1-format,\ id=virtio-disk5 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x8 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-cache.x86_64-latest.args b/tests/qemuxml2argvdata/disk-cache.x86_64-latest.args index d05b3689e5..6ca255ad27 100644 --- a/tests/qemuxml2argvdata/disk-cache.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-cache.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -70,6 +69,7 @@ id=virtio-disk0,write-cache=off \ "file":"libvirt-1-storage"}' \ -device usb-storage,bus=usb.0,port=1,drive=libvirt-1-format,id=usb-disk1,\ removable=off,write-cache=off \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-cdrom-bus-other.x86_64-latest.args b/tests/qemuxml2argvdata/disk-cdrom-bus-other.x86_64-latest.args index 2daaec89b9..be7dd2c2af 100644 --- a/tests/qemuxml2argvdata/disk-cdrom-bus-other.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-cdrom-bus-other.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -36,6 +35,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device usb-storage,bus=usb.0,port=1,drive=libvirt-2-format,id=usb-disk0,\ removable=off \ -device usb-storage,bus=usb.0,port=2,id=usb-disk1,removable=off \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-cdrom-empty-network-invalid.x86_64-latest.args b/tests/qemuxml2argvdata/disk-cdrom-empty-network-invalid.x86_64-latest.args index f386baf748..7bc1ae250c 100644 --- a/tests/qemuxml2argvdata/disk-cdrom-empty-network-invalid.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-cdrom-empty-network-invalid.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -30,6 +29,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ -device ide-cd,bus=ide.1,unit=1,id=ide0-1-1 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-cdrom-network.x86_64-latest.args b/tests/qemuxml2argvdata/disk-cdrom-network.x86_64-latest.args index 83bc1901c2..9f2260ed44 100644 --- a/tests/qemuxml2argvdata/disk-cdrom-network.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-cdrom-network.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-cdrom-tray.x86_64-latest.args b/tests/qemuxml2argvdata/disk-cdrom-tray.x86_64-latest.args index e3b6e4f510..23758c1271 100644 --- a/tests/qemuxml2argvdata/disk-cdrom-tray.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-cdrom-tray.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=test,debug-threads=on \ -S \ @@ -46,6 +45,7 @@ id=virtio-disk0,bootindex=2 \ -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-cd,bus=ide.1,unit=1,drive=libvirt-1-format,id=ide0-1-1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-cdrom.x86_64-latest.args b/tests/qemuxml2argvdata/disk-cdrom.x86_64-latest.args index 17794cb536..147c5af826 100644 --- a/tests/qemuxml2argvdata/disk-cdrom.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-cdrom.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -41,6 +40,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device ide-cd,bus=ide.0,unit=1,drive=libvirt-3-format,id=ide0-0-1 \ -device ide-cd,bus=ide.1,unit=0,id=ide0-1-0,write-cache=on \ -device ide-cd,bus=ide.1,unit=1,id=ide0-1-1 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-copy_on_read.x86_64-latest.args b/tests/qemuxml2argvdata/disk-copy_on_read.x86_64-latest.args index 627fe2147e..6b6ada6530 100644 --- a/tests/qemuxml2argvdata/disk-copy_on_read.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-copy_on_read.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=test,debug-threads=on \ -S \ @@ -47,6 +46,7 @@ id=virtio-disk0,bootindex=2 \ -netdev user,id=hostnet0 \ -device virtio-net-pci,tx=bh,netdev=hostnet0,id=net0,mac=52:54:00:e5:48:58,\ bus=pci.0,addr=0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-detect-zeroes.x86_64-latest.args b/tests/qemuxml2argvdata/disk-detect-zeroes.x86_64-latest.args index ca3fc6e26d..56084f6991 100644 --- a/tests/qemuxml2argvdata/disk-detect-zeroes.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-detect-zeroes.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=test,debug-threads=on \ -S \ @@ -41,6 +40,7 @@ id=virtio-disk0,bootindex=2 \ -blockdev '{"node-name":"libvirt-1-format","read-only":true,"discard":"ignore",\ "detect-zeroes":"on","driver":"raw","file":"libvirt-1-storage"}' \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-discard.x86_64-latest.args b/tests/qemuxml2argvdata/disk-discard.x86_64-latest.args index 586f14070e..12c5d5db7d 100644 --- a/tests/qemuxml2argvdata/disk-discard.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-discard.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=test,debug-threads=on \ -S \ @@ -41,6 +40,7 @@ id=virtio-disk0,bootindex=2 \ -blockdev '{"node-name":"libvirt-1-format","read-only":true,"discard":"ignore",\ "driver":"raw","file":"libvirt-1-storage"}' \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-error-policy-s390x.s390x-latest.args b/tests/qemuxml2argvdata/disk-error-policy-s390x.s390x-latest.args index 60b15f2691..887c9f6628 100644 --- a/tests/qemuxml2argvdata/disk-error-policy-s390x.s390x-latest.args +++ b/tests/qemuxml2argvdata/disk-error-policy-s390x.s390x-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-s390x \ -name guest=guest,debug-threads=on \ -S \ @@ -52,6 +51,7 @@ write-cache=on,werror=enospc \ "file":"libvirt-1-storage"}' \ -device virtio-blk-ccw,devno=fe.0.0002,drive=libvirt-1-format,id=virtio-disk2,\ write-cache=on,werror=report,rerror=ignore \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-error-policy.x86_64-latest.args b/tests/qemuxml2argvdata/disk-error-policy.x86_64-latest.args index 62009933f5..0957d16482 100644 --- a/tests/qemuxml2argvdata/disk-error-policy.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-error-policy.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -53,6 +52,7 @@ write-cache=on,werror=enospc \ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,\ write-cache=on,werror=report,rerror=ignore \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-floppy-q35-2_11.x86_64-latest.args b/tests/qemuxml2argvdata/disk-floppy-q35-2_11.x86_64-latest.args index 7f7c534bcd..2a00c84492 100644 --- a/tests/qemuxml2argvdata/disk-floppy-q35-2_11.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-floppy-q35-2_11.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ addr=0x1 \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2",\ "file":"libvirt-1-storage"}' \ -device floppy,unit=1,drive=libvirt-1-format,id=fdc0-0-1 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-floppy-q35-2_9.x86_64-latest.args b/tests/qemuxml2argvdata/disk-floppy-q35-2_9.x86_64-latest.args index 85140acf18..d1e65335b2 100644 --- a/tests/qemuxml2argvdata/disk-floppy-q35-2_9.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-floppy-q35-2_9.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ addr=0x1 \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2",\ "file":"libvirt-1-storage"}' \ -device floppy,unit=1,drive=libvirt-1-format,id=fdc0-0-1 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-floppy.x86_64-latest.args b/tests/qemuxml2argvdata/disk-floppy.x86_64-latest.args index 00c086dadd..6730a493e7 100644 --- a/tests/qemuxml2argvdata/disk-floppy.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-floppy.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device floppy,unit=1,drive=libvirt-1-format,id=fdc0-0-1 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-metadata-cache.x86_64-latest.args b/tests/qemuxml2argvdata/disk-metadata-cache.x86_64-latest.args index 60e133076a..be009c376f 100644 --- a/tests/qemuxml2argvdata/disk-metadata-cache.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-metadata-cache.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -51,6 +50,7 @@ write-cache=on \ "file":"libvirt-1-storage","backing":"libvirt-2-format"}' \ -device ide-hd,bus=ide.0,unit=1,drive=libvirt-1-format,id=ide0-0-1,\ write-cache=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-network-gluster.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-gluster.x86_64-latest.args index 4de81032b5..7665be3ac9 100644 --- a/tests/qemuxml2argvdata/disk-network-gluster.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-network-gluster.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -52,6 +51,7 @@ id=virtio-disk1 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=libvirt-1-format,\ id=virtio-disk2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-network-http.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-http.x86_64-latest.args index d8975ebe3d..b5b9493693 100644 --- a/tests/qemuxml2argvdata/disk-network-http.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-network-http.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -64,6 +63,7 @@ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=libvirt-1-format,\ id=virtio-disk3 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args index 1a6f9507c7..4eea428a2b 100644 --- a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -73,6 +72,7 @@ id=virtio-disk3 \ "file":"libvirt-1-storage"}' \ -device scsi-block,bus=scsi0.0,channel=0,scsi-id=0,lun=0,\ drive=libvirt-1-format,id=scsi0-0-0-0 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-network-nbd.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-nbd.x86_64-latest.args index 0993dff3b0..6c9e4a4e3a 100644 --- a/tests/qemuxml2argvdata/disk-network-nbd.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-network-nbd.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -63,6 +62,7 @@ id=virtio-disk3 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x6,drive=libvirt-1-format,\ id=virtio-disk4 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-network-nfs.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-nfs.x86_64-latest.args index 2387151bb8..394bb2b22d 100644 --- a/tests/qemuxml2argvdata/disk-network-nfs.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-network-nfs.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -51,6 +50,7 @@ serial=eb90327c-8302-4725-9e1b-4e85ed4dc251 \ "file":"libvirt-1-storage","backing":"libvirt-2-format"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x2,drive=libvirt-1-format,\ id=virtio-disk1 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args index ff63722cb6..1a1fa2f38e 100644 --- a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -80,6 +79,7 @@ id=virtio-disk4 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=libvirt-1-format,\ id=virtio-disk5 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-network-sheepdog.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-sheepdog.x86_64-latest.args index a35fe0057a..b92fbed884 100644 --- a/tests/qemuxml2argvdata/disk-network-sheepdog.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-network-sheepdog.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -41,6 +40,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x2,drive=libvirt-1-format,\ id=virtio-disk0 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args index 0efbc386c3..18196dc496 100644 --- a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -66,6 +65,7 @@ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=libvirt-1-format,\ id=virtio-disk2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-network-tlsx509-nbd.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-tlsx509-nbd.x86_64-latest.args index 008bb1093d..db44726b67 100644 --- a/tests/qemuxml2argvdata/disk-network-tlsx509-nbd.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-network-tlsx509-nbd.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ passwordid=objlibvirt-1-storage_tls0-secret0 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=libvirt-1-format,\ id=virtio-disk3,bootindex=1,write-cache=on \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-network-tlsx509-vxhs.x86_64-5.0.0.args b/tests/qemuxml2argvdata/disk-network-tlsx509-vxhs.x86_64-5.0.0.args index ec215c6904..2fce8a9a2b 100644 --- a/tests/qemuxml2argvdata/disk-network-tlsx509-vxhs.x86_64-5.0.0.args +++ b/tests/qemuxml2argvdata/disk-network-tlsx509-vxhs.x86_64-5.0.0.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -70,6 +69,7 @@ id=virtio-disk1,write-cache=on,serial=eb90327c-8302-4725-9e1b-4e85ed4dc252 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x6,drive=libvirt-1-format,\ id=virtio-disk2,write-cache=on,serial=eb90327c-8302-4725-9e1b-4e85ed4dc252 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args b/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args index b5e171f1e9..891d4cb972 100644 --- a/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -60,6 +59,7 @@ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=libvirt-1-format,\ id=virtio-disk3,write-cache=on \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/disk-readonly-disk.x86_64-latest.args b/tests/qemuxml2argvdata/disk-readonly-disk.x86_64-latest.args index 57971050fe..0e70692e45 100644 --- a/tests/qemuxml2argvdata/disk-readonly-disk.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-readonly-disk.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -39,6 +38,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-scsi-device-auto.x86_64-latest.args b/tests/qemuxml2argvdata/disk-scsi-device-auto.x86_64-latest.args index 5e62d0fca4..95c0ff7bda 100644 --- a/tests/qemuxml2argvdata/disk-scsi-device-auto.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-scsi-device-auto.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -41,6 +40,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ "file":"libvirt-1-storage"}' \ -device scsi-hd,bus=scsi0.0,scsi-id=0,device_id=drive-scsi0-0-0,\ drive=libvirt-1-format,id=scsi0-0-0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-scsi.x86_64-latest.args b/tests/qemuxml2argvdata/disk-scsi.x86_64-latest.args index 7bc2595aea..c562fb7ca1 100644 --- a/tests/qemuxml2argvdata/disk-scsi.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-scsi.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -70,6 +69,7 @@ device_id=drive-scsi3-0-0-0,drive=libvirt-2-format,id=scsi3-0-0-0 \ "file":"libvirt-1-storage"}' \ -device scsi-hd,bus=scsi4.0,channel=0,scsi-id=0,lun=0,\ device_id=drive-scsi4-0-0-0,drive=libvirt-1-format,id=scsi4-0-0-0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-shared.x86_64-latest.args b/tests/qemuxml2argvdata/disk-shared.x86_64-latest.args index 1cf9ee6ad9..20f6e6f4da 100644 --- a/tests/qemuxml2argvdata/disk-shared.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-shared.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -60,6 +59,7 @@ write-cache=on \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x3,share-rw=on,drive=libvirt-1-format,\ id=virtio-disk0,write-cache=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-slices.x86_64-latest.args b/tests/qemuxml2argvdata/disk-slices.x86_64-latest.args index 5b173fbf22..24e10cea68 100644 --- a/tests/qemuxml2argvdata/disk-slices.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-slices.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -82,6 +81,7 @@ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \ "file":"libvirt-1-slice-sto"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=libvirt-1-format,\ id=virtio-disk4,write-cache=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-transient.x86_64-latest.args b/tests/qemuxml2argvdata/disk-transient.x86_64-latest.args index 1fe197f537..3f9a281312 100644 --- a/tests/qemuxml2argvdata/disk-transient.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-transient.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1,\ write-cache=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-vhostuser.x86_64-latest.args b/tests/qemuxml2argvdata/disk-vhostuser.x86_64-latest.args index 7918e38bc3..b485272152 100644 --- a/tests/qemuxml2argvdata/disk-vhostuser.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-vhostuser.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -36,6 +35,7 @@ id=virtio-disk0,bootindex=1 \ -chardev socket,id=chr-vu-virtio-disk1,path=/tmp/vhost1.sock,reconnect=10 \ -device vhost-user-blk-pci,iommu_platform=on,ats=on,packed=on,bus=pci.0,\ addr=0x3,chardev=chr-vu-virtio-disk1,id=virtio-disk1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/disk-virtio-scsi-reservations.x86_64-latest.args b/tests/qemuxml2argvdata/disk-virtio-scsi-reservations.x86_64-latest.args index dfab00713c..41dfb1a7cb 100644 --- a/tests/qemuxml2argvdata/disk-virtio-scsi-reservations.x86_64-latest.args +++ b/tests/qemuxml2argvdata/disk-virtio-scsi-reservations.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -48,6 +47,7 @@ path=/path/to/qemu-pr-helper.sock \ "file":"libvirt-1-storage"}' \ -device scsi-block,bus=scsi0.0,channel=0,scsi-id=0,lun=1,\ drive=libvirt-1-format,id=scsi0-0-0-1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/eoi-disabled.x86_64-latest.args b/tests/qemuxml2argvdata/eoi-disabled.x86_64-latest.args index b697188233..7232b31b61 100644 --- a/tests/qemuxml2argvdata/eoi-disabled.x86_64-latest.args +++ b/tests/qemuxml2argvdata/eoi-disabled.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/eoi-enabled.x86_64-latest.args b/tests/qemuxml2argvdata/eoi-enabled.x86_64-latest.args index dbc110349d..97972d0bdd 100644 --- a/tests/qemuxml2argvdata/eoi-enabled.x86_64-latest.args +++ b/tests/qemuxml2argvdata/eoi-enabled.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/fips-enabled.x86_64-5.1.0.args b/tests/qemuxml2argvdata/fips-enabled.x86_64-5.1.0.args index d58782cb35..3d96c0b3b6 100644 --- a/tests/qemuxml2argvdata/fips-enabled.x86_64-5.1.0.args +++ b/tests/qemuxml2argvdata/fips-enabled.x86_64-5.1.0.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -34,6 +33,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/fips-enabled.x86_64-latest.args b/tests/qemuxml2argvdata/fips-enabled.x86_64-latest.args index 71abfa50d0..cb39f8d902 100644 --- a/tests/qemuxml2argvdata/fips-enabled.x86_64-latest.args +++ b/tests/qemuxml2argvdata/fips-enabled.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -34,6 +33,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/floppy-drive-fat.x86_64-latest.args b/tests/qemuxml2argvdata/floppy-drive-fat.x86_64-latest.args index df9d7f5351..c5eac2ebf6 100644 --- a/tests/qemuxml2argvdata/floppy-drive-fat.x86_64-latest.args +++ b/tests/qemuxml2argvdata/floppy-drive-fat.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device floppy,unit=0,drive=libvirt-1-format,id=fdc0-0-0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/fs9p-ccw.s390x-latest.args b/tests/qemuxml2argvdata/fs9p-ccw.s390x-latest.args index 9d6c465295..340d87c70b 100644 --- a/tests/qemuxml2argvdata/fs9p-ccw.s390x-latest.args +++ b/tests/qemuxml2argvdata/fs9p-ccw.s390x-latest.args @@ -6,7 +6,6 @@ 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-s390x \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ devno=fe.0.0002 \ -fsdev handle,writeout=immediate,id=fsdev-fs2,path=/export/to/guest3 \ -device virtio-9p-ccw,id=fs2,fsdev=fsdev-fs2,mount_tag=/import/from/host3,\ devno=fe.0.0003 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0004 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/fs9p.x86_64-latest.args b/tests/qemuxml2argvdata/fs9p.x86_64-latest.args index 6143f58851..1bb17a15fd 100644 --- a/tests/qemuxml2argvdata/fs9p.x86_64-latest.args +++ b/tests/qemuxml2argvdata/fs9p.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -38,6 +37,7 @@ bus=pci.0,addr=0x3 \ -fsdev handle,writeout=immediate,id=fsdev-fs2,path=/export/to/guest3 \ -device virtio-9p-pci,id=fs2,fsdev=fsdev-fs2,mount_tag=/import/from/host3,\ bus=pci.0,addr=0x4 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/genid-auto.x86_64-latest.args b/tests/qemuxml2argvdata/genid-auto.x86_64-latest.args index ac18cb1d58..e7885327e7 100644 --- a/tests/qemuxml2argvdata/genid-auto.x86_64-latest.args +++ b/tests/qemuxml2argvdata/genid-auto.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/genid.x86_64-latest.args b/tests/qemuxml2argvdata/genid.x86_64-latest.args index 87f99a51e9..1ac9236595 100644 --- a/tests/qemuxml2argvdata/genid.x86_64-latest.args +++ b/tests/qemuxml2argvdata/genid.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/graphics-spice-gl-auto-rendernode.x86_64-latest.args b/tests/qemuxml2argvdata/graphics-spice-gl-auto-rendernode.x86_64-latest.args index 95ffff8af7..47a9986a79 100644 --- a/tests/qemuxml2argvdata/graphics-spice-gl-auto-rendernode.x86_64-latest.args +++ b/tests/qemuxml2argvdata/graphics-spice-gl-auto-rendernode.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=spice \ -spice port=0,gl=on,rendernode=/dev/dri/foo,seamless-migration=on \ -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ diff --git a/tests/qemuxml2argvdata/graphics-vnc-tls-secret.x86_64-latest.args b/tests/qemuxml2argvdata/graphics-vnc-tls-secret.x86_64-latest.args index ab106d4a7d..878108232b 100644 --- a/tests/qemuxml2argvdata/graphics-vnc-tls-secret.x86_64-latest.args +++ b/tests/qemuxml2argvdata/graphics-vnc-tls-secret.x86_64-latest.args @@ -6,7 +6,6 @@ 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 \ SASL_CONF_PATH=/root/.sasl2 \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest1,debug-threads=on \ @@ -29,12 +28,13 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -object secret,id=vnc-tls-creds0-secret0,\ data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \ -object tls-creds-x509,id=vnc-tls-creds0,dir=/etc/pki/libvirt-vnc,\ endpoint=server,verify-peer=on,passwordid=vnc-tls-creds0-secret0 \ --vnc 127.0.0.1:3,tls-creds=vnc-tls-creds0,sasl=on \ +-vnc 127.0.0.1:3,tls-creds=vnc-tls-creds0,sasl=on,audiodev=audio1 \ -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-latest.args b/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-latest.args index 0b30273d99..501935163a 100644 --- a/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-latest.args +++ b/tests/qemuxml2argvdata/graphics-vnc-tls.x86_64-latest.args @@ -6,7 +6,6 @@ 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 \ SASL_CONF_PATH=/root/.sasl2 \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest1,debug-threads=on \ @@ -29,9 +28,10 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -object tls-creds-x509,id=vnc-tls-creds0,dir=/etc/pki/libvirt-vnc,\ endpoint=server,verify-peer=on \ --vnc 127.0.0.1:3,tls-creds=vnc-tls-creds0,sasl=on \ +-vnc 127.0.0.1:3,tls-creds=vnc-tls-creds0,sasl=on,audiodev=audio1 \ -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/hostdev-mdev-display-ramfb.x86_64-latest.args b/tests/qemuxml2argvdata/hostdev-mdev-display-ramfb.x86_64-latest.args index 508289bf5b..70126d2540 100644 --- a/tests/qemuxml2argvdata/hostdev-mdev-display-ramfb.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hostdev-mdev-display-ramfb.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest2/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest2/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest2/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest2,debug-threads=on \ -S \ @@ -28,7 +27,8 @@ file=/tmp/lib/domain--1-QEMUGuest2/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,\ vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 \ -device vfio-pci-nohotplug,id=hostdev0,\ diff --git a/tests/qemuxml2argvdata/hostdev-mdev-display-spice-egl-headless.x86_64-latest.args b/tests/qemuxml2argvdata/hostdev-mdev-display-spice-egl-headless.x86_64-latest.args index 997cfc6c33..26125666da 100644 --- a/tests/qemuxml2argvdata/hostdev-mdev-display-spice-egl-headless.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hostdev-mdev-display-spice-egl-headless.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest2/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest2/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest2/.config \ -QEMU_AUDIO_DRV=spice \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest2,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest2/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=spice \ -spice port=0,seamless-migration=on \ -display egl-headless,rendernode=/dev/dri/foo \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,\ diff --git a/tests/qemuxml2argvdata/hostdev-mdev-display-spice-opengl.x86_64-latest.args b/tests/qemuxml2argvdata/hostdev-mdev-display-spice-opengl.x86_64-latest.args index 06bf69ca04..12f5c69213 100644 --- a/tests/qemuxml2argvdata/hostdev-mdev-display-spice-opengl.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hostdev-mdev-display-spice-opengl.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest2/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest2/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest2/.config \ -QEMU_AUDIO_DRV=spice \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest2,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest2/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=spice \ -spice port=0,gl=on,rendernode=/dev/dri/foo,seamless-migration=on \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,\ vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 \ diff --git a/tests/qemuxml2argvdata/hostdev-mdev-display-vnc-egl-headless.x86_64-latest.args b/tests/qemuxml2argvdata/hostdev-mdev-display-vnc-egl-headless.x86_64-latest.args index 7491c52723..2fa9d4c667 100644 --- a/tests/qemuxml2argvdata/hostdev-mdev-display-vnc-egl-headless.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hostdev-mdev-display-vnc-egl-headless.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest2/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest2/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest2/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest2,debug-threads=on \ -S \ @@ -28,7 +27,8 @@ file=/tmp/lib/domain--1-QEMUGuest2/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -display egl-headless,rendernode=/dev/dri/foo \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,\ vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 \ diff --git a/tests/qemuxml2argvdata/hostdev-mdev-display-vnc.x86_64-latest.args b/tests/qemuxml2argvdata/hostdev-mdev-display-vnc.x86_64-latest.args index 22ee8ae7eb..e707bc934e 100644 --- a/tests/qemuxml2argvdata/hostdev-mdev-display-vnc.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hostdev-mdev-display-vnc.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest2/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest2/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest2/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest2,debug-threads=on \ -S \ @@ -28,7 +27,8 @@ file=/tmp/lib/domain--1-QEMUGuest2/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,\ vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 \ -device vfio-pci,id=hostdev0,\ diff --git a/tests/qemuxml2argvdata/hostdev-scsi-lsi.x86_64-latest.args b/tests/qemuxml2argvdata/hostdev-scsi-lsi.x86_64-latest.args index e5c7765216..6f431a33da 100644 --- a/tests/qemuxml2argvdata/hostdev-scsi-lsi.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hostdev-scsi-lsi.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest2/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest2/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest2/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest2,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ file=/tmp/lib/domain--1-QEMUGuest2/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -blockdev '{"driver":"host_device","filename":"/dev/sg0",\ "node-name":"libvirt-2-backend","read-only":false}' \ -device scsi-generic,bus=scsi0.0,scsi-id=7,drive=libvirt-2-backend,id=hostdev0 \ diff --git a/tests/qemuxml2argvdata/hostdev-scsi-virtio-scsi.x86_64-latest.args b/tests/qemuxml2argvdata/hostdev-scsi-virtio-scsi.x86_64-latest.args index bf298b7e1d..b119837c36 100644 --- a/tests/qemuxml2argvdata/hostdev-scsi-virtio-scsi.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hostdev-scsi-virtio-scsi.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest2/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest2/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest2/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-i386 \ -name guest=QEMUGuest2,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ file=/tmp/lib/domain--1-QEMUGuest2/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -blockdev '{"driver":"host_device","filename":"/dev/sg0",\ "node-name":"libvirt-2-backend","read-only":false}' \ -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=4,lun=8,\ diff --git a/tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ap.s390x-latest.args b/tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ap.s390x-latest.args index 9857a5cafb..baa573bccc 100644 --- a/tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ap.s390x-latest.args +++ b/tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ap.s390x-latest.args @@ -6,7 +6,6 @@ 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-s390x \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ memory-backend=s390.ram \ -rtc base=utc \ -no-shutdown \ -boot strict=on \ +-audiodev id=audio1,driver=none \ -device vfio-ap,id=hostdev0,\ sysfsdev=/sys/bus/mdev/devices/90c6c135-ad44-41d0-b1b7-bae47de48627 \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0000 \ diff --git a/tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ccw-boot.s390x-latest.args b/tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ccw-boot.s390x-latest.args index 4eb1ab84fe..d7d2a2d6cd 100644 --- a/tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ccw-boot.s390x-latest.args +++ b/tests/qemuxml2argvdata/hostdev-subsys-mdev-vfio-ccw-boot.s390x-latest.args @@ -6,7 +6,6 @@ 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-s390x \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ memory-backend=s390.ram \ -rtc base=utc \ -no-shutdown \ -boot strict=on \ +-audiodev id=audio1,driver=none \ -device vfio-ccw,id=hostdev0,\ sysfsdev=/sys/bus/mdev/devices/90c6c135-ad44-41d0-b1b7-bae47de48627,\ devno=fe.0.0000,bootindex=1 \ diff --git a/tests/qemuxml2argvdata/hugepages-memaccess3.x86_64-latest.args b/tests/qemuxml2argvdata/hugepages-memaccess3.x86_64-latest.args index 1372612e27..d06d6e2351 100644 --- a/tests/qemuxml2argvdata/hugepages-memaccess3.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hugepages-memaccess3.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-fedora/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-fedora/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-fedora/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=fedora,debug-threads=on \ -S \ @@ -34,6 +33,7 @@ x-use-canonical-path-for-ramblock-id=off,prealloc=on,size=4294967296 \ -no-acpi \ -boot menu=on,strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/hugepages-nvdimm.x86_64-latest.args b/tests/qemuxml2argvdata/hugepages-nvdimm.x86_64-latest.args index 0b0a99cfd7..b56a731676 100644 --- a/tests/qemuxml2argvdata/hugepages-nvdimm.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hugepages-nvdimm.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ prealloc=on,size=536870912 \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/hyperv-off.x86_64-latest.args b/tests/qemuxml2argvdata/hyperv-off.x86_64-latest.args index 1cee6c42be..dddd7f694d 100644 --- a/tests/qemuxml2argvdata/hyperv-off.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hyperv-off.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/hyperv-panic.x86_64-latest.args b/tests/qemuxml2argvdata/hyperv-panic.x86_64-latest.args index 7ae3d738b4..336810e8dc 100644 --- a/tests/qemuxml2argvdata/hyperv-panic.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hyperv-panic.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/hyperv-stimer-direct.x86_64-latest.args b/tests/qemuxml2argvdata/hyperv-stimer-direct.x86_64-latest.args index 6a68270fae..338479521e 100644 --- a/tests/qemuxml2argvdata/hyperv-stimer-direct.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hyperv-stimer-direct.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/hyperv.x86_64-latest.args b/tests/qemuxml2argvdata/hyperv.x86_64-latest.args index dcd86b482a..d6259b4bc7 100644 --- a/tests/qemuxml2argvdata/hyperv.x86_64-latest.args +++ b/tests/qemuxml2argvdata/hyperv.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -30,6 +29,7 @@ hv-reenlightenment,hv-tlbflush,hv-ipi,hv-evmcs' \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/intel-iommu-aw-bits.x86_64-latest.args b/tests/qemuxml2argvdata/intel-iommu-aw-bits.x86_64-latest.args index 8b6487a944..a413e3e755 100644 --- a/tests/qemuxml2argvdata/intel-iommu-aw-bits.x86_64-latest.args +++ b/tests/qemuxml2argvdata/intel-iommu-aw-bits.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -30,6 +29,7 @@ memory-backend=pc.ram \ -no-acpi \ -boot strict=on \ -device intel-iommu,intremap=on,aw-bits=48 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/intel-iommu-caching-mode.x86_64-latest.args b/tests/qemuxml2argvdata/intel-iommu-caching-mode.x86_64-latest.args index 719224c5ef..d5754e3fbd 100644 --- a/tests/qemuxml2argvdata/intel-iommu-caching-mode.x86_64-latest.args +++ b/tests/qemuxml2argvdata/intel-iommu-caching-mode.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -30,6 +29,7 @@ memory-backend=pc.ram \ -no-acpi \ -boot strict=on \ -device intel-iommu,intremap=on,caching-mode=on \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/intel-iommu-device-iotlb.x86_64-latest.args b/tests/qemuxml2argvdata/intel-iommu-device-iotlb.x86_64-latest.args index 8958261b03..41d52f43af 100644 --- a/tests/qemuxml2argvdata/intel-iommu-device-iotlb.x86_64-latest.args +++ b/tests/qemuxml2argvdata/intel-iommu-device-iotlb.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -30,6 +29,7 @@ memory-backend=pc.ram \ -no-acpi \ -boot strict=on \ -device intel-iommu,intremap=on,device-iotlb=on \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/intel-iommu-eim.x86_64-latest.args b/tests/qemuxml2argvdata/intel-iommu-eim.x86_64-latest.args index 1341e90d11..42533d1fb9 100644 --- a/tests/qemuxml2argvdata/intel-iommu-eim.x86_64-latest.args +++ b/tests/qemuxml2argvdata/intel-iommu-eim.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -30,6 +29,7 @@ memory-backend=pc.ram \ -no-acpi \ -boot strict=on \ -device intel-iommu,intremap=on,eim=on \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/intel-iommu.x86_64-latest.args b/tests/qemuxml2argvdata/intel-iommu.x86_64-latest.args index 58ec585f20..d24f48893d 100644 --- a/tests/qemuxml2argvdata/intel-iommu.x86_64-latest.args +++ b/tests/qemuxml2argvdata/intel-iommu.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device intel-iommu \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/iommu-smmuv3.aarch64-latest.args b/tests/qemuxml2argvdata/iommu-smmuv3.aarch64-latest.args index b0e2c5dda7..29d101b1f8 100644 --- a/tests/qemuxml2argvdata/iommu-smmuv3.aarch64-latest.args +++ b/tests/qemuxml2argvdata/iommu-smmuv3.aarch64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-aarch64 \ -name guest=guest,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ memory-backend=mach-virt.ram \ -no-shutdown \ -no-acpi \ -boot strict=on \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/iothreads-virtio-scsi-ccw.s390x-latest.args b/tests/qemuxml2argvdata/iothreads-virtio-scsi-ccw.s390x-latest.args index 74a66971ae..6041413652 100644 --- a/tests/qemuxml2argvdata/iothreads-virtio-scsi-ccw.s390x-latest.args +++ b/tests/qemuxml2argvdata/iothreads-virtio-scsi-ccw.s390x-latest.args @@ -6,7 +6,6 @@ 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-s390x \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -43,6 +42,7 @@ drive=libvirt-2-format,id=virtio-disk0,bootindex=1 \ "file":"libvirt-1-storage"}' \ -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=2,lun=0,\ device_id=drive-scsi0-0-2-0,drive=libvirt-1-format,id=scsi0-0-2-0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.000a \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/iothreads-virtio-scsi-pci.x86_64-latest.args b/tests/qemuxml2argvdata/iothreads-virtio-scsi-pci.x86_64-latest.args index 830b8ea7fd..59e8504980 100644 --- a/tests/qemuxml2argvdata/iothreads-virtio-scsi-pci.x86_64-latest.args +++ b/tests/qemuxml2argvdata/iothreads-virtio-scsi-pci.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -51,6 +50,7 @@ drive=libvirt-2-format,id=virtio-disk1 \ "file":"libvirt-1-storage"}' \ -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=3,\ device_id=drive-scsi0-0-0-3,drive=libvirt-1-format,id=scsi0-0-0-3 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/kvmclock+eoi-disabled.x86_64-latest.args b/tests/qemuxml2argvdata/kvmclock+eoi-disabled.x86_64-latest.args index cd1fb742c7..d7bd8203a4 100644 --- a/tests/qemuxml2argvdata/kvmclock+eoi-disabled.x86_64-latest.args +++ b/tests/qemuxml2argvdata/kvmclock+eoi-disabled.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args b/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args index c78d138fd9..7503283495 100644 --- a/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args +++ b/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-encryptdisk/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-encryptdisk/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-encryptdisk/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=encryptdisk,debug-threads=on \ -S \ @@ -105,6 +104,7 @@ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \ "file":"libvirt-1-storage","backing":"libvirt-2-format"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x8,drive=libvirt-1-format,\ id=virtio-disk5 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/memfd-memory-default-hugepage.x86_64-latest.args b/tests/qemuxml2argvdata/memfd-memory-default-hugepage.x86_64-latest.args index 77a5ac0788..a33432368c 100644 --- a/tests/qemuxml2argvdata/memfd-memory-default-hugepage.x86_64-latest.args +++ b/tests/qemuxml2argvdata/memfd-memory-default-hugepage.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-instance-00000092/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-instance-00000092/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-instance-00000092/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=instance-00000092,debug-threads=on \ -S \ @@ -31,6 +30,7 @@ share=on,prealloc=on,size=15032385536,host-nodes=3,policy=preferred \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/memfd-memory-numa.x86_64-latest.args b/tests/qemuxml2argvdata/memfd-memory-numa.x86_64-latest.args index 77a5ac0788..a33432368c 100644 --- a/tests/qemuxml2argvdata/memfd-memory-numa.x86_64-latest.args +++ b/tests/qemuxml2argvdata/memfd-memory-numa.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-instance-00000092/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-instance-00000092/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-instance-00000092/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=instance-00000092,debug-threads=on \ -S \ @@ -31,6 +30,7 @@ share=on,prealloc=on,size=15032385536,host-nodes=3,policy=preferred \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.x86_64-latest.args b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.x86_64-latest.args index b4be9f77e5..42df363455 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.x86_64-latest.args +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -38,6 +37,7 @@ prealloc=on,size=536870912 \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.x86_64-latest.args b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.x86_64-latest.args index 1094d2ffec..1e9197a5e6 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.x86_64-latest.args +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -38,6 +37,7 @@ prealloc=on,size=536870912,align=2097152 \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.x86_64-latest.args b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.x86_64-latest.args index 35cbd0e4dc..8fb4790ffd 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.x86_64-latest.args +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -38,6 +37,7 @@ prealloc=on,size=536870912 \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.x86_64-latest.args b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.x86_64-latest.args index c1b38fc466..fd5843f28b 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.x86_64-latest.args +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -38,6 +37,7 @@ size=536870912,pmem=on \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.x86_64-latest.args b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.x86_64-latest.args index 490d4c4b1c..2c4fc38d59 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.x86_64-latest.args +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -38,6 +37,7 @@ prealloc=on,size=536870912 \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/memory-hotplug-nvdimm.x86_64-latest.args b/tests/qemuxml2argvdata/memory-hotplug-nvdimm.x86_64-latest.args index 2cc62be1fa..2c9f9e3464 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-nvdimm.x86_64-latest.args +++ b/tests/qemuxml2argvdata/memory-hotplug-nvdimm.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -38,6 +37,7 @@ size=536870912 \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.x86_64-latest.args b/tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.x86_64-latest.args index 066371d6d7..7ebcb00764 100644 --- a/tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.x86_64-latest.args +++ b/tests/qemuxml2argvdata/memory-hotplug-virtio-pmem.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -39,6 +38,7 @@ addr=0x5 \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/mlock-off.x86_64-latest.args b/tests/qemuxml2argvdata/mlock-off.x86_64-latest.args index 132d0e263a..fec4f780fa 100644 --- a/tests/qemuxml2argvdata/mlock-off.x86_64-latest.args +++ b/tests/qemuxml2argvdata/mlock-off.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/mlock-on.x86_64-latest.args b/tests/qemuxml2argvdata/mlock-on.x86_64-latest.args index 8061ebd9fb..209bfda226 100644 --- a/tests/qemuxml2argvdata/mlock-on.x86_64-latest.args +++ b/tests/qemuxml2argvdata/mlock-on.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/net-vdpa.x86_64-latest.args b/tests/qemuxml2argvdata/net-vdpa.x86_64-latest.args index fe14bd6575..47e2ce008b 100644 --- a/tests/qemuxml2argvdata/net-vdpa.x86_64-latest.args +++ b/tests/qemuxml2argvdata/net-vdpa.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -netdev vhost-vdpa,vhostdev=/dev/fdset/0,id=hostnet0 \ -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:95:db:c0,bus=pci.0,\ addr=0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/net-vhostuser.x86_64-latest.args b/tests/qemuxml2argvdata/net-vhostuser.x86_64-latest.args index 7d77f9dd85..8796a47b40 100644 --- a/tests/qemuxml2argvdata/net-vhostuser.x86_64-latest.args +++ b/tests/qemuxml2argvdata/net-vhostuser.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -40,6 +39,7 @@ addr=0x3 \ -netdev socket,listen=:2015,id=hostnet2 \ -device rtl8139,netdev=hostnet2,id=net2,mac=52:54:00:95:db:c0,bus=pci.0,\ addr=0x4 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/numatune-hmat.x86_64-latest.args b/tests/qemuxml2argvdata/numatune-hmat.x86_64-latest.args index ba01bb3c75..702b122f34 100644 --- a/tests/qemuxml2argvdata/numatune-hmat.x86_64-latest.args +++ b/tests/qemuxml2argvdata/numatune-hmat.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=QEMUGuest,debug-threads=on \ -S \ @@ -47,6 +46,7 @@ policy=write-back,line=8 \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/os-firmware-bios.x86_64-latest.args b/tests/qemuxml2argvdata/os-firmware-bios.x86_64-latest.args index d2222e237c..82bdb00818 100644 --- a/tests/qemuxml2argvdata/os-firmware-bios.x86_64-latest.args +++ b/tests/qemuxml2argvdata/os-firmware-bios.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-fedora/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-fedora/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-fedora/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=fedora,debug-threads=on \ -S \ @@ -39,6 +38,7 @@ memory-backend=pc.ram \ addr=0x1d \ -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,addr=0x1d.0x1 \ -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,addr=0x1d.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.2,addr=0x1 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/os-firmware-efi-secboot.x86_64-latest.args b/tests/qemuxml2argvdata/os-firmware-efi-secboot.x86_64-latest.args index 8317ebead6..29661bedd1 100644 --- a/tests/qemuxml2argvdata/os-firmware-efi-secboot.x86_64-latest.args +++ b/tests/qemuxml2argvdata/os-firmware-efi-secboot.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-fedora/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-fedora/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-fedora/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=fedora,debug-threads=on \ -S \ @@ -51,6 +50,7 @@ memory-backend=pc.ram \ addr=0x1d \ -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,addr=0x1d.0x1 \ -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,addr=0x1d.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.2,addr=0x1 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/os-firmware-efi.x86_64-latest.args b/tests/qemuxml2argvdata/os-firmware-efi.x86_64-latest.args index dc4f019e9b..8605f73b58 100644 --- a/tests/qemuxml2argvdata/os-firmware-efi.x86_64-latest.args +++ b/tests/qemuxml2argvdata/os-firmware-efi.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-fedora/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-fedora/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-fedora/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=fedora,debug-threads=on \ -S \ @@ -50,6 +49,7 @@ memory-backend=pc.ram \ addr=0x1d \ -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,addr=0x1d.0x1 \ -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,addr=0x1d.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.2,addr=0x1 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/parallel-unix-chardev.x86_64-latest.args b/tests/qemuxml2argvdata/parallel-unix-chardev.x86_64-latest.args index 1bd0a798a7..3a13f212b7 100644 --- a/tests/qemuxml2argvdata/parallel-unix-chardev.x86_64-latest.args +++ b/tests/qemuxml2argvdata/parallel-unix-chardev.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device isa-parallel,chardev=charparallel0,id=parallel0 \ -chardev socket,id=charparallel1,path=/tmp/parport1.socket \ -device isa-parallel,chardev=charparallel1,id=parallel1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/pcie-root-port-nohotplug.x86_64-latest.args b/tests/qemuxml2argvdata/pcie-root-port-nohotplug.x86_64-latest.args index 0c1932fbfc..2520181baa 100644 --- a/tests/qemuxml2argvdata/pcie-root-port-nohotplug.x86_64-latest.args +++ b/tests/qemuxml2argvdata/pcie-root-port-nohotplug.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -42,6 +41,7 @@ addr=0x1 \ -device xio3130-downstream,port=0x2,chassis=7,id=pci.7,bus=pci.4,addr=0x2 \ -device xio3130-downstream,port=0x27,chassis=30,id=pci.8,bus=pci.4,addr=0x3 \ -device qemu-xhci,id=usb,bus=pci.2,addr=0x0 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-2.7.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-2.7.ppc64-latest.args index a6ab61aa85..411b1eb905 100644 --- a/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-2.7.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-2.7.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=guest,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ memory-backend=ppc_spapr.ram \ id=virtio-disk0,bootindex=1 \ -chardev pty,id=charserial0 \ -device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-3.1.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-3.1.ppc64-latest.args index 164360d998..e6a178341b 100644 --- a/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-3.1.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-3.1.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=guest,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ memory-backend=ppc_spapr.ram \ id=virtio-disk0,bootindex=1 \ -chardev pty,id=charserial0 \ -device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-4.2.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-4.2.ppc64-latest.args index fa26e1843c..9b1cc29bb3 100644 --- a/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-4.2.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-default-cpu-kvm-pseries-4.2.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=guest,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ memory-backend=ppc_spapr.ram \ id=virtio-disk0,bootindex=1 \ -chardev pty,id=charserial0 \ -device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-2.7.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-2.7.ppc64-latest.args index 9d68d3c43d..2291a4f779 100644 --- a/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-2.7.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-2.7.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=guest,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ memory-backend=ppc_spapr.ram \ id=virtio-disk0,bootindex=1 \ -chardev pty,id=charserial0 \ -device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-3.1.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-3.1.ppc64-latest.args index a7d60b2bb5..9e027d1e7f 100644 --- a/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-3.1.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-3.1.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=guest,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ memory-backend=ppc_spapr.ram \ id=virtio-disk0,bootindex=1 \ -chardev pty,id=charserial0 \ -device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-4.2.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-4.2.ppc64-latest.args index a3e172776a..28f79aac66 100644 --- a/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-4.2.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-default-cpu-tcg-pseries-4.2.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=guest,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ memory-backend=ppc_spapr.ram \ id=virtio-disk0,bootindex=1 \ -chardev pty,id=charserial0 \ -device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/ppc64-pseries-graphics.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-pseries-graphics.ppc64-latest.args index cbb84645bf..63da20b4d7 100644 --- a/tests/qemuxml2argvdata/ppc64-pseries-graphics.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-pseries-graphics.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=guest,debug-threads=on \ -S \ @@ -45,7 +44,8 @@ addr=0x1 \ id=channel0,name=org.qemu.guest_agent.0 \ -device usb-tablet,id=input0,bus=usb.0,port=1 \ -device usb-kbd,id=input1,bus=usb.0,port=2 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device VGA,id=video0,vgamem_mb=16,bus=pci.0,addr=0x7 \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 \ -object rng-random,id=objrng0,filename=/dev/urandom \ diff --git a/tests/qemuxml2argvdata/ppc64-pseries-headless.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-pseries-headless.ppc64-latest.args index 7a07fc7c87..577d966e91 100644 --- a/tests/qemuxml2argvdata/ppc64-pseries-headless.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-pseries-headless.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=guest,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ addr=0x1 \ -chardev socket,id=charchannel0,fd=1729,server=on,wait=off \ -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,\ id=channel0,name=org.qemu.guest_agent.0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 \ -object rng-random,id=objrng0,filename=/dev/urandom \ -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x6 \ diff --git a/tests/qemuxml2argvdata/ppc64-tpmproxy-single.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-tpmproxy-single.ppc64-latest.args index c10d055f2f..3d18fc5174 100644 --- a/tests/qemuxml2argvdata/ppc64-tpmproxy-single.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-tpmproxy-single.ppc64-latest.args @@ -6,7 +6,6 @@ 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-ppc64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -30,6 +29,7 @@ memory-backend=ppc_spapr.ram \ -boot strict=on \ -device pci-ohci,id=usb,bus=pci.0,addr=0x1 \ -device spapr-tpm-proxy,id=tpm0,host-path=/dev/tpmrm0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/ppc64-tpmproxy-with-tpm.ppc64-latest.args b/tests/qemuxml2argvdata/ppc64-tpmproxy-with-tpm.ppc64-latest.args index 1d8027fbea..a02f30f999 100644 --- a/tests/qemuxml2argvdata/ppc64-tpmproxy-with-tpm.ppc64-latest.args +++ b/tests/qemuxml2argvdata/ppc64-tpmproxy-with-tpm.ppc64-latest.args @@ -6,7 +6,6 @@ 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-ppc64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ memory-backend=ppc_spapr.ram \ -tpmdev emulator,id=tpm-tpm1,chardev=chrtpm \ -chardev socket,id=chrtpm,path=/dev/test \ -device tpm-spapr,tpmdev=tpm-tpm1,id=tpm1,reg=0x00004000 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/pv-spinlock-disabled.x86_64-latest.args b/tests/qemuxml2argvdata/pv-spinlock-disabled.x86_64-latest.args index 67fc4f7a9a..69872a2de3 100644 --- a/tests/qemuxml2argvdata/pv-spinlock-disabled.x86_64-latest.args +++ b/tests/qemuxml2argvdata/pv-spinlock-disabled.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/pv-spinlock-enabled.x86_64-latest.args b/tests/qemuxml2argvdata/pv-spinlock-enabled.x86_64-latest.args index 1fb095efbc..3b27d13a57 100644 --- a/tests/qemuxml2argvdata/pv-spinlock-enabled.x86_64-latest.args +++ b/tests/qemuxml2argvdata/pv-spinlock-enabled.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-shutdown \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/qemu-ns.x86_64-latest.args b/tests/qemuxml2argvdata/qemu-ns.x86_64-latest.args index f666cecca0..52e3d50be7 100644 --- a/tests/qemuxml2argvdata/qemu-ns.x86_64-latest.args +++ b/tests/qemuxml2argvdata/qemu-ns.x86_64-latest.args @@ -6,7 +6,6 @@ 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 \ NS=ns \ BAR='' \ /usr/bin/qemu-system-i386 \ @@ -36,6 +35,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -unknown parameter \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ diff --git a/tests/qemuxml2argvdata/riscv64-virt-graphics.riscv64-latest.args b/tests/qemuxml2argvdata/riscv64-virt-graphics.riscv64-latest.args index e1e2b51fe9..e28785e804 100644 --- a/tests/qemuxml2argvdata/riscv64-virt-graphics.riscv64-latest.args +++ b/tests/qemuxml2argvdata/riscv64-virt-graphics.riscv64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-riscv64 \ -name guest=guest,debug-threads=on \ -S \ @@ -51,7 +50,8 @@ addr=0x0 \ id=channel0,name=org.qemu.guest_agent.0 \ -device usb-tablet,id=input0,bus=usb.0,port=1 \ -device usb-kbd,id=input1,bus=usb.0,port=2 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device virtio-gpu-pci,id=video0,max_outputs=1,bus=pci.7,addr=0x0 \ -device virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 \ -object rng-random,id=objrng0,filename=/dev/urandom \ diff --git a/tests/qemuxml2argvdata/riscv64-virt-headless.riscv64-latest.args b/tests/qemuxml2argvdata/riscv64-virt-headless.riscv64-latest.args index 78b4522ac2..accea2dc58 100644 --- a/tests/qemuxml2argvdata/riscv64-virt-headless.riscv64-latest.args +++ b/tests/qemuxml2argvdata/riscv64-virt-headless.riscv64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-riscv64 \ -name guest=guest,debug-threads=on \ -S \ @@ -49,6 +48,7 @@ addr=0x0 \ -chardev socket,id=charchannel0,fd=1729,server=on,wait=off \ -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,\ id=channel0,name=org.qemu.guest_agent.0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 \ -object rng-random,id=objrng0,filename=/dev/urandom \ -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.6,addr=0x0 \ diff --git a/tests/qemuxml2argvdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.args b/tests/qemuxml2argvdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.args index ad0a4142c5..f8b34f069c 100644 --- a/tests/qemuxml2argvdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.args +++ b/tests/qemuxml2argvdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-s390x \ -name guest=test,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ memory-backend=s390.ram \ -rtc base=utc \ -no-shutdown \ -boot strict=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0000 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/s390-default-cpu-kvm-ccw-virtio-4.2.s390x-latest.args b/tests/qemuxml2argvdata/s390-default-cpu-kvm-ccw-virtio-4.2.s390x-latest.args index 0ce16d7019..3ee6b79b5d 100644 --- a/tests/qemuxml2argvdata/s390-default-cpu-kvm-ccw-virtio-4.2.s390x-latest.args +++ b/tests/qemuxml2argvdata/s390-default-cpu-kvm-ccw-virtio-4.2.s390x-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-s390x \ -name guest=test,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ cmm=on \ -rtc base=utc \ -no-shutdown \ -boot strict=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0000 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/s390-default-cpu-tcg-ccw-virtio-2.7.s390x-latest.args b/tests/qemuxml2argvdata/s390-default-cpu-tcg-ccw-virtio-2.7.s390x-latest.args index 083a150d7b..eb2a24344b 100644 --- a/tests/qemuxml2argvdata/s390-default-cpu-tcg-ccw-virtio-2.7.s390x-latest.args +++ b/tests/qemuxml2argvdata/s390-default-cpu-tcg-ccw-virtio-2.7.s390x-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-s390x \ -name guest=test,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ memory-backend=s390.ram \ -rtc base=utc \ -no-shutdown \ -boot strict=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0000 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/s390-default-cpu-tcg-ccw-virtio-4.2.s390x-latest.args b/tests/qemuxml2argvdata/s390-default-cpu-tcg-ccw-virtio-4.2.s390x-latest.args index 7003070ece..4f00ffd7f2 100644 --- a/tests/qemuxml2argvdata/s390-default-cpu-tcg-ccw-virtio-4.2.s390x-latest.args +++ b/tests/qemuxml2argvdata/s390-default-cpu-tcg-ccw-virtio-4.2.s390x-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-s390x \ -name guest=test,debug-threads=on \ -S \ @@ -28,6 +27,7 @@ memory-backend=s390.ram \ -rtc base=utc \ -no-shutdown \ -boot strict=on \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0000 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/s390x-ccw-graphics.s390x-latest.args b/tests/qemuxml2argvdata/s390x-ccw-graphics.s390x-latest.args index 7f304b9f77..8e26b36cc0 100644 --- a/tests/qemuxml2argvdata/s390x-ccw-graphics.s390x-latest.args +++ b/tests/qemuxml2argvdata/s390x-ccw-graphics.s390x-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-s390x \ -name guest=guest,debug-threads=on \ -S \ @@ -44,7 +43,8 @@ id=channel0,name=org.qemu.guest_agent.0 \ -device sclpconsole,chardev=charconsole0,id=console0 \ -device virtio-tablet-ccw,id=input0,devno=fe.0.0004 \ -device virtio-keyboard-ccw,id=input1,devno=fe.0.0005 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device virtio-gpu-ccw,id=video0,max_outputs=1,devno=fe.0.0002 \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0006 \ -object rng-random,id=objrng0,filename=/dev/urandom \ diff --git a/tests/qemuxml2argvdata/s390x-ccw-headless.s390x-latest.args b/tests/qemuxml2argvdata/s390x-ccw-headless.s390x-latest.args index 630a290cab..6222c04277 100644 --- a/tests/qemuxml2argvdata/s390x-ccw-headless.s390x-latest.args +++ b/tests/qemuxml2argvdata/s390x-ccw-headless.s390x-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-s390x \ -name guest=guest,debug-threads=on \ -S \ @@ -43,6 +42,7 @@ devno=fe.0.0001 \ id=channel0,name=org.qemu.guest_agent.0 \ -chardev pty,id=charconsole0 \ -device sclpconsole,chardev=charconsole0,id=console0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0003 \ -object rng-random,id=objrng0,filename=/dev/urandom \ -device virtio-rng-ccw,rng=objrng0,id=rng0,devno=fe.0.0004 \ diff --git a/tests/qemuxml2argvdata/serial-unix-chardev.x86_64-latest.args b/tests/qemuxml2argvdata/serial-unix-chardev.x86_64-latest.args index de245de15e..d765c6a87f 100644 --- a/tests/qemuxml2argvdata/serial-unix-chardev.x86_64-latest.args +++ b/tests/qemuxml2argvdata/serial-unix-chardev.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device isa-serial,chardev=charserial0,id=serial0 \ -chardev socket,id=charserial1,fd=1729,server=on,wait=off \ -device isa-serial,chardev=charserial1,id=serial1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/smartcard-passthrough-unix.x86_64-latest.args b/tests/qemuxml2argvdata/smartcard-passthrough-unix.x86_64-latest.args index c1be164ada..9dae0d7245 100644 --- a/tests/qemuxml2argvdata/smartcard-passthrough-unix.x86_64-latest.args +++ b/tests/qemuxml2argvdata/smartcard-passthrough-unix.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -32,6 +31,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device usb-ccid,id=ccid0,bus=usb.0,port=1 \ -chardev socket,id=charsmartcard0,fd=1729,server=on,wait=off \ -device ccid-card-passthru,chardev=charsmartcard0,id=smartcard0,bus=ccid0.0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/tpm-emulator-spapr.ppc64-latest.args b/tests/qemuxml2argvdata/tpm-emulator-spapr.ppc64-latest.args index a5ccfbfbc6..8ff3166428 100644 --- a/tests/qemuxml2argvdata/tpm-emulator-spapr.ppc64-latest.args +++ b/tests/qemuxml2argvdata/tpm-emulator-spapr.ppc64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-TPM-VM/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-TPM-VM/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-TPM-VM/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-ppc64 \ -name guest=TPM-VM,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ device_id=drive-scsi1-0-0-0,drive=libvirt-1-format,id=scsi1-0-0-0,bootindex=1 \ -tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \ -chardev socket,id=chrtpm,path=/dev/test \ -device tpm-spapr,tpmdev=tpm-tpm0,id=tpm0,reg=0x00005000 \ +-audiodev id=audio1,driver=none \ -global spapr-nvram.reg=0x4000 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/tpm-emulator-tpm2-enc.x86_64-latest.args b/tests/qemuxml2argvdata/tpm-emulator-tpm2-enc.x86_64-latest.args index 01483a0095..a189c2cf9d 100644 --- a/tests/qemuxml2argvdata/tpm-emulator-tpm2-enc.x86_64-latest.args +++ b/tests/qemuxml2argvdata/tpm-emulator-tpm2-enc.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-TPM-VM/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-TPM-VM/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-TPM-VM/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=TPM-VM,debug-threads=on \ -S \ @@ -32,6 +31,7 @@ memory-backend=pc.ram \ -tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \ -chardev socket,id=chrtpm,path=/dev/test \ -device tpm-tis,tpmdev=tpm-tpm0,id=tpm0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/tpm-emulator-tpm2-pstate.x86_64-latest.args b/tests/qemuxml2argvdata/tpm-emulator-tpm2-pstate.x86_64-latest.args index 01483a0095..a189c2cf9d 100644 --- a/tests/qemuxml2argvdata/tpm-emulator-tpm2-pstate.x86_64-latest.args +++ b/tests/qemuxml2argvdata/tpm-emulator-tpm2-pstate.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-TPM-VM/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-TPM-VM/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-TPM-VM/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=TPM-VM,debug-threads=on \ -S \ @@ -32,6 +31,7 @@ memory-backend=pc.ram \ -tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \ -chardev socket,id=chrtpm,path=/dev/test \ -device tpm-tis,tpmdev=tpm-tpm0,id=tpm0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/tpm-emulator-tpm2.x86_64-latest.args b/tests/qemuxml2argvdata/tpm-emulator-tpm2.x86_64-latest.args index 01483a0095..a189c2cf9d 100644 --- a/tests/qemuxml2argvdata/tpm-emulator-tpm2.x86_64-latest.args +++ b/tests/qemuxml2argvdata/tpm-emulator-tpm2.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-TPM-VM/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-TPM-VM/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-TPM-VM/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=TPM-VM,debug-threads=on \ -S \ @@ -32,6 +31,7 @@ memory-backend=pc.ram \ -tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \ -chardev socket,id=chrtpm,path=/dev/test \ -device tpm-tis,tpmdev=tpm-tpm0,id=tpm0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/tpm-emulator.x86_64-latest.args b/tests/qemuxml2argvdata/tpm-emulator.x86_64-latest.args index 01483a0095..a189c2cf9d 100644 --- a/tests/qemuxml2argvdata/tpm-emulator.x86_64-latest.args +++ b/tests/qemuxml2argvdata/tpm-emulator.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-TPM-VM/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-TPM-VM/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-TPM-VM/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=TPM-VM,debug-threads=on \ -S \ @@ -32,6 +31,7 @@ memory-backend=pc.ram \ -tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \ -chardev socket,id=chrtpm,path=/dev/test \ -device tpm-tis,tpmdev=tpm-tpm0,id=tpm0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/tpm-passthrough-crb.x86_64-latest.args b/tests/qemuxml2argvdata/tpm-passthrough-crb.x86_64-latest.args index 315c048fc6..05951fa926 100644 --- a/tests/qemuxml2argvdata/tpm-passthrough-crb.x86_64-latest.args +++ b/tests/qemuxml2argvdata/tpm-passthrough-crb.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-TPM-VM/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-TPM-VM/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-TPM-VM/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=TPM-VM,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ memory-backend=pc.ram \ -add-fd set=0,fd=1730 \ -add-fd set=1,fd=1731 \ -device tpm-crb,tpmdev=tpm-tpm0,id=tpm0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/tpm-passthrough.x86_64-latest.args b/tests/qemuxml2argvdata/tpm-passthrough.x86_64-latest.args index 6c408cd565..067a30533c 100644 --- a/tests/qemuxml2argvdata/tpm-passthrough.x86_64-latest.args +++ b/tests/qemuxml2argvdata/tpm-passthrough.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-TPM-VM/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-TPM-VM/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-TPM-VM/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=TPM-VM,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ memory-backend=pc.ram \ -add-fd set=0,fd=1730 \ -add-fd set=1,fd=1731 \ -device tpm-tis,tpmdev=tpm-tpm0,id=tpm0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/tseg-explicit-size.x86_64-latest.args b/tests/qemuxml2argvdata/tseg-explicit-size.x86_64-latest.args index 83c5e1e506..f89a6a3842 100644 --- a/tests/qemuxml2argvdata/tseg-explicit-size.x86_64-latest.args +++ b/tests/qemuxml2argvdata/tseg-explicit-size.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ addr=0x1 \ -device pcie-root-port,port=0x9,chassis=2,id=pci.2,bus=pcie.0,addr=0x1.0x1 \ -device pcie-root-port,port=0xa,chassis=3,id=pci.3,bus=pcie.0,addr=0x1.0x2 \ -device qemu-xhci,id=usb,bus=pci.1,addr=0x0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.2,addr=0x0 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/usb-redir-unix.x86_64-latest.args b/tests/qemuxml2argvdata/usb-redir-unix.x86_64-latest.args index 9d46dba182..0bcba66dce 100644 --- a/tests/qemuxml2argvdata/usb-redir-unix.x86_64-latest.args +++ b/tests/qemuxml2argvdata/usb-redir-unix.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ addr=0x4 \ -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x4.0x1 \ -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x4.0x2 \ +-audiodev id=audio1,driver=none \ -chardev socket,id=charredir0,path=/tmp/connect.socket \ -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=1 \ -chardev socket,id=charredir1,fd=1729,server=on,wait=off \ diff --git a/tests/qemuxml2argvdata/vhost-user-fs-fd-memory.x86_64-latest.args b/tests/qemuxml2argvdata/vhost-user-fs-fd-memory.x86_64-latest.args index 3ff0d5a96b..f3f9430ccc 100644 --- a/tests/qemuxml2argvdata/vhost-user-fs-fd-memory.x86_64-latest.args +++ b/tests/qemuxml2argvdata/vhost-user-fs-fd-memory.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -34,6 +33,7 @@ size=15032385536 \ -chardev socket,id=chr-vu-fs0,path=/tmp/lib/domain--1-guest/fs0.vhost-fs.sock \ -device vhost-user-fs-pci,chardev=chr-vu-fs0,queue-size=1024,tag=mount_tag,\ bus=pci.0,addr=0x2 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args b/tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args index 77d712c378..bbeede7179 100644 --- a/tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args +++ b/tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -44,6 +43,7 @@ id=virtio-disk0,bootindex=1 \ -chardev socket,id=chr-vu-fs0,path=/tmp/lib/domain--1-guest/fs0.vhost-fs.sock \ -device vhost-user-fs-pci,chardev=chr-vu-fs0,tag=mount_tag,bootindex=2,\ bus=pci.1,addr=0x0 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/vhost-user-gpu-secondary.x86_64-latest.args b/tests/qemuxml2argvdata/vhost-user-gpu-secondary.x86_64-latest.args index 2fe44aae49..4373fc5b8c 100644 --- a/tests/qemuxml2argvdata/vhost-user-gpu-secondary.x86_64-latest.args +++ b/tests/qemuxml2argvdata/vhost-user-gpu-secondary.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -chardev socket,id=chr-vu-video0,fd=1729 \ -chardev socket,id=chr-vu-video1,fd=1729 \ -device vhost-user-vga,id=video0,max_outputs=1,chardev=chr-vu-video0,bus=pci.0,\ diff --git a/tests/qemuxml2argvdata/vhost-user-vga.x86_64-latest.args b/tests/qemuxml2argvdata/vhost-user-vga.x86_64-latest.args index 9911c345c1..a41aa3c8a6 100644 --- a/tests/qemuxml2argvdata/vhost-user-vga.x86_64-latest.args +++ b/tests/qemuxml2argvdata/vhost-user-vga.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -chardev socket,id=chr-vu-video0,fd=1729 \ -device vhost-user-vga,id=video0,max_outputs=1,chardev=chr-vu-video0,bus=pci.0,\ addr=0x2 \ diff --git a/tests/qemuxml2argvdata/vhost-vsock-auto.x86_64-latest.args b/tests/qemuxml2argvdata/vhost-vsock-auto.x86_64-latest.args index bf0cf593fd..8b33ac6f1c 100644 --- a/tests/qemuxml2argvdata/vhost-vsock-auto.x86_64-latest.args +++ b/tests/qemuxml2argvdata/vhost-vsock-auto.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=test,debug-threads=on \ -S \ @@ -31,6 +30,7 @@ memory-backend=pc.ram \ -boot menu=on,strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -device vhost-vsock-pci,id=vsock0,guest-cid=42,vhostfd=6789,bus=pci.0,addr=0x2 \ diff --git a/tests/qemuxml2argvdata/vhost-vsock-ccw-auto.s390x-latest.args b/tests/qemuxml2argvdata/vhost-vsock-ccw-auto.s390x-latest.args index da6a071c13..bf0d783691 100644 --- a/tests/qemuxml2argvdata/vhost-vsock-ccw-auto.s390x-latest.args +++ b/tests/qemuxml2argvdata/vhost-vsock-ccw-auto.s390x-latest.args @@ -6,7 +6,6 @@ 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-s390x \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -34,6 +33,7 @@ memory-backend=s390.ram \ "file":"libvirt-1-storage"}' \ -device virtio-blk-ccw,devno=fe.0.0000,drive=libvirt-1-format,id=virtio-disk0,\ bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0001 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/vhost-vsock-ccw-iommu.s390x-latest.args b/tests/qemuxml2argvdata/vhost-vsock-ccw-iommu.s390x-latest.args index e147b5d431..2c63d51515 100644 --- a/tests/qemuxml2argvdata/vhost-vsock-ccw-iommu.s390x-latest.args +++ b/tests/qemuxml2argvdata/vhost-vsock-ccw-iommu.s390x-latest.args @@ -6,7 +6,6 @@ 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-s390x \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -34,6 +33,7 @@ memory-backend=s390.ram \ "file":"libvirt-1-storage"}' \ -device virtio-blk-ccw,devno=fe.0.0000,drive=libvirt-1-format,id=virtio-disk0,\ bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0001 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/vhost-vsock-ccw.s390x-latest.args b/tests/qemuxml2argvdata/vhost-vsock-ccw.s390x-latest.args index 6749612d45..f42b83ab76 100644 --- a/tests/qemuxml2argvdata/vhost-vsock-ccw.s390x-latest.args +++ b/tests/qemuxml2argvdata/vhost-vsock-ccw.s390x-latest.args @@ -6,7 +6,6 @@ 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-s390x \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -34,6 +33,7 @@ memory-backend=s390.ram \ "file":"libvirt-1-storage"}' \ -device virtio-blk-ccw,devno=fe.0.0000,drive=libvirt-1-format,id=virtio-disk0,\ bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-ccw,id=balloon0,devno=fe.0.0001 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/vhost-vsock.x86_64-latest.args b/tests/qemuxml2argvdata/vhost-vsock.x86_64-latest.args index b1b481d2ea..7eec5434e3 100644 --- a/tests/qemuxml2argvdata/vhost-vsock.x86_64-latest.args +++ b/tests/qemuxml2argvdata/vhost-vsock.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-test/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-test/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-test/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=test,debug-threads=on \ -S \ @@ -30,6 +29,7 @@ file=/tmp/lib/domain--1-test/master-key.aes \ -boot menu=on,strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 \ +-audiodev id=audio1,driver=none \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -device vhost-vsock-pci,id=vsock0,guest-cid=4,vhostfd=6789,bus=pci.0,addr=0x7 \ diff --git a/tests/qemuxml2argvdata/video-bochs-display-device.x86_64-latest.args b/tests/qemuxml2argvdata/video-bochs-display-device.x86_64-latest.args index 2f5a930e5b..e105519d9a 100644 --- a/tests/qemuxml2argvdata/video-bochs-display-device.x86_64-latest.args +++ b/tests/qemuxml2argvdata/video-bochs-display-device.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1,\ write-cache=on \ +-audiodev id=audio1,driver=none \ -device bochs-display,id=video0,vgamem=16384k,bus=pci.0,addr=0x2 \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ diff --git a/tests/qemuxml2argvdata/video-qxl-device-vram64.x86_64-latest.args b/tests/qemuxml2argvdata/video-qxl-device-vram64.x86_64-latest.args index 9f4dc02eda..ae079ed165 100644 --- a/tests/qemuxml2argvdata/video-qxl-device-vram64.x86_64-latest.args +++ b/tests/qemuxml2argvdata/video-qxl-device-vram64.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,\ vram64_size_mb=128,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ diff --git a/tests/qemuxml2argvdata/video-qxl-sec-device-vram64.x86_64-latest.args b/tests/qemuxml2argvdata/video-qxl-sec-device-vram64.x86_64-latest.args index fb94af72fe..9b5c8b5006 100644 --- a/tests/qemuxml2argvdata/video-qxl-sec-device-vram64.x86_64-latest.args +++ b/tests/qemuxml2argvdata/video-qxl-sec-device-vram64.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,\ vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 \ -device qxl,id=video1,ram_size=67108864,vram_size=67108864,vram64_size_mb=128,\ diff --git a/tests/qemuxml2argvdata/video-ramfb-display-device.x86_64-latest.args b/tests/qemuxml2argvdata/video-ramfb-display-device.x86_64-latest.args index 9b65c937e1..1c823f00c0 100644 --- a/tests/qemuxml2argvdata/video-ramfb-display-device.x86_64-latest.args +++ b/tests/qemuxml2argvdata/video-ramfb-display-device.x86_64-latest.args @@ -6,7 +6,6 @@ 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 guest=QEMUGuest1,debug-threads=on \ -S \ @@ -37,6 +36,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ "file":"libvirt-1-storage"}' \ -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1,\ write-cache=on \ +-audiodev id=audio1,driver=none \ -device ramfb,id=video0 \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ diff --git a/tests/qemuxml2argvdata/virtio-9p-createmode.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-9p-createmode.x86_64-latest.args index 9f2ae2a61f..f03cffabb1 100644 --- a/tests/qemuxml2argvdata/virtio-9p-createmode.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-9p-createmode.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -40,6 +39,7 @@ path=/export/fs2 \ -device virtio-9p-pci,id=fs3,fsdev=fsdev-fs3,mount_tag=fs3,bus=pci.0,addr=0x5 \ -chardev pty,id=charserial0 \ -device isa-serial,chardev=charserial0,id=serial0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0xc \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-9p-multidevs.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-9p-multidevs.x86_64-latest.args index 2c49d3e500..abf641c5e8 100644 --- a/tests/qemuxml2argvdata/virtio-9p-multidevs.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-9p-multidevs.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -40,6 +39,7 @@ path=/export/fs2 \ -device virtio-9p-pci,id=fs2,fsdev=fsdev-fs2,mount_tag=fs2,bus=pci.0,addr=0x4 \ -chardev pty,id=charserial0 \ -device isa-serial,chardev=charserial0,id=serial0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0xc \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-non-transitional.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-non-transitional.x86_64-latest.args index 44de382429..777510ecab 100644 --- a/tests/qemuxml2argvdata/virtio-non-transitional.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-non-transitional.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -58,6 +57,7 @@ bus=pci.1,addr=0x0 \ mac=00:11:22:33:44:55,bus=pci.2,addr=0x0 \ -device virtio-input-host-pci-non-transitional,id=input0,\ evdev=/dev/input/event1234,bus=pci.9,addr=0x0 \ +-audiodev id=audio1,driver=none \ -device vhost-scsi-pci-non-transitional,wwpn=naa.5123456789abcde0,vhostfd=3,\ id=hostdev0,bus=pci.6,addr=0x0 \ -device virtio-balloon-pci-non-transitional,id=balloon0,bus=pci.7,addr=0x0 \ diff --git a/tests/qemuxml2argvdata/virtio-options-controller-ats.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-controller-ats.x86_64-latest.args index 48f051f183..1dbf702002 100644 --- a/tests/qemuxml2argvdata/virtio-options-controller-ats.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-controller-ats.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device virtio-scsi-pci,ats=off,id=scsi1,bus=pci.0,addr=0x3 \ -device virtio-serial-pci,id=virtio-serial0,ats=on,bus=pci.0,addr=0x4 \ -device virtio-serial-pci,id=virtio-serial1,ats=off,bus=pci.0,addr=0x5 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-controller-iommu.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-controller-iommu.x86_64-latest.args index c9dfb66901..5fba8a78b0 100644 --- a/tests/qemuxml2argvdata/virtio-options-controller-iommu.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-controller-iommu.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ addr=0x4 \ -device virtio-serial-pci,id=virtio-serial1,iommu_platform=off,bus=pci.0,\ addr=0x5 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-controller-packed.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-controller-packed.x86_64-latest.args index 9cd3b7fd77..15ec94eff3 100644 --- a/tests/qemuxml2argvdata/virtio-options-controller-packed.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-controller-packed.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -33,6 +32,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device virtio-scsi-pci,packed=off,id=scsi1,bus=pci.0,addr=0x3 \ -device virtio-serial-pci,id=virtio-serial0,packed=on,bus=pci.0,addr=0x4 \ -device virtio-serial-pci,id=virtio-serial1,packed=off,bus=pci.0,addr=0x5 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-disk-ats.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-disk-ats.x86_64-latest.args index 366e2f59ac..0c371f7b0c 100644 --- a/tests/qemuxml2argvdata/virtio-options-disk-ats.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-disk-ats.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -41,6 +40,7 @@ id=virtio-disk0,bootindex=1 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,ats=off,bus=pci.0,addr=0x3,drive=libvirt-1-format,\ id=virtio-disk1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-disk-iommu.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-disk-iommu.x86_64-latest.args index e7b292f2f0..32bac8770f 100644 --- a/tests/qemuxml2argvdata/virtio-options-disk-iommu.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-disk-iommu.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -41,6 +40,7 @@ drive=libvirt-2-format,id=virtio-disk0,bootindex=1 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,iommu_platform=off,bus=pci.0,addr=0x3,\ drive=libvirt-1-format,id=virtio-disk1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-disk-packed.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-disk-packed.x86_64-latest.args index 16d28de2c2..a3cfd97fee 100644 --- a/tests/qemuxml2argvdata/virtio-options-disk-packed.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-disk-packed.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -41,6 +40,7 @@ id=virtio-disk0,bootindex=1 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,packed=off,bus=pci.0,addr=0x3,drive=libvirt-1-format,\ id=virtio-disk1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-fs-ats.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-fs-ats.x86_64-latest.args index 3791182b50..9ccb5e884c 100644 --- a/tests/qemuxml2argvdata/virtio-options-fs-ats.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-fs-ats.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ addr=0x2 \ -fsdev local,security_model=passthrough,id=fsdev-fs1,path=/export/fs2 \ -device virtio-9p-pci,id=fs1,fsdev=fsdev-fs1,mount_tag=fs2,ats=off,bus=pci.0,\ addr=0x3 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-fs-iommu.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-fs-iommu.x86_64-latest.args index e3e0cf657d..ccd9489472 100644 --- a/tests/qemuxml2argvdata/virtio-options-fs-iommu.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-fs-iommu.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ bus=pci.0,addr=0x2 \ -fsdev local,security_model=passthrough,id=fsdev-fs1,path=/export/fs2 \ -device virtio-9p-pci,id=fs1,fsdev=fsdev-fs1,mount_tag=fs2,iommu_platform=off,\ bus=pci.0,addr=0x3 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-fs-packed.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-fs-packed.x86_64-latest.args index 6f49b433ed..7c61a305f3 100644 --- a/tests/qemuxml2argvdata/virtio-options-fs-packed.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-fs-packed.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ addr=0x2 \ -fsdev local,security_model=passthrough,id=fsdev-fs1,path=/export/fs2 \ -device virtio-9p-pci,id=fs1,fsdev=fsdev-fs1,mount_tag=fs2,packed=off,\ bus=pci.0,addr=0x3 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-input-ats.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-input-ats.x86_64-latest.args index 66b0bf1231..783aa50214 100644 --- a/tests/qemuxml2argvdata/virtio-options-input-ats.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-input-ats.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -31,6 +30,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ -device virtio-mouse-pci,id=input0,bus=pci.0,addr=0x2,ats=on \ -device virtio-keyboard-pci,id=input1,bus=pci.0,addr=0x3,ats=off \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-input-iommu.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-input-iommu.x86_64-latest.args index dbc2defa4b..ff54f2da46 100644 --- a/tests/qemuxml2argvdata/virtio-options-input-iommu.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-input-iommu.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -31,6 +30,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ -device virtio-mouse-pci,id=input0,bus=pci.0,addr=0x2,iommu_platform=on \ -device virtio-keyboard-pci,id=input1,bus=pci.0,addr=0x3,iommu_platform=off \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-input-packed.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-input-packed.x86_64-latest.args index c1fec4a3d1..2e5e5cbd3e 100644 --- a/tests/qemuxml2argvdata/virtio-options-input-packed.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-input-packed.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -31,6 +30,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ -device virtio-mouse-pci,id=input0,bus=pci.0,addr=0x2,packed=on \ -device virtio-keyboard-pci,id=input1,bus=pci.0,addr=0x3,packed=off \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-memballoon-ats.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-memballoon-ats.x86_64-latest.args index 2d48ede137..2ffc5107cf 100644 --- a/tests/qemuxml2argvdata/virtio-options-memballoon-ats.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-memballoon-ats.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2,ats=on \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-memballoon-freepage-reporting.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-memballoon-freepage-reporting.x86_64-latest.args index bd713c29ff..4450253e6a 100644 --- a/tests/qemuxml2argvdata/virtio-options-memballoon-freepage-reporting.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-memballoon-freepage-reporting.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2,\ free-page-reporting=on \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ diff --git a/tests/qemuxml2argvdata/virtio-options-memballoon-iommu.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-memballoon-iommu.x86_64-latest.args index 476b33b272..d55434acaf 100644 --- a/tests/qemuxml2argvdata/virtio-options-memballoon-iommu.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-memballoon-iommu.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2,iommu_platform=on \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-memballoon-packed.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-memballoon-packed.x86_64-latest.args index 66ed130537..48b106c37f 100644 --- a/tests/qemuxml2argvdata/virtio-options-memballoon-packed.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-memballoon-packed.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2,packed=on \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-net-ats.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-net-ats.x86_64-latest.args index 8298a477de..43dce55da7 100644 --- a/tests/qemuxml2argvdata/virtio-options-net-ats.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-net-ats.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ addr=0x2,ats=on \ -netdev user,id=hostnet1 \ -device virtio-net-pci,netdev=hostnet1,id=net1,mac=62:64:66:68:6a:6c,bus=pci.0,\ addr=0x3,ats=off \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-net-iommu.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-net-iommu.x86_64-latest.args index 7f378a21cd..bdb6c49ef4 100644 --- a/tests/qemuxml2argvdata/virtio-options-net-iommu.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-net-iommu.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ addr=0x2,iommu_platform=on \ -netdev user,id=hostnet1 \ -device virtio-net-pci,netdev=hostnet1,id=net1,mac=62:64:66:68:6a:6c,bus=pci.0,\ addr=0x3,iommu_platform=off \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-net-packed.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-net-packed.x86_64-latest.args index c2a5dca12d..23f9163e32 100644 --- a/tests/qemuxml2argvdata/virtio-options-net-packed.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-net-packed.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ addr=0x2,packed=on \ -netdev user,id=hostnet1 \ -device virtio-net-pci,netdev=hostnet1,id=net1,mac=62:64:66:68:6a:6c,bus=pci.0,\ addr=0x3,packed=off \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/virtio-options-rng-ats.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-rng-ats.x86_64-latest.args index a40f52ea3a..18efdb250e 100644 --- a/tests/qemuxml2argvdata/virtio-options-rng-ats.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-rng-ats.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -object rng-random,id=objrng0,filename=/dev/random \ -device virtio-rng-pci,rng=objrng0,id=rng0,ats=on,bus=pci.0,addr=0x2 \ diff --git a/tests/qemuxml2argvdata/virtio-options-rng-iommu.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-rng-iommu.x86_64-latest.args index efbaebe2b0..d8b966af5a 100644 --- a/tests/qemuxml2argvdata/virtio-options-rng-iommu.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-rng-iommu.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -object rng-random,id=objrng0,filename=/dev/random \ -device virtio-rng-pci,rng=objrng0,id=rng0,iommu_platform=on,bus=pci.0,\ diff --git a/tests/qemuxml2argvdata/virtio-options-rng-packed.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-rng-packed.x86_64-latest.args index 840be88d02..7bcb719cb3 100644 --- a/tests/qemuxml2argvdata/virtio-options-rng-packed.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-rng-packed.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \ -object rng-random,id=objrng0,filename=/dev/random \ -device virtio-rng-pci,rng=objrng0,id=rng0,packed=on,bus=pci.0,addr=0x2 \ diff --git a/tests/qemuxml2argvdata/virtio-options-video-ats.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-video-ats.x86_64-latest.args index 7bbe249f17..b9cd581ac0 100644 --- a/tests/qemuxml2argvdata/virtio-options-video-ats.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-video-ats.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -chardev socket,id=chr-vu-video0,fd=1729 \ -chardev socket,id=chr-vu-video1,fd=1729 \ -device vhost-user-vga,id=video0,max_outputs=1,chardev=chr-vu-video0,bus=pci.0,\ diff --git a/tests/qemuxml2argvdata/virtio-options-video-iommu.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-video-iommu.x86_64-latest.args index f8c52354ba..699d1354a0 100644 --- a/tests/qemuxml2argvdata/virtio-options-video-iommu.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-video-iommu.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -chardev socket,id=chr-vu-video0,fd=1729 \ -chardev socket,id=chr-vu-video1,fd=1729 \ -device vhost-user-vga,id=video0,max_outputs=1,chardev=chr-vu-video0,bus=pci.0,\ diff --git a/tests/qemuxml2argvdata/virtio-options-video-packed.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options-video-packed.x86_64-latest.args index 0676d800ba..ec71765298 100644 --- a/tests/qemuxml2argvdata/virtio-options-video-packed.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options-video-packed.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -chardev socket,id=chr-vu-video0,fd=1729 \ -chardev socket,id=chr-vu-video1,fd=1729 \ -device vhost-user-vga,id=video0,max_outputs=1,chardev=chr-vu-video0,bus=pci.0,\ diff --git a/tests/qemuxml2argvdata/virtio-options.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-options.x86_64-latest.args index de5de8e720..d9fa992461 100644 --- a/tests/qemuxml2argvdata/virtio-options.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-options.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -57,6 +56,7 @@ ats=on,packed=on \ ats=on,packed=on \ -device virtio-input-host-pci,id=input3,evdev=/dev/input/event1234,bus=pci.0,\ addr=0x12,iommu_platform=on,ats=on,packed=on \ +-audiodev id=audio1,driver=none \ -chardev socket,id=chr-vu-video0,fd=1729 \ -device vhost-user-vga,id=video0,max_outputs=1,chardev=chr-vu-video0,bus=pci.0,\ addr=0x2,iommu_platform=on,ats=on,packed=on \ diff --git a/tests/qemuxml2argvdata/virtio-rng-builtin.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-rng-builtin.x86_64-latest.args index df67b610f8..66298ca0b2 100644 --- a/tests/qemuxml2argvdata/virtio-rng-builtin.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-rng-builtin.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -object rng-builtin,id=objrng0 \ -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x3 \ diff --git a/tests/qemuxml2argvdata/virtio-rng-egd-unix.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-rng-egd-unix.x86_64-latest.args index ee094c36fb..88d1e123bc 100644 --- a/tests/qemuxml2argvdata/virtio-rng-egd-unix.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-rng-egd-unix.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -29,6 +28,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -no-acpi \ -boot strict=on \ -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ -chardev socket,id=charrng0,fd=1729,server=on,wait=off \ -object rng-egd,id=objrng0,chardev=charrng0 \ diff --git a/tests/qemuxml2argvdata/virtio-transitional.x86_64-latest.args b/tests/qemuxml2argvdata/virtio-transitional.x86_64-latest.args index 9d1f634b92..6a7d9a8ef5 100644 --- a/tests/qemuxml2argvdata/virtio-transitional.x86_64-latest.args +++ b/tests/qemuxml2argvdata/virtio-transitional.x86_64-latest.args @@ -6,7 +6,6 @@ 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-x86_64 \ -name guest=QEMUGuest1,debug-threads=on \ -S \ @@ -48,6 +47,7 @@ bus=pci.2,addr=0x1 \ mac=00:11:22:33:44:55,bus=pci.2,addr=0x2 \ -device virtio-input-host-pci-transitional,id=input0,\ evdev=/dev/input/event1234,bus=pci.2,addr=0x9 \ +-audiodev id=audio1,driver=none \ -device vhost-scsi-pci-transitional,wwpn=naa.5123456789abcde0,vhostfd=3,\ id=hostdev0,bus=pci.2,addr=0x6 \ -device virtio-balloon-pci-transitional,id=balloon0,bus=pci.2,addr=0x7 \ diff --git a/tests/qemuxml2argvdata/x86_64-default-cpu-kvm-pc-4.2.x86_64-latest.args b/tests/qemuxml2argvdata/x86_64-default-cpu-kvm-pc-4.2.x86_64-latest.args index 58d0f11ccb..ae0f89d6ed 100644 --- a/tests/qemuxml2argvdata/x86_64-default-cpu-kvm-pc-4.2.x86_64-latest.args +++ b/tests/qemuxml2argvdata/x86_64-default-cpu-kvm-pc-4.2.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ memory-backend=pc.ram \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x2,drive=libvirt-1-format,\ id=virtio-disk0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/x86_64-default-cpu-kvm-q35-4.2.x86_64-latest.args b/tests/qemuxml2argvdata/x86_64-default-cpu-kvm-q35-4.2.x86_64-latest.args index 1f278d38dd..3b6a8a5df5 100644 --- a/tests/qemuxml2argvdata/x86_64-default-cpu-kvm-q35-4.2.x86_64-latest.args +++ b/tests/qemuxml2argvdata/x86_64-default-cpu-kvm-q35-4.2.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -40,6 +39,7 @@ addr=0x1 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.2,addr=0x0,drive=libvirt-1-format,\ id=virtio-disk0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.3,addr=0x0 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/x86_64-default-cpu-tcg-pc-4.2.x86_64-latest.args b/tests/qemuxml2argvdata/x86_64-default-cpu-tcg-pc-4.2.x86_64-latest.args index 236cb8b6ea..0be576a712 100644 --- a/tests/qemuxml2argvdata/x86_64-default-cpu-tcg-pc-4.2.x86_64-latest.args +++ b/tests/qemuxml2argvdata/x86_64-default-cpu-tcg-pc-4.2.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -35,6 +34,7 @@ memory-backend=pc.ram \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.0,addr=0x2,drive=libvirt-1-format,\ id=virtio-disk0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/x86_64-default-cpu-tcg-q35-4.2.x86_64-latest.args b/tests/qemuxml2argvdata/x86_64-default-cpu-tcg-q35-4.2.x86_64-latest.args index 2837149c6a..0d050a480c 100644 --- a/tests/qemuxml2argvdata/x86_64-default-cpu-tcg-q35-4.2.x86_64-latest.args +++ b/tests/qemuxml2argvdata/x86_64-default-cpu-tcg-q35-4.2.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -40,6 +39,7 @@ addr=0x1 \ "file":"libvirt-1-storage"}' \ -device virtio-blk-pci,bus=pci.2,addr=0x0,drive=libvirt-1-format,\ id=virtio-disk0,bootindex=1 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.3,addr=0x0 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ diff --git a/tests/qemuxml2argvdata/x86_64-pc-graphics.x86_64-latest.args b/tests/qemuxml2argvdata/x86_64-pc-graphics.x86_64-latest.args index 5d5df0c3de..17b778118e 100644 --- a/tests/qemuxml2argvdata/x86_64-pc-graphics.x86_64-latest.args +++ b/tests/qemuxml2argvdata/x86_64-pc-graphics.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -47,7 +46,8 @@ addr=0x3 \ -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,\ id=channel0,name=org.qemu.guest_agent.0 \ -device usb-tablet,id=input0,bus=usb.0,port=1 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,\ vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 \ diff --git a/tests/qemuxml2argvdata/x86_64-pc-headless.x86_64-latest.args b/tests/qemuxml2argvdata/x86_64-pc-headless.x86_64-latest.args index 38635c62cd..74376d5a78 100644 --- a/tests/qemuxml2argvdata/x86_64-pc-headless.x86_64-latest.args +++ b/tests/qemuxml2argvdata/x86_64-pc-headless.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -47,6 +46,7 @@ addr=0x2 \ -chardev socket,id=charchannel0,fd=1729,server=on,wait=off \ -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,\ id=channel0,name=org.qemu.guest_agent.0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \ -object rng-random,id=objrng0,filename=/dev/urandom \ -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x7 \ diff --git a/tests/qemuxml2argvdata/x86_64-q35-graphics.x86_64-latest.args b/tests/qemuxml2argvdata/x86_64-q35-graphics.x86_64-latest.args index f6c7fe3394..c4b24899a1 100644 --- a/tests/qemuxml2argvdata/x86_64-q35-graphics.x86_64-latest.args +++ b/tests/qemuxml2argvdata/x86_64-q35-graphics.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -55,7 +54,8 @@ addr=0x0 \ -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,\ id=channel0,name=org.qemu.guest_agent.0 \ -device usb-tablet,id=input0,bus=usb.0,port=1 \ --vnc 127.0.0.1:0 \ +-audiodev id=audio1,driver=none \ +-vnc 127.0.0.1:0,audiodev=audio1 \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,\ vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pcie.0,addr=0x1 \ -device virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 \ diff --git a/tests/qemuxml2argvdata/x86_64-q35-headless.x86_64-latest.args b/tests/qemuxml2argvdata/x86_64-q35-headless.x86_64-latest.args index 30673d8fa7..c3d379c984 100644 --- a/tests/qemuxml2argvdata/x86_64-q35-headless.x86_64-latest.args +++ b/tests/qemuxml2argvdata/x86_64-q35-headless.x86_64-latest.args @@ -6,7 +6,6 @@ LOGNAME=test \ XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \ XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \ XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \ -QEMU_AUDIO_DRV=none \ /usr/bin/qemu-system-x86_64 \ -name guest=guest,debug-threads=on \ -S \ @@ -55,6 +54,7 @@ addr=0x0 \ -chardev socket,id=charchannel0,fd=1729,server=on,wait=off \ -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,\ id=channel0,name=org.qemu.guest_agent.0 \ +-audiodev id=audio1,driver=none \ -device virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 \ -object rng-random,id=objrng0,filename=/dev/urandom \ -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.6,addr=0x0 \ diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 2527bfd012..883f840c1a 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1054,31 +1054,49 @@ mymain(void) DO_TEST("audio-spice-minimal", NONE); DO_TEST("audio-file-minimal", NONE); + DO_TEST_CAPS_LATEST("audio-none-minimal"); + DO_TEST_CAPS_LATEST("audio-alsa-minimal"); + DO_TEST_CAPS_LATEST("audio-coreaudio-minimal"); + DO_TEST_CAPS_LATEST("audio-jack-minimal"); + DO_TEST_CAPS_LATEST("audio-oss-minimal"); + DO_TEST_CAPS_LATEST("audio-pulseaudio-minimal"); + DO_TEST_CAPS_LATEST("audio-sdl-minimal"); + DO_TEST_CAPS_LATEST("audio-spice-minimal"); + DO_TEST_CAPS_LATEST("audio-file-minimal"); + /* Best <audio> still compat with old ENV */ DO_TEST("audio-oss-best", NONE); DO_TEST("audio-sdl-best", NONE); + DO_TEST_CAPS_LATEST("audio-oss-best"); + DO_TEST_CAPS_LATEST("audio-sdl-best"); + /* Multiple backends not supported with ENV */ DO_TEST_PARSE_ERROR("audio-many-backends", NONE); + DO_TEST_CAPS_LATEST("audio-many-backends"); /* Validate auto-creation of <audio> for legacy compat */ g_setenv("QEMU_AUDIO_DRV", "sdl", TRUE); g_setenv("SDL_AUDIODRIVER", "esd", TRUE); DO_TEST("audio-default-sdl", QEMU_CAPS_DEVICE_CIRRUS_VGA); + DO_TEST_CAPS_LATEST("audio-default-sdl"); g_unsetenv("QEMU_AUDIO_DRV"); g_unsetenv("SDL_AUDIODRIVER"); g_setenv("QEMU_AUDIO_DRV", "alsa", TRUE); driver.config->vncAllowHostAudio = true; DO_TEST("audio-default-vnc", QEMU_CAPS_VNC, QEMU_CAPS_DEVICE_CIRRUS_VGA); + DO_TEST_CAPS_LATEST("audio-default-vnc"); driver.config->vncAllowHostAudio = false; g_unsetenv("QEMU_AUDIO_DRV"); DO_TEST("audio-default-spice", QEMU_CAPS_SPICE, QEMU_CAPS_DEVICE_CIRRUS_VGA); + DO_TEST_CAPS_LATEST("audio-default-spice"); g_setenv("QEMU_AUDIO_DRV", "alsa", TRUE); driver.config->nogfxAllowHostAudio = true; DO_TEST("audio-default-nographics", NONE); + DO_TEST_CAPS_LATEST("audio-default-nographics"); driver.config->nogfxAllowHostAudio = false; g_unsetenv("QEMU_AUDIO_DRV"); diff --git a/tests/qemuxml2xmloutdata/audio-many-backends.x86_64-latest.xml b/tests/qemuxml2xmloutdata/audio-many-backends.x86_64-latest.xml new file mode 120000 index 0000000000..5f949f13e3 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-many-backends.x86_64-latest.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-many-backends.xml \ No newline at end of file diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 2188f69281..3d521108b0 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -1477,6 +1477,7 @@ mymain(void) DO_TEST("audio-oss-best", NONE); DO_TEST("audio-sdl-best", NONE); + DO_TEST_CAPS_LATEST("audio-many-backends"); /* Validate auto-creation of <audio> for legacy compat */ g_setenv("QEMU_AUDIO_DRV", "sdl", TRUE); -- 2.29.2

On 3/3/21 7:18 PM, Daniel P. Berrangé wrote:
The -audiodev argument is replacing the QEMU_AUDIO_DRV env variable (and its relations).
Sadly we still have to use the SDL_AUDIODRIVER env variable because that wasn't mapped into QAPI schema.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> ---
Don't forget to update graphics-vnc-power.x86_64-latest which was pushed after you've send these - but you probably figured that out since these don't apply cleanly (yeah, I hate conflicts with my patches too :-D). Michal

On Tue, Mar 09, 2021 at 04:30:15PM +0100, Michal Privoznik wrote:
On 3/3/21 7:18 PM, Daniel P. Berrangé wrote:
The -audiodev argument is replacing the QEMU_AUDIO_DRV env variable (and its relations).
Sadly we still have to use the SDL_AUDIODRIVER env variable because that wasn't mapped into QAPI schema.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> ---
Don't forget to update graphics-vnc-power.x86_64-latest which was pushed after you've send these - but you probably figured that out since these don't apply cleanly (yeah, I hate conflicts with my patches too :-D).
Yep, did the obvious changes when rebasing this to master. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

This introduces support for the QEMU audio settings that are common to all audio backends. These are expressed in the QAPI schema as settings common to all backends, but in reality some backends ignore some of them. For example, some backends are output only. The parser isn't attempting to apply restrictions that QEMU itself doesn't apply. <audio id='1' type='pulseaudio'> <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> <settings frequency='44100' channels='2' format='s16'/> </input> <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='100'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> The <settings> child is only valid if fixedSettings='yes' Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- docs/formatdomain.rst | 63 +++++++++++ docs/schemas/domaincommon.rng | 201 ++++++++++++++++++++++++++++++++++ src/bhyve/bhyve_command.c | 7 ++ src/conf/domain_conf.c | 182 ++++++++++++++++++++++++++++-- src/conf/domain_conf.h | 30 +++++ src/libvirt_private.syms | 3 + 6 files changed, 477 insertions(+), 9 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index eccd89921b..d773341c66 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -6846,6 +6846,69 @@ to the guest sound device. ``id`` Integer id of the audio device. Must be greater than 0. +All the backends support child element for configuring input and +output properties + +:: + + ... + <devices> + <audio id='1' type='pulseaudio'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='100'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + </devices> + ... + +The input and output elements support the same set of attributes and +elements + +* ``mixingEngine`` + + Control whether the host mixing engine is used to convert between + different audio formats and sampling rates. When the mixing engine + is disabled it is possible to make use of improved audio formats + such as 5.1/7.1. If not specified, a hypervisor default applies. + +* ``fixedSettings`` + + Control whether the mixing engine can dynamically choose settings + to mimimize format conversion. This is only valid when the + mixing engine is explicitly enabled. + +* ``voices`` + + The number of voices voices to use, usually defaults to 1 + +* ``bufferLength`` + + The length of the audio buffer in microseconds. Default is + backend specific. + +The ``<input>`` and ``<output>`` elements may also permit backend +specific options. + +When fixed settings are enabled, the ``<settings>`` child element +is permitted with the following attributes. + +* ``frequency`` + + The frequency in HZ, usually defaulting to 44100 + +* ``channels`` + + The number of channels, usually defaulting to 2. The permitted + max number of channels is hypervisor specific. + +* ``format`` + + The audio format, one of ``s8``, ``u8``, ``s16``, ``u16``, + ``s32``, ``u32``, ``f32``. The defalt is hypervisor specific. + None audio backend ^^^^^^^^^^^^^^^^^^ diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 330a600539..82fc74ca00 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -4523,12 +4523,117 @@ </element> </define> + <define name="audiocommonattr"> + <optional> + <attribute name="mixingEngine"> + <ref name="virYesNo"/> + </attribute> + </optional> + <optional> + <attribute name="fixedSettings"> + <ref name="virYesNo"/> + </attribute> + </optional> + <optional> + <attribute name="voices"> + <ref name="uint32"/> + </attribute> + </optional> + <optional> + <attribute name="bufferLength"> + <ref name="uint32"/> + </attribute> + </optional> + </define> + + <define name="audiocommonchild"> + <optional> + <element name="settings"> + <optional> + <attribute name="frequency"> + <ref name="uint32"/> + </attribute> + </optional> + <optional> + <attribute name="channels"> + <ref name="uint32"/> + </attribute> + </optional> + <optional> + <attribute name="format"> + <choice> + <value>s8</value> + <value>u8</value> + <value>s16</value> + <value>u16</value> + <value>s32</value> + <value>u32</value> + <value>f32</value> + </choice> + </attribute> + </optional> + </element> + </optional> + </define> + + <define name="audionone"> + <ref name="audiocommonattr"/> + <ref name="audiocommonchild"/> + </define> + + <define name="audioalsa"> + <ref name="audiocommonattr"/> + <optional> + <attribute name="dev"> + <ref name="filePath"/> + </attribute> + </optional> + <ref name="audiocommonchild"/> + </define> + + <define name="audiocoreaudio"> + <ref name="audiocommonattr"/> + <optional> + <attribute name="bufferCount"> + <ref name="uint32"/> + </attribute> + </optional> + <ref name="audiocommonchild"/> + </define> + + <define name="audiojack"> + <ref name="audiocommonattr"/> + <ref name="audiocommonchild"/> + </define> + <define name="audiooss"> + <ref name="audiocommonattr"/> <optional> <attribute name="dev"> <ref name="filePath"/> </attribute> </optional> + <ref name="audiocommonchild"/> + </define> + + <define name="audiopulseaudio"> + <ref name="audiocommonattr"/> + <ref name="audiocommonchild"/> + </define> + + <define name="audiosdl"> + <ref name="audiocommonattr"/> + <ref name="audiocommonchild"/> + </define> + + <define name="audiospice"> + <ref name="audiocommonattr"/> + <ref name="audiocommonchild"/> + </define> + + <define name="audiofile"> + <ref name="audiocommonattr"/> + <ref name="audiocommonchild"/> </define> <define name="audio"> @@ -4541,21 +4646,69 @@ <attribute name="type"> <value>none</value> </attribute> + <interleave> + <optional> + <element name="input"> + <ref name="audionone"/> + </element> + </optional> + <optional> + <element name="output"> + <ref name="audionone"/> + </element> + </optional> + </interleave> </group> <group> <attribute name="type"> <value>alsa</value> </attribute> + <interleave> + <optional> + <element name="input"> + <ref name="audioalsa"/> + </element> + </optional> + <optional> + <element name="output"> + <ref name="audioalsa"/> + </element> + </optional> + </interleave> </group> <group> <attribute name="type"> <value>coreaudio</value> </attribute> + <interleave> + <optional> + <element name="input"> + <ref name="audiocoreaudio"/> + </element> + </optional> + <optional> + <element name="output"> + <ref name="audiocoreaudio"/> + </element> + </optional> + </interleave> </group> <group> <attribute name="type"> <value>jack</value> </attribute> + <interleave> + <optional> + <element name="input"> + <ref name="audiojack"/> + </element> + </optional> + <optional> + <element name="output"> + <ref name="audiojack"/> + </element> + </optional> + </interleave> </group> <group> <attribute name="type"> @@ -4580,6 +4733,18 @@ <attribute name="type"> <value>pulseaudio</value> </attribute> + <interleave> + <optional> + <element name="input"> + <ref name="audiopulseaudio"/> + </element> + </optional> + <optional> + <element name="output"> + <ref name="audiopulseaudio"/> + </element> + </optional> + </interleave> </group> <group> <attribute name="type"> @@ -4595,16 +4760,52 @@ </choice> </attribute> </optional> + <interleave> + <optional> + <element name="input"> + <ref name="audiosdl"/> + </element> + </optional> + <optional> + <element name="output"> + <ref name="audiosdl"/> + </element> + </optional> + </interleave> </group> <group> <attribute name="type"> <value>spice</value> </attribute> + <interleave> + <optional> + <element name="input"> + <ref name="audiospice"/> + </element> + </optional> + <optional> + <element name="output"> + <ref name="audiospice"/> + </element> + </optional> + </interleave> </group> <group> <attribute name="type"> <value>file</value> </attribute> + <interleave> + <optional> + <element name="input"> + <ref name="audiofile"/> + </element> + </optional> + <optional> + <element name="output"> + <ref name="audiofile"/> + </element> + </optional> + </interleave> </group> </choice> </element> diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c index f5a20208d7..8a2026b620 100644 --- a/src/bhyve/bhyve_command.c +++ b/src/bhyve/bhyve_command.c @@ -514,6 +514,13 @@ bhyveBuildSoundArgStr(const virDomainDef *def G_GNUC_UNUSED, if (audio) { switch ((virDomainAudioType) audio->type) { case VIR_DOMAIN_AUDIO_TYPE_OSS: + if (virDomainAudioIOCommonIsSet(&audio->input) || + virDomainAudioIOCommonIsSet(&audio->output)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s" + _("cannot set common audio backend settings")); + return -1; + } + if (audio->backend.oss.input.dev) virBufferAsprintf(¶ms, ",play=%s", audio->backend.oss.input.dev); diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c51a1d3bea..5936f5937f 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -756,6 +756,18 @@ VIR_ENUM_IMPL(virDomainAudioSDLDriver, "pulseaudio", ); +VIR_ENUM_IMPL(virDomainAudioFormat, + VIR_DOMAIN_AUDIO_FORMAT_LAST, + "", + "u8", + "s8", + "u16", + "s16", + "u32", + "s32", + "f32", +); + VIR_ENUM_IMPL(virDomainKeyWrapCipherName, VIR_DOMAIN_KEY_WRAP_CIPHER_NAME_LAST, "aes", @@ -13931,6 +13943,99 @@ virDomainSoundDefFind(const virDomainDef *def, } +static int +virDomainAudioCommonParse(virDomainAudioIOCommon *def, + xmlNodePtr node, + xmlXPathContextPtr ctxt) +{ + g_autofree char *mixingEngine = virXMLPropString(node, "mixingEngine"); + g_autofree char *fixedSettings = virXMLPropString(node, "fixedSettings"); + g_autofree char *voices = virXMLPropString(node, "voices"); + g_autofree char *bufferLength = virXMLPropString(node, "bufferLength"); + xmlNodePtr settings; + VIR_XPATH_NODE_AUTORESTORE(ctxt); + + ctxt->node = node; + settings = virXPathNode("./settings", ctxt); + + if (mixingEngine && + ((def->mixingEngine = + virTristateBoolTypeFromString(mixingEngine)) <= 0)) { + virReportError(VIR_ERR_XML_ERROR, + _("unknown 'mixingEngine' value '%s'"), mixingEngine); + return -1; + } + + if (fixedSettings && + ((def->fixedSettings = + virTristateBoolTypeFromString(fixedSettings)) <= 0)) { + virReportError(VIR_ERR_XML_ERROR, + _("unknown 'fixedSettings' value '%s'"), fixedSettings); + return -1; + } + + if (def->fixedSettings == VIR_TRISTATE_BOOL_YES && + def->mixingEngine != VIR_TRISTATE_BOOL_YES) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("fixed audio settings requires mixing engine")); + return -1; + } + + if (voices && + (virStrToLong_ui(voices, NULL, 10, &def->voices) < 0 || + !def->voices)) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'voices' value '%s'"), voices); + return -1; + } + + if (bufferLength && + (virStrToLong_ui(bufferLength, NULL, 10, &def->bufferLength) < 0 || + !def->bufferLength)) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'bufferLength' value '%s'"), bufferLength); + return -1; + } + + if (settings) { + g_autofree char *frequency = virXMLPropString(settings, "frequency"); + g_autofree char *channels = virXMLPropString(settings, "channels"); + g_autofree char *format = virXMLPropString(settings, "format"); + + if (def->fixedSettings != VIR_TRISTATE_BOOL_YES) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("audio settings specified without fixed settings flag")); + return -1; + } + + if (frequency && + (virStrToLong_ui(frequency, NULL, 10, &def->frequency) < 0 || + !def->frequency)) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'frequency' value '%s'"), frequency); + return -1; + } + + if (channels && + (virStrToLong_ui(channels, NULL, 10, &def->channels) < 0 || + !def->channels)) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'channels' value '%s'"), channels); + return -1; + } + + if (format && + (def->format = virDomainAudioFormatTypeFromString(format)) <= 0) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'format' value '%s'"), format); + return -1; + } + } + + return 0; +} + + static int virDomainAudioOSSParse(virDomainAudioIOOSS *def, xmlNodePtr node) @@ -13943,8 +14048,8 @@ virDomainAudioOSSParse(virDomainAudioIOOSS *def, static virDomainAudioDefPtr virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, - xmlNodePtr node G_GNUC_UNUSED, - xmlXPathContextPtr ctxt G_GNUC_UNUSED) + xmlNodePtr node, + xmlXPathContextPtr ctxt) { virDomainAudioDefPtr def; VIR_XPATH_NODE_AUTORESTORE(ctxt) @@ -13984,6 +14089,11 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, inputNode = virXPathNode("./input", ctxt); outputNode = virXPathNode("./output", ctxt); + if (inputNode && virDomainAudioCommonParse(&def->input, inputNode, ctxt) < 0) + goto error; + if (outputNode && virDomainAudioCommonParse(&def->output, outputNode, ctxt) < 0) + goto error; + switch ((virDomainAudioType) def->type) { case VIR_DOMAIN_AUDIO_TYPE_NONE: break; @@ -14020,6 +14130,8 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, } case VIR_DOMAIN_AUDIO_TYPE_SPICE: + break; + case VIR_DOMAIN_AUDIO_TYPE_FILE: break; @@ -26491,18 +26603,59 @@ virDomainSoundDefFormat(virBufferPtr buf, static void -virDomainAudioCommonFormat(virBufferPtr childBuf, +virDomainAudioCommonFormat(virDomainAudioIOCommon *def, + virBufferPtr childBuf, virBufferPtr backendAttrBuf, const char *direction) { - if (virBufferUse(backendAttrBuf)) { + g_auto(virBuffer) settingsBuf = VIR_BUFFER_INITIALIZER; + + if (def->fixedSettings == VIR_TRISTATE_BOOL_YES) { + if (def->frequency) + virBufferAsprintf(&settingsBuf, " frequency='%u'", + def->frequency); + if (def->channels) + virBufferAsprintf(&settingsBuf, " channels='%u'", + def->channels); + if (def->format) + virBufferAsprintf(&settingsBuf, " format='%s'", + virDomainAudioFormatTypeToString(def->format)); + } + + if (def->mixingEngine || def->fixedSettings || + def->voices || def->bufferLength || + virBufferUse(backendAttrBuf)) { virBufferAsprintf(childBuf, "<%s", direction); - virBufferAdd(childBuf, virBufferCurrentContent(backendAttrBuf), -1); - virBufferAddLit(childBuf, "/>\n"); + if (def->mixingEngine) + virBufferAsprintf(childBuf, " mixingEngine='%s'", + virTristateBoolTypeToString(def->mixingEngine)); + if (def->fixedSettings) + virBufferAsprintf(childBuf, " fixedSettings='%s'", + virTristateBoolTypeToString(def->fixedSettings)); + if (def->voices) + virBufferAsprintf(childBuf, " voices='%u'", + def->voices); + if (def->bufferLength) + virBufferAsprintf(childBuf, " bufferLength='%u'", + def->bufferLength); + if (virBufferUse(backendAttrBuf)) + virBufferAdd(childBuf, virBufferCurrentContent(backendAttrBuf), -1); + if (def->fixedSettings == VIR_TRISTATE_BOOL_YES) { + virBufferAddLit(childBuf, ">\n"); + virBufferAdjustIndent(childBuf, 2); + virBufferAddLit(childBuf, "<settings"); + if (virBufferUse(&settingsBuf)) { + virBufferAdd(childBuf, virBufferCurrentContent(&settingsBuf), -1); + } + virBufferAddLit(childBuf, "/>\n"); + virBufferAdjustIndent(childBuf, -2); + virBufferAsprintf(childBuf, "</%s>\n", direction); + } else { + virBufferAddLit(childBuf, "/>\n"); + } } } - static void virDomainAudioOSSFormat(virDomainAudioIOOSS *def, virBufferPtr buf) @@ -26568,8 +26721,8 @@ virDomainAudioDefFormat(virBufferPtr buf, return -1; } - virDomainAudioCommonFormat(&childBuf, &inputBuf, "input"); - virDomainAudioCommonFormat(&childBuf, &outputBuf, "output"); + virDomainAudioCommonFormat(&def->input, &childBuf, &inputBuf, "input"); + virDomainAudioCommonFormat(&def->output, &childBuf, &outputBuf, "output"); if (virBufferUse(&childBuf)) { virBufferAddLit(buf, ">\n"); @@ -30568,6 +30721,17 @@ virDomainSoundModelSupportsCodecs(virDomainSoundDefPtr def) def->model == VIR_DOMAIN_SOUND_MODEL_ICH9; } +bool +virDomainAudioIOCommonIsSet(virDomainAudioIOCommon *common) +{ + return common->mixingEngine || + common->fixedSettings || + common->frequency || + common->channels || + common->voices || + common->format || + common->bufferLength; +} char * virDomainObjGetMetadata(virDomainObjPtr vm, diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 586fd7761f..4ccadbaf37 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1469,6 +1469,31 @@ typedef enum { VIR_DOMAIN_AUDIO_SDL_DRIVER_LAST } virDomainAudioSDLDriver; +typedef enum { + VIR_DOMAIN_AUDIO_FORMAT_DEFAULT, + VIR_DOMAIN_AUDIO_FORMAT_U8, + VIR_DOMAIN_AUDIO_FORMAT_S8, + VIR_DOMAIN_AUDIO_FORMAT_U16, + VIR_DOMAIN_AUDIO_FORMAT_S16, + VIR_DOMAIN_AUDIO_FORMAT_U32, + VIR_DOMAIN_AUDIO_FORMAT_S32, + VIR_DOMAIN_AUDIO_FORMAT_F32, + + VIR_DOMAIN_AUDIO_FORMAT_LAST +} virDomainAudioFormat; + +typedef struct _virDomainAudioIOCommon virDomainAudioIOCommon; +struct _virDomainAudioIOCommon { + virTristateBool mixingEngine; + virTristateBool fixedSettings; + unsigned int frequency; + unsigned int channels; + unsigned int voices; + int format; /* virDomainAudioFormat */ + unsigned int bufferLength; /* milliseconds */ +}; + + typedef struct _virDomainAudioIOOSS virDomainAudioIOOSS; struct _virDomainAudioIOOSS { char *dev; @@ -1479,6 +1504,8 @@ struct _virDomainAudioDef { unsigned int id; + virDomainAudioIOCommon input; + virDomainAudioIOCommon output; union { struct { virDomainAudioIOOSS input; @@ -3715,6 +3742,7 @@ VIR_ENUM_DECL(virDomainChrTcpProtocol); VIR_ENUM_DECL(virDomainChrSpicevmc); VIR_ENUM_DECL(virDomainSoundCodec); VIR_ENUM_DECL(virDomainSoundModel); +VIR_ENUM_DECL(virDomainAudioFormat); VIR_ENUM_DECL(virDomainAudioType); VIR_ENUM_DECL(virDomainAudioSDLDriver); VIR_ENUM_DECL(virDomainKeyWrapCipherName); @@ -3815,6 +3843,8 @@ virDomainDefFindAudioByID(const virDomainDef *def, int id); bool virDomainSoundModelSupportsCodecs(virDomainSoundDefPtr def); +bool +virDomainAudioIOCommonIsSet(virDomainAudioIOCommon *common); const char *virDomainChrSourceDefGetPath(virDomainChrSourceDefPtr chr); diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 7c289e6f34..b28986007f 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -226,6 +226,9 @@ virDiskNameParse; virDiskNameToBusDeviceIndex; virDiskNameToIndex; virDomainActualNetDefFree; +virDomainAudioFormatTypeFromString; +virDomainAudioFormatTypeToString; +virDomainAudioIOCommonIsSet; virDomainAudioSDLDriverTypeFromString; virDomainAudioSDLDriverTypeToString; virDomainAudioTypeTypeFromString; -- 2.29.2

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/qemu/qemu_command.c | 62 +++++++++++++++++++ src/qemu/qemu_validate.c | 40 ++++++++++++ tests/qemuxml2argvdata/audio-alsa-best.args | 39 ++++++++++++ .../audio-alsa-best.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-alsa-best.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-alsa-full.args | 29 +++++++++ tests/qemuxml2argvdata/audio-alsa-full.err | 1 + .../audio-alsa-full.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-alsa-full.xml | 43 +++++++++++++ .../audio-coreaudio-best.args | 39 ++++++++++++ .../audio-coreaudio-best.x86_64-latest.args | 42 +++++++++++++ .../qemuxml2argvdata/audio-coreaudio-best.xml | 43 +++++++++++++ .../audio-coreaudio-full.args | 29 +++++++++ .../qemuxml2argvdata/audio-coreaudio-full.err | 1 + .../audio-coreaudio-full.x86_64-latest.args | 42 +++++++++++++ .../qemuxml2argvdata/audio-coreaudio-full.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-file-best.args | 39 ++++++++++++ .../audio-file-best.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-file-best.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-file-full.args | 29 +++++++++ tests/qemuxml2argvdata/audio-file-full.err | 1 + .../audio-file-full.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-file-full.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-jack-full.err | 1 + .../audio-jack-full.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-jack-full.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-none-best.args | 39 ++++++++++++ .../audio-none-best.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-none-best.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-none-full.args | 29 +++++++++ tests/qemuxml2argvdata/audio-none-full.err | 1 + .../audio-none-full.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-none-full.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-oss-best.args | 12 +++- .../audio-oss-best.x86_64-latest.args | 5 +- tests/qemuxml2argvdata/audio-oss-best.xml | 8 ++- tests/qemuxml2argvdata/audio-oss-full.args | 31 ++++++++++ tests/qemuxml2argvdata/audio-oss-full.err | 1 + .../audio-oss-full.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-oss-full.xml | 43 +++++++++++++ .../audio-pulseaudio-best.args | 39 ++++++++++++ .../audio-pulseaudio-best.x86_64-latest.args | 42 +++++++++++++ .../audio-pulseaudio-best.xml | 43 +++++++++++++ .../audio-pulseaudio-full.args | 29 +++++++++ .../audio-pulseaudio-full.err | 1 + .../audio-pulseaudio-full.x86_64-latest.args | 42 +++++++++++++ .../audio-pulseaudio-full.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-sdl-best.args | 10 +++ .../audio-sdl-best.x86_64-latest.args | 5 +- tests/qemuxml2argvdata/audio-sdl-best.xml | 9 ++- tests/qemuxml2argvdata/audio-sdl-full.args | 30 +++++++++ tests/qemuxml2argvdata/audio-sdl-full.err | 1 + .../audio-sdl-full.x86_64-latest.args | 43 +++++++++++++ tests/qemuxml2argvdata/audio-sdl-full.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-spice-best.args | 39 ++++++++++++ .../audio-spice-best.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-spice-best.xml | 43 +++++++++++++ tests/qemuxml2argvdata/audio-spice-full.args | 29 +++++++++ tests/qemuxml2argvdata/audio-spice-full.err | 1 + .../audio-spice-full.x86_64-latest.args | 42 +++++++++++++ tests/qemuxml2argvdata/audio-spice-full.xml | 43 +++++++++++++ tests/qemuxml2argvtest.c | 33 ++++++++++ tests/qemuxml2xmloutdata/audio-alsa-best.xml | 1 + tests/qemuxml2xmloutdata/audio-alsa-full.xml | 1 + .../audio-coreaudio-best.xml | 1 + .../audio-coreaudio-full.xml | 1 + tests/qemuxml2xmloutdata/audio-file-best.xml | 1 + tests/qemuxml2xmloutdata/audio-file-full.xml | 1 + tests/qemuxml2xmloutdata/audio-jack-full.xml | 1 + tests/qemuxml2xmloutdata/audio-none-best.xml | 1 + tests/qemuxml2xmloutdata/audio-none-full.xml | 1 + tests/qemuxml2xmloutdata/audio-oss-full.xml | 1 + .../audio-pulseaudio-best.xml | 1 + .../audio-pulseaudio-full.xml | 1 + tests/qemuxml2xmloutdata/audio-sdl-full.xml | 1 + tests/qemuxml2xmloutdata/audio-spice-best.xml | 1 + tests/qemuxml2xmloutdata/audio-spice-full.xml | 1 + tests/qemuxml2xmltest.c | 17 +++++ 78 files changed, 1963 insertions(+), 7 deletions(-) create mode 100644 tests/qemuxml2argvdata/audio-alsa-best.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-best.xml create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.err create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.xml create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-best.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-best.xml create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.err create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.xml create mode 100644 tests/qemuxml2argvdata/audio-file-best.args create mode 100644 tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-file-best.xml create mode 100644 tests/qemuxml2argvdata/audio-file-full.args create mode 100644 tests/qemuxml2argvdata/audio-file-full.err create mode 100644 tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-file-full.xml create mode 100644 tests/qemuxml2argvdata/audio-jack-full.err create mode 100644 tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-jack-full.xml create mode 100644 tests/qemuxml2argvdata/audio-none-best.args create mode 100644 tests/qemuxml2argvdata/audio-none-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-none-best.xml create mode 100644 tests/qemuxml2argvdata/audio-none-full.args create mode 100644 tests/qemuxml2argvdata/audio-none-full.err create mode 100644 tests/qemuxml2argvdata/audio-none-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-none-full.xml create mode 100644 tests/qemuxml2argvdata/audio-oss-full.args create mode 100644 tests/qemuxml2argvdata/audio-oss-full.err create mode 100644 tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-oss-full.xml create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-best.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-best.xml create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.err create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.xml create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.err create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.xml create mode 100644 tests/qemuxml2argvdata/audio-spice-best.args create mode 100644 tests/qemuxml2argvdata/audio-spice-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-spice-best.xml create mode 100644 tests/qemuxml2argvdata/audio-spice-full.args create mode 100644 tests/qemuxml2argvdata/audio-spice-full.err create mode 100644 tests/qemuxml2argvdata/audio-spice-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-spice-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-alsa-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-alsa-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-coreaudio-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-coreaudio-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-file-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-file-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-jack-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-none-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-none-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-oss-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-pulseaudio-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-pulseaudio-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-sdl-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-spice-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-spice-full.xml diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 8a013c4ff4..6e2294ba9a 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -7587,6 +7587,34 @@ qemuBuildMemoryDeviceCommandLine(virCommandPtr cmd, return 0; } +static void +qemuBuildAudioCommonArg(virBufferPtr buf, + const char *prefix, + virDomainAudioIOCommon *def) +{ + if (def->mixingEngine) + virBufferAsprintf(buf, ",%s.mixing-engine=%s", prefix, + virTristateSwitchTypeToString(def->mixingEngine)); + if (def->fixedSettings) + virBufferAsprintf(buf, ",%s.fixed-settings=%s", prefix, + virTristateSwitchTypeToString(def->fixedSettings)); + + if (def->voices) + virBufferAsprintf(buf, ",%s.voices=%u", prefix, def->voices); + if (def->bufferLength) + virBufferAsprintf(buf, ",%s.buffer-length=%u", prefix, def->bufferLength); + + if (def->fixedSettings) { + if (def->frequency) + virBufferAsprintf(buf, ",%s.frequency=%u", prefix, def->frequency); + if (def->channels) + virBufferAsprintf(buf, ",%s.channels=%u", prefix, def->channels); + if (def->format) + virBufferAsprintf(buf, ",%s.format=%s", prefix, + virDomainAudioFormatTypeToString(def->format)); + } +} + static void qemuBuildAudioOSSArg(virBufferPtr buf, const char *prefix, @@ -7608,6 +7636,9 @@ qemuBuildAudioCommandLineArg(virCommandPtr cmd, def->id, qemuAudioDriverTypeToString(def->type)); + qemuBuildAudioCommonArg(&buf, "in", &def->input); + qemuBuildAudioCommonArg(&buf, "out", &def->output); + switch ((virDomainAudioType)def->type) { case VIR_DOMAIN_AUDIO_TYPE_NONE: break; @@ -7672,6 +7703,34 @@ qemuBuildAudioCommandLineArgs(virCommandPtr cmd, return 0; } +static void +qemuBuildAudioCommonEnv(virCommandPtr cmd, + const char *prefix, + virDomainAudioIOCommon *def) +{ + if (def->fixedSettings) + virCommandAddEnvFormat(cmd, "%sFIXED_SETTINGS=%s", + prefix, + virTristateSwitchTypeToString(def->fixedSettings)); + + if (def->voices) + virCommandAddEnvFormat(cmd, "%sVOICES=%u", + prefix, def->voices); + + if (def->fixedSettings) { + if (def->frequency) + virCommandAddEnvFormat(cmd, "%sFIXED_FREQ=%u", + prefix, def->frequency); + if (def->channels) + virCommandAddEnvFormat(cmd, "%sFIXED_CHANNELS=%u", + prefix, def->channels); + if (def->format) + virCommandAddEnvFormat(cmd, "%sFIXED_FMT=%s", + prefix, + virDomainAudioFormatTypeToString(def->format)); + } +} + static void qemuBuildAudioOSSEnv(virCommandPtr cmd, const char *prefix, @@ -7694,6 +7753,9 @@ qemuBuildAudioCommandLineEnv(virCommandPtr cmd, virCommandAddEnvPair(cmd, "QEMU_AUDIO_DRV", qemuAudioDriverTypeToString(audio->type)); + qemuBuildAudioCommonEnv(cmd, "QEMU_AUDIO_ADC_", &audio->input); + qemuBuildAudioCommonEnv(cmd, "QEMU_AUDIO_DAC_", &audio->output); + switch ((virDomainAudioType)audio->type) { case VIR_DOMAIN_AUDIO_TYPE_NONE: break; diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index e88f393fba..5aaadcb82d 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -4156,6 +4156,25 @@ static int qemuValidateDomainDeviceDefAudio(virDomainAudioDefPtr audio, virQEMUCapsPtr qemuCaps G_GNUC_UNUSED) { + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + if (audio->input.mixingEngine == VIR_TRISTATE_BOOL_NO || + audio->output.mixingEngine == VIR_TRISTATE_BOOL_NO) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("disabling audio mixing engine is not supported with this QEMU")); + return -1; + } + + if ((audio->input.bufferLength || + audio->output.bufferLength) && + (audio->type != VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO && + audio->type != VIR_DOMAIN_AUDIO_TYPE_COREAUDIO && + audio->type != VIR_DOMAIN_AUDIO_TYPE_SDL)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("setting audio buffer length is not supported with this QEMU")); + return -1; + } + } + switch ((virDomainAudioType)audio->type) { case VIR_DOMAIN_AUDIO_TYPE_NONE: break; @@ -4164,6 +4183,13 @@ qemuValidateDomainDeviceDefAudio(virDomainAudioDefPtr audio, break; case VIR_DOMAIN_AUDIO_TYPE_COREAUDIO: + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + if (audio->input.bufferLength) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("setting audio buffer length is not supported with this QEMU")); + return -1; + } + } break; case VIR_DOMAIN_AUDIO_TYPE_JACK: @@ -4178,9 +4204,23 @@ qemuValidateDomainDeviceDefAudio(virDomainAudioDefPtr audio, break; case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + if (audio->input.bufferLength != audio->output.bufferLength) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("setting audio buffer length is not supported with this QEMU")); + return -1; + } + } break; case VIR_DOMAIN_AUDIO_TYPE_SDL: + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + if (audio->input.bufferLength) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("setting audio buffer length is not supported with this QEMU")); + return -1; + } + } break; case VIR_DOMAIN_AUDIO_TYPE_SPICE: diff --git a/tests/qemuxml2argvdata/audio-alsa-best.args b/tests/qemuxml2argvdata/audio-alsa-best.args new file mode 100644 index 0000000000..4461fc670c --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-best.args @@ -0,0 +1,39 @@ +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 \ +QEMU_AUDIO_ADC_FIXED_SETTINGS=on \ +QEMU_AUDIO_ADC_VOICES=1 \ +QEMU_AUDIO_ADC_FIXED_FREQ=44100 \ +QEMU_AUDIO_ADC_FIXED_CHANNELS=2 \ +QEMU_AUDIO_ADC_FIXED_FMT=s16 \ +QEMU_AUDIO_DAC_FIXED_SETTINGS=on \ +QEMU_AUDIO_DAC_VOICES=2 \ +QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ +QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ +QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +/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 diff --git a/tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args new file mode 100644 index 0000000000..5f84dcca72 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=alsa,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ +out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-alsa-best.xml b/tests/qemuxml2argvdata/audio-alsa-best.xml new file mode 100644 index 0000000000..cefcc47027 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-best.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-alsa-full.args b/tests/qemuxml2argvdata/audio-alsa-full.args new file mode 100644 index 0000000000..01fe6e2beb --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-full.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-alsa-full.err b/tests/qemuxml2argvdata/audio-alsa-full.err new file mode 100644 index 0000000000..d9ceac7226 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-full.err @@ -0,0 +1 @@ +unsupported configuration: setting audio buffer length is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args new file mode 100644 index 0000000000..6ade7ef069 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=alsa,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-alsa-full.xml b/tests/qemuxml2argvdata/audio-alsa-full.xml new file mode 100644 index 0000000000..2cd488a3a5 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-alsa-full.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-coreaudio-best.args b/tests/qemuxml2argvdata/audio-coreaudio-best.args new file mode 100644 index 0000000000..f8250df5cb --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-best.args @@ -0,0 +1,39 @@ +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 \ +QEMU_AUDIO_ADC_FIXED_SETTINGS=on \ +QEMU_AUDIO_ADC_VOICES=1 \ +QEMU_AUDIO_ADC_FIXED_FREQ=44100 \ +QEMU_AUDIO_ADC_FIXED_CHANNELS=2 \ +QEMU_AUDIO_ADC_FIXED_FMT=s16 \ +QEMU_AUDIO_DAC_FIXED_SETTINGS=on \ +QEMU_AUDIO_DAC_VOICES=2 \ +QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ +QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ +QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +/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 diff --git a/tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest.args new file mode 100644 index 0000000000..93166f27de --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=coreaudio,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ +out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-coreaudio-best.xml b/tests/qemuxml2argvdata/audio-coreaudio-best.xml new file mode 100644 index 0000000000..8a79404fde --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-best.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-coreaudio-full.args b/tests/qemuxml2argvdata/audio-coreaudio-full.args new file mode 100644 index 0000000000..c4d502b889 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-full.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-coreaudio-full.err b/tests/qemuxml2argvdata/audio-coreaudio-full.err new file mode 100644 index 0000000000..d9ceac7226 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-full.err @@ -0,0 +1 @@ +unsupported configuration: setting audio buffer length is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest.args new file mode 100644 index 0000000000..bc6c9e9241 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=coreaudio,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-coreaudio-full.xml b/tests/qemuxml2argvdata/audio-coreaudio-full.xml new file mode 100644 index 0000000000..671497986e --- /dev/null +++ b/tests/qemuxml2argvdata/audio-coreaudio-full.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-file-best.args b/tests/qemuxml2argvdata/audio-file-best.args new file mode 100644 index 0000000000..bd73a5b26f --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-best.args @@ -0,0 +1,39 @@ +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 \ +QEMU_AUDIO_ADC_FIXED_SETTINGS=on \ +QEMU_AUDIO_ADC_VOICES=1 \ +QEMU_AUDIO_ADC_FIXED_FREQ=44100 \ +QEMU_AUDIO_ADC_FIXED_CHANNELS=2 \ +QEMU_AUDIO_ADC_FIXED_FMT=s16 \ +QEMU_AUDIO_DAC_FIXED_SETTINGS=on \ +QEMU_AUDIO_DAC_VOICES=2 \ +QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ +QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ +QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +/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 diff --git a/tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args new file mode 100644 index 0000000000..546e4debe8 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=wav,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ +out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-file-best.xml b/tests/qemuxml2argvdata/audio-file-best.xml new file mode 100644 index 0000000000..0617dbbc0b --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-best.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-file-full.args b/tests/qemuxml2argvdata/audio-file-full.args new file mode 100644 index 0000000000..fd504f50e7 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-full.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-file-full.err b/tests/qemuxml2argvdata/audio-file-full.err new file mode 100644 index 0000000000..d9ceac7226 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-full.err @@ -0,0 +1 @@ +unsupported configuration: setting audio buffer length is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args new file mode 100644 index 0000000000..1f1f05b39c --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=wav,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-file-full.xml b/tests/qemuxml2argvdata/audio-file-full.xml new file mode 100644 index 0000000000..c695a1715e --- /dev/null +++ b/tests/qemuxml2argvdata/audio-file-full.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-jack-full.err b/tests/qemuxml2argvdata/audio-jack-full.err new file mode 100644 index 0000000000..d9ceac7226 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-jack-full.err @@ -0,0 +1 @@ +unsupported configuration: setting audio buffer length is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args new file mode 100644 index 0000000000..96856cd3d5 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=jack,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-jack-full.xml b/tests/qemuxml2argvdata/audio-jack-full.xml new file mode 100644 index 0000000000..129bf509a0 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-jack-full.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-none-best.args b/tests/qemuxml2argvdata/audio-none-best.args new file mode 100644 index 0000000000..6116734e4a --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-best.args @@ -0,0 +1,39 @@ +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 \ +QEMU_AUDIO_ADC_FIXED_SETTINGS=on \ +QEMU_AUDIO_ADC_VOICES=1 \ +QEMU_AUDIO_ADC_FIXED_FREQ=44100 \ +QEMU_AUDIO_ADC_FIXED_CHANNELS=2 \ +QEMU_AUDIO_ADC_FIXED_FMT=s16 \ +QEMU_AUDIO_DAC_FIXED_SETTINGS=on \ +QEMU_AUDIO_DAC_VOICES=2 \ +QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ +QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ +QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +/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 diff --git a/tests/qemuxml2argvdata/audio-none-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-none-best.x86_64-latest.args new file mode 100644 index 0000000000..005f26dded --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-best.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=none,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ +out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-none-best.xml b/tests/qemuxml2argvdata/audio-none-best.xml new file mode 100644 index 0000000000..df79f705ac --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-best.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-none-full.args b/tests/qemuxml2argvdata/audio-none-full.args new file mode 100644 index 0000000000..00c6e37ccc --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-full.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-none-full.err b/tests/qemuxml2argvdata/audio-none-full.err new file mode 100644 index 0000000000..d9ceac7226 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-full.err @@ -0,0 +1 @@ +unsupported configuration: setting audio buffer length is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-none-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-none-full.x86_64-latest.args new file mode 100644 index 0000000000..d303a161f8 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-full.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=none,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-none-full.xml b/tests/qemuxml2argvdata/audio-none-full.xml new file mode 100644 index 0000000000..f795a24be1 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-none-full.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-oss-best.args b/tests/qemuxml2argvdata/audio-oss-best.args index e6a7bb4af8..054222992f 100644 --- a/tests/qemuxml2argvdata/audio-oss-best.args +++ b/tests/qemuxml2argvdata/audio-oss-best.args @@ -7,8 +7,16 @@ 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 \ +QEMU_AUDIO_ADC_FIXED_SETTINGS=on \ +QEMU_AUDIO_ADC_VOICES=1 \ +QEMU_AUDIO_ADC_FIXED_FREQ=44100 \ +QEMU_AUDIO_ADC_FIXED_CHANNELS=2 \ +QEMU_AUDIO_ADC_FIXED_FMT=s16 \ +QEMU_AUDIO_DAC_FIXED_SETTINGS=on \ +QEMU_AUDIO_DAC_VOICES=2 \ +QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ +QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ +QEMU_AUDIO_DAC_FIXED_FMT=f32 \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args index fe78b3a738..3cff02e1ba 100644 --- a/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args @@ -33,7 +33,10 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ --audiodev id=audio1,driver=oss,in.dev=/dev/dsp0,out.dev=/dev/dsp1 \ +-audiodev id=audio1,driver=oss,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ +out.channels=4,out.format=f32 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-oss-best.xml b/tests/qemuxml2argvdata/audio-oss-best.xml index 0947bd6def..6904bcc93b 100644 --- a/tests/qemuxml2argvdata/audio-oss-best.xml +++ b/tests/qemuxml2argvdata/audio-oss-best.xml @@ -31,8 +31,12 @@ <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <audio id='1' type='oss'> - <input dev='/dev/dsp0'/> - <output dev='/dev/dsp1'/> + <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <settings frequency='22050' channels='4' format='f32'/> + </output> </audio> <memballoon model='none'/> </devices> diff --git a/tests/qemuxml2argvdata/audio-oss-full.args b/tests/qemuxml2argvdata/audio-oss-full.args new file mode 100644 index 0000000000..e6a7bb4af8 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-full.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-oss-full.err b/tests/qemuxml2argvdata/audio-oss-full.err new file mode 100644 index 0000000000..d9ceac7226 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-full.err @@ -0,0 +1 @@ +unsupported configuration: setting audio buffer length is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args new file mode 100644 index 0000000000..cf9f5077d1 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=oss,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-oss-full.xml b/tests/qemuxml2argvdata/audio-oss-full.xml new file mode 100644 index 0000000000..52d8810650 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-oss-full.xml @@ -0,0 +1,43 @@ +<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 mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-best.args b/tests/qemuxml2argvdata/audio-pulseaudio-best.args new file mode 100644 index 0000000000..ad5718b242 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-best.args @@ -0,0 +1,39 @@ +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 \ +QEMU_AUDIO_ADC_FIXED_SETTINGS=on \ +QEMU_AUDIO_ADC_VOICES=1 \ +QEMU_AUDIO_ADC_FIXED_FREQ=44100 \ +QEMU_AUDIO_ADC_FIXED_CHANNELS=2 \ +QEMU_AUDIO_ADC_FIXED_FMT=s16 \ +QEMU_AUDIO_DAC_FIXED_SETTINGS=on \ +QEMU_AUDIO_DAC_VOICES=2 \ +QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ +QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ +QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +/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 diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-latest.args new file mode 100644 index 0000000000..f6ccde6d59 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=pa,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ +out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-best.xml b/tests/qemuxml2argvdata/audio-pulseaudio-best.xml new file mode 100644 index 0000000000..b75e336db3 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-best.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-full.args b/tests/qemuxml2argvdata/audio-pulseaudio-full.args new file mode 100644 index 0000000000..af274e4328 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-full.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-full.err b/tests/qemuxml2argvdata/audio-pulseaudio-full.err new file mode 100644 index 0000000000..d9ceac7226 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-full.err @@ -0,0 +1 @@ +unsupported configuration: setting audio buffer length is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-latest.args new file mode 100644 index 0000000000..493945e608 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=pa,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-full.xml b/tests/qemuxml2argvdata/audio-pulseaudio-full.xml new file mode 100644 index 0000000000..87ceefbab0 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-pulseaudio-full.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-sdl-best.args b/tests/qemuxml2argvdata/audio-sdl-best.args index 6aca7037a8..abdf655fe1 100644 --- a/tests/qemuxml2argvdata/audio-sdl-best.args +++ b/tests/qemuxml2argvdata/audio-sdl-best.args @@ -7,6 +7,16 @@ 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 \ +QEMU_AUDIO_ADC_FIXED_SETTINGS=on \ +QEMU_AUDIO_ADC_VOICES=1 \ +QEMU_AUDIO_ADC_FIXED_FREQ=44100 \ +QEMU_AUDIO_ADC_FIXED_CHANNELS=2 \ +QEMU_AUDIO_ADC_FIXED_FMT=s16 \ +QEMU_AUDIO_DAC_FIXED_SETTINGS=on \ +QEMU_AUDIO_DAC_VOICES=2 \ +QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ +QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ +QEMU_AUDIO_DAC_FIXED_FMT=f32 \ SDL_AUDIODRIVER=pulseaudio \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ diff --git a/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args index 53b29b9843..d8893a7a4b 100644 --- a/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args @@ -34,7 +34,10 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ "file":"libvirt-1-storage"}' \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ --audiodev id=audio1,driver=sdl \ +-audiodev id=audio1,driver=sdl,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ +out.channels=4,out.format=f32 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-sdl-best.xml b/tests/qemuxml2argvdata/audio-sdl-best.xml index d6835a22bc..4e3f8a5c61 100644 --- a/tests/qemuxml2argvdata/audio-sdl-best.xml +++ b/tests/qemuxml2argvdata/audio-sdl-best.xml @@ -30,7 +30,14 @@ <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'/> + <audio id='1' type='sdl' driver='pulseaudio'> + <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> <memballoon model='none'/> </devices> </domain> diff --git a/tests/qemuxml2argvdata/audio-sdl-full.args b/tests/qemuxml2argvdata/audio-sdl-full.args new file mode 100644 index 0000000000..6aca7037a8 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-full.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-sdl-full.err b/tests/qemuxml2argvdata/audio-sdl-full.err new file mode 100644 index 0000000000..d9ceac7226 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-full.err @@ -0,0 +1 @@ +unsupported configuration: setting audio buffer length is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args new file mode 100644 index 0000000000..722aa33fa4 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args @@ -0,0 +1,43 @@ +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 \ +SDL_AUDIODRIVER=pulseaudio \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=sdl,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-sdl-full.xml b/tests/qemuxml2argvdata/audio-sdl-full.xml new file mode 100644 index 0000000000..519cda12e3 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-sdl-full.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-spice-best.args b/tests/qemuxml2argvdata/audio-spice-best.args new file mode 100644 index 0000000000..6e2ffc9e1e --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-best.args @@ -0,0 +1,39 @@ +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 \ +QEMU_AUDIO_ADC_FIXED_SETTINGS=on \ +QEMU_AUDIO_ADC_VOICES=1 \ +QEMU_AUDIO_ADC_FIXED_FREQ=44100 \ +QEMU_AUDIO_ADC_FIXED_CHANNELS=2 \ +QEMU_AUDIO_ADC_FIXED_FMT=s16 \ +QEMU_AUDIO_DAC_FIXED_SETTINGS=on \ +QEMU_AUDIO_DAC_VOICES=2 \ +QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ +QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ +QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +/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 diff --git a/tests/qemuxml2argvdata/audio-spice-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-spice-best.x86_64-latest.args new file mode 100644 index 0000000000..b23ff38f23 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-best.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=spice,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ +out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-spice-best.xml b/tests/qemuxml2argvdata/audio-spice-best.xml new file mode 100644 index 0000000000..a53586032a --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-best.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvdata/audio-spice-full.args b/tests/qemuxml2argvdata/audio-spice-full.args new file mode 100644 index 0000000000..a7a85959d6 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-full.args @@ -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 diff --git a/tests/qemuxml2argvdata/audio-spice-full.err b/tests/qemuxml2argvdata/audio-spice-full.err new file mode 100644 index 0000000000..d9ceac7226 --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-full.err @@ -0,0 +1 @@ +unsupported configuration: setting audio buffer length is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-spice-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-spice-full.x86_64-latest.args new file mode 100644 index 0000000000..4419ad2cdb --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-full.x86_64-latest.args @@ -0,0 +1,42 @@ +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 \ +/usr/bin/qemu-system-i386 \ +-name guest=QEMUGuest1,debug-threads=on \ +-S \ +-object secret,id=masterKey0,format=raw,\ +file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ +-machine pc,accel=tcg,usb=off,dump-guest-core=off,memory-backend=pc.ram \ +-cpu qemu64 \ +-m 214 \ +-object memory-backend-ram,id=pc.ram,size=224395264 \ +-overcommit mem-lock=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,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \ +-blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom",\ +"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw",\ +"file":"libvirt-1-storage"}' \ +-device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ +-audiodev id=audio1,driver=spice,in.mixing-engine=on,in.fixed-settings=on,\ +in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ +resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-spice-full.xml b/tests/qemuxml2argvdata/audio-spice-full.xml new file mode 100644 index 0000000000..3ef3e431ac --- /dev/null +++ b/tests/qemuxml2argvdata/audio-spice-full.xml @@ -0,0 +1,43 @@ +<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'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <settings frequency='44100' channels='2' format='s16'/> + </input> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <settings frequency='22050' channels='4' format='f32'/> + </output> + </audio> + <memballoon model='none'/> + </devices> +</domain> diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 883f840c1a..c1c1d96af4 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1065,11 +1065,44 @@ mymain(void) DO_TEST_CAPS_LATEST("audio-file-minimal"); /* Best <audio> still compat with old ENV */ + DO_TEST("audio-none-best", NONE); + DO_TEST("audio-alsa-best", NONE); + DO_TEST("audio-coreaudio-best", NONE); DO_TEST("audio-oss-best", NONE); + DO_TEST("audio-pulseaudio-best", NONE); DO_TEST("audio-sdl-best", NONE); + DO_TEST("audio-spice-best", NONE); + DO_TEST("audio-file-best", NONE); + DO_TEST_CAPS_LATEST("audio-none-best"); + DO_TEST_CAPS_LATEST("audio-alsa-best"); + DO_TEST_CAPS_LATEST("audio-coreaudio-best"); DO_TEST_CAPS_LATEST("audio-oss-best"); + DO_TEST_CAPS_LATEST("audio-pulseaudio-best"); DO_TEST_CAPS_LATEST("audio-sdl-best"); + DO_TEST_CAPS_LATEST("audio-spice-best"); + DO_TEST_CAPS_LATEST("audio-file-best"); + + /* Full <audio> only compat with new QEMU -audiodev args */ + DO_TEST_PARSE_ERROR("audio-none-full", NONE); + DO_TEST_PARSE_ERROR("audio-alsa-full", NONE); + DO_TEST_PARSE_ERROR("audio-coreaudio-full", NONE); + DO_TEST_PARSE_ERROR("audio-jack-full", NONE); + DO_TEST_PARSE_ERROR("audio-oss-full", NONE); + DO_TEST_PARSE_ERROR("audio-pulseaudio-full", NONE); + DO_TEST_PARSE_ERROR("audio-sdl-full", NONE); + DO_TEST_PARSE_ERROR("audio-spice-full", NONE); + DO_TEST_PARSE_ERROR("audio-file-full", NONE); + + DO_TEST_CAPS_LATEST("audio-none-full"); + DO_TEST_CAPS_LATEST("audio-alsa-full"); + DO_TEST_CAPS_LATEST("audio-coreaudio-full"); + DO_TEST_CAPS_LATEST("audio-jack-full"); + DO_TEST_CAPS_LATEST("audio-oss-full"); + DO_TEST_CAPS_LATEST("audio-pulseaudio-full"); + DO_TEST_CAPS_LATEST("audio-sdl-full"); + DO_TEST_CAPS_LATEST("audio-spice-full"); + DO_TEST_CAPS_LATEST("audio-file-full"); /* Multiple backends not supported with ENV */ DO_TEST_PARSE_ERROR("audio-many-backends", NONE); diff --git a/tests/qemuxml2xmloutdata/audio-alsa-best.xml b/tests/qemuxml2xmloutdata/audio-alsa-best.xml new file mode 120000 index 0000000000..2d0865c8ee --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-alsa-best.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-alsa-best.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-alsa-full.xml b/tests/qemuxml2xmloutdata/audio-alsa-full.xml new file mode 120000 index 0000000000..61de7e7b33 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-alsa-full.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-alsa-full.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-coreaudio-best.xml b/tests/qemuxml2xmloutdata/audio-coreaudio-best.xml new file mode 120000 index 0000000000..13e96938d9 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-coreaudio-best.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-coreaudio-best.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-coreaudio-full.xml b/tests/qemuxml2xmloutdata/audio-coreaudio-full.xml new file mode 120000 index 0000000000..b00cc14e29 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-coreaudio-full.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-coreaudio-full.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-file-best.xml b/tests/qemuxml2xmloutdata/audio-file-best.xml new file mode 120000 index 0000000000..bb836545a0 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-file-best.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-file-best.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-file-full.xml b/tests/qemuxml2xmloutdata/audio-file-full.xml new file mode 120000 index 0000000000..6e4b032b40 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-file-full.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-file-full.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-jack-full.xml b/tests/qemuxml2xmloutdata/audio-jack-full.xml new file mode 120000 index 0000000000..813ccded71 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-jack-full.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-jack-full.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-none-best.xml b/tests/qemuxml2xmloutdata/audio-none-best.xml new file mode 120000 index 0000000000..7606228da6 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-none-best.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-none-best.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-none-full.xml b/tests/qemuxml2xmloutdata/audio-none-full.xml new file mode 120000 index 0000000000..a5a7ec6932 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-none-full.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-none-full.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-oss-full.xml b/tests/qemuxml2xmloutdata/audio-oss-full.xml new file mode 120000 index 0000000000..6073f438a0 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-oss-full.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-oss-full.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-pulseaudio-best.xml b/tests/qemuxml2xmloutdata/audio-pulseaudio-best.xml new file mode 120000 index 0000000000..d77efcd7bf --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-pulseaudio-best.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-pulseaudio-best.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-pulseaudio-full.xml b/tests/qemuxml2xmloutdata/audio-pulseaudio-full.xml new file mode 120000 index 0000000000..c12f36702d --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-pulseaudio-full.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-pulseaudio-full.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-sdl-full.xml b/tests/qemuxml2xmloutdata/audio-sdl-full.xml new file mode 120000 index 0000000000..faeeb0ef35 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-sdl-full.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-sdl-full.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-spice-best.xml b/tests/qemuxml2xmloutdata/audio-spice-best.xml new file mode 120000 index 0000000000..0e52fb5460 --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-spice-best.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-spice-best.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/audio-spice-full.xml b/tests/qemuxml2xmloutdata/audio-spice-full.xml new file mode 120000 index 0000000000..088605f0bc --- /dev/null +++ b/tests/qemuxml2xmloutdata/audio-spice-full.xml @@ -0,0 +1 @@ +../qemuxml2argvdata/audio-spice-full.xml \ No newline at end of file diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 3d521108b0..f25a0902c9 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -1474,8 +1474,25 @@ mymain(void) DO_TEST("audio-file-minimal", NONE); /* Best <audio> still compat with old ENV */ + DO_TEST("audio-none-best", NONE); + DO_TEST("audio-alsa-best", NONE); + DO_TEST("audio-coreaudio-best", NONE); DO_TEST("audio-oss-best", NONE); + DO_TEST("audio-pulseaudio-best", NONE); DO_TEST("audio-sdl-best", NONE); + DO_TEST("audio-spice-best", NONE); + DO_TEST("audio-file-best", NONE); + + /* Full <audio> only compat with new QEMU -audiodev args */ + DO_TEST("audio-none-full", QEMU_CAPS_AUDIODEV); + DO_TEST("audio-alsa-full", QEMU_CAPS_AUDIODEV); + DO_TEST("audio-coreaudio-full", QEMU_CAPS_AUDIODEV); + DO_TEST("audio-jack-full", QEMU_CAPS_AUDIODEV); + DO_TEST("audio-oss-full", QEMU_CAPS_AUDIODEV); + DO_TEST("audio-pulseaudio-full", QEMU_CAPS_AUDIODEV); + DO_TEST("audio-sdl-full", QEMU_CAPS_AUDIODEV); + DO_TEST("audio-spice-full", QEMU_CAPS_AUDIODEV); + DO_TEST("audio-file-full", QEMU_CAPS_AUDIODEV); DO_TEST_CAPS_LATEST("audio-many-backends"); -- 2.29.2

This pulls in the remaining QEMU audio backend specific settings to the XML schema. <audio id="1" type="alsa"> <input dev="/dev/dsp0"/> <output dev="/dev/dsp1"/> </audio> <audio id="1" type="coreaudio"> <input bufferCount="50"/> <output bufferCount="42"/> </audio> <audio id="1" type="file" path="audio.wav"/> <audio id="1" type="jack"> <input serverName="fish" clientName="food" connectPorts="yum"/> <output serverName="fish" clientName="food" connectPorts="yum"/> </audio> <audio id="1" type="oss" tryMMap="yes" exclusive="yes" dspPolicy="3"> <input dev="/dev/dsp0" bufferCount="50" tryPoll="yes"/> <output dev="/dev/dsp1" bufferCount="30" tryPoll="no"/> </audio> <audio id="1" type="pulseaudio" serverName="acme.example.org"> <input name="fish" streamName="food" latency="100"/> <output name="fish" streamName="food" latency="200"/> </audio> <audio type='sdl' id='1' driver='pulseaudio'> <input bufferCount='40'/> <output bufferCount='40'/> </audio> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- docs/formatdomain.rst | 140 +++++++++++++++++- docs/schemas/domaincommon.rng | 75 ++++++++++ src/conf/domain_conf.c | 271 +++++++++++++++++++++++++++++++++- src/conf/domain_conf.h | 57 +++++++ 4 files changed, 538 insertions(+), 5 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index d773341c66..2b1d045a70 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -6924,6 +6924,21 @@ ALSA audio backend The 'alsa' audio type uses the ALSA host audio device framework. +The following additional attributes are permitted on the ``<input>`` +and ``<output>`` elements + +* ``dev`` + + Path to the host device node to connect the backend to. A hypervisor + specific default applies if not specified. + +:: + + <audio id="1" type="alsa"> + <input dev="/dev/dsp0"/> + <output dev="/dev/dsp1"/> + </audio> + :since:`Since 7.2.0, qemu` Coreaudio audio backend @@ -6932,6 +6947,21 @@ Coreaudio audio backend The 'coreaudio' audio backend delegates to a CoreAudio host audio framework for input and output on macOS. +The following additional attributes are permitted on the ``<input>`` +and ``<output>`` elements + +* ``bufferCount`` + + The number of buffers. It is recommended to set the ``bufferLength`` + attribute at the same time. + +:: + + <audio id="1" type="coreaudio"> + <input bufferCount="50"/> + <output bufferCount="42"/> + </audio> + :since:`Since 7.2.0, qemu` Jack audio backend @@ -6940,6 +6970,34 @@ Jack audio backend The 'jack' audio backend delegates to a Jack daemon for audio input and output. +The following additional attributes are permitted on the ``<input>`` +and ``<output>`` elements + +* ``serverName`` + + Select the Jack server instance to connect to. + +* ``clientName`` + + The client name to identify as. The server may modify this to + ensure uniqueness unless ``exactName`` is enabled + +* ``connectPorts`` + + A regular expression of Jack client port names to monitor and + connect to. + +* ``exactName`` + + Use the exact ``clientName`` requested + +:: + + <audio id="1" type="jack"> + <input serverName="fish" clientName="food" connectPorts="system:capture_[13]" exactName="yes"/> + <output serverName="fish" clientName="food" connectPorts="system:playback_[13]" exactName="yes"/> + </audio> + :since:`Since 7.2.0, qemu` OSS audio backend @@ -6947,6 +7005,23 @@ OSS audio backend The 'oss' audio type uses the OSS host audio device framework. +The following additional attributes are permitted on the ``<audio>`` +element + +* ``tryMMap`` + + Attempt to use mmap for data transfer + +* ``exclusive`` + + Enforce exclusive access to the host device + +* ``dspPolicy`` + + Set the timing policy of the device, values between -1 and 10. + Smaller numbers result in lower latency but higher CPU usage. + A negatve value requests use of fragment mode. + The following additional attributes are permitted on the ``<input>`` and ``<output>`` elements @@ -6955,11 +7030,20 @@ and ``<output>`` elements Path to the host device node to connect the backend to. A hypervisor specific default applies if not specified. +* ``bufferCount`` + + The number of buffers. It is recommended to set the ``bufferLength`` + attribute at the same time. + +* ``tryPoll`` + + Attempt to use polling mode + :: - <audio type='oss' id='1'> - <input dev='/dev/dsp0'/> - <output dev='/dev/dsp0'/> + <audio type='oss' id='1' tryMMap='yes' exclusive='yes' dspPolicy='4'> + <input dev='/dev/dsp0' bufferCount='40' tryPoll='yes'/> + <output dev='/dev/dsp0' bufferCount='40' tryPoll='yes'/> </audio> :since:`Since 6.7.0, bhyve; Since 7.2.0, qemu` @@ -6970,6 +7054,35 @@ PulseAudio audio backend The 'pulseaudio' audio backend delegates to a PulseAudio daemon audio input and output. +The following additional attributes are permitted on the ``<audio>`` +element + +* ``serverName`` + + Hostname of the PulseAudio server + +The following additional attributes are permitted on the ``<input>`` +and ``<output>`` elements + +* ``name`` + + The sink/source name to use + +* ``streamName`` + + The name to identify the stream associated with the VM + +* ``latency`` + + Desired latency for the server to target in microseconds + +:: + + <audio id="1" type="pulseaudio" serverName="acme.example.org"> + <input name="fish" streamName="food" latency="100"/> + <output name="fish" streamName="food" latency="200"/> + </audio> + :since:`Since 7.2.0, qemu` SDL audio backend @@ -6986,9 +7099,20 @@ element SDL audio driver. The ``name`` attribute specifies SDL driver name, one of 'esd', 'alsa', 'arts', 'pulseaudio'. +The following additional attributes are permitted on the ``<input>`` +and ``<output>`` elements + +* ``bufferCount`` + + The number of buffers. It is recommended to set the ``bufferLength`` + attribute at the same time. + :: - <audio type='sdl' id='1' driver='pulseaudio'/> + <audio type='sdl' id='1' driver='pulseaudio'> + <input bufferCount='40'/> + <output bufferCount='40'/> + </audio> :since:`Since 7.2.0, qemu` @@ -7000,6 +7124,10 @@ it does not connect to any host audio framework. It exclusively allows a SPICE server to send and receive audio. This is the default backend when SPICE graphics are enabled in QEMU. +:: + + <audio type='spice' id='1'/> + :since:`Since 7.2.0, qemu` File audio backend @@ -7009,6 +7137,10 @@ The 'file' audio backend is an output only driver which records audio to a file. The file format is implementation defined, and defaults to 'WAV' with QEMU. +:: + + <audio id="1" type="file" path="audio.wav"/> + :since:`Since 7.2.0, qemu` :anchor:`<a id="elementsWatchdog"/>` diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 82fc74ca00..84a4910203 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -4603,6 +4603,26 @@ <define name="audiojack"> <ref name="audiocommonattr"/> + <optional> + <attribute name="serverName"> + <data type="string"/> + </attribute> + </optional> + <optional> + <attribute name="clientName"> + <data type="string"/> + </attribute> + </optional> + <optional> + <attribute name="connectPorts"> + <data type="string"/> + </attribute> + </optional> + <optional> + <attribute name="exactName"> + <ref name="virYesNo"/> + </attribute> + </optional> <ref name="audiocommonchild"/> </define> @@ -4613,16 +4633,46 @@ <ref name="filePath"/> </attribute> </optional> + <optional> + <attribute name="bufferCount"> + <ref name="uint32"/> + </attribute> + </optional> + <optional> + <attribute name="tryPoll"> + <ref name="virYesNo"/> + </attribute> + </optional> <ref name="audiocommonchild"/> </define> <define name="audiopulseaudio"> <ref name="audiocommonattr"/> + <optional> + <attribute name="name"> + <data type="string"/> + </attribute> + </optional> + <optional> + <attribute name="streamName"> + <data type="string"/> + </attribute> + </optional> + <optional> + <attribute name="latency"> + <ref name="uint32"/> + </attribute> + </optional> <ref name="audiocommonchild"/> </define> <define name="audiosdl"> <ref name="audiocommonattr"/> + <optional> + <attribute name="bufferCount"> + <ref name="uint32"/> + </attribute> + </optional> <ref name="audiocommonchild"/> </define> @@ -4716,6 +4766,21 @@ <value>oss</value> </choice> </attribute> + <optional> + <attribute name="tryMMap"> + <ref name="virYesNo"/> + </attribute> + </optional> + <optional> + <attribute name="exclusive"> + <ref name="virYesNo"/> + </attribute> + </optional> + <optional> + <attribute name="dspPolicy"> + <data type="int"/> + </attribute> + </optional> <interleave> <optional> <element name="input"> @@ -4733,6 +4798,11 @@ <attribute name="type"> <value>pulseaudio</value> </attribute> + <optional> + <attribute name="serverName"> + <data type="string"/> + </attribute> + </optional> <interleave> <optional> <element name="input"> @@ -4794,6 +4864,11 @@ <attribute name="type"> <value>file</value> </attribute> + <optional> + <attribute name="path"> + <ref name="filePath"/> + </attribute> + </optional> <interleave> <optional> <element name="input"> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 5936f5937f..71bd2d06db 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -2918,12 +2918,33 @@ void virDomainSoundDefFree(virDomainSoundDefPtr def) g_free(def); } +static void +virDomainAudioIOALSAFree(virDomainAudioIOALSA *def) +{ + g_free(def->dev); +} + +static void +virDomainAudioIOJackFree(virDomainAudioIOJack *def) +{ + g_free(def->serverName); + g_free(def->clientName); + g_free(def->connectPorts); +} + static void virDomainAudioIOOSSFree(virDomainAudioIOOSS *def) { g_free(def->dev); } +static void +virDomainAudioIOPulseAudioFree(virDomainAudioIOPulseAudio *def) +{ + g_free(def->name); + g_free(def->streamName); +} + void virDomainAudioDefFree(virDomainAudioDefPtr def) { @@ -2935,12 +2956,16 @@ virDomainAudioDefFree(virDomainAudioDefPtr def) break; case VIR_DOMAIN_AUDIO_TYPE_ALSA: + virDomainAudioIOALSAFree(&def->backend.alsa.input); + virDomainAudioIOALSAFree(&def->backend.alsa.output); break; case VIR_DOMAIN_AUDIO_TYPE_COREAUDIO: break; case VIR_DOMAIN_AUDIO_TYPE_JACK: + virDomainAudioIOJackFree(&def->backend.jack.input); + virDomainAudioIOJackFree(&def->backend.jack.output); break; case VIR_DOMAIN_AUDIO_TYPE_OSS: @@ -2949,6 +2974,9 @@ virDomainAudioDefFree(virDomainAudioDefPtr def) break; case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + virDomainAudioIOPulseAudioFree(&def->backend.pulseaudio.input); + virDomainAudioIOPulseAudioFree(&def->backend.pulseaudio.output); + g_free(def->backend.pulseaudio.serverName); break; case VIR_DOMAIN_AUDIO_TYPE_SDL: @@ -2958,6 +2986,7 @@ virDomainAudioDefFree(virDomainAudioDefPtr def) break; case VIR_DOMAIN_AUDIO_TYPE_FILE: + g_free(def->backend.file.path); break; case VIR_DOMAIN_AUDIO_TYPE_LAST: @@ -14036,12 +14065,118 @@ virDomainAudioCommonParse(virDomainAudioIOCommon *def, } +static void +virDomainAudioALSAParse(virDomainAudioIOALSA *def, + xmlNodePtr node) +{ + def->dev = virXMLPropString(node, "dev"); +} + + +static int +virDomainAudioCoreAudioParse(virDomainAudioIOCoreAudio *def, + xmlNodePtr node) +{ + g_autofree char *bufferCount = virXMLPropString(node, "bufferCount"); + + if (bufferCount && + virStrToLong_ui(bufferCount, NULL, 10, + &def->bufferCount) < 0) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'bufferCount' value '%s'"), bufferCount); + return -1; + } + + return 0; +} + + +static int +virDomainAudioJackParse(virDomainAudioIOJack *def, + xmlNodePtr node) +{ + g_autofree char *exactName = virXMLPropString(node, "exactName"); + + def->serverName = virXMLPropString(node, "serverName"); + def->clientName = virXMLPropString(node, "clientName"); + def->connectPorts = virXMLPropString(node, "connectPorts"); + + if (exactName && + ((def->exactName = + virTristateBoolTypeFromString(exactName)) <= 0)) { + virReportError(VIR_ERR_XML_ERROR, + _("unknown 'exactName' value '%s'"), exactName); + return -1; + } + + return 0; +} + + static int virDomainAudioOSSParse(virDomainAudioIOOSS *def, xmlNodePtr node) { + g_autofree char *tryPoll = virXMLPropString(node, "tryPoll"); + g_autofree char *bufferCount = virXMLPropString(node, "bufferCount"); + def->dev = virXMLPropString(node, "dev"); + if (tryPoll && + ((def->tryPoll = + virTristateBoolTypeFromString(tryPoll)) <= 0)) { + virReportError(VIR_ERR_XML_ERROR, + _("unknown 'tryPoll' value '%s'"), tryPoll); + return -1; + } + + if (bufferCount && + virStrToLong_ui(bufferCount, NULL, 10, + &def->bufferCount) < 0) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'bufferCount' value '%s'"), bufferCount); + return -1; + } + + return 0; +} + + +static int +virDomainAudioPulseAudioParse(virDomainAudioIOPulseAudio *def, + xmlNodePtr node) +{ + g_autofree char *latency = virXMLPropString(node, "latency"); + + def->name = virXMLPropString(node, "name"); + def->streamName = virXMLPropString(node, "streamName"); + + if (latency && + virStrToLong_ui(latency, NULL, 10, + &def->latency) < 0) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'latency' value '%s'"), latency); + return -1; + } + + return 0; +} + + +static int +virDomainAudioSDLParse(virDomainAudioIOSDL *def, + xmlNodePtr node) +{ + g_autofree char *bufferCount = virXMLPropString(node, "bufferCount"); + + if (bufferCount && + virStrToLong_ui(bufferCount, NULL, 10, + &def->bufferCount) < 0) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'bufferCount' value '%s'"), bufferCount); + return -1; + } + return 0; } @@ -14099,22 +14234,69 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, break; case VIR_DOMAIN_AUDIO_TYPE_ALSA: + if (inputNode) + virDomainAudioALSAParse(&def->backend.alsa.input, inputNode); + if (outputNode) + virDomainAudioALSAParse(&def->backend.alsa.output, outputNode); break; case VIR_DOMAIN_AUDIO_TYPE_COREAUDIO: + if (inputNode) + virDomainAudioCoreAudioParse(&def->backend.coreaudio.input, inputNode); + if (outputNode) + virDomainAudioCoreAudioParse(&def->backend.coreaudio.output, outputNode); break; case VIR_DOMAIN_AUDIO_TYPE_JACK: + if (inputNode) + virDomainAudioJackParse(&def->backend.jack.input, inputNode); + if (outputNode) + virDomainAudioJackParse(&def->backend.jack.output, outputNode); break; - case VIR_DOMAIN_AUDIO_TYPE_OSS: + case VIR_DOMAIN_AUDIO_TYPE_OSS: { + g_autofree char *tryMMap = virXMLPropString(node, "tryMMap"); + g_autofree char *exclusive = virXMLPropString(node, "exclusive"); + g_autofree char *dspPolicy = virXMLPropString(node, "dspPolicy"); + + if (tryMMap && ((def->backend.oss.tryMMap = + virTristateBoolTypeFromString(tryMMap)) <= 0)) { + virReportError(VIR_ERR_XML_ERROR, + _("unknown 'tryMMap' value '%s'"), tryMMap); + goto error; + } + + if (exclusive && ((def->backend.oss.exclusive = + virTristateBoolTypeFromString(exclusive)) <= 0)) { + virReportError(VIR_ERR_XML_ERROR, + _("unknown 'exclusive' value '%s'"), exclusive); + goto error; + } + + if (dspPolicy) { + if (virStrToLong_i(dspPolicy, NULL, 10, + &def->backend.oss.dspPolicy) < 0) { + virReportError(VIR_ERR_XML_ERROR, + _("cannot parse 'dspPolicy' value '%s'"), dspPolicy); + goto error; + } + def->backend.oss.dspPolicySet = true; + } + if (inputNode) virDomainAudioOSSParse(&def->backend.oss.input, inputNode); if (outputNode) virDomainAudioOSSParse(&def->backend.oss.output, outputNode); break; + } case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + def->backend.pulseaudio.serverName = virXMLPropString(node, "serverName"); + + if (inputNode) + virDomainAudioPulseAudioParse(&def->backend.pulseaudio.input, inputNode); + if (outputNode) + virDomainAudioPulseAudioParse(&def->backend.pulseaudio.output, outputNode); break; case VIR_DOMAIN_AUDIO_TYPE_SDL: { @@ -14126,6 +14308,11 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, _("unknown SDL driver '%s'"), driver); goto error; } + + if (inputNode) + virDomainAudioSDLParse(&def->backend.sdl.input, inputNode); + if (outputNode) + virDomainAudioSDLParse(&def->backend.sdl.output, outputNode); break; } @@ -14133,6 +14320,7 @@ virDomainAudioDefParseXML(virDomainXMLOptionPtr xmlopt G_GNUC_UNUSED, break; case VIR_DOMAIN_AUDIO_TYPE_FILE: + def->backend.file.path = virXMLPropString(node, "path"); break; case VIR_DOMAIN_AUDIO_TYPE_LAST: @@ -26656,11 +26844,68 @@ virDomainAudioCommonFormat(virDomainAudioIOCommon *def, } } + +static void +virDomainAudioALSAFormat(virDomainAudioIOALSA *def, + virBufferPtr buf) +{ + virBufferEscapeString(buf, " dev='%s'", def->dev); +} + + +static void +virDomainAudioCoreAudioFormat(virDomainAudioIOCoreAudio *def, + virBufferPtr buf) +{ + if (def->bufferCount) + virBufferAsprintf(buf, " bufferCount='%u'", def->bufferCount); +} + + +static void +virDomainAudioJackFormat(virDomainAudioIOJack *def, + virBufferPtr buf) +{ + virBufferEscapeString(buf, " serverName='%s'", def->serverName); + virBufferEscapeString(buf, " clientName='%s'", def->clientName); + virBufferEscapeString(buf, " connectPorts='%s'", def->connectPorts); + if (def->exactName) + virBufferAsprintf(buf, " exactName='%s'", + virTristateBoolTypeToString(def->exactName)); +} + + static void virDomainAudioOSSFormat(virDomainAudioIOOSS *def, virBufferPtr buf) { virBufferEscapeString(buf, " dev='%s'", def->dev); + if (def->bufferCount) + virBufferAsprintf(buf, " bufferCount='%u'", def->bufferCount); + if (def->tryPoll) + virBufferAsprintf(buf, " tryPoll='%s'", + virTristateBoolTypeToString(def->tryPoll)); +} + + +static void +virDomainAudioPulseAudioFormat(virDomainAudioIOPulseAudio *def, + virBufferPtr buf) +{ + virBufferEscapeString(buf, " name='%s'", def->name); + virBufferEscapeString(buf, " streamName='%s'", def->streamName); + if (def->latency) + virBufferAsprintf(buf, " latency='%u'", def->latency); + +} + + +static void +virDomainAudioSDLFormat(virDomainAudioIOSDL *def, + virBufferPtr buf) +{ + if (def->bufferCount) + virBufferAsprintf(buf, " bufferCount='%u'", def->bufferCount); } @@ -26686,20 +26931,40 @@ virDomainAudioDefFormat(virBufferPtr buf, break; case VIR_DOMAIN_AUDIO_TYPE_ALSA: + virDomainAudioALSAFormat(&def->backend.alsa.input, &inputBuf); + virDomainAudioALSAFormat(&def->backend.alsa.output, &outputBuf); break; case VIR_DOMAIN_AUDIO_TYPE_COREAUDIO: + virDomainAudioCoreAudioFormat(&def->backend.coreaudio.input, &inputBuf); + virDomainAudioCoreAudioFormat(&def->backend.coreaudio.output, &outputBuf); break; case VIR_DOMAIN_AUDIO_TYPE_JACK: + virDomainAudioJackFormat(&def->backend.jack.input, &inputBuf); + virDomainAudioJackFormat(&def->backend.jack.output, &outputBuf); break; case VIR_DOMAIN_AUDIO_TYPE_OSS: + if (def->backend.oss.tryMMap) + virBufferAsprintf(buf, " tryMMap='%s'", + virTristateBoolTypeToString(def->backend.oss.tryMMap)); + if (def->backend.oss.exclusive) + virBufferAsprintf(buf, " exclusive='%s'", + virTristateBoolTypeToString(def->backend.oss.exclusive)); + if (def->backend.oss.dspPolicySet) + virBufferAsprintf(buf, " dspPolicy='%d'", def->backend.oss.dspPolicy); + virDomainAudioOSSFormat(&def->backend.oss.input, &inputBuf); virDomainAudioOSSFormat(&def->backend.oss.output, &outputBuf); break; case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + virBufferEscapeString(buf, " serverName='%s'", + def->backend.pulseaudio.serverName); + + virDomainAudioPulseAudioFormat(&def->backend.pulseaudio.input, &inputBuf); + virDomainAudioPulseAudioFormat(&def->backend.pulseaudio.output, &outputBuf); break; case VIR_DOMAIN_AUDIO_TYPE_SDL: @@ -26707,12 +26972,16 @@ virDomainAudioDefFormat(virBufferPtr buf, virBufferAsprintf(buf, " driver='%s'", virDomainAudioSDLDriverTypeToString( def->backend.sdl.driver)); + + virDomainAudioSDLFormat(&def->backend.sdl.input, &inputBuf); + virDomainAudioSDLFormat(&def->backend.sdl.output, &outputBuf); break; case VIR_DOMAIN_AUDIO_TYPE_SPICE: break; case VIR_DOMAIN_AUDIO_TYPE_FILE: + virBufferEscapeString(buf, " path='%s'", def->backend.file.path); break; case VIR_DOMAIN_AUDIO_TYPE_LAST: diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 4ccadbaf37..2a174a60cf 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1493,10 +1493,41 @@ struct _virDomainAudioIOCommon { unsigned int bufferLength; /* milliseconds */ }; +typedef struct _virDomainAudioIOALSA virDomainAudioIOALSA; +struct _virDomainAudioIOALSA { + char *dev; +}; + +typedef struct _virDomainAudioIOCoreAudio virDomainAudioIOCoreAudio; +struct _virDomainAudioIOCoreAudio { + unsigned int bufferCount; +}; + +typedef struct _virDomainAudioIOJack virDomainAudioIOJack; +struct _virDomainAudioIOJack { + char *serverName; + char *clientName; + char *connectPorts; + virTristateBool exactName; +}; typedef struct _virDomainAudioIOOSS virDomainAudioIOOSS; struct _virDomainAudioIOOSS { char *dev; + unsigned int bufferCount; + virTristateBool tryPoll; +}; + +typedef struct _virDomainAudioIOPulseAudio virDomainAudioIOPulseAudio; +struct _virDomainAudioIOPulseAudio { + char *name; + char *streamName; + unsigned int latency; +}; + +typedef struct _virDomainAudioIOSDL virDomainAudioIOSDL; +struct _virDomainAudioIOSDL { + unsigned int bufferCount; }; struct _virDomainAudioDef { @@ -1507,13 +1538,39 @@ struct _virDomainAudioDef { virDomainAudioIOCommon input; virDomainAudioIOCommon output; union { + struct { + virDomainAudioIOALSA input; + virDomainAudioIOALSA output; + } alsa; + struct { + virDomainAudioIOCoreAudio input; + virDomainAudioIOCoreAudio output; + } coreaudio; + struct { + virDomainAudioIOJack input; + virDomainAudioIOJack output; + } jack; struct { virDomainAudioIOOSS input; virDomainAudioIOOSS output; + virTristateBool tryMMap; + virTristateBool exclusive; + bool dspPolicySet; + int dspPolicy; } oss; struct { + virDomainAudioIOPulseAudio input; + virDomainAudioIOPulseAudio output; + char *serverName; + } pulseaudio; + struct { + virDomainAudioIOSDL input; + virDomainAudioIOSDL output; int driver; /* virDomainAudioSDLDriver */ } sdl; + struct { + char *path; + } file; } backend; }; -- 2.29.2

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/qemu/qemu_command.c | 164 +++++++++++++++++- src/qemu/qemu_validate.c | 34 ++++ tests/qemuxml2argvdata/audio-alsa-best.args | 2 + .../audio-alsa-best.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/audio-alsa-best.xml | 4 +- .../audio-alsa-full.x86_64-latest.args | 3 +- tests/qemuxml2argvdata/audio-alsa-full.xml | 4 +- .../audio-coreaudio-best.args | 2 + .../audio-coreaudio-best.x86_64-latest.args | 4 +- .../qemuxml2argvdata/audio-coreaudio-best.xml | 2 +- .../audio-coreaudio-full.x86_64-latest.args | 3 +- .../qemuxml2argvdata/audio-coreaudio-full.xml | 4 +- tests/qemuxml2argvdata/audio-file-best.args | 1 + .../audio-file-best.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/audio-file-best.xml | 2 +- .../audio-file-full.x86_64-latest.args | 3 +- tests/qemuxml2argvdata/audio-file-full.xml | 2 +- .../audio-jack-full.x86_64-latest.args | 4 +- tests/qemuxml2argvdata/audio-jack-full.xml | 4 +- tests/qemuxml2argvdata/audio-oss-best.args | 5 + .../audio-oss-best.x86_64-latest.args | 3 +- tests/qemuxml2argvdata/audio-oss-best.xml | 4 +- .../audio-oss-full.x86_64-latest.args | 4 +- tests/qemuxml2argvdata/audio-oss-full.xml | 6 +- .../audio-pulseaudio-best.args | 4 + .../audio-pulseaudio-best.x86_64-latest.args | 7 +- .../audio-pulseaudio-best.xml | 6 +- .../audio-pulseaudio-full.err | 2 +- .../audio-pulseaudio-full.x86_64-latest.args | 4 +- .../audio-pulseaudio-full.xml | 6 +- tests/qemuxml2argvdata/audio-sdl-best.args | 1 + .../audio-sdl-best.x86_64-latest.args | 4 +- tests/qemuxml2argvdata/audio-sdl-best.xml | 2 +- .../audio-sdl-full.x86_64-latest.args | 3 +- tests/qemuxml2argvdata/audio-sdl-full.xml | 4 +- 35 files changed, 266 insertions(+), 45 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 6e2294ba9a..a5a5c729b3 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -7615,6 +7615,40 @@ qemuBuildAudioCommonArg(virBufferPtr buf, } } +static void +qemuBuildAudioALSAArg(virBufferPtr buf, + const char *prefix, + virDomainAudioIOALSA *def) +{ + if (def->dev) + virBufferAsprintf(buf, ",%s.dev=%s", prefix, def->dev); +} + +static void +qemuBuildAudioCoreAudioArg(virBufferPtr buf, + const char *prefix, + virDomainAudioIOCoreAudio *def) +{ + if (def->bufferCount) + virBufferAsprintf(buf, ",%s.buffer-count=%u", prefix, def->bufferCount); +} + +static void +qemuBuildAudioJackArg(virBufferPtr buf, + const char *prefix, + virDomainAudioIOJack *def) +{ + if (def->serverName) + virBufferAsprintf(buf, ",%s.server-name=%s", prefix, def->serverName); + if (def->clientName) + virBufferAsprintf(buf, ",%s.client-name=%s", prefix, def->clientName); + if (def->connectPorts) + virBufferAsprintf(buf, ",%s.connect-ports=%s", prefix, def->connectPorts); + if (def->exactName) + virBufferAsprintf(buf, ",%s.exact-name=%s", prefix, + virTristateSwitchTypeToString(def->exactName)); +} + static void qemuBuildAudioOSSArg(virBufferPtr buf, const char *prefix, @@ -7622,6 +7656,33 @@ qemuBuildAudioOSSArg(virBufferPtr buf, { if (def->dev) virBufferAsprintf(buf, ",%s.dev=%s", prefix, def->dev); + if (def->bufferCount) + virBufferAsprintf(buf, ",%s.buffer-count=%u", prefix, def->bufferCount); + if (def->tryPoll) + virBufferAsprintf(buf, ",%s.try-poll=%s", prefix, + virTristateSwitchTypeToString(def->tryPoll)); +} + +static void +qemuBuildAudioPulseAudioArg(virBufferPtr buf, + const char *prefix, + virDomainAudioIOPulseAudio *def) +{ + if (def->name) + virBufferAsprintf(buf, ",%s.name=%s", prefix, def->name); + if (def->streamName) + virBufferAsprintf(buf, ",%s.stream-name=%s", prefix, def->streamName); + if (def->latency) + virBufferAsprintf(buf, ",%s.latency=%u", prefix, def->latency); +} + +static void +qemuBuildAudioSDLArg(virBufferPtr buf, + const char *prefix, + virDomainAudioIOSDL *def) +{ + if (def->bufferCount) + virBufferAsprintf(buf, ",%s.buffer-count=%u", prefix, def->bufferCount); } static int @@ -7644,23 +7705,46 @@ qemuBuildAudioCommandLineArg(virCommandPtr cmd, break; case VIR_DOMAIN_AUDIO_TYPE_ALSA: + qemuBuildAudioALSAArg(&buf, "in", &def->backend.alsa.input); + qemuBuildAudioALSAArg(&buf, "out", &def->backend.alsa.output); break; case VIR_DOMAIN_AUDIO_TYPE_COREAUDIO: + qemuBuildAudioCoreAudioArg(&buf, "in", &def->backend.coreaudio.input); + qemuBuildAudioCoreAudioArg(&buf, "out", &def->backend.coreaudio.output); break; case VIR_DOMAIN_AUDIO_TYPE_JACK: + qemuBuildAudioJackArg(&buf, "in", &def->backend.jack.input); + qemuBuildAudioJackArg(&buf, "out", &def->backend.jack.output); break; case VIR_DOMAIN_AUDIO_TYPE_OSS: qemuBuildAudioOSSArg(&buf, "in", &def->backend.oss.input); qemuBuildAudioOSSArg(&buf, "out", &def->backend.oss.output); + + if (def->backend.oss.tryMMap) + virBufferAsprintf(&buf, ",try-mmap=%s", + virTristateSwitchTypeToString(def->backend.oss.tryMMap)); + if (def->backend.oss.exclusive) + virBufferAsprintf(&buf, ",exclusive=%s", + virTristateSwitchTypeToString(def->backend.oss.exclusive)); + if (def->backend.oss.dspPolicySet) + virBufferAsprintf(&buf, ",dsp-policy=%d", def->backend.oss.dspPolicy); break; case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + qemuBuildAudioPulseAudioArg(&buf, "in", &def->backend.pulseaudio.input); + qemuBuildAudioPulseAudioArg(&buf, "out", &def->backend.pulseaudio.output); + + if (def->backend.pulseaudio.serverName) + virBufferAsprintf(&buf, ",server=%s", def->backend.pulseaudio.serverName); break; case VIR_DOMAIN_AUDIO_TYPE_SDL: + qemuBuildAudioSDLArg(&buf, "in", &def->backend.sdl.input); + qemuBuildAudioSDLArg(&buf, "out", &def->backend.sdl.output); + if (def->backend.sdl.driver) { /* * Some SDL audio driver names are different on SDL 1.2 @@ -7679,6 +7763,8 @@ qemuBuildAudioCommandLineArg(virCommandPtr cmd, break; case VIR_DOMAIN_AUDIO_TYPE_FILE: + if (def->backend.file.path) + virBufferEscapeString(&buf, ",path=%s", def->backend.file.path); break; case VIR_DOMAIN_AUDIO_TYPE_LAST: @@ -7731,16 +7817,63 @@ qemuBuildAudioCommonEnv(virCommandPtr cmd, } } +static void +qemuBuildAudioALSAEnv(virCommandPtr cmd, + const char *prefix, + virDomainAudioIOALSA *def) +{ + if (def->dev) + virCommandAddEnvFormat(cmd, "%sDEV=%s", + prefix, def->dev); +} + +static void +qemuBuildAudioCoreAudioEnv(virCommandPtr cmd, + virDomainAudioDefPtr def) +{ + if (def->backend.coreaudio.output.bufferCount) + virCommandAddEnvFormat(cmd, "QEMU_COREAUDIO_BUFFER_COUNT=%u", + def->backend.coreaudio.output.bufferCount); + if (def->output.bufferLength) + virCommandAddEnvFormat(cmd, "QEMU_COREAUDIO_BUFFER_SIZE=%u", + def->output.bufferLength); +} + static void qemuBuildAudioOSSEnv(virCommandPtr cmd, const char *prefix, + const char *prefix2, virDomainAudioIOOSS *def) { if (def->dev) virCommandAddEnvFormat(cmd, "%sDEV=%s", prefix, def->dev); + if (def->tryPoll) + virCommandAddEnvFormat(cmd, "%sTRY_POLL=%s", prefix2, + virTristateSwitchTypeToString(def->tryPoll)); } +static void +qemuBuildAudioPulseAudioEnv(virCommandPtr cmd, + virDomainAudioDef *def) +{ + if (def->backend.pulseaudio.input.name) + virCommandAddEnvPair(cmd, "QEMU_PA_SOURCE", + def->backend.pulseaudio.input.name); + if (def->backend.pulseaudio.output.name) + virCommandAddEnvPair(cmd, "QEMU_PA_SINK", + def->backend.pulseaudio.output.name); + + if (def->input.bufferLength) + virCommandAddEnvFormat(cmd, "QEMU_PA_SAMPLES=%u", + def->input.bufferLength); + + if (def->backend.pulseaudio.serverName) + virCommandAddEnvPair(cmd, "QEMU_PA_SERVER=%s", + def->backend.pulseaudio.serverName); +} + + static int qemuBuildAudioCommandLineEnv(virCommandPtr cmd, virDomainDefPtr def) @@ -7761,23 +7894,47 @@ qemuBuildAudioCommandLineEnv(virCommandPtr cmd, break; case VIR_DOMAIN_AUDIO_TYPE_ALSA: + qemuBuildAudioALSAEnv(cmd, "QEMU_AUDIO_ADC_", &audio->backend.alsa.input); + qemuBuildAudioALSAEnv(cmd, "QEMU_AUDIO_DAC_", &audio->backend.alsa.output); break; case VIR_DOMAIN_AUDIO_TYPE_COREAUDIO: + qemuBuildAudioCoreAudioEnv(cmd, audio); 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); + qemuBuildAudioOSSEnv(cmd, "QEMU_OSS_ADC_", "QEMU_AUDIO_ADC_", + &audio->backend.oss.input); + qemuBuildAudioOSSEnv(cmd, "QEMU_OSS_DAC_", "QEMU_AUDIO_DAC_", + &audio->backend.oss.output); + + if (audio->backend.oss.input.bufferCount) + virCommandAddEnvFormat(cmd, "QEMU_OSS_NFRAGS=%u", + audio->backend.oss.input.bufferCount); + + if (audio->backend.oss.tryMMap) + virCommandAddEnvFormat(cmd, "QEMU_OSS_MMAP=%s", + virTristateSwitchTypeToString(audio->backend.oss.tryMMap)); + if (audio->backend.oss.exclusive) + virCommandAddEnvFormat(cmd, "QEMU_OSS_EXCLUSIVE=%s", + virTristateSwitchTypeToString(audio->backend.oss.exclusive)); + if (audio->backend.oss.dspPolicySet) + virCommandAddEnvFormat(cmd, "QEMU_OSS_POLICY=%d", + audio->backend.oss.dspPolicy); break; case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: + qemuBuildAudioPulseAudioEnv(cmd, audio); break; case VIR_DOMAIN_AUDIO_TYPE_SDL: + if (audio->output.bufferLength) + virCommandAddEnvFormat(cmd, "QEMU_SDL_SAMPLES=%u", + audio->output.bufferLength); + if (audio->backend.sdl.driver) { /* * Some SDL audio driver names are different on SDL 1.2 @@ -7796,6 +7953,9 @@ qemuBuildAudioCommandLineEnv(virCommandPtr cmd, break; case VIR_DOMAIN_AUDIO_TYPE_FILE: + if (audio->backend.file.path) + virCommandAddEnvFormat(cmd, "QEMU_WAV_PATH=%s", + audio->backend.file.path); break; case VIR_DOMAIN_AUDIO_TYPE_LAST: diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 5aaadcb82d..dc67d4c442 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -4189,6 +4189,11 @@ qemuValidateDomainDeviceDefAudio(virDomainAudioDefPtr audio, _("setting audio buffer length is not supported with this QEMU")); return -1; } + if (audio->backend.coreaudio.input.bufferCount) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("setting audio buffer count is not supported with this QEMU")); + return -1; + } } break; @@ -4201,10 +4206,32 @@ qemuValidateDomainDeviceDefAudio(virDomainAudioDefPtr audio, break; case VIR_DOMAIN_AUDIO_TYPE_OSS: + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + if (audio->backend.oss.input.bufferCount != + audio->backend.oss.output.bufferCount) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("setting audio buffer count is not supported with this QEMU")); + return -1; + } + } break; case VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_AUDIODEV)) { + if (audio->backend.pulseaudio.input.streamName || + audio->backend.pulseaudio.output.streamName) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("setting audio stream name is not supported with this QEMU")); + return -1; + } + + if (audio->backend.pulseaudio.input.latency || + audio->backend.pulseaudio.output.latency) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("setting audio latency is not supported with this QEMU")); + return -1; + } + if (audio->input.bufferLength != audio->output.bufferLength) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("setting audio buffer length is not supported with this QEMU")); @@ -4220,6 +4247,13 @@ qemuValidateDomainDeviceDefAudio(virDomainAudioDefPtr audio, _("setting audio buffer length is not supported with this QEMU")); return -1; } + + if (audio->backend.sdl.input.bufferCount || + audio->backend.sdl.output.bufferCount) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("setting audio buffer count is not supported with this QEMU")); + return -1; + } } break; diff --git a/tests/qemuxml2argvdata/audio-alsa-best.args b/tests/qemuxml2argvdata/audio-alsa-best.args index 4461fc670c..d6c73dfc8b 100644 --- a/tests/qemuxml2argvdata/audio-alsa-best.args +++ b/tests/qemuxml2argvdata/audio-alsa-best.args @@ -17,6 +17,8 @@ QEMU_AUDIO_DAC_VOICES=2 \ QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +QEMU_AUDIO_ADC_DEV=/dev/dsp0 \ +QEMU_AUDIO_DAC_DEV=/dev/dsp1 \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args index 5f84dcca72..e9898c29de 100644 --- a/tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args @@ -36,7 +36,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=alsa,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ -out.channels=4,out.format=f32 \ +out.channels=4,out.format=f32,in.dev=/dev/dsp0,out.dev=/dev/dsp1 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-alsa-best.xml b/tests/qemuxml2argvdata/audio-alsa-best.xml index cefcc47027..1a6d5f4d9f 100644 --- a/tests/qemuxml2argvdata/audio-alsa-best.xml +++ b/tests/qemuxml2argvdata/audio-alsa-best.xml @@ -31,10 +31,10 @@ <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <audio id='1' type='alsa'> - <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' dev='/dev/dsp0'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' dev='/dev/dsp1'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args index 6ade7ef069..3c1b5ba6a5 100644 --- a/tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args @@ -36,7 +36,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=alsa,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ -out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,\ +in.dev=/dev/dsp0,out.dev=/dev/dsp1 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-alsa-full.xml b/tests/qemuxml2argvdata/audio-alsa-full.xml index 2cd488a3a5..634b41a0f0 100644 --- a/tests/qemuxml2argvdata/audio-alsa-full.xml +++ b/tests/qemuxml2argvdata/audio-alsa-full.xml @@ -31,10 +31,10 @@ <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <audio id='1' type='alsa'> - <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100' dev='/dev/dsp0'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200' dev='/dev/dsp1'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-coreaudio-best.args b/tests/qemuxml2argvdata/audio-coreaudio-best.args index f8250df5cb..cc8be459f6 100644 --- a/tests/qemuxml2argvdata/audio-coreaudio-best.args +++ b/tests/qemuxml2argvdata/audio-coreaudio-best.args @@ -17,6 +17,8 @@ QEMU_AUDIO_DAC_VOICES=2 \ QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +QEMU_COREAUDIO_BUFFER_COUNT=42 \ +QEMU_COREAUDIO_BUFFER_SIZE=200 \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest.args index 93166f27de..273655840a 100644 --- a/tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest.args @@ -35,8 +35,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ -audiodev id=audio1,driver=coreaudio,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ -out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ -out.channels=4,out.format=f32 \ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.buffer-length=200,\ +out.frequency=22050,out.channels=4,out.format=f32,out.buffer-count=42 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-coreaudio-best.xml b/tests/qemuxml2argvdata/audio-coreaudio-best.xml index 8a79404fde..66c52bb24c 100644 --- a/tests/qemuxml2argvdata/audio-coreaudio-best.xml +++ b/tests/qemuxml2argvdata/audio-coreaudio-best.xml @@ -34,7 +34,7 @@ <input mixingEngine='yes' fixedSettings='yes' voices='1'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200' bufferCount='42'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest.args index bc6c9e9241..2e8f7b6231 100644 --- a/tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest.args @@ -36,7 +36,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=coreaudio,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ -out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,\ +in.buffer-count=50,out.buffer-count=42 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-coreaudio-full.xml b/tests/qemuxml2argvdata/audio-coreaudio-full.xml index 671497986e..a46db6936b 100644 --- a/tests/qemuxml2argvdata/audio-coreaudio-full.xml +++ b/tests/qemuxml2argvdata/audio-coreaudio-full.xml @@ -31,10 +31,10 @@ <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <audio id='1' type='coreaudio'> - <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100' bufferCount='50'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200' bufferCount='42'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-file-best.args b/tests/qemuxml2argvdata/audio-file-best.args index bd73a5b26f..22f5730c80 100644 --- a/tests/qemuxml2argvdata/audio-file-best.args +++ b/tests/qemuxml2argvdata/audio-file-best.args @@ -17,6 +17,7 @@ QEMU_AUDIO_DAC_VOICES=2 \ QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +QEMU_WAV_PATH=audio.wav \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args index 546e4debe8..ff9248f002 100644 --- a/tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args @@ -36,7 +36,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=wav,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ -out.channels=4,out.format=f32 \ +out.channels=4,out.format=f32,path=audio.wav \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-file-best.xml b/tests/qemuxml2argvdata/audio-file-best.xml index 0617dbbc0b..3bd02c3f37 100644 --- a/tests/qemuxml2argvdata/audio-file-best.xml +++ b/tests/qemuxml2argvdata/audio-file-best.xml @@ -30,7 +30,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> - <audio id='1' type='file'> + <audio id='1' type='file' path='audio.wav'> <input mixingEngine='yes' fixedSettings='yes' voices='1'> <settings frequency='44100' channels='2' format='s16'/> </input> diff --git a/tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args index 1f1f05b39c..e24d072298 100644 --- a/tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args @@ -36,7 +36,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=wav,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ -out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,\ +path=audio.wav \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-file-full.xml b/tests/qemuxml2argvdata/audio-file-full.xml index c695a1715e..f88fe42b11 100644 --- a/tests/qemuxml2argvdata/audio-file-full.xml +++ b/tests/qemuxml2argvdata/audio-file-full.xml @@ -30,7 +30,7 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> - <audio id='1' type='file'> + <audio id='1' type='file' path='audio.wav'> <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> <settings frequency='44100' channels='2' format='s16'/> </input> diff --git a/tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args index 96856cd3d5..cb17a25c7e 100644 --- a/tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args @@ -36,7 +36,9 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=jack,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ -out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,\ +in.server-name=fish,in.client-name=food,in.connect-ports=yum,\ +out.server-name=fish,out.client-name=food,out.connect-ports=yum \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-jack-full.xml b/tests/qemuxml2argvdata/audio-jack-full.xml index 129bf509a0..92351078a7 100644 --- a/tests/qemuxml2argvdata/audio-jack-full.xml +++ b/tests/qemuxml2argvdata/audio-jack-full.xml @@ -31,10 +31,10 @@ <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <audio id='1' type='jack'> - <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100' serverName='fish' clientName='food' connectPorts='yum'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200' serverName='fish' clientName='food' connectPorts='yum'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-oss-best.args b/tests/qemuxml2argvdata/audio-oss-best.args index 054222992f..32a9c6f654 100644 --- a/tests/qemuxml2argvdata/audio-oss-best.args +++ b/tests/qemuxml2argvdata/audio-oss-best.args @@ -17,6 +17,11 @@ QEMU_AUDIO_DAC_VOICES=2 \ QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +QEMU_OSS_ADC_DEV=/dev/dsp0 \ +QEMU_AUDIO_ADC_TRY_POLL=on \ +QEMU_OSS_DAC_DEV=/dev/dsp1 \ +QEMU_AUDIO_DAC_TRY_POLL=off \ +QEMU_OSS_NFRAGS=30 \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args index 3cff02e1ba..41fda4fb73 100644 --- a/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args @@ -36,7 +36,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=oss,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ -out.channels=4,out.format=f32 \ +out.channels=4,out.format=f32,in.dev=/dev/dsp0,in.buffer-count=30,\ +in.try-poll=on,out.dev=/dev/dsp1,out.buffer-count=30,out.try-poll=off \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-oss-best.xml b/tests/qemuxml2argvdata/audio-oss-best.xml index 6904bcc93b..0561724dbe 100644 --- a/tests/qemuxml2argvdata/audio-oss-best.xml +++ b/tests/qemuxml2argvdata/audio-oss-best.xml @@ -31,10 +31,10 @@ <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <audio id='1' type='oss'> - <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' dev='/dev/dsp0' bufferCount='30' tryPoll='yes'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' dev='/dev/dsp1' bufferCount='30' tryPoll='no'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args index cf9f5077d1..fd899cad3e 100644 --- a/tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args @@ -36,7 +36,9 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=oss,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ -out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,\ +in.dev=/dev/dsp0,in.buffer-count=50,in.try-poll=on,out.dev=/dev/dsp1,\ +out.buffer-count=30,out.try-poll=off,try-mmap=on,exclusive=on,dsp-policy=3 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-oss-full.xml b/tests/qemuxml2argvdata/audio-oss-full.xml index 52d8810650..aa31eb9bab 100644 --- a/tests/qemuxml2argvdata/audio-oss-full.xml +++ b/tests/qemuxml2argvdata/audio-oss-full.xml @@ -30,11 +30,11 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> - <audio id='1' type='oss'> - <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <audio id='1' type='oss' tryMMap='yes' exclusive='yes' dspPolicy='3'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100' dev='/dev/dsp0' bufferCount='50' tryPoll='yes'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200' dev='/dev/dsp1' bufferCount='30' tryPoll='no'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-best.args b/tests/qemuxml2argvdata/audio-pulseaudio-best.args index ad5718b242..7877fb58db 100644 --- a/tests/qemuxml2argvdata/audio-pulseaudio-best.args +++ b/tests/qemuxml2argvdata/audio-pulseaudio-best.args @@ -17,6 +17,10 @@ QEMU_AUDIO_DAC_VOICES=2 \ QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +QEMU_PA_SOURCE=fish \ +QEMU_PA_SINK=fish \ +QEMU_PA_SAMPLES=200 \ +QEMU_PA_SERVER=%s=acme.example.org \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ -S \ diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-latest.args index f6ccde6d59..fb58ed3e14 100644 --- a/tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-latest.args @@ -34,9 +34,10 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ "file":"libvirt-1-storage"}' \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ -audiodev id=audio1,driver=pa,in.mixing-engine=on,in.fixed-settings=on,\ -in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ -out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ -out.channels=4,out.format=f32 \ +in.voices=1,in.buffer-length=200,in.frequency=44100,in.channels=2,\ +in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,\ +in.name=fish,out.name=fish,server=acme.example.org \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-best.xml b/tests/qemuxml2argvdata/audio-pulseaudio-best.xml index b75e336db3..bfc4b92e9b 100644 --- a/tests/qemuxml2argvdata/audio-pulseaudio-best.xml +++ b/tests/qemuxml2argvdata/audio-pulseaudio-best.xml @@ -30,11 +30,11 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> - <audio id='1' type='pulseaudio'> - <input mixingEngine='yes' fixedSettings='yes' voices='1'> + <audio id='1' type='pulseaudio' serverName='acme.example.org'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='200' name='fish'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200' name='fish'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-full.err b/tests/qemuxml2argvdata/audio-pulseaudio-full.err index d9ceac7226..27eaa448e9 100644 --- a/tests/qemuxml2argvdata/audio-pulseaudio-full.err +++ b/tests/qemuxml2argvdata/audio-pulseaudio-full.err @@ -1 +1 @@ -unsupported configuration: setting audio buffer length is not supported with this QEMU +unsupported configuration: setting audio stream name is not supported with this QEMU diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-latest.args index 493945e608..02d0a3a9c8 100644 --- a/tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-latest.args @@ -36,7 +36,9 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=pa,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ -out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,\ +in.name=fish,in.stream-name=food,in.latency=100,out.name=fish,\ +out.stream-name=food,out.latency=200,server=acme.example.org \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-pulseaudio-full.xml b/tests/qemuxml2argvdata/audio-pulseaudio-full.xml index 87ceefbab0..a674653982 100644 --- a/tests/qemuxml2argvdata/audio-pulseaudio-full.xml +++ b/tests/qemuxml2argvdata/audio-pulseaudio-full.xml @@ -30,11 +30,11 @@ <controller type='pci' index='0' model='pci-root'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> - <audio id='1' type='pulseaudio'> - <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <audio id='1' type='pulseaudio' serverName='acme.example.org'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100' name='fish' streamName='food' latency='100'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200' name='fish' streamName='food' latency='200'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-sdl-best.args b/tests/qemuxml2argvdata/audio-sdl-best.args index abdf655fe1..80b7f74829 100644 --- a/tests/qemuxml2argvdata/audio-sdl-best.args +++ b/tests/qemuxml2argvdata/audio-sdl-best.args @@ -17,6 +17,7 @@ QEMU_AUDIO_DAC_VOICES=2 \ QEMU_AUDIO_DAC_FIXED_FREQ=22050 \ QEMU_AUDIO_DAC_FIXED_CHANNELS=4 \ QEMU_AUDIO_DAC_FIXED_FMT=f32 \ +QEMU_SDL_SAMPLES=200 \ SDL_AUDIODRIVER=pulseaudio \ /usr/bin/qemu-system-i386 \ -name QEMUGuest1 \ diff --git a/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args b/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args index d8893a7a4b..770426419a 100644 --- a/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args @@ -36,8 +36,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \ -audiodev id=audio1,driver=sdl,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,\ -out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,\ -out.channels=4,out.format=f32 \ +out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.buffer-length=200,\ +out.frequency=22050,out.channels=4,out.format=f32 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-sdl-best.xml b/tests/qemuxml2argvdata/audio-sdl-best.xml index 4e3f8a5c61..29523590af 100644 --- a/tests/qemuxml2argvdata/audio-sdl-best.xml +++ b/tests/qemuxml2argvdata/audio-sdl-best.xml @@ -34,7 +34,7 @@ <input mixingEngine='yes' fixedSettings='yes' voices='1'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> diff --git a/tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args b/tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args index 722aa33fa4..a642926a22 100644 --- a/tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args +++ b/tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args @@ -37,7 +37,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \ -audiodev id=audio1,driver=sdl,in.mixing-engine=on,in.fixed-settings=on,\ in.voices=1,in.buffer-length=100,in.frequency=44100,in.channels=2,\ in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,\ -out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \ +out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,\ +in.buffer-count=40,out.buffer-count=50 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\ resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/audio-sdl-full.xml b/tests/qemuxml2argvdata/audio-sdl-full.xml index 519cda12e3..9925d048ec 100644 --- a/tests/qemuxml2argvdata/audio-sdl-full.xml +++ b/tests/qemuxml2argvdata/audio-sdl-full.xml @@ -31,10 +31,10 @@ <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <audio id='1' type='sdl' driver='pulseaudio'> - <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'> + <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100' bufferCount='40'> <settings frequency='44100' channels='2' format='s16'/> </input> - <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200'> + <output mixingEngine='yes' fixedSettings='yes' voices='2' bufferLength='200' bufferCount='50'> <settings frequency='22050' channels='4' format='f32'/> </output> </audio> -- 2.29.2

On 3/3/21 7:18 PM, Daniel P. Berrangé wrote:
Historically we've done almost nothing with audio backend configuration. In QEMU we merely set QEMU_AUDIO_DRV to one of sdl, spice, none depending on <graphics>. We also have the somewhat crazy ability to let QEMU inherit the QEMU_AUDIO_DRV env variable from libvirtd.
Fairly recently BHyve wanted audio backend config for OSS so introduced the <audio> element. We designed that to allow QEMU to later extend it, and that's what this series does. We add <audio> types for all the QEMU backends, except the Windows only DSound which isn't relevant for libvirt.
The QEMU driver is updated to use this element to configure things. QEMU has many many many more env variables for configuring audio settings, which we can now support. These are all deprecated since 4.0.0 though, so we also add support for the new -audiodev argument.
Unfortunately -audiodev isn't introspectable due to limits in QEMU fixed by:
https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg00653.html
The lack of introspection isn't critical though. We can detect existance of -audiodev by querying for '-vnc audiodev=3DNNN' argument support. We simply lack ability to determine what QEMU audio backends are compiled in. This means we have to delegate error reporting to QEMU itself, which is OK.
We'll make use of the query-audiodev command at a later date to track future improvements to QEMU audiodev backends.
Daniel P. Berrang=C3=A9 (18): config: cleanup some typos / baggage wrt compiler checks conf: stronger error reporting when parsing audio related params conf: don't force existance of audio child elements conf: add helper to test for sound device codec support conf: add missing iteration over audio backends conf: refactor OSS audio backend specific options conf: add coverage for all QEMU audio backend types conf: add support for audio backend for the VNC server conf: add validation of audio backend IDs conf: rename and improve virDomainDefFindAudioForSound qemu: support use of <audio> elements qemu: populate <audio> element with default config qemu: probe for -vnc audiodev property qemu: add support for generating -audiodev arguments conf: introduce support for common audio settings qemu: wire up support for common audio backend settings conf: add support for audio backend specific settings qemu: wire up support for backend specific audio settings
957 files changed, 6887 insertions(+), 341 deletions(-)
Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Michal

On Wed, Mar 3, 2021 at 1:19 PM Daniel P. Berrangé <berrange@redhat.com> wrote:
Historically we've done almost nothing with audio backend configuration. In QEMU we merely set QEMU_AUDIO_DRV to one of sdl, spice, none depending on <graphics>. We also have the somewhat crazy ability to let QEMU inherit the QEMU_AUDIO_DRV env variable from libvirtd.
Fairly recently BHyve wanted audio backend config for OSS so introduced the <audio> element. We designed that to allow QEMU to later extend it, and that's what this series does. We add <audio> types for all the QEMU backends, except the Windows only DSound which isn't relevant for libvirt.
The QEMU driver is updated to use this element to configure things. QEMU has many many many more env variables for configuring audio settings, which we can now support. These are all deprecated since 4.0.0 though, so we also add support for the new -audiodev argument.
Unfortunately -audiodev isn't introspectable due to limits in QEMU fixed by:
https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg00653.html
The lack of introspection isn't critical though. We can detect existance of -audiodev by querying for '-vnc audiodev=3DNNN' argument support. We simply lack ability to determine what QEMU audio backends are compiled in. This means we have to delegate error reporting to QEMU itself, which is OK.
We'll make use of the query-audiodev command at a later date to track future improvements to QEMU audiodev backends.
Daniel P. Berrang=C3=A9 (18): config: cleanup some typos / baggage wrt compiler checks conf: stronger error reporting when parsing audio related params conf: don't force existance of audio child elements conf: add helper to test for sound device codec support conf: add missing iteration over audio backends conf: refactor OSS audio backend specific options conf: add coverage for all QEMU audio backend types conf: add support for audio backend for the VNC server conf: add validation of audio backend IDs conf: rename and improve virDomainDefFindAudioForSound qemu: support use of <audio> elements qemu: populate <audio> element with default config qemu: probe for -vnc audiodev property qemu: add support for generating -audiodev arguments conf: introduce support for common audio settings qemu: wire up support for common audio backend settings conf: add support for audio backend specific settings qemu: wire up support for backend specific audio settings
config.h | 10 +- docs/formatdomain.rst | 322 +++++++- docs/schemas/domaincommon.rng | 384 +++++++++- src/bhyve/bhyve_command.c | 30 +- src/conf/domain_conf.c | 693 +++++++++++++++++- src/conf/domain_conf.h | 125 +++- src/conf/domain_validate.c | 67 +- src/libvirt_private.syms | 8 +- src/qemu/qemu_capabilities.c | 4 + src/qemu/qemu_capabilities.h | 3 + src/qemu/qemu_command.c | 484 +++++++++++- src/qemu/qemu_domain.c | 110 ++- src/qemu/qemu_validate.c | 136 +++- .../caps_4.2.0.aarch64.xml | 1 + .../qemucapabilitiesdata/caps_4.2.0.ppc64.xml | 1 + .../qemucapabilitiesdata/caps_4.2.0.s390x.xml | 1 + .../caps_4.2.0.x86_64.xml | 1 + .../caps_5.0.0.aarch64.xml | 1 + .../qemucapabilitiesdata/caps_5.0.0.ppc64.xml | 1 + .../caps_5.0.0.riscv64.xml | 1 + .../caps_5.0.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_5.1.0.sparc.xml | 1 + .../caps_5.1.0.x86_64.xml | 1 + .../caps_5.2.0.aarch64.xml | 1 + .../qemucapabilitiesdata/caps_5.2.0.ppc64.xml | 1 + .../caps_5.2.0.riscv64.xml | 1 + .../qemucapabilitiesdata/caps_5.2.0.s390x.xml | 1 + .../caps_5.2.0.x86_64.xml | 1 + .../caps_6.0.0.x86_64.xml | 1 + .../redefine.xml | 1 + .../disk_snapshot_redefine.xml | 1 + .../external_vm_redefine.xml | 1 + .../full_domain.xml | 1 + .../qemudomainsnapshotxml2xmlout/metadata.xml | 1 + .../ppc64-modern-bulk-result-conf.xml | 1 + .../ppc64-modern-bulk-result-live.xml | 1 + .../ppc64-modern-individual-result-conf.xml | 1 + .../ppc64-modern-individual-result-live.xml | 1 + .../x86-modern-bulk-result-conf.xml | 1 + .../x86-modern-bulk-result-live.xml | 1 + .../x86-modern-individual-add-result-conf.xml | 1 + .../x86-modern-individual-add-result-live.xml | 1 + .../x86-old-bulk-result-conf.xml | 1 + .../x86-old-bulk-result-live.xml | 1 + .../qemuhotplug-base-ccw-live+ccw-virtio.xml | 1 + ...with-2-ccw-virtio+ccw-virtio-1-reverse.xml | 1 + ...otplug-base-ccw-live-with-2-ccw-virtio.xml | 1 + ...-with-ccw-virtio+ccw-virtio-2-explicit.xml | 1 + ...-ccw-live-with-ccw-virtio+ccw-virtio-2.xml | 1 + ...uhotplug-base-ccw-live-with-ccw-virtio.xml | 1 + .../qemuhotplug-base-ccw-live.xml | 1 + ...uhotplug-base-live+disk-scsi-multipath.xml | 1 + ...+disk-scsi-wwn+disk-scsi-duplicate-wwn.xml | 1 + .../qemuhotplug-base-live+disk-scsi.xml | 1 + .../qemuhotplug-base-live+disk-usb.xml | 1 + .../qemuhotplug-base-live+disk-virtio.xml | 1 + .../qemuhotplug-base-live+guestfwd.xml | 1 + .../qemuhotplug-base-live+hostdev-pci.xml | 1 + .../qemuhotplug-base-live+interface-vdpa.xml | 1 + ...qemuhotplug-base-live+ivshmem-doorbell.xml | 1 + .../qemuhotplug-base-live+ivshmem-plain.xml | 1 + .../qemuhotplug-base-live+qemu-agent.xml | 1 + ...uhotplug-base-live+watchdog-user-alias.xml | 1 + .../qemuhotplug-base-live+watchdog.xml | 1 + .../qemuhotplug-base-live.xml | 1 + ...hotplug-base-with-scsi-controller-live.xml | 1 + ...thout-scsi-controller-live+disk-scsi-2.xml | 1 + ...g-console-compat-2-live+console-virtio.xml | 1 + .../qemuhotplug-console-compat-2-live.xml | 1 + ...uhotplug-pseries-base-live+hostdev-pci.xml | 1 + .../qemuhotplug-pseries-base-live.xml | 1 + .../full-xml2xml-out.xml | 1 + .../qemustatusxml2xmldata/backup-pull-in.xml | 1 + .../blockjob-blockdev-in.xml | 1 + .../blockjob-mirror-in.xml | 1 + .../migration-in-params-in.xml | 1 + .../migration-out-nbd-bitmaps-in.xml | 1 + .../migration-out-nbd-out.xml | 1 + .../migration-out-nbd-tls-out.xml | 1 + .../migration-out-params-in.xml | 1 + tests/qemustatusxml2xmldata/modern-in.xml | 1 + tests/qemustatusxml2xmldata/upgrade-out.xml | 1 + .../qemustatusxml2xmldata/vcpus-multi-in.xml | 1 + ...fault-cpu-kvm-virt-4.2.aarch64-latest.args | 2 +- ...fault-cpu-tcg-virt-4.2.aarch64-latest.args | 2 +- .../aarch64-features-sve.aarch64-latest.args | 2 +- tests/qemuxml2argvdata/aarch64-gic-host.xml | 1 + tests/qemuxml2argvdata/aarch64-gic-v2.xml | 1 + tests/qemuxml2argvdata/aarch64-gic-v3.xml | 1 + ...arch64-os-firmware-efi.aarch64-latest.args | 2 +- .../aarch64-tpm.aarch64-latest.args | 2 +- .../aarch64-virt-graphics.aarch64-latest.args | 4 +- .../aarch64-virt-headless.aarch64-latest.args | 2 +- tests/qemuxml2argvdata/audio-alsa-best.args | 41 ++ .../audio-alsa-best.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-alsa-best.xml | 43 ++ tests/qemuxml2argvdata/audio-alsa-full.args | 29 + tests/qemuxml2argvdata/audio-alsa-full.err | 1 + .../audio-alsa-full.x86_64-latest.args | 43 ++ tests/qemuxml2argvdata/audio-alsa-full.xml | 43 ++ .../qemuxml2argvdata/audio-alsa-minimal.args | 29 + .../audio-alsa-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-alsa-minimal.xml | 36 + .../audio-coreaudio-best.args | 41 ++ .../audio-coreaudio-best.x86_64-latest.args | 42 ++ .../qemuxml2argvdata/audio-coreaudio-best.xml | 43 ++ .../audio-coreaudio-full.args | 29 + .../qemuxml2argvdata/audio-coreaudio-full.err | 1 + .../audio-coreaudio-full.x86_64-latest.args | 43 ++ .../qemuxml2argvdata/audio-coreaudio-full.xml | 43 ++ .../audio-coreaudio-minimal.args | 29 + ...audio-coreaudio-minimal.x86_64-latest.args | 39 + .../audio-coreaudio-minimal.xml | 36 + .../audio-default-nographics.args | 29 + ...udio-default-nographics.x86_64-latest.args | 39 + .../audio-default-nographics.xml | 31 + tests/qemuxml2argvdata/audio-default-sdl.args | 31 + .../audio-default-sdl.x86_64-latest.args | 41 ++ tests/qemuxml2argvdata/audio-default-sdl.xml | 35 + .../qemuxml2argvdata/audio-default-spice.args | 30 + .../audio-default-spice.x86_64-latest.args | 40 + .../qemuxml2argvdata/audio-default-spice.xml | 35 + tests/qemuxml2argvdata/audio-default-vnc.args | 30 + .../audio-default-vnc.x86_64-latest.args | 40 + tests/qemuxml2argvdata/audio-default-vnc.xml | 35 + tests/qemuxml2argvdata/audio-file-best.args | 40 + .../audio-file-best.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-file-best.xml | 43 ++ tests/qemuxml2argvdata/audio-file-full.args | 29 + tests/qemuxml2argvdata/audio-file-full.err | 1 + .../audio-file-full.x86_64-latest.args | 43 ++ tests/qemuxml2argvdata/audio-file-full.xml | 43 ++ .../qemuxml2argvdata/audio-file-minimal.args | 29 + .../audio-file-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-file-minimal.xml | 36 + tests/qemuxml2argvdata/audio-jack-full.err | 1 + .../audio-jack-full.x86_64-latest.args | 44 ++ tests/qemuxml2argvdata/audio-jack-full.xml | 43 ++ tests/qemuxml2argvdata/audio-jack-minimal.err | 1 + .../audio-jack-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-jack-minimal.xml | 36 + .../qemuxml2argvdata/audio-many-backends.err | 1 + .../audio-many-backends.x86_64-latest.args | 46 ++ .../qemuxml2argvdata/audio-many-backends.xml | 60 ++ tests/qemuxml2argvdata/audio-none-best.args | 39 + .../audio-none-best.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-none-best.xml | 43 ++ tests/qemuxml2argvdata/audio-none-full.args | 29 + tests/qemuxml2argvdata/audio-none-full.err | 1 + .../audio-none-full.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-none-full.xml | 43 ++ .../qemuxml2argvdata/audio-none-minimal.args | 29 + .../audio-none-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-none-minimal.xml | 36 + tests/qemuxml2argvdata/audio-oss-best.args | 44 ++ .../audio-oss-best.x86_64-latest.args | 43 ++ tests/qemuxml2argvdata/audio-oss-best.xml | 43 ++ tests/qemuxml2argvdata/audio-oss-full.args | 31 + tests/qemuxml2argvdata/audio-oss-full.err | 1 + .../audio-oss-full.x86_64-latest.args | 44 ++ tests/qemuxml2argvdata/audio-oss-full.xml | 43 ++ tests/qemuxml2argvdata/audio-oss-minimal.args | 29 + .../audio-oss-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-oss-minimal.xml | 36 + .../audio-pulseaudio-best.args | 43 ++ .../audio-pulseaudio-best.x86_64-latest.args | 43 ++ .../audio-pulseaudio-best.xml | 43 ++ .../audio-pulseaudio-full.args | 29 + .../audio-pulseaudio-full.err | 1 + .../audio-pulseaudio-full.x86_64-latest.args | 44 ++ .../audio-pulseaudio-full.xml | 43 ++ .../audio-pulseaudio-minimal.args | 29 + ...udio-pulseaudio-minimal.x86_64-latest.args | 39 + .../audio-pulseaudio-minimal.xml | 36 + tests/qemuxml2argvdata/audio-sdl-best.args | 41 ++ .../audio-sdl-best.x86_64-latest.args | 43 ++ tests/qemuxml2argvdata/audio-sdl-best.xml | 43 ++ tests/qemuxml2argvdata/audio-sdl-full.args | 30 + tests/qemuxml2argvdata/audio-sdl-full.err | 1 + .../audio-sdl-full.x86_64-latest.args | 44 ++ tests/qemuxml2argvdata/audio-sdl-full.xml | 43 ++ tests/qemuxml2argvdata/audio-sdl-minimal.args | 29 + .../audio-sdl-minimal.x86_64-latest.args | 39 + tests/qemuxml2argvdata/audio-sdl-minimal.xml | 36 + tests/qemuxml2argvdata/audio-spice-best.args | 39 + .../audio-spice-best.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-spice-best.xml | 43 ++ tests/qemuxml2argvdata/audio-spice-full.args | 29 + tests/qemuxml2argvdata/audio-spice-full.err | 1 + .../audio-spice-full.x86_64-latest.args | 42 ++ tests/qemuxml2argvdata/audio-spice-full.xml | 43 ++ .../qemuxml2argvdata/audio-spice-minimal.args | 29 + .../audio-spice-minimal.x86_64-latest.args | 39 + .../qemuxml2argvdata/audio-spice-minimal.xml | 36 + .../blkdeviotune-group-num.x86_64-latest.args | 2 +- .../blkdeviotune-group-num.xml | 1 + ...blkdeviotune-max-length.x86_64-latest.args | 2 +- .../blkdeviotune-max-length.xml | 1 + .../blkdeviotune-max.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/blkdeviotune-max.xml | 1 + tests/qemuxml2argvdata/boot-floppy-q35.xml | 1 + .../channel-unix-guestfwd.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/clock-france.args | 2 +- tests/qemuxml2argvdata/clock-realtime.xml | 1 + .../clock-timer-armvtimer.aarch64-latest.args | 2 +- .../clock-timer-armvtimer.xml | 1 + .../console-virtio-unix.x86_64-latest.args | 2 +- .../controller-virtio-scsi.x86_64-latest.args | 2 +- ...-Icelake-Server-pconfig.x86_64-latest.args | 2 +- .../cpu-translation.x86_64-latest.args | 2 +- .../cpu-tsc-high-frequency.x86_64-latest.args | 2 +- .../cputune-cpuset-big-id.x86_64-latest.args | 2 +- ...ult-video-type-aarch64.aarch64-latest.args | 4 +- ...default-video-type-ppc64.ppc64-latest.args | 4 +- ...ult-video-type-riscv64.riscv64-latest.args | 2 +- ...default-video-type-s390x.s390x-latest.args | 4 +- .../disk-aio-io_uring.x86_64-latest.args | 2 +- .../disk-aio.x86_64-latest.args | 2 +- .../disk-arm-virtio-sd.aarch64-latest.args | 2 +- ...-backing-chains-noindex.x86_64-latest.args | 2 +- .../disk-cache.x86_64-latest.args | 2 +- .../disk-cdrom-bus-other.x86_64-latest.args | 2 +- ...m-empty-network-invalid.x86_64-latest.args | 2 +- .../disk-cdrom-network.x86_64-latest.args | 2 +- .../disk-cdrom-tray.x86_64-latest.args | 2 +- .../disk-cdrom.x86_64-latest.args | 2 +- .../disk-copy_on_read.x86_64-latest.args | 2 +- .../disk-detect-zeroes.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/disk-detect-zeroes.xml | 1 + .../disk-discard.x86_64-latest.args | 2 +- .../disk-error-policy-s390x.s390x-latest.args | 2 +- .../disk-error-policy.x86_64-latest.args | 2 +- .../disk-floppy-q35-2_11.x86_64-latest.args | 2 +- .../disk-floppy-q35-2_9.x86_64-latest.args | 2 +- .../disk-floppy.x86_64-latest.args | 2 +- .../disk-metadata-cache.x86_64-latest.args | 2 +- .../disk-network-gluster.x86_64-latest.args | 2 +- .../disk-network-http.x86_64-latest.args | 2 +- .../disk-network-iscsi.x86_64-latest.args | 2 +- .../disk-network-nbd.x86_64-latest.args | 2 +- .../disk-network-nfs.x86_64-latest.args | 2 +- .../disk-network-rbd.x86_64-latest.args | 2 +- .../disk-network-sheepdog.x86_64-latest.args | 2 +- ...isk-network-source-auth.x86_64-latest.args | 2 +- ...isk-network-tlsx509-nbd.x86_64-latest.args | 2 +- ...isk-network-tlsx509-vxhs.x86_64-5.0.0.args | 2 +- .../disk-nvme.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/disk-nvme.xml | 1 + .../disk-readonly-disk.x86_64-latest.args | 2 +- .../disk-scsi-device-auto.x86_64-latest.args | 2 +- .../disk-scsi.x86_64-latest.args | 2 +- .../disk-shared.x86_64-latest.args | 2 +- .../disk-slices.x86_64-latest.args | 2 +- .../disk-transient.x86_64-latest.args | 2 +- .../disk-vhostuser.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/disk-virtio-queues.xml | 1 + ...irtio-scsi-reservations.x86_64-latest.args | 2 +- .../disk-virtio-scsi-reservations.xml | 1 + tests/qemuxml2argvdata/downscript.xml | 1 + .../qemuxml2argvdata/encrypted-disk-usage.xml | 1 + .../eoi-disabled.x86_64-latest.args | 2 +- .../eoi-enabled.x86_64-latest.args | 2 +- .../fd-memory-no-numa-topology.xml | 1 + .../fd-memory-numa-topology.xml | 1 + .../fd-memory-numa-topology2.xml | 1 + .../fd-memory-numa-topology3.xml | 1 + .../fips-enabled.x86_64-5.1.0.args | 2 +- .../fips-enabled.x86_64-latest.args | 2 +- .../floppy-drive-fat.x86_64-latest.args | 2 +- .../fs9p-ccw.s390x-latest.args | 2 +- .../qemuxml2argvdata/fs9p.x86_64-latest.args | 2 +- .../genid-auto.x86_64-latest.args | 2 +- .../qemuxml2argvdata/genid.x86_64-latest.args | 2 +- ...pice-gl-auto-rendernode.x86_64-latest.args | 2 +- .../qemuxml2argvdata/graphics-spice-sasl.args | 2 +- tests/qemuxml2argvdata/graphics-vnc-sasl.args | 2 +- ...graphics-vnc-tls-secret.x86_64-latest.args | 4 +- tests/qemuxml2argvdata/graphics-vnc-tls.args | 2 +- .../graphics-vnc-tls.x86_64-2.4.0.args | 2 +- .../graphics-vnc-tls.x86_64-latest.args | 4 +- ...tdev-mdev-display-ramfb.x86_64-latest.args | 4 +- ...play-spice-egl-headless.x86_64-latest.args | 2 +- ...ev-display-spice-opengl.x86_64-latest.args | 2 +- ...isplay-vnc-egl-headless.x86_64-latest.args | 4 +- ...ostdev-mdev-display-vnc.x86_64-latest.args | 4 +- .../hostdev-scsi-lsi.x86_64-latest.args | 2 +- ...ostdev-scsi-virtio-scsi.x86_64-latest.args | 2 +- ...tdev-subsys-mdev-vfio-ap.s390x-latest.args | 2 +- ...ubsys-mdev-vfio-ccw-boot.s390x-latest.args | 2 +- .../qemuxml2argvdata/hugepages-default-2M.xml | 1 + .../hugepages-default-system-size.xml | 1 + .../qemuxml2argvdata/hugepages-memaccess.xml | 1 + .../qemuxml2argvdata/hugepages-memaccess2.xml | 1 + .../hugepages-memaccess3.x86_64-latest.args | 2 +- .../hugepages-numa-default-dimm.xml | 1 + .../hugepages-nvdimm.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/hugepages-nvdimm.xml | 1 + .../hyperv-off.x86_64-latest.args | 2 +- .../hyperv-panic.x86_64-latest.args | 2 +- .../hyperv-stimer-direct.x86_64-latest.args | 2 +- .../hyperv.x86_64-latest.args | 2 +- .../intel-iommu-aw-bits.x86_64-latest.args | 2 +- .../qemuxml2argvdata/intel-iommu-aw-bits.xml | 1 + ...ntel-iommu-caching-mode.x86_64-latest.args | 2 +- .../intel-iommu-caching-mode.xml | 1 + ...ntel-iommu-device-iotlb.x86_64-latest.args | 2 +- .../intel-iommu-device-iotlb.xml | 1 + .../intel-iommu-eim.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/intel-iommu-eim.xml | 1 + .../intel-iommu.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/intel-iommu.xml | 1 + .../iommu-smmuv3.aarch64-latest.args | 2 +- ...othreads-virtio-scsi-ccw.s390x-latest.args | 2 +- ...threads-virtio-scsi-pci.x86_64-latest.args | 2 +- .../kvmclock+eoi-disabled.x86_64-latest.args | 2 +- ...luks-disks-source-qcow2.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/luks-disks.xml | 1 + ...memory-default-hugepage.x86_64-latest.args | 2 +- .../memfd-memory-default-hugepage.xml | 1 + .../memfd-memory-numa.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/memfd-memory-numa.xml | 1 + ...y-hotplug-nvdimm-access.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-access.xml | 1 + ...ry-hotplug-nvdimm-align.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-align.xml | 1 + ...ry-hotplug-nvdimm-label.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-label.xml | 1 + ...ory-hotplug-nvdimm-pmem.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-pmem.xml | 1 + ...hotplug-nvdimm-readonly.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm-readonly.xml | 1 + .../memory-hotplug-nvdimm.x86_64-latest.args | 2 +- .../memory-hotplug-nvdimm.xml | 1 + .../memory-hotplug-ppc64-nonuma.xml | 1 + ...ory-hotplug-virtio-pmem.x86_64-latest.args | 2 +- .../memory-hotplug-virtio-pmem.xml | 1 + .../mlock-off.x86_64-latest.args | 2 +- .../mlock-on.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/net-user-addr.xml | 1 + .../net-vdpa.x86_64-latest.args | 2 +- .../net-vhostuser.x86_64-latest.args | 2 +- .../net-virtio-teaming-hostdev.xml | 1 + .../numatune-hmat.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/numatune-hmat.xml | 1 + tests/qemuxml2argvdata/numatune-no-vcpu.xml | 1 + .../os-firmware-bios.x86_64-latest.args | 2 +- ...os-firmware-efi-secboot.x86_64-latest.args | 2 +- .../os-firmware-efi.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/pages-dimm-discard.xml | 1 + .../pages-discard-hugepages.xml | 1 + tests/qemuxml2argvdata/pages-discard.xml | 1 + .../parallel-unix-chardev.x86_64-latest.args | 2 +- ...cie-root-port-nohotplug.x86_64-latest.args | 2 +- ...ault-cpu-kvm-pseries-2.7.ppc64-latest.args | 2 +- ...ault-cpu-kvm-pseries-3.1.ppc64-latest.args | 2 +- ...ault-cpu-kvm-pseries-4.2.ppc64-latest.args | 2 +- ...ault-cpu-tcg-pseries-2.7.ppc64-latest.args | 2 +- ...ault-cpu-tcg-pseries-3.1.ppc64-latest.args | 2 +- ...ault-cpu-tcg-pseries-4.2.ppc64-latest.args | 2 +- .../ppc64-pseries-graphics.ppc64-latest.args | 4 +- .../ppc64-pseries-headless.ppc64-latest.args | 2 +- .../ppc64-tpmproxy-single.ppc64-latest.args | 2 +- .../ppc64-tpmproxy-with-tpm.ppc64-latest.args | 2 +- .../pv-spinlock-disabled.x86_64-latest.args | 2 +- .../pv-spinlock-enabled.x86_64-latest.args | 2 +- .../qemu-ns.x86_64-latest.args | 2 +- .../riscv64-virt-graphics.riscv64-latest.args | 4 +- .../riscv64-virt-headless.riscv64-latest.args | 2 +- ...t-cpu-kvm-ccw-virtio-2.7.s390x-latest.args | 2 +- ...t-cpu-kvm-ccw-virtio-4.2.s390x-latest.args | 2 +- ...t-cpu-tcg-ccw-virtio-2.7.s390x-latest.args | 2 +- ...t-cpu-tcg-ccw-virtio-4.2.s390x-latest.args | 2 +- .../s390x-ccw-graphics.s390x-latest.args | 4 +- .../s390x-ccw-headless.s390x-latest.args | 2 +- .../serial-tcp-tlsx509-chardev-notls.xml | 1 + .../serial-unix-chardev.x86_64-latest.args | 2 +- ...rtcard-passthrough-unix.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/smbios-type-fwcfg.xml | 1 + .../tpm-emulator-spapr.ppc64-latest.args | 2 +- .../tpm-emulator-tpm2-enc.x86_64-latest.args | 2 +- ...pm-emulator-tpm2-pstate.x86_64-latest.args | 2 +- .../tpm-emulator-tpm2.x86_64-latest.args | 2 +- .../tpm-emulator.x86_64-latest.args | 2 +- .../tpm-passthrough-crb.x86_64-latest.args | 2 +- .../tpm-passthrough.x86_64-latest.args | 2 +- .../tseg-explicit-size.x86_64-latest.args | 2 +- .../usb-redir-unix.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/user-aliases.xml | 1 + .../vcpu-placement-static.xml | 1 + ...vhost-user-fs-fd-memory.x86_64-latest.args | 2 +- .../vhost-user-fs-fd-memory.xml | 1 + ...vhost-user-fs-hugepages.x86_64-latest.args | 2 +- .../vhost-user-fs-hugepages.xml | 1 + ...host-user-gpu-secondary.x86_64-latest.args | 2 +- .../vhost-user-vga.x86_64-latest.args | 2 +- .../vhost-vsock-auto.x86_64-latest.args | 2 +- .../vhost-vsock-ccw-auto.s390x-latest.args | 2 +- .../vhost-vsock-ccw-iommu.s390x-latest.args | 2 +- .../vhost-vsock-ccw-iommu.xml | 1 + .../vhost-vsock-ccw.s390x-latest.args | 2 +- tests/qemuxml2argvdata/vhost-vsock-ccw.xml | 1 + .../vhost-vsock.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/vhost-vsock.xml | 1 + ...eo-bochs-display-device.x86_64-latest.args | 2 +- ...video-qxl-device-vram64.x86_64-latest.args | 2 +- .../qemuxml2argvdata/video-qxl-resolution.xml | 1 + ...o-qxl-sec-device-vram64.x86_64-latest.args | 2 +- ...eo-ramfb-display-device.x86_64-latest.args | 2 +- .../virtio-9p-createmode.x86_64-latest.args | 2 +- .../virtio-9p-multidevs.x86_64-latest.args | 2 +- ...virtio-non-transitional.x86_64-latest.args | 2 +- ...-options-controller-ats.x86_64-latest.args | 2 +- ...ptions-controller-iommu.x86_64-latest.args | 2 +- ...tions-controller-packed.x86_64-latest.args | 2 +- ...virtio-options-disk-ats.x86_64-latest.args | 2 +- ...rtio-options-disk-iommu.x86_64-latest.args | 2 +- ...tio-options-disk-packed.x86_64-latest.args | 2 +- .../virtio-options-fs-ats.x86_64-latest.args | 2 +- ...virtio-options-fs-iommu.x86_64-latest.args | 2 +- ...irtio-options-fs-packed.x86_64-latest.args | 2 +- ...irtio-options-input-ats.x86_64-latest.args | 2 +- ...tio-options-input-iommu.x86_64-latest.args | 2 +- ...io-options-input-packed.x86_64-latest.args | 2 +- ...-options-memballoon-ats.x86_64-latest.args | 2 +- ...loon-freepage-reporting.x86_64-latest.args | 2 +- ...ptions-memballoon-iommu.x86_64-latest.args | 2 +- ...tions-memballoon-packed.x86_64-latest.args | 2 +- .../virtio-options-net-ats.x86_64-latest.args | 2 +- ...irtio-options-net-iommu.x86_64-latest.args | 2 +- ...rtio-options-net-packed.x86_64-latest.args | 2 +- .../virtio-options-rng-ats.x86_64-latest.args | 2 +- ...irtio-options-rng-iommu.x86_64-latest.args | 2 +- ...rtio-options-rng-packed.x86_64-latest.args | 2 +- ...irtio-options-video-ats.x86_64-latest.args | 2 +- ...tio-options-video-iommu.x86_64-latest.args | 2 +- ...io-options-video-packed.x86_64-latest.args | 2 +- .../virtio-options.x86_64-latest.args | 2 +- tests/qemuxml2argvdata/virtio-options.xml | 1 + .../virtio-rng-builtin.x86_64-latest.args | 2 +- .../virtio-rng-egd-unix.x86_64-latest.args | 2 +- .../virtio-transitional.x86_64-latest.args | 2 +- ...-default-cpu-kvm-pc-4.2.x86_64-latest.args | 2 +- ...default-cpu-kvm-q35-4.2.x86_64-latest.args | 2 +- ...-default-cpu-tcg-pc-4.2.x86_64-latest.args | 2 +- ...default-cpu-tcg-q35-4.2.x86_64-latest.args | 2 +- .../x86_64-pc-graphics.x86_64-latest.args | 4 +- .../x86_64-pc-headless.x86_64-latest.args | 2 +- .../x86_64-q35-graphics.x86_64-latest.args | 4 +- .../x86_64-q35-headless.x86_64-latest.args | 2 +- tests/qemuxml2argvtest.c | 90 +++ .../aarch64-aavmf-virtio-mmio.xml | 1 + ...efault-cpu-kvm-virt-4.2.aarch64-latest.xml | 1 + ...efault-cpu-tcg-virt-4.2.aarch64-latest.xml | 1 + .../aarch64-features-sve.aarch64-latest.xml | 1 + .../aarch64-gic-none-tcg.xml | 1 + ...aarch64-os-firmware-efi.aarch64-latest.xml | 1 + .../qemuxml2xmloutdata/aarch64-pci-serial.xml | 1 + .../aarch64-traditional-pci.xml | 1 + .../aarch64-video-default.xml | 1 + .../aarch64-video-virtio-gpu-pci.xml | 1 + .../aarch64-virt-graphics.aarch64-latest.xml | 1 + .../aarch64-virt-headless.aarch64-latest.xml | 1 + .../aarch64-virtio-pci-default.xml | 1 + .../aarch64-virtio-pci-manual-addresses.xml | 1 + tests/qemuxml2xmloutdata/acpi-table.xml | 1 + tests/qemuxml2xmloutdata/audio-alsa-best.xml | 1 + tests/qemuxml2xmloutdata/audio-alsa-full.xml | 1 + .../qemuxml2xmloutdata/audio-alsa-minimal.xml | 1 + .../audio-coreaudio-best.xml | 1 + .../audio-coreaudio-full.xml | 1 + .../audio-coreaudio-minimal.xml | 1 + ...audio-default-nographics.x86_64-latest.xml | 39 + .../audio-default-nographics.xml | 1 + .../audio-default-sdl.x86_64-latest.xml | 44 ++ .../qemuxml2xmloutdata/audio-default-sdl.xml | 1 + .../audio-default-spice.x86_64-latest.xml | 46 ++ .../audio-default-spice.xml | 1 + .../audio-default-vnc.x86_64-latest.xml | 46 ++ .../qemuxml2xmloutdata/audio-default-vnc.xml | 1 + tests/qemuxml2xmloutdata/audio-file-best.xml | 1 + tests/qemuxml2xmloutdata/audio-file-full.xml | 1 + .../qemuxml2xmloutdata/audio-file-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-jack-full.xml | 1 + .../audio-many-backends.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/audio-none-best.xml | 1 + tests/qemuxml2xmloutdata/audio-none-full.xml | 1 + .../qemuxml2xmloutdata/audio-none-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-oss-best.xml | 1 + tests/qemuxml2xmloutdata/audio-oss-full.xml | 1 + .../qemuxml2xmloutdata/audio-oss-minimal.xml | 1 + .../audio-pulseaudio-best.xml | 1 + .../audio-pulseaudio-full.xml | 1 + .../audio-pulseaudio-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-sdl-best.xml | 1 + tests/qemuxml2xmloutdata/audio-sdl-full.xml | 1 + .../qemuxml2xmloutdata/audio-sdl-minimal.xml | 1 + tests/qemuxml2xmloutdata/audio-spice-best.xml | 1 + tests/qemuxml2xmloutdata/audio-spice-full.xml | 1 + .../audio-spice-minimal.xml | 1 + tests/qemuxml2xmloutdata/autoindex.xml | 1 + .../balloon-device-auto.xml | 1 + .../balloon-device-period.xml | 1 + .../bios-nvram-os-interleave.xml | 1 + tests/qemuxml2xmloutdata/bios-nvram.xml | 1 + .../blkdeviotune.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/blkiotune-device.xml | 1 + tests/qemuxml2xmloutdata/blkiotune.xml | 1 + tests/qemuxml2xmloutdata/boot-cdrom.xml | 1 + tests/qemuxml2xmloutdata/boot-floppy.xml | 1 + .../boot-menu-disable-with-timeout.xml | 1 + .../qemuxml2xmloutdata/boot-menu-disable.xml | 1 + .../boot-menu-enable-with-timeout.xml | 1 + tests/qemuxml2xmloutdata/boot-multi.xml | 1 + tests/qemuxml2xmloutdata/boot-network.xml | 1 + tests/qemuxml2xmloutdata/boot-order.xml | 1 + tests/qemuxml2xmloutdata/channel-guestfwd.xml | 1 + .../channel-unix-source-path-active.xml | 1 + .../channel-unix-source-path-inactive.xml | 1 + .../channel-virtio-auto.xml | 1 + .../channel-virtio-state-active.xml | 1 + .../channel-virtio-state-inactive.xml | 1 + tests/qemuxml2xmloutdata/channel-virtio.xml | 1 + tests/qemuxml2xmloutdata/chardev-label.xml | 1 + tests/qemuxml2xmloutdata/clock-catchup.xml | 1 + tests/qemuxml2xmloutdata/clock-localtime.xml | 1 + .../clock-timer-hyperv-rtc.xml | 1 + tests/qemuxml2xmloutdata/clock-utc.xml | 1 + .../console-compat-auto.xml | 1 + tests/qemuxml2xmloutdata/console-compat.xml | 1 + tests/qemuxml2xmloutdata/console-compat2.xml | 1 + .../console-virtio-many.xml | 1 + tests/qemuxml2xmloutdata/console-virtio.xml | 1 + .../controller-usb-order.xml | 1 + .../controller-virtio-scsi.xml | 1 + ...pu-Icelake-Server-pconfig.x86_64-3.1.0.xml | 1 + ...u-Icelake-Server-pconfig.x86_64-latest.xml | 1 + .../cpu-check-default-none.xml | 1 + .../cpu-check-default-none2.xml | 1 + .../cpu-check-default-partial.xml | 1 + .../cpu-check-default-partial2.xml | 1 + tests/qemuxml2xmloutdata/cpu-check-full.xml | 1 + tests/qemuxml2xmloutdata/cpu-check-none.xml | 1 + .../qemuxml2xmloutdata/cpu-check-partial.xml | 1 + tests/qemuxml2xmloutdata/cpu-empty.xml | 1 + tests/qemuxml2xmloutdata/cpu-eoi-disabled.xml | 1 + tests/qemuxml2xmloutdata/cpu-eoi-enabled.xml | 1 + .../qemuxml2xmloutdata/cpu-host-kvmclock.xml | 1 + .../cpu-host-model-features.xml | 1 + .../cpu-host-model-vendor.xml | 1 + .../cpu-host-passthrough-features.xml | 1 + tests/qemuxml2xmloutdata/cpu-kvmclock.xml | 1 + .../qemuxml2xmloutdata/cpu-numa-disjoint.xml | 1 + .../cpu-numa-disordered.xml | 1 + .../qemuxml2xmloutdata/cpu-numa-memshared.xml | 1 + .../cpu-numa-no-memory-element.xml | 1 + tests/qemuxml2xmloutdata/cpu-numa1.xml | 1 + tests/qemuxml2xmloutdata/cpu-numa2.xml | 1 + .../cputune-cpuset-big-id.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/cputune-iothreads.xml | 1 + .../cputune-iothreadsched-zeropriority.xml | 1 + .../cputune-iothreadsched.xml | 1 + tests/qemuxml2xmloutdata/cputune-numatune.xml | 1 + .../cputune-zero-shares.xml | 1 + tests/qemuxml2xmloutdata/cputune.xml | 1 + .../default-kvm-host-arch.xml | 1 + .../default-qemu-host-arch.xml | 1 + ...ault-video-type-aarch64.aarch64-latest.xml | 1 + .../default-video-type-ppc64.ppc64-latest.xml | 1 + ...ault-video-type-riscv64.riscv64-latest.xml | 1 + .../default-video-type-s390x.s390x-latest.xml | 1 + .../default-video-type-x86_64-caps-test-0.xml | 1 + .../default-video-type-x86_64-caps-test-1.xml | 1 + .../disk-active-commit-active.xml | 1 + .../disk-active-commit-inactive.xml | 1 + .../disk-aio-io_uring.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-aio.xml | 1 + .../disk-arm-virtio-sd.aarch64-latest.xml | 1 + .../disk-backing-chains-active.xml | 1 + .../disk-backing-chains-inactive.xml | 1 + .../disk-backing-chains-index-active.xml | 1 + .../disk-backing-chains-index-inactive.xml | 1 + .../disk-backing-chains-noindex.xml | 1 + tests/qemuxml2xmloutdata/disk-boot-cdrom.xml | 1 + tests/qemuxml2xmloutdata/disk-boot-disk.xml | 1 + .../disk-cache.x86_64-1.5.3.xml | 1 + .../disk-cache.x86_64-2.12.0.xml | 1 + .../disk-cache.x86_64-2.6.0.xml | 1 + .../disk-cache.x86_64-2.7.0.xml | 1 + .../disk-cache.x86_64-latest.xml | 1 + .../disk-cdrom-bus-other.xml | 1 + ...om-empty-network-invalid.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-cdrom.xml | 1 + .../qemuxml2xmloutdata/disk-copy_on_read.xml | 1 + .../disk-discard.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/disk-error-policy.xml | 1 + tests/qemuxml2xmloutdata/disk-floppy.xml | 1 + tests/qemuxml2xmloutdata/disk-fmt-qcow.xml | 1 + .../disk-metadata-cache.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/disk-mirror-active.xml | 1 + .../disk-mirror-inactive.xml | 1 + .../disk-mirror-old-active.xml | 1 + .../disk-mirror-old-inactive.xml | 1 + .../disk-network-gluster.xml | 1 + .../disk-network-http.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/disk-network-iscsi.xml | 1 + tests/qemuxml2xmloutdata/disk-network-nbd.xml | 1 + ...isk-network-nfs-inactive.x86_64-latest.xml | 1 + .../disk-network-nfs.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-network-rbd.xml | 1 + .../disk-network-sheepdog.xml | 1 + .../disk-network-source-auth.xml | 1 + .../disk-network-tlsx509-nbd.xml | 1 + .../disk-network-tlsx509-vxhs.xml | 1 + .../qemuxml2xmloutdata/disk-network-vxhs.xml | 1 + .../disk-scsi-device-auto.xml | 1 + .../qemuxml2xmloutdata/disk-scsi-disk-vpd.xml | 1 + .../disk-scsi-lun-passthrough-sgio.xml | 1 + .../disk-scsi.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/disk-serial.xml | 1 + .../disk-slices.x86_64-latest.xml | 1 + .../disk-source-pool-mode.xml | 1 + tests/qemuxml2xmloutdata/disk-source-pool.xml | 1 + tests/qemuxml2xmloutdata/disk-usb-device.xml | 1 + .../disk-vhostuser.x86_64-latest.xml | 1 + .../disk-virtio-s390-zpci.xml | 1 + tests/qemuxml2xmloutdata/disk-virtio.xml | 1 + tests/qemuxml2xmloutdata/encrypted-disk.xml | 1 + tests/qemuxml2xmloutdata/eoi-disabled.xml | 1 + tests/qemuxml2xmloutdata/eoi-enabled.xml | 1 + tests/qemuxml2xmloutdata/event_idx.xml | 1 + tests/qemuxml2xmloutdata/floppy-drive-fat.xml | 1 + .../genid-active.x86_64-latest.xml | 1 + .../genid-auto-active.x86_64-latest.xml | 1 + .../genid-auto-inactive.x86_64-latest.xml | 1 + .../genid-inactive.x86_64-latest.xml | 1 + .../graphics-listen-network.xml | 1 + .../graphics-listen-network2.xml | 1 + .../graphics-spice-auto-socket-cfg.xml | 1 + .../graphics-spice-auto-socket.xml | 1 + .../graphics-spice-compression.xml | 1 + .../graphics-spice-egl-headless.xml | 1 + .../graphics-spice-qxl-vga.xml | 1 + .../graphics-spice-socket.xml | 1 + .../graphics-spice-timeout.xml | 1 + tests/qemuxml2xmloutdata/graphics-spice.xml | 1 + .../graphics-vnc-auto-socket-cfg.xml | 1 + .../graphics-vnc-auto-socket.xml | 1 + .../graphics-vnc-egl-headless.xml | 1 + .../graphics-vnc-no-listen-attr.xml | 1 + ...ics-vnc-remove-generated-socket-active.xml | 1 + ...s-vnc-remove-generated-socket-inactive.xml | 1 + .../qemuxml2xmloutdata/graphics-vnc-sasl.xml | 1 + .../graphics-vnc-socket.xml | 1 + tests/qemuxml2xmloutdata/graphics-vnc-tls.xml | 1 + .../graphics-vnc-websocket.xml | 1 + tests/qemuxml2xmloutdata/graphics-vnc.xml | 1 + ...stdev-mdev-display-ramfb.x86_64-latest.xml | 1 + .../hostdev-mdev-display.xml | 1 + .../hostdev-mdev-precreated.xml | 1 + .../hostdev-pci-address-unassigned.xml | 1 + .../hostdev-pci-address.xml | 1 + .../hostdev-pci-multifunction.xml | 1 + .../hostdev-scsi-autogen-address.xml | 1 + .../hostdev-scsi-large-unit.xml | 1 + tests/qemuxml2xmloutdata/hostdev-scsi-lsi.xml | 1 + .../qemuxml2xmloutdata/hostdev-scsi-rawio.xml | 1 + .../qemuxml2xmloutdata/hostdev-scsi-sgio.xml | 1 + .../hostdev-scsi-shareable.xml | 1 + .../hostdev-scsi-vhost-scsi-ccw.xml | 1 + .../hostdev-scsi-vhost-scsi-pci.xml | 1 + .../hostdev-scsi-vhost-scsi-pcie.xml | 1 + .../hostdev-scsi-virtio-scsi.xml | 1 + .../hostdev-subsys-mdev-vfio-ap.xml | 1 + ...subsys-mdev-vfio-ccw-boot.s390x-latest.xml | 1 + .../hostdev-subsys-mdev-vfio-ccw.xml | 1 + .../hostdev-usb-address.xml | 1 + .../hostdev-vfio-zpci-autogenerate-fids.xml | 1 + .../hostdev-vfio-zpci-autogenerate-uids.xml | 1 + .../hostdev-vfio-zpci-autogenerate.xml | 1 + .../hostdev-vfio-zpci-boundaries.xml | 1 + .../hostdev-vfio-zpci-ccw-memballoon.xml | 1 + .../hostdev-vfio-zpci-multidomain-many.xml | 1 + .../qemuxml2xmloutdata/hostdev-vfio-zpci.xml | 1 + tests/qemuxml2xmloutdata/hostdev-vfio.xml | 1 + .../qemuxml2xmloutdata/hugepages-default.xml | 1 + .../qemuxml2xmloutdata/hugepages-nodeset.xml | 1 + .../hugepages-numa-default-2M.xml | 1 + .../hugepages-numa-nodeset-part.xml | 1 + .../hugepages-numa-nodeset.xml | 1 + tests/qemuxml2xmloutdata/hugepages-shared.xml | 1 + tests/qemuxml2xmloutdata/hyperv-off.xml | 1 + tests/qemuxml2xmloutdata/hyperv-panic.xml | 1 + .../hyperv-stimer-direct.xml | 1 + tests/qemuxml2xmloutdata/hyperv.xml | 1 + tests/qemuxml2xmloutdata/input-usbmouse.xml | 1 + tests/qemuxml2xmloutdata/input-usbtablet.xml | 1 + tests/qemuxml2xmloutdata/input-virtio-ccw.xml | 1 + .../intel-iommu.x86_64-2.6.0.xml | 1 + tests/qemuxml2xmloutdata/interface-driver.xml | 1 + tests/qemuxml2xmloutdata/interface-server.xml | 1 + .../iommu-smmuv3.aarch64-latest.xml | 1 + .../iothreads-disk-virtio-ccw.xml | 1 + tests/qemuxml2xmloutdata/iothreads-disk.xml | 1 + .../iothreads-ids-partial.xml | 1 + tests/qemuxml2xmloutdata/iothreads-ids.xml | 1 + .../iothreads-virtio-scsi-ccw.xml | 1 + .../iothreads-virtio-scsi-pci.xml | 1 + tests/qemuxml2xmloutdata/iothreads.xml | 1 + tests/qemuxml2xmloutdata/kvm-features-off.xml | 1 + tests/qemuxml2xmloutdata/kvm-features.xml | 1 + tests/qemuxml2xmloutdata/kvmclock.xml | 1 + tests/qemuxml2xmloutdata/lease.xml | 1 + .../luks-disks-source-qcow2.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/luks-disks-source.xml | 1 + .../mach-virt-console-virtio.xml | 1 + .../mach-virt-serial-compat.xml | 1 + .../mach-virt-serial-pci.xml | 1 + .../mach-virt-serial-usb.xml | 1 + tests/qemuxml2xmloutdata/machine-core-off.xml | 1 + tests/qemuxml2xmloutdata/machine-core-on.xml | 1 + ...hine-loadparm-multiple-disks-nets-s390.xml | 1 + .../memory-hotplug-dimm.xml | 1 + ...memory-hotplug-nvdimm-ppc64-abi-update.xml | 1 + .../memory-hotplug-nvdimm-ppc64.xml | 1 + ...memory-hotplug-ppc64-nonuma-abi-update.xml | 1 + tests/qemuxml2xmloutdata/memory-hotplug.xml | 1 + .../qemuxml2xmloutdata/memorybacking-set.xml | 1 + .../memorybacking-unset.xml | 1 + .../qemuxml2xmloutdata/memtune-unlimited.xml | 1 + tests/qemuxml2xmloutdata/memtune.xml | 1 + .../qemuxml2xmloutdata/metadata-duplicate.xml | 1 + tests/qemuxml2xmloutdata/metadata.xml | 1 + tests/qemuxml2xmloutdata/migrate.xml | 1 + tests/qemuxml2xmloutdata/minimal.xml | 1 + tests/qemuxml2xmloutdata/misc-acpi.xml | 1 + tests/qemuxml2xmloutdata/misc-disable-s3.xml | 1 + .../misc-disable-suspends.xml | 1 + tests/qemuxml2xmloutdata/misc-enable-s4.xml | 1 + tests/qemuxml2xmloutdata/misc-no-reboot.xml | 1 + tests/qemuxml2xmloutdata/misc-uuid.xml | 1 + tests/qemuxml2xmloutdata/net-bandwidth.xml | 1 + tests/qemuxml2xmloutdata/net-bandwidth2.xml | 1 + tests/qemuxml2xmloutdata/net-coalesce.xml | 1 + tests/qemuxml2xmloutdata/net-eth-hostip.xml | 1 + tests/qemuxml2xmloutdata/net-eth-ifname.xml | 1 + .../net-eth-unmanaged-tap.xml | 1 + tests/qemuxml2xmloutdata/net-eth.xml | 1 + .../net-hostdev-bootorder.xml | 1 + tests/qemuxml2xmloutdata/net-hostdev-vfio.xml | 1 + tests/qemuxml2xmloutdata/net-hostdev.xml | 1 + .../net-isolated-port.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/net-many-models.xml | 1 + tests/qemuxml2xmloutdata/net-midonet.xml | 1 + tests/qemuxml2xmloutdata/net-mtu.xml | 1 + tests/qemuxml2xmloutdata/net-openvswitch.xml | 1 + tests/qemuxml2xmloutdata/net-udp.xml | 1 + tests/qemuxml2xmloutdata/net-user.xml | 1 + tests/qemuxml2xmloutdata/net-vdpa.xml | 1 + tests/qemuxml2xmloutdata/net-vhostuser.xml | 1 + .../qemuxml2xmloutdata/net-virtio-device.xml | 1 + .../net-virtio-disable-offloads.xml | 1 + .../net-virtio-network-portgroup.xml | 1 + .../net-virtio-rxtxqueuesize.xml | 1 + .../net-virtio-teaming-network.xml | 1 + .../qemuxml2xmloutdata/net-virtio-teaming.xml | 1 + tests/qemuxml2xmloutdata/net-virtio.xml | 1 + tests/qemuxml2xmloutdata/nosharepages.xml | 1 + .../numad-auto-memory-vcpu-cpuset.xml | 1 + ...to-memory-vcpu-no-cpuset-and-placement.xml | 1 + .../numad-auto-vcpu-no-numatune.xml | 1 + .../numad-static-vcpu-no-numatune.xml | 1 + .../numatune-auto-prefer.xml | 1 + .../qemuxml2xmloutdata/numatune-distances.xml | 1 + .../numatune-memnode-no-memory.xml | 1 + tests/qemuxml2xmloutdata/numatune-memnode.xml | 1 + ...avcpus-topology-mismatch.x86_64-latest.xml | 1 + .../os-firmware-bios.x86_64-latest.xml | 1 + .../os-firmware-efi-secboot.x86_64-latest.xml | 1 + .../os-firmware-efi.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/panic-double.xml | 1 + tests/qemuxml2xmloutdata/panic-isa.xml | 1 + tests/qemuxml2xmloutdata/panic-no-address.xml | 1 + tests/qemuxml2xmloutdata/panic-pseries.xml | 1 + tests/qemuxml2xmloutdata/panic.xml | 1 + tests/qemuxml2xmloutdata/pci-autoadd-addr.xml | 1 + tests/qemuxml2xmloutdata/pci-autoadd-idx.xml | 1 + .../qemuxml2xmloutdata/pci-autofill-addr.xml | 1 + .../pci-bridge-many-disks.xml | 1 + tests/qemuxml2xmloutdata/pci-bridge.xml | 1 + tests/qemuxml2xmloutdata/pci-expander-bus.xml | 1 + tests/qemuxml2xmloutdata/pci-many.xml | 1 + .../pci-rom-disabled-invalid.xml | 1 + tests/qemuxml2xmloutdata/pci-rom-disabled.xml | 1 + tests/qemuxml2xmloutdata/pci-rom.xml | 1 + .../pci-serial-dev-chardev.xml | 1 + .../qemuxml2xmloutdata/pcie-expander-bus.xml | 1 + .../pcie-root-port-model-generic.xml | 1 + .../pcie-root-port-model-ioh3420.xml | 1 + ...pcie-root-port-nohotplug.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/pcie-root-port.xml | 1 + tests/qemuxml2xmloutdata/pcie-root.xml | 1 + .../pcie-switch-downstream-port.xml | 1 + .../pcie-switch-upstream-port.xml | 1 + tests/qemuxml2xmloutdata/pcihole64-gib.xml | 1 + tests/qemuxml2xmloutdata/pcihole64-none.xml | 1 + tests/qemuxml2xmloutdata/pcihole64-q35.xml | 1 + tests/qemuxml2xmloutdata/pcihole64.xml | 1 + tests/qemuxml2xmloutdata/pmu-feature-off.xml | 1 + tests/qemuxml2xmloutdata/pmu-feature.xml | 1 + ...fault-cpu-kvm-pseries-2.7.ppc64-latest.xml | 1 + ...fault-cpu-kvm-pseries-3.1.ppc64-latest.xml | 1 + ...fault-cpu-kvm-pseries-4.2.ppc64-latest.xml | 1 + ...fault-cpu-tcg-pseries-2.7.ppc64-latest.xml | 1 + ...fault-cpu-tcg-pseries-3.1.ppc64-latest.xml | 1 + ...fault-cpu-tcg-pseries-4.2.ppc64-latest.xml | 1 + .../ppc64-pseries-graphics.ppc64-latest.xml | 1 + .../ppc64-pseries-headless.ppc64-latest.xml | 1 + .../ppc64-tpmproxy-single.ppc64-latest.xml | 1 + .../ppc64-tpmproxy-with-tpm.ppc64-latest.xml | 1 + .../ppc64-usb-controller-legacy.xml | 1 + .../ppc64-usb-controller.xml | 1 + .../pseries-console-virtio.xml | 1 + .../pseries-cpu-compat-power9.xml | 1 + .../qemuxml2xmloutdata/pseries-cpu-compat.xml | 1 + .../qemuxml2xmloutdata/pseries-cpu-exact.xml | 1 + tests/qemuxml2xmloutdata/pseries-features.xml | 1 + .../qemuxml2xmloutdata/pseries-hostdevs-1.xml | 1 + .../qemuxml2xmloutdata/pseries-hostdevs-2.xml | 1 + .../qemuxml2xmloutdata/pseries-hostdevs-3.xml | 1 + .../pseries-many-buses-1.xml | 1 + .../pseries-many-buses-2.xml | 1 + .../pseries-many-devices.xml | 1 + tests/qemuxml2xmloutdata/pseries-nvram.xml | 1 + .../pseries-panic-missing.xml | 1 + .../pseries-panic-no-address.xml | 1 + .../pseries-phb-default-missing.xml | 1 + .../pseries-phb-numa-node.xml | 1 + .../qemuxml2xmloutdata/pseries-phb-simple.xml | 1 + .../pseries-serial-native.xml | 1 + .../qemuxml2xmloutdata/pseries-serial-pci.xml | 1 + .../qemuxml2xmloutdata/pseries-serial-usb.xml | 1 + .../pv-spinlock-disabled.xml | 1 + .../pv-spinlock-enabled.xml | 1 + .../q35-default-devices-only.xml | 1 + .../qemuxml2xmloutdata/q35-multifunction.xml | 1 + .../q35-pci-force-address.xml | 1 + tests/qemuxml2xmloutdata/q35-pcie-autoadd.xml | 1 + tests/qemuxml2xmloutdata/q35-pcie.xml | 1 + tests/qemuxml2xmloutdata/q35-usb2-multi.xml | 1 + tests/qemuxml2xmloutdata/q35-usb2-reorder.xml | 1 + tests/qemuxml2xmloutdata/q35-usb2.xml | 1 + .../q35-virt-manager-basic.xml | 1 + tests/qemuxml2xmloutdata/q35-virtio-pci.xml | 1 + tests/qemuxml2xmloutdata/q35.xml | 1 + tests/qemuxml2xmloutdata/qemu-ns-no-env.xml | 1 + .../reboot-timeout-disabled.xml | 1 + .../reboot-timeout-enabled.xml | 1 + tests/qemuxml2xmloutdata/restore-v2.xml | 1 + .../riscv64-virt-graphics.riscv64-latest.xml | 1 + .../riscv64-virt-headless.riscv64-latest.xml | 1 + tests/qemuxml2xmloutdata/riscv64-virt-pci.xml | 1 + tests/qemuxml2xmloutdata/riscv64-virt.xml | 1 + ...lt-cpu-kvm-ccw-virtio-2.7.s390x-latest.xml | 1 + ...lt-cpu-kvm-ccw-virtio-4.2.s390x-latest.xml | 1 + ...lt-cpu-tcg-ccw-virtio-2.7.s390x-latest.xml | 1 + ...lt-cpu-tcg-ccw-virtio-4.2.s390x-latest.xml | 1 + .../s390-defaultconsole.xml | 1 + .../qemuxml2xmloutdata/s390-panic-missing.xml | 1 + .../s390-panic-no-address.xml | 1 + tests/qemuxml2xmloutdata/s390-panic.xml | 1 + tests/qemuxml2xmloutdata/s390-serial-2.xml | 1 + .../s390-serial-console.xml | 1 + tests/qemuxml2xmloutdata/s390-serial.xml | 1 + .../s390x-ccw-graphics.s390x-latest.xml | 1 + .../s390x-ccw-headless.s390x-latest.xml | 1 + .../qemuxml2xmloutdata/seclabel-dac-none.xml | 1 + .../seclabel-device-multiple.xml | 1 + .../seclabel-dynamic-baselabel-inactive.xml | 1 + .../seclabel-dynamic-labelskip-inactive.xml | 1 + ...seclabel-dynamic-none-relabel-inactive.xml | 1 + .../seclabel-dynamic-none.xml | 1 + .../seclabel-dynamic-override-inactive.xml | 1 + .../seclabel-dynamic-relabel-inactive.xml | 1 + tests/qemuxml2xmloutdata/seclabel-none.xml | 1 + .../seclabel-static-labelskip-active.xml | 1 + .../seclabel-static-labelskip-inactive.xml | 1 + tests/qemuxml2xmloutdata/seclabel-static.xml | 1 + .../serial-spiceport-nospice.xml | 1 + tests/qemuxml2xmloutdata/serial-spiceport.xml | 1 + .../serial-target-port-auto.xml | 1 + .../serial-tcp-tlsx509-chardev.xml | 1 + .../shmem-plain-doorbell.xml | 1 + tests/qemuxml2xmloutdata/shmem.xml | 1 + .../smartcard-controller.xml | 1 + .../smartcard-host-certificates-database.xml | 1 + .../smartcard-host-certificates.xml | 1 + tests/qemuxml2xmloutdata/smartcard-host.xml | 1 + .../smartcard-passthrough-spicevmc.xml | 1 + .../smartcard-passthrough-tcp.xml | 1 + .../smbios-multiple-type2.xml | 1 + tests/qemuxml2xmloutdata/smbios.xml | 1 + tests/qemuxml2xmloutdata/smp.xml | 1 + tests/qemuxml2xmloutdata/sound-device.xml | 1 + tests/qemuxml2xmloutdata/sound.xml | 1 + .../tap-vhost-incorrect.xml | 1 + tests/qemuxml2xmloutdata/tap-vhost.xml | 1 + .../tpm-emulator-tpm2-enc.x86_64-latest.xml | 1 + ...tpm-emulator-tpm2-pstate.x86_64-latest.xml | 1 + .../tpm-emulator-tpm2.x86_64-latest.xml | 1 + .../tpm-emulator.x86_64-latest.xml | 1 + .../tpm-passthrough-crb.x86_64-latest.xml | 1 + .../tpm-passthrough.x86_64-latest.xml | 1 + .../qemuxml2xmloutdata/tseg-explicit-size.xml | 1 + .../usb-controller-default-q35.xml | 1 + .../usb-controller-explicit-q35.xml | 1 + tests/qemuxml2xmloutdata/usb-controller.xml | 1 + .../qemuxml2xmloutdata/usb-ich9-ehci-addr.xml | 1 + tests/qemuxml2xmloutdata/usb-none.xml | 1 + .../usb-piix3-controller.xml | 1 + tests/qemuxml2xmloutdata/usb-port-missing.xml | 1 + .../usb-redir-filter-version.xml | 1 + tests/qemuxml2xmloutdata/usb-redir-filter.xml | 1 + tests/qemuxml2xmloutdata/usb-redir.xml | 1 + tests/qemuxml2xmloutdata/vhost-vsock-auto.xml | 1 + .../vhost-vsock-ccw-auto.xml | 1 + tests/qemuxml2xmloutdata/vhost_queues.xml | 1 + .../video-device-pciaddr-default.xml | 1 + .../qemuxml2xmloutdata/video-none-device.xml | 1 + tests/qemuxml2xmloutdata/video-qxl-heads.xml | 1 + .../qemuxml2xmloutdata/video-qxl-noheads.xml | 1 + .../video-virtio-gpu-ccw-auto.xml | 1 + .../video-virtio-gpu-ccw.xml | 1 + .../video-virtio-gpu-device.xml | 1 + .../video-virtio-gpu-secondary.xml | 1 + .../video-virtio-gpu-spice-gl.xml | 1 + .../video-virtio-gpu-virgl.xml | 1 + .../virtio-9p-createmode.x86_64-latest.xml | 1 + .../virtio-9p-multidevs.x86_64-latest.xml | 1 + .../virtio-input-passthrough.xml | 1 + tests/qemuxml2xmloutdata/virtio-input.xml | 1 + tests/qemuxml2xmloutdata/virtio-lun.xml | 1 + .../virtio-non-transitional.x86_64-latest.xml | 1 + .../virtio-rng-builtin.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/virtio-rng-egd.xml | 1 + .../qemuxml2xmloutdata/virtio-rng-random.xml | 1 + .../virtio-transitional.x86_64-latest.xml | 1 + tests/qemuxml2xmloutdata/vmcoreinfo.xml | 1 + tests/qemuxml2xmloutdata/watchdog.xml | 1 + ...4-default-cpu-kvm-pc-4.2.x86_64-latest.xml | 1 + ...-default-cpu-kvm-q35-4.2.x86_64-latest.xml | 1 + ...4-default-cpu-tcg-pc-4.2.x86_64-latest.xml | 1 + ...-default-cpu-tcg-q35-4.2.x86_64-latest.xml | 1 + .../x86_64-pc-graphics.x86_64-latest.xml | 1 + .../x86_64-pc-headless.x86_64-latest.xml | 1 + .../x86_64-q35-graphics.x86_64-latest.xml | 1 + .../x86_64-q35-headless.x86_64-latest.xml | 1 + tests/qemuxml2xmltest.c | 54 ++ 957 files changed, 6887 insertions(+), 341 deletions(-) create mode 100644 tests/qemuxml2argvdata/audio-alsa-best.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-best.xml create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.err create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-full.xml create mode 100644 tests/qemuxml2argvdata/audio-alsa-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-alsa-minimal.x86_64-latest.a= rgs create mode 100644 tests/qemuxml2argvdata/audio-alsa-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-best.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest= .args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-best.xml create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.err create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.x86_64-latest= .args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-full.xml create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-minimal.x86_64-lat= est.args create mode 100644 tests/qemuxml2argvdata/audio-coreaudio-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-default-nographics.args create mode 100644 tests/qemuxml2argvdata/audio-default-nographics.x86_64-la= test.args create mode 100644 tests/qemuxml2argvdata/audio-default-nographics.xml create mode 100644 tests/qemuxml2argvdata/audio-default-sdl.args create mode 100644 tests/qemuxml2argvdata/audio-default-sdl.x86_64-latest.ar= gs create mode 100644 tests/qemuxml2argvdata/audio-default-sdl.xml create mode 100644 tests/qemuxml2argvdata/audio-default-spice.args create mode 100644 tests/qemuxml2argvdata/audio-default-spice.x86_64-latest.= args create mode 100644 tests/qemuxml2argvdata/audio-default-spice.xml create mode 100644 tests/qemuxml2argvdata/audio-default-vnc.args create mode 100644 tests/qemuxml2argvdata/audio-default-vnc.x86_64-latest.ar= gs create mode 100644 tests/qemuxml2argvdata/audio-default-vnc.xml create mode 100644 tests/qemuxml2argvdata/audio-file-best.args create mode 100644 tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-file-best.xml create mode 100644 tests/qemuxml2argvdata/audio-file-full.args create mode 100644 tests/qemuxml2argvdata/audio-file-full.err create mode 100644 tests/qemuxml2argvdata/audio-file-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-file-full.xml create mode 100644 tests/qemuxml2argvdata/audio-file-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-file-minimal.x86_64-latest.a= rgs create mode 100644 tests/qemuxml2argvdata/audio-file-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-jack-full.err create mode 100644 tests/qemuxml2argvdata/audio-jack-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-jack-full.xml create mode 100644 tests/qemuxml2argvdata/audio-jack-minimal.err create mode 100644 tests/qemuxml2argvdata/audio-jack-minimal.x86_64-latest.a= rgs create mode 100644 tests/qemuxml2argvdata/audio-jack-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-many-backends.err create mode 100644 tests/qemuxml2argvdata/audio-many-backends.x86_64-latest.= args create mode 100644 tests/qemuxml2argvdata/audio-many-backends.xml create mode 100644 tests/qemuxml2argvdata/audio-none-best.args create mode 100644 tests/qemuxml2argvdata/audio-none-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-none-best.xml create mode 100644 tests/qemuxml2argvdata/audio-none-full.args create mode 100644 tests/qemuxml2argvdata/audio-none-full.err create mode 100644 tests/qemuxml2argvdata/audio-none-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-none-full.xml create mode 100644 tests/qemuxml2argvdata/audio-none-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-none-minimal.x86_64-latest.a= rgs create mode 100644 tests/qemuxml2argvdata/audio-none-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-oss-best.args create mode 100644 tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-oss-best.xml create mode 100644 tests/qemuxml2argvdata/audio-oss-full.args create mode 100644 tests/qemuxml2argvdata/audio-oss-full.err create mode 100644 tests/qemuxml2argvdata/audio-oss-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-oss-full.xml create mode 100644 tests/qemuxml2argvdata/audio-oss-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-oss-minimal.x86_64-latest.ar= gs create mode 100644 tests/qemuxml2argvdata/audio-oss-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-best.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-lates= t.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-best.xml create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.err create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.x86_64-lates= t.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-full.xml create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-minimal.x86_64-la= test.args create mode 100644 tests/qemuxml2argvdata/audio-pulseaudio-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-sdl-best.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-best.xml create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.err create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-full.xml create mode 100644 tests/qemuxml2argvdata/audio-sdl-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-sdl-minimal.x86_64-latest.ar= gs create mode 100644 tests/qemuxml2argvdata/audio-sdl-minimal.xml create mode 100644 tests/qemuxml2argvdata/audio-spice-best.args create mode 100644 tests/qemuxml2argvdata/audio-spice-best.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-spice-best.xml create mode 100644 tests/qemuxml2argvdata/audio-spice-full.args create mode 100644 tests/qemuxml2argvdata/audio-spice-full.err create mode 100644 tests/qemuxml2argvdata/audio-spice-full.x86_64-latest.args create mode 100644 tests/qemuxml2argvdata/audio-spice-full.xml create mode 100644 tests/qemuxml2argvdata/audio-spice-minimal.args create mode 100644 tests/qemuxml2argvdata/audio-spice-minimal.x86_64-latest.= args create mode 100644 tests/qemuxml2argvdata/audio-spice-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-alsa-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-alsa-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-alsa-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-coreaudio-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-coreaudio-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-coreaudio-minimal.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-nographics.x86_64-= latest.xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-nographics.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-sdl.x86_64-latest.= xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-sdl.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-spice.x86_64-lates= t.xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-spice.xml create mode 100644 tests/qemuxml2xmloutdata/audio-default-vnc.x86_64-latest.= xml create mode 120000 tests/qemuxml2xmloutdata/audio-default-vnc.xml create mode 120000 tests/qemuxml2xmloutdata/audio-file-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-file-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-file-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-jack-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-many-backends.x86_64-lates= t.xml create mode 120000 tests/qemuxml2xmloutdata/audio-none-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-none-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-none-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-oss-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-oss-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-oss-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-pulseaudio-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-pulseaudio-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-pulseaudio-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-sdl-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-sdl-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-sdl-minimal.xml create mode 120000 tests/qemuxml2xmloutdata/audio-spice-best.xml create mode 120000 tests/qemuxml2xmloutdata/audio-spice-full.xml create mode 120000 tests/qemuxml2xmloutdata/audio-spice-minimal.xml
--=20 2.29.2
*That* was a slog. Also an oddly formatted cover letter, but ehh? Reviewed-by: Neal Gompa <ngompa13@gmail.com> -- 真実はいつも一つ!/ Always, there's only one truth!
participants (3)
-
Daniel P. Berrangé
-
Michal Privoznik
-
Neal Gompa