[gnome-boxes/enable-snapshots-for-host-passthrough] libvirt-machine-properties: Enable snapshots for host-passthrough
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/enable-snapshots-for-host-passthrough] libvirt-machine-properties: Enable snapshots for host-passthrough
- Date: Fri, 29 Mar 2019 09:20:58 +0000 (UTC)
commit 1d4c1e1d8ac2ba257ea93dc5b443773192c2b21b
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]