From b646d7cb37d77fb1b928490c27e64942254da596 Mon Sep 17 00:00:00 2001 From: Chao Wu Date: Mon, 4 Jul 2022 20:59:45 +0800 Subject: [PATCH] config: remove ht_enabled Since cpu topology could tell whether hyper thread is enabled or not, we removed ht_enabled config from VmConfigInfo Signed-off-by: Chao Wu --- src/dragonball/src/vm/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/dragonball/src/vm/mod.rs b/src/dragonball/src/vm/mod.rs index e7248a8113..7afdefedcc 100644 --- a/src/dragonball/src/vm/mod.rs +++ b/src/dragonball/src/vm/mod.rs @@ -110,8 +110,6 @@ pub struct VmConfigInfo { pub vcpu_count: u8, /// Max number of vcpu can be added pub max_vcpu_count: u8, - /// Enable or disable hyperthreading. - pub ht_enabled: bool, /// cpu power management. pub cpu_pm: String, /// cpu topology information @@ -135,7 +133,6 @@ impl Default for VmConfigInfo { VmConfigInfo { vcpu_count: 1, max_vcpu_count: 1, - ht_enabled: false, cpu_pm: String::from("on"), cpu_topology: CpuTopology { threads_per_core: 1,