mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +00:00
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 <chaowu@linux.alibaba.com>
This commit is contained in:
parent
cb54ac6c6e
commit
b646d7cb37
@ -110,8 +110,6 @@ pub struct VmConfigInfo {
|
|||||||
pub vcpu_count: u8,
|
pub vcpu_count: u8,
|
||||||
/// Max number of vcpu can be added
|
/// Max number of vcpu can be added
|
||||||
pub max_vcpu_count: u8,
|
pub max_vcpu_count: u8,
|
||||||
/// Enable or disable hyperthreading.
|
|
||||||
pub ht_enabled: bool,
|
|
||||||
/// cpu power management.
|
/// cpu power management.
|
||||||
pub cpu_pm: String,
|
pub cpu_pm: String,
|
||||||
/// cpu topology information
|
/// cpu topology information
|
||||||
@ -135,7 +133,6 @@ impl Default for VmConfigInfo {
|
|||||||
VmConfigInfo {
|
VmConfigInfo {
|
||||||
vcpu_count: 1,
|
vcpu_count: 1,
|
||||||
max_vcpu_count: 1,
|
max_vcpu_count: 1,
|
||||||
ht_enabled: false,
|
|
||||||
cpu_pm: String::from("on"),
|
cpu_pm: String::from("on"),
|
||||||
cpu_topology: CpuTopology {
|
cpu_topology: CpuTopology {
|
||||||
threads_per_core: 1,
|
threads_per_core: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user