[gnome-boxes/enable-snapshots-for-host-passthrough: 2/2] libvirt-machine-properties: Enable snapshots for host-passthrough



commit 29e6d22b60d7ae702662624f7532a2036cf8871f
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Mar 28 12:32:05 2019 +0100

    libvirt-machine-properties: Enable snapshots for host-passthrough
    
    In the past Snapshots were problematic while using the host-passthrough
    CPU mode. That is no longer the case in 2019.
    
    Boxes defaults to the host-passthrough CPU mode since commit 2e3553e0.
    
    Fixes #336

 src/libvirt-machine-properties.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index a73fb70e..4acb3807 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -144,9 +144,7 @@ public string collect_logs () {
         case PropertiesPage.SNAPSHOTS:
             try {
                 var config = machine.domain.get_config (0);
-                // Snapshots currently don't work with host-passthrough
-                if (config.get_cpu ().get_mode () != GVirConfig.DomainCpuMode.HOST_PASSTHROUGH &&
-                    !VMConfigurator.is_install_config (config))
+                if (!VMConfigurator.is_install_config (config))
                     add_snapshots_property (ref list);
             } catch (GLib.Error e) {
                 warning (e.message);


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