Skip to content

Commit 2a8aa07

Browse files
Alexandru-Cezar Sardanalxiord
Alexandru-Cezar Sardan
authored andcommitted
snapshot: don't save MSR_IA32_BNDCFGS by default
The IA32_BNDCFGS MSR is only valid on Intel processors that support MPX and only if MPX is enabled (CPUID.(EAX=07H, ECX=0H):EBX[14] = 1) and if KVM supports it. We only need to save this MSR if the Guest supports and uses MPX. Otherwise a snapshotted Guest with MPX disabled will not be able to resume on a different machine with a CPU that does not have MPX. Saving this MSR should be done only if explicitly specified by the CPU template or if the MPX feature is set in the Guest CPUID. Signed-off-by: Alexandru-Cezar Sardan <[email protected]>
1 parent 602a210 commit 2a8aa07

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/arch/src/x86_64/msr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ static ALLOWED_MSR_RANGES: &[MsrRange] = &[
220220
SINGLE_MSR!(MSR_TURBO_ACTIVATION_RATIO),
221221
SINGLE_MSR!(MSR_IA32_TSCDEADLINE),
222222
MSR_RANGE!(APIC_BASE_MSR, APIC_MSR_INDEXES),
223-
SINGLE_MSR!(MSR_IA32_BNDCFGS),
224223
SINGLE_MSR!(MSR_KVM_WALL_CLOCK_NEW),
225224
SINGLE_MSR!(MSR_KVM_SYSTEM_TIME_NEW),
226225
SINGLE_MSR!(MSR_KVM_ASYNC_PF_EN),

0 commit comments

Comments
 (0)