mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Use u32 instead of u64 for host_numa_node option
Given that ACPI uses u32 as the type for the Proximity Domain, we can use u32 instead of u64 as the type for 'host_numa_node' option. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
+2
-2
@@ -353,7 +353,7 @@ pub struct MemoryZoneConfig {
|
||||
#[serde(default)]
|
||||
pub hugepages: bool,
|
||||
#[serde(default)]
|
||||
pub host_numa_node: Option<u64>,
|
||||
pub host_numa_node: Option<u32>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
|
||||
@@ -454,7 +454,7 @@ impl MemoryConfig {
|
||||
.unwrap_or(Toggle(false))
|
||||
.0;
|
||||
let host_numa_node = parser
|
||||
.convert::<u64>("host_numa_node")
|
||||
.convert::<u32>("host_numa_node")
|
||||
.map_err(Error::ParseMemoryZone)?;
|
||||
|
||||
zones.push(MemoryZoneConfig {
|
||||
|
||||
Reference in New Issue
Block a user