Skip to content

Commit 95057ce

Browse files
committed
fix(vmm): Save/restore IA32_ARCH_CAPABILITIES MSR into/from a snapshot
The MSR reports available hardware mitigations. The mitigations to apply should be already selected at boot time and should not change after snapshot restore, but there is no reason to not save/restore the value. Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent 47389d8 commit 95057ce

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ and this project adheres to
5252
the UFFD Unix domain socket open to prevent the race condition between the
5353
guest memory mappings message and the shutdown event that was sometimes
5454
causing arrival of an empty message on the UFFD handler side.
55+
- [#5142](https://github.com/firecracker-microvm/firecracker/pull/5142): Fixed
56+
to save/restore IA32_ARCH_CAPABILITIES MSR (index: 0x10a) into/from a
57+
snapshot.
5558

5659
## [1.11.0]
5760

src/vmm/src/arch/x86_64/msr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ static SERIALIZABLE_MSR_RANGES: &[MsrRange] = &[
237237
MSR_RANGE!(MSR_KVM_POLL_CONTROL),
238238
MSR_RANGE!(MSR_KVM_ASYNC_PF_INT),
239239
MSR_RANGE!(MSR_IA32_TSX_CTRL),
240+
MSR_RANGE!(MSR_IA32_ARCH_CAPABILITIES),
240241
];
241242

242243
/// Specifies whether a particular MSR should be included in vcpu serialization.

0 commit comments

Comments
 (0)