mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Ensure default deserialisation for "amx" feature bit
This allows a migration from a binary not compiled with struct member to be completed. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -473,6 +473,7 @@ pub struct CpuAffinity {
|
|||||||
#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
|
||||||
pub struct CpuFeatures {
|
pub struct CpuFeatures {
|
||||||
#[cfg(all(feature = "amx", target_arch = "x86_64"))]
|
#[cfg(all(feature = "amx", target_arch = "x86_64"))]
|
||||||
|
#[serde(default)]
|
||||||
pub amx: bool,
|
pub amx: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user