mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-07-16 06:07:15 +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:
parent
19b006eb84
commit
0e52be0909
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user