[virt-tools-list] [PATCH] addhardware: Hide IDE while adding controller for q35-based machinetypes

Lin Ma lma at suse.com
Tue Nov 7 10:34:36 UTC 2017


Signed-off-by: Lin Ma <lma at suse.com>
---
 virtManager/addhardware.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index cd82cd3e..fb111344 100644
--- a/virtManager/addhardware.py
+++ b/virtManager/addhardware.py
@@ -889,6 +889,9 @@ class vmmAddHardware(vmmGObjectUI):
         for t in VirtualController.TYPES:
             if t == VirtualController.TYPE_PCI:
                 continue
+            elif (t == VirtualController.TYPE_IDE and
+                  self.vm.get_xmlobj().os.is_q35()):
+                continue
             model.append([t, VirtualController.pretty_type(t)])
 
         if len(model) > 0:
-- 
2.14.0




More information about the virt-tools-list mailing list