[gnome-boxes/host-passthrough-by-default: 1/2] vm-configurator: Use "host-passthrough" as default CPU mode
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/host-passthrough-by-default: 1/2] vm-configurator: Use "host-passthrough" as default CPU mode
- Date: Wed, 9 Jan 2019 16:23:16 +0000 (UTC)
commit 0f4dbae29616afa21328e4a819df6a34a0029d52
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Jan 9 16:03:25 2019 +0100
vm-configurator: Use "host-passthrough" as default CPU mode
This is the recommended CPU mode for maximum VM performance.
See https://qemu.weilnetz.de/doc/qemu-doc.html (2.7 CPU models)
Closes #150
src/vm-configurator.vala | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 1351070c..eb76fdcd 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -241,16 +241,9 @@ private static void set_cpu_config (Domain domain, Capabilities caps) {
domain.vcpu = topology.get_sockets () * topology.get_cores () * topology.get_threads ();
var cpu = new DomainCpu ();
- // Ideally we should be using 'host-model' but there is currently issues with that:
- // https://bugzilla.redhat.com/show_bug.cgi?id=870071
- cpu.set_mode (DomainCpuMode.CUSTOM);
+ cpu.set_mode (DomainCpuMode.HOST_PASSTHROUGH);
cpu.set_topology (topology);
- var model_caps = cpu_caps.get_model ();
- var model = new DomainCpuModel ();
- model.set_name (model_caps.get_name ());
- cpu.set_model (model);
-
domain.set_cpu (cpu);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]