Blame SOURCES/virt-manager-Rename-hide_unsupported_rhel_options-to-stable_defau.patch

343f27
From 0242900389573107fb32c9f5fda579d38dc7e15a Mon Sep 17 00:00:00 2001
343f27
From: Martin Kletzander <mkletzan@redhat.com>
343f27
Date: Wed, 22 Jan 2014 14:48:35 +0100
343f27
Subject: [PATCH] Rename hide_unsupported_rhel_options to stable_defaults and
343f27
 clean-up its usage
343f27
343f27
https://bugzilla.redhat.com/show_bug.cgi?id=908616
343f27
343f27
There were multiple problems with the setting and usage of
343f27
hide_unsupported_rhel_options.  Due to the fact that the option has
343f27
several diferent namings throughout the code, this patch is renaming
343f27
it to stable_defaults, which basically says what the option does and
343f27
makes it possible to use it without need for more than one negation
343f27
(where the old code had up to 4 of them in some places), which also
343f27
helps understanding it.
343f27
343f27
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
343f27
(cherry picked from commit dc0b9bbaafa98498f5621a2c318a43fdfe1fa7ff)
343f27
343f27
Downstream diverged so much it's pointless waste of time to explain
343f27
all these conflicts:
343f27
	setup.py
343f27
	tests/__init__.py
343f27
	tests/xmlconfig.py
343f27
	virt-manager.spec.in
343f27
	virtManager/addhardware.py
343f27
	virtManager/choosecd.py
343f27
	virtManager/config.py
343f27
	virtManager/connection.py
343f27
	virtManager/create.py
343f27
	virtManager/createvol.py
343f27
	virtManager/fsdetails.py
343f27
	virtManager/storagebrowse.py
343f27
	virtManager/uihelpers.py
343f27
	virtinst/__init__.py
343f27
343f27
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
343f27
---
343f27
 setup.py                     |  9 ++++-----
343f27
 virt-manager                 |  4 ++--
343f27
 virt-manager.spec.in         | 10 +++++-----
343f27
 virtManager/addhardware.py   | 14 +++++++-------
343f27
 virtManager/choosecd.py      |  5 ++---
343f27
 virtManager/config.py        |  4 ++--
343f27
 virtManager/connection.py    | 27 +++++++++++++--------------
343f27
 virtManager/create.py        | 20 ++++++++++----------
343f27
 virtManager/createvol.py     |  8 ++++----
343f27
 virtManager/details.py       |  4 ++--
343f27
 virtManager/domain.py        |  6 +++---
343f27
 virtManager/storagebrowse.py |  7 ++++---
343f27
 virtManager/uihelpers.py     | 12 ++++++------
343f27
 virtcli/cliconfig.py         |  5 ++---
343f27
 virtinst/VirtualDisk.py      |  4 ++--
343f27
 virtinst/__init__.py         |  2 +-
343f27
 16 files changed, 69 insertions(+), 72 deletions(-)
343f27
343f27
diff --git a/setup.py b/setup.py
343f27
index 6b5ceb1..505e533 100755
343f27
--- a/setup.py
343f27
+++ b/setup.py
343f27
@@ -312,10 +312,10 @@ class configure(Command):
343f27
          "(default=none)"),
343f27
         ("askpass-package-names=", None,
343f27
          "name of your distro's askpass package(s) (default=none)"),
343f27
-        ("hide-unsupported-rhel-options", None,
343f27
-         "Hide config bits that are not supported on RHEL (default=no)"),
343f27
         ("preferred-distros=", None,
343f27
          "Distros to list first in the New VM wizard (default=none)"),
343f27
+        ("stable-defaults", None,
343f27
+         "Hide config bits that are not considered stable (default=no)"),
343f27
         ("default-graphics=", None,
343f27
          "Default graphics type (spice or vnc) (default=spice)"),
343f27
 
343f27
@@ -330,7 +330,7 @@ class configure(Command):
343f27
         self.libvirt_package_names = ""
343f27
         self.kvm_package_names = ""
343f27
         self.askpass_package_names = ""
343f27
-        self.hide_unsupported_rhel_options = 0
343f27
+        self.stable_defaults = 0
343f27
         self.preferred_distros = ""
343f27
         self.default_graphics = "spice"
343f27
         self.prefix = sysprefix
343f27
@@ -347,8 +347,7 @@ class configure(Command):
343f27
         template += "hv_packages = %s\n" % self.kvm_package_names
343f27
         template += "askpass_packages = %s\n" % self.askpass_package_names
343f27
         template += "preferred_distros = %s\n" % self.preferred_distros
343f27
-        template += ("hide_unsupported_rhel_options = %s\n" %
343f27
-                     self.hide_unsupported_rhel_options)
343f27
+        template += "stable_defaults = %s\n" % self.stable_defaults
343f27
         template += "default_graphics = %s\n" % self.default_graphics
343f27
 
343f27
         file(cliconfig.cfgpath, "w").write(template)
343f27
diff --git a/virt-manager b/virt-manager
343f27
index 4c26524..a1ba06c 100755
343f27
--- a/virt-manager
343f27
+++ b/virt-manager
343f27
@@ -1,7 +1,7 @@
343f27
 #!/usr/bin/python
343f27
 
343f27
 #
343f27
-# Copyright (C) 2006 Red Hat, Inc.
343f27
+# Copyright (C) 2006, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2006 Daniel P. Berrange <berrange@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -267,7 +267,7 @@ def main():
343f27
                                     options.testfirstrun)
343f27
     virtManager.util.running_config = config
343f27
     config.default_qemu_user = cliconfig.default_qemu_user
343f27
-    config.rhel6_defaults = not cliconfig.rhel_enable_unsupported_opts
343f27
+    config.stable_defaults = cliconfig.stable_defaults
343f27
     config.preferred_distros = cliconfig.preferred_distros
343f27
 
343f27
     config.hv_packages = cliconfig.hv_packages
343f27
diff --git a/virt-manager.spec.in b/virt-manager.spec.in
343f27
index 22b6a15..81b75ac 100644
343f27
--- a/virt-manager.spec.in
343f27
+++ b/virt-manager.spec.in
343f27
@@ -2,7 +2,7 @@
343f27
 
343f27
 
343f27
 %define with_guestfs               0
343f27
-%define disable_unsupported_rhel   0
343f27
+%define stable_defaults            0
343f27
 %define askpass_package            "openssh-askpass"
343f27
 %define qemu_user                  "qemu"
343f27
 %define libvirt_packages           "libvirt-daemon-kvm,libvirt-daemon-config-network"
343f27
@@ -13,7 +13,7 @@
343f27
 %if 0%{?rhel}
343f27
 %define preferred_distros          "rhel,fedora"
343f27
 %define kvm_packages               "qemu-kvm"
343f27
-%define disable_unsupported_rhel   1
343f27
+%define stable_defaults            1
343f27
 %endif
343f27
 
343f27
 
343f27
@@ -125,8 +125,8 @@ machine).
343f27
 %define _askpass_package --askpass-package-names=%{askpass_package}
343f27
 %endif
343f27
 
343f27
-%if %{disable_unsupported_rhel}
343f27
-%define _disable_unsupported_rhel --hide-unsupported-rhel-options
343f27
+%if %{stable_defaults}
343f27
+%define _stable_defaults --stable-defaults
343f27
 %endif
343f27
 
343f27
 %if %{default_graphics}
343f27
@@ -140,7 +140,7 @@ python setup.py configure \
343f27
     %{?_libvirt_packages} \
343f27
     %{?_askpass_package} \
343f27
     %{?_preferred_distros} \
343f27
-    %{?_disable_unsupported_rhel} \
343f27
+    %{?_stable_defaults} \
343f27
     %{?_default_graphics}
343f27
 
343f27
 
343f27
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
343f27
index f66e493..38c2bf6 100644
343f27
--- a/virtManager/addhardware.py
343f27
+++ b/virtManager/addhardware.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2006-2007, 2013 Red Hat, Inc.
343f27
+# Copyright (C) 2006-2007, 2013, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2006 Hugh O. Brock <hbrock@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -547,7 +547,7 @@ class vmmAddHardware(vmmGObjectUI):
343f27
             add_dev("fdc", virtinst.VirtualDisk.DEVICE_FLOPPY,
343f27
                     _("Floppy disk"))
343f27
 
343f27
-            if self.vm.rhel6_defaults():
343f27
+            if self.vm.stable_defaults():
343f27
                 add_dev("scsi", virtinst.VirtualDisk.DEVICE_DISK,
343f27
                         _("SCSI disk"))
343f27
                 add_dev("usb", virtinst.VirtualDisk.DEVICE_DISK,
343f27
@@ -563,6 +563,7 @@ class vmmAddHardware(vmmGObjectUI):
343f27
                     _("Virtio SCSI disk"))
343f27
             add_dev("virtio-scsi", virtinst.VirtualDisk.DEVICE_LUN,
343f27
                     _("Virtio SCSI lun"))
343f27
+
343f27
         if self.conn.is_xen() or self.conn.is_test_conn():
343f27
             add_dev("xen", virtinst.VirtualDisk.DEVICE_DISK,
343f27
                     _("Xen virtual disk"))
343f27
@@ -956,7 +957,7 @@ class vmmAddHardware(vmmGObjectUI):
343f27
         return util.get_list_selection(self.widget("hardware-list"))
343f27
 
343f27
     def update_char_device_type_model(self):
343f27
-        rhel6_blacklist = ["pipe", "udp"]
343f27
+        stable_blacklist = ["pipe", "udp"]
343f27
 
343f27
         # Char device type
343f27
         char_devtype = self.widget("char-device-type")
343f27
@@ -970,8 +971,8 @@ class vmmAddHardware(vmmGObjectUI):
343f27
         char_devtype.add_attribute(text, 'text', 1)
343f27
 
343f27
         for t in VirtualCharDevice.char_types_for_dev_type[dev_type]:
343f27
-            if (t in rhel6_blacklist and
343f27
-                not self.vm.rhel6_defaults()):
343f27
+            if (t in stable_blacklist and
343f27
+                self.vm.stable_defaults()):
343f27
                 continue
343f27
 
343f27
             desc = VirtualCharDevice.get_char_type_desc(t)
343f27
@@ -1811,8 +1812,7 @@ class vmmAddHardware(vmmGObjectUI):
343f27
         if self.storage_browser is None:
343f27
             self.storage_browser = vmmStorageBrowser(conn)
343f27
 
343f27
-        rhel6 = self.vm.rhel6_defaults()
343f27
-        self.storage_browser.rhel6_defaults = rhel6
343f27
+        self.storage_browser.stable_defaults = self.vm.stable_defaults()
343f27
 
343f27
         self.storage_browser.set_finish_cb(set_storage_cb)
343f27
         self.storage_browser.set_browse_reason(reason)
343f27
diff --git a/virtManager/choosecd.py b/virtManager/choosecd.py
343f27
index aa68252..a0cac24 100644
343f27
--- a/virtManager/choosecd.py
343f27
+++ b/virtManager/choosecd.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2006 Red Hat, Inc.
343f27
+# Copyright (C) 2006, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2006 Hugh O. Brock <hbrock@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -161,8 +161,7 @@ class vmmChooseCD(vmmGObjectUI):
343f27
             self.storage_browser.connect("storage-browse-finish",
343f27
                                          self.set_storage_path)
343f27
 
343f27
-        rhel6 = self.vm.rhel6_defaults()
343f27
-        self.storage_browser.rhel6_defaults = rhel6
343f27
+        self.storage_browser.stable_defaults = self.vm.stable_defaults()
343f27
 
343f27
         if self.media_type == MEDIA_FLOPPY:
343f27
             self.storage_browser.set_browse_reason(
343f27
diff --git a/virtManager/config.py b/virtManager/config.py
343f27
index 7c63567..886096b 100644
343f27
--- a/virtManager/config.py
343f27
+++ b/virtManager/config.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2006, 2012 Red Hat, Inc.
343f27
+# Copyright (C) 2006, 2012, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2006 Daniel P. Berrange <berrange@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -162,7 +162,7 @@ class vmmConfig(object):
343f27
         self.default_qemu_user = "root"
343f27
 
343f27
         # Use this key to disable certain features not supported on RHEL
343f27
-        self.rhel6_defaults = True
343f27
+        self.stable_defaults = True
343f27
         self.preferred_distros = []
343f27
         self.hv_packages = []
343f27
         self.libvirt_packages = []
343f27
diff --git a/virtManager/connection.py b/virtManager/connection.py
343f27
index 3b943ec..01e2df4 100644
343f27
--- a/virtManager/connection.py
343f27
+++ b/virtManager/connection.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2006 Red Hat, Inc.
343f27
+# Copyright (C) 2006, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2006 Daniel P. Berrange <berrange@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -354,20 +354,19 @@ class vmmConnection(vmmGObject):
343f27
         return path == "/session"
343f27
 
343f27
     # Connection capabilities debug helpers
343f27
-    def rhel6_defaults(self, emulator):
343f27
+    def stable_defaults(self, emulator=None):
343f27
         if not self.is_qemu_system():
343f27
-            return True
343f27
-        if not str(emulator).startswith("/usr/libexec"):
343f27
-            return True
343f27
-        return self.config.rhel6_defaults
343f27
-
343f27
-    def rhel6_defaults_caps(self):
343f27
-        caps = self.get_capabilities()
343f27
-        for guest in caps.guests:
343f27
-            for dom in guest.domains:
343f27
-                if dom.emulator.startswith("/usr/libexec"):
343f27
-                    return self.config.rhel6_defaults
343f27
-        return True
343f27
+            return False
343f27
+        if emulator:
343f27
+            if not str(emulator).startswith("/usr/libexec"):
343f27
+                return False
343f27
+        else:
343f27
+            caps = self.get_capabilities()
343f27
+            for guest in caps.guests:
343f27
+                for dom in guest.domains:
343f27
+                    if dom.emulator.startswith("/usr/libexec"):
343f27
+                        return self.config.stable_defaults
343f27
+        return self.config.stable_defaults
343f27
 
343f27
     def is_kvm_supported(self):
343f27
         return self.get_capabilities().is_kvm_available()
343f27
diff --git a/virtManager/create.py b/virtManager/create.py
343f27
index fed9b35..90ef1eb 100644
343f27
--- a/virtManager/create.py
343f27
+++ b/virtManager/create.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2008 Red Hat, Inc.
343f27
+# Copyright (C) 2008, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2008 Cole Robinson <crobinso@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -56,7 +56,7 @@ INSTALL_PAGE_IMPORT = 3
343f27
 INSTALL_PAGE_CONTAINER_APP = 4
343f27
 INSTALL_PAGE_CONTAINER_OS = 5
343f27
 
343f27
-RHEL6_OS_SUPPORT = [
343f27
+STABLE_OS_SUPPORT = [
343f27
     "rhel3", "rhel4", "rhel5.4", "rhel6",
343f27
     "win2k3", "winxp", "win2k8", "vista", "win7",
343f27
 ]
343f27
@@ -756,8 +756,8 @@ class vmmCreate(vmmGObjectUI):
343f27
         widget = self.widget("install-os-type")
343f27
         model = widget.get_model()
343f27
         model.clear()
343f27
-        filtervars = (not self._rhel6_defaults() and
343f27
-                      RHEL6_OS_SUPPORT or
343f27
+        filtervars = (self._stable_defaults() and
343f27
+                      STABLE_OS_SUPPORT or
343f27
                       None)
343f27
 
343f27
         types = virtinst.Guest.list_os_types()
343f27
@@ -790,8 +790,8 @@ class vmmCreate(vmmGObjectUI):
343f27
             self._add_os_row(model, None, _("Generic"), True)
343f27
             return
343f27
 
343f27
-        filtervars = (not self._rhel6_defaults() and
343f27
-                      RHEL6_OS_SUPPORT or
343f27
+        filtervars = (not self._stable_defaults() and
343f27
+                      STABLE_OS_SUPPORT or
343f27
                       None)
343f27
         preferred = self.config.preferred_distros
343f27
         variants = virtinst.Guest.list_os_variants(_type, preferred)
343f27
@@ -1419,7 +1419,7 @@ class vmmCreate(vmmGObjectUI):
343f27
 
343f27
         support_spice = virtinst.support.check_conn_support(guest.conn,
343f27
                             virtinst.support.SUPPORT_CONN_HV_GRAPHICS_SPICE)
343f27
-        if not self._rhel6_defaults():
343f27
+        if not self._stable_defaults():
343f27
             support_spice = True
343f27
 
343f27
         gtype = self.get_config_graphics_type()
343f27
@@ -2094,14 +2094,14 @@ class vmmCreate(vmmGObjectUI):
343f27
             logging.exception("Error detecting distro.")
343f27
             self.detectedDistro = (None, None)
343f27
 
343f27
-    def _rhel6_defaults(self):
343f27
+    def _stable_defaults(self):
343f27
         emu = None
343f27
         if self.guest:
343f27
             emu = self.guest.emulator
343f27
         elif self.capsdomain:
343f27
             emu = self.capsdomain.emulator
343f27
 
343f27
-        ret = self.conn.rhel6_defaults(emu)
343f27
+        ret = self.conn.stable_defaults(emu)
343f27
         return ret
343f27
 
343f27
     def _browse_file(self, callback, is_media=False, is_dir=False):
343f27
@@ -2115,7 +2115,7 @@ class vmmCreate(vmmGObjectUI):
343f27
         if self.storage_browser is None:
343f27
             self.storage_browser = vmmStorageBrowser(self.conn)
343f27
 
343f27
-        self.storage_browser.rhel6_defaults = self._rhel6_defaults()
343f27
+        self.storage_browser.stable_defaults = self._stable_defaults()
343f27
 
343f27
         self.storage_browser.set_vm_name(self.get_config_name())
343f27
         self.storage_browser.set_finish_cb(callback)
343f27
diff --git a/virtManager/createvol.py b/virtManager/createvol.py
343f27
index ec1a14d..346824b 100644
343f27
--- a/virtManager/createvol.py
343f27
+++ b/virtManager/createvol.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2008, 2013 Red Hat, Inc.
343f27
+# Copyright (C) 2008, 2013, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2008 Cole Robinson <crobinso@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -170,7 +170,7 @@ class vmmCreateVolume(vmmGObjectUI):
343f27
         return None
343f27
 
343f27
     def populate_vol_format(self):
343f27
-        rhel6_file_whitelist = ["raw", "qcow2", "qed"]
343f27
+        stable_whitelist = ["raw", "qcow2", "qed"]
343f27
         model = self.widget("vol-format").get_model()
343f27
         model.clear()
343f27
 
343f27
@@ -179,9 +179,9 @@ class vmmCreateVolume(vmmGObjectUI):
343f27
             formats = getattr(self.vol_class, "create_formats")
343f27
 
343f27
         if (self.vol_class == Storage.FileVolume and
343f27
-            not self.conn.rhel6_defaults_caps()):
343f27
+            self.conn.stable_defaults()):
343f27
             newfmts = []
343f27
-            for f in rhel6_file_whitelist:
343f27
+            for f in stable_whitelist:
343f27
                 if f in formats:
343f27
                     newfmts.append(f)
343f27
             formats = newfmts
343f27
diff --git a/virtManager/details.py b/virtManager/details.py
343f27
index be3b6ec..d101d63 100644
343f27
--- a/virtManager/details.py
343f27
+++ b/virtManager/details.py
343f27
@@ -3483,12 +3483,12 @@ class vmmDetails(vmmGObjectUI):
343f27
             buses.append(["fdc", "Floppy"])
343f27
         elif devtype == virtinst.VirtualDisk.DEVICE_CDROM:
343f27
             buses.append(["ide", "IDE"])
343f27
-            if self.vm.rhel6_defaults():
343f27
+            if not self.vm.stable_defaults():
343f27
                 buses.append(["scsi", "SCSI"])
343f27
         else:
343f27
             if self.vm.is_hvm():
343f27
                 buses.append(["ide", "IDE"])
343f27
-                if self.vm.rhel6_defaults():
343f27
+                if not self.vm.stable_defaults():
343f27
                     buses.append(["scsi", "SCSI"])
343f27
                     buses.append(["usb", "USB"])
343f27
             if self.vm.get_hv_type() in ["kvm", "test"]:
343f27
diff --git a/virtManager/domain.py b/virtManager/domain.py
343f27
index a51e421..1d8cd73 100644
343f27
--- a/virtManager/domain.py
343f27
+++ b/virtManager/domain.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2006, 2013 Red Hat, Inc.
343f27
+# Copyright (C) 2006, 2013, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2006 Daniel P. Berrange <berrange@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -314,8 +314,8 @@ class vmmDomain(vmmLibvirtObject):
343f27
     def get_install_abort(self):
343f27
         return bool(self._install_abort)
343f27
 
343f27
-    def rhel6_defaults(self):
343f27
-        return self.conn.rhel6_defaults(self.get_emulator())
343f27
+    def stable_defaults(self):
343f27
+        return self.conn.stable_defaults(self.get_emulator())
343f27
 
343f27
     def is_read_only(self):
343f27
         if self.conn.is_read_only():
343f27
diff --git a/virtManager/storagebrowse.py b/virtManager/storagebrowse.py
343f27
index 6f4d3c0..7439f65 100644
343f27
--- a/virtManager/storagebrowse.py
343f27
+++ b/virtManager/storagebrowse.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2009 Red Hat, Inc.
343f27
+# Copyright (C) 2009, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2009 Cole Robinson <crobinso@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -56,9 +56,10 @@ class vmmStorageBrowser(vmmGObjectUI):
343f27
 
343f27
         # Arguments to pass to util.browse_local for local storage
343f27
         self.browse_reason = None
343f27
-        self.rhel6_defaults = True
343f27
         self.local_args = {}
343f27
 
343f27
+        self.stable_defaults = False
343f27
+
343f27
         self.builder.connect_signals({
343f27
             "on_vmm_storage_browse_delete_event" : self.close,
343f27
             "on_browse_cancel_clicked" : self.close,
343f27
@@ -350,7 +351,7 @@ class vmmStorageBrowser(vmmGObjectUI):
343f27
 
343f27
             if dironly and fmt != 'dir':
343f27
                 sensitive = False
343f27
-            elif not self.rhel6_defaults:
343f27
+            elif self.stable_defaults:
343f27
                 if fmt == "vmdk":
343f27
                     sensitive = False
343f27
 
343f27
diff --git a/virtManager/uihelpers.py b/virtManager/uihelpers.py
343f27
index 415c67d..ab193e1 100644
343f27
--- a/virtManager/uihelpers.py
343f27
+++ b/virtManager/uihelpers.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2009, 2013 Red Hat, Inc.
343f27
+# Copyright (C) 2009, 2013, 2014 Red Hat, Inc.
343f27
 # Copyright (C) 2009 Cole Robinson <crobinso@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -166,7 +166,7 @@ def populate_video_combo(vm, video_dev, no_default=None):
343f27
     video_dev_model.clear()
343f27
     tmpdev = virtinst.VirtualVideoDevice(vm.conn.vmm)
343f27
     for m in tmpdev.model_types:
343f27
-        if not vm.rhel6_defaults():
343f27
+        if vm.stable_defaults():
343f27
             if m == "qxl" and not has_spice and not has_qxl:
343f27
                 # Only list QXL video option when VM has SPICE video
343f27
                 continue
343f27
@@ -187,14 +187,14 @@ def build_sound_combo(vm, combo, no_default=False):
343f27
     combo.add_attribute(text, 'text', 0)
343f27
     dev_model.set_sort_column_id(0, Gtk.SortType.ASCENDING)
343f27
 
343f27
-    disable_rhel = not vm.rhel6_defaults()
343f27
-    rhel_soundmodels = ["ich6", "ac97"]
343f27
+    stable_defaults = vm.stable_defaults()
343f27
+    stable_soundmodels = ["ich6", "ac97"]
343f27
 
343f27
     for m in virtinst.VirtualAudio.MODELS:
343f27
         if m == virtinst.VirtualAudio.MODEL_DEFAULT and no_default:
343f27
             continue
343f27
 
343f27
-        if (disable_rhel and m not in rhel_soundmodels):
343f27
+        if (stable_defaults and m not in stable_soundmodels):
343f27
             continue
343f27
 
343f27
         dev_model.append([m])
343f27
@@ -427,7 +427,7 @@ def update_storage_format_combo(vm, combo, create):
343f27
 
343f27
     formats = ["raw", "qcow2", "qed"]
343f27
     no_create_formats = []
343f27
-    if vm.rhel6_defaults():
343f27
+    if not vm.stable_defaults():
343f27
         formats.append("vmdk")
343f27
         no_create_formats.append("vdi")
343f27
 
343f27
diff --git a/virtcli/cliconfig.py b/virtcli/cliconfig.py
343f27
index ce43b3c..38cd9d3 100644
343f27
--- a/virtcli/cliconfig.py
343f27
+++ b/virtcli/cliconfig.py
343f27
@@ -1,5 +1,5 @@
343f27
 #
343f27
-# Copyright (C) 2013 Red Hat, Inc.
343f27
+# Copyright (C) 2013, 2014 Red Hat, Inc.
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
 # it under the terms of the GNU General Public License as published by
343f27
@@ -77,8 +77,7 @@ else:
343f27
     icon_dir = os.path.join(asset_dir, "icons")
343f27
 
343f27
 default_qemu_user = _get_param("default_qemu_user", "root")
343f27
-rhel_enable_unsupported_opts = not bool(int(
343f27
-    _get_param("hide_unsupported_rhel_options", "0")))
343f27
+stable_defaults = bool(int(_get_param("stable_defaults", "0")))
343f27
 
343f27
 preferred_distros = _split_list(_get_param("preferred_distros", ""))
343f27
 hv_packages = _split_list(_get_param("hv_packages", ""))
343f27
diff --git a/virtinst/VirtualDisk.py b/virtinst/VirtualDisk.py
343f27
index 77f3c20..708f34a 100644
343f27
--- a/virtinst/VirtualDisk.py
343f27
+++ b/virtinst/VirtualDisk.py
343f27
@@ -1,7 +1,7 @@
343f27
 #
343f27
 # Classes for building disk device xml
343f27
 #
343f27
-# Copyright 2006-2008, 2012-2013  Red Hat, Inc.
343f27
+# Copyright 2006-2008, 2012-2014  Red Hat, Inc.
343f27
 # Jeremy Katz <katzj@redhat.com>
343f27
 #
343f27
 # This program is free software; you can redistribute it and/or modify
343f27
@@ -1506,7 +1506,7 @@ class VirtualDisk(VirtualDevice):
343f27
         cache = self.driver_cache
343f27
         iomode = self.driver_io
343f27
 
343f27
-        if virtinst.enable_rhel6_defaults:
343f27
+        if virtinst.stable_defaults:
343f27
             # Enable cache=none for non-CDROM devs
343f27
             if (self.is_qemu() and
343f27
                 not cache and
343f27
diff --git a/virtinst/__init__.py b/virtinst/__init__.py
343f27
index cdbefe5..a3737dc 100644
343f27
--- a/virtinst/__init__.py
343f27
+++ b/virtinst/__init__.py
343f27
@@ -15,7 +15,7 @@
343f27
 # MA 02110-1301 USA.
343f27
 
343f27
 from virtcli import cliconfig, cliutils
343f27
-enable_rhel6_defaults = not cliconfig.rhel_enable_unsupported_opts
343f27
+stable_defaults = cliconfig.stable_defaults
343f27
 cliutils.setup_i18n()
343f27
 
343f27
 
343f27
-- 
343f27
1.8.4.2
343f27