diff options
author | Cole Robinson <crobinso@redhat.com> | 2022-02-24 15:44:53 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2022-02-26 14:11:56 -0500 |
commit | 0611302448360d562833b294834984a549095f98 (patch) | |
tree | c281d07b751db06efa3841406bbc5eac1fb650a4 /virtinst | |
parent | 9a93f9c949ba3c4462574afd7c93c494b9f74905 (diff) | |
download | virt-manager-0611302448360d562833b294834984a549095f98.tar.gz |
sound: Use ich9 more generally for PCIe, not just q35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtinst')
-rw-r--r-- | virtinst/devices/sound.py | 2 | ||||
-rw-r--r-- | virtinst/guest.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/virtinst/devices/sound.py b/virtinst/devices/sound.py index eae36a11..c2f6435d 100644 --- a/virtinst/devices/sound.py +++ b/virtinst/devices/sound.py @@ -31,7 +31,7 @@ class DeviceSound(Device): @staticmethod def default_model(guest): - if guest.os.is_q35(): + if guest.defaults_to_pcie(): return "ich9" return "ich6" diff --git a/virtinst/guest.py b/virtinst/guest.py index 166fbcc4..9522508b 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -1005,7 +1005,7 @@ class Guest(XMLBuilder): ctrl.set_defaults(self) self.add_device(ctrl) - def _defaults_to_pcie(self): + def defaults_to_pcie(self): if self.os.is_q35(): return True if self.os.is_arm_machvirt(): @@ -1017,7 +1017,7 @@ class Guest(XMLBuilder): def _add_q35_pcie_controllers(self): if any([c for c in self.devices.controller if c.type == "pci"]): return - if not self._defaults_to_pcie(): + if not self.defaults_to_pcie(): return added = False |