[gnome-boxes/host-passthrough-by-default: 3/3] vm-configurator: Always override the CPU mode



commit 54f5620034d99857ed669b307062d65271c7d149
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Jan 9 17:17:06 2019 +0100

    vm-configurator: Always override the CPU mode
    
    This way we can switch existing VMs to our default CPU mode.

 src/vm-configurator.vala | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index eb76fdcd..5defe08c 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -254,10 +254,7 @@ public static async void update_existing_domain (Domain          domain,
 
         try {
             var cpu = domain.get_cpu ();
-            if (cpu != null &&
-                (cpu.get_mode () == DomainCpuMode.HOST_PASSTHROUGH ||
-                 cpu.get_mode() == DomainCpuMode.HOST_MODEL) &&
-                is_boxes_installed (domain)) {
+            if (cpu != null && is_boxes_installed (domain)) {
                 var capabilities = yield connection.get_capabilities_async (null);
                 set_cpu_config (domain, capabilities);
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]