Skip to content

Commit 6338be2

Browse files
committed
fix(vmm): Bump snapshot version
To support the snapshot feature for Intel AMX, we changed to use `Xsave` struct instead of `kvm_xsave` struct. We should have bumped the snapshot version. Fixes: 803140d ("feat(vmm): Use structs and methods for KVM_CAP_XSAVE2") Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent e1076e7 commit 6338be2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ and this project adheres to
1616
Linux kernels newer than 5.0 compiled with `CONFIG_PVH=y` set this ELF Note,
1717
as do FreeBSD kernels.
1818
- [#5065](https://github.com/firecracker-microvm/firecracker/pull/5065) Added
19-
support for Intel AMX (Advanced Matrix Extensions).
19+
support for Intel AMX (Advanced Matrix Extensions). To be able to take and
20+
restore a snapshot of Intel AMX state, `Xsave` is used instead of `kvm_xsave`,
21+
so users need to regenerate snapshots.
2022
- [#4731](https://github.com/firecracker-microvm/firecracker/pull/4731): Added
2123
support for modifying the host TAP device name during snapshot restore.
2224

src/vmm/src/persist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub enum CreateSnapshotError {
148148
}
149149

150150
/// Snapshot version
151-
pub const SNAPSHOT_VERSION: Version = Version::new(5, 0, 0);
151+
pub const SNAPSHOT_VERSION: Version = Version::new(6, 0, 0);
152152

153153
/// Creates a Microvm snapshot.
154154
pub fn create_snapshot(

0 commit comments

Comments
 (0)