diff --git a/virt-manager-cli-Add-basic-audio-type-XXX-id-Y-support.patch b/virt-manager-cli-Add-basic-audio-type-XXX-id-Y-support.patch new file mode 100644 index 0000000..57bbb41 --- /dev/null +++ b/virt-manager-cli-Add-basic-audio-type-XXX-id-Y-support.patch @@ -0,0 +1,203 @@ +From a39c0f0ddb75bca67a150e8c914ce94c8d1c6858 Mon Sep 17 00:00:00 2001 +Message-ID: +From: Pavel Hrdina +Date: Thu, 24 Feb 2022 13:47:59 -0500 +Subject: [PATCH] cli: Add basic --audio type=XXX,id=Y support + +From: Cole Robinson + +Closes: #264 + +Signed-off-by: Cole Robinson +(cherry picked from commit cd5c34a3f3ab53be32319af6857efd3c2ac45385) + +https://issues.redhat.com/browse/RHEL-17435 + +Signed-off-by: Pavel Hrdina +--- + man/virt-install.rst | 10 ++++++++++ + man/virt-xml.rst | 1 + + .../cli/compare/virt-install-many-devices.xml | 2 ++ + tests/data/cli/compare/virt-xml-add-audio.xml | 10 ++++++++++ + tests/test_cli.py | 6 ++++++ + virtinst/cli.py | 16 ++++++++++++++++ + virtinst/devices/__init__.py | 1 + + virtinst/devices/audio.py | 12 ++++++++++++ + virtinst/guest.py | 3 ++- + 9 files changed, 60 insertions(+), 1 deletion(-) + create mode 100644 tests/data/cli/compare/virt-xml-add-audio.xml + create mode 100644 virtinst/devices/audio.py + +diff --git a/man/virt-install.rst b/man/virt-install.rst +index 963f95649..bafbf9f1f 100644 +--- a/man/virt-install.rst ++++ b/man/virt-install.rst +@@ -1561,6 +1561,16 @@ Complete details at https://libvirt.org/formatdomain.html#elementsSound + + + ++``--audio`` ++^^^^^^^^^^^ ++ ++Configure host audio output for the guest's `--sound` hardware. ++ ++Use --audio=? to see a list of all available sub options. ++Complete details at https://libvirt.org/formatdomain.html#audio-backends ++ ++ ++ + ``--watchdog`` + ^^^^^^^^^^^^^^ + +diff --git a/man/virt-xml.rst b/man/virt-xml.rst +index 7ff7ceca7..75c8be860 100644 +--- a/man/virt-xml.rst ++++ b/man/virt-xml.rst +@@ -235,6 +235,7 @@ XML OPTIONS + * ``--hostdev`` + * ``--filesystem`` + * ``--sound`` ++* ``--audio`` + * ``--watchdog`` + * ``--video`` + * ``--smartcard`` +diff --git a/tests/data/cli/compare/virt-install-many-devices.xml b/tests/data/cli/compare/virt-install-many-devices.xml +index 3bd756b34..d13ec6fb7 100644 +--- a/tests/data/cli/compare/virt-install-many-devices.xml ++++ b/tests/data/cli/compare/virt-install-many-devices.xml +@@ -493,6 +493,8 @@ + + + ++