Skip to content

Compute safe bound for VMX preemption timer

Jim Mattson kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest2 patches 6 repliesIn review

Changes in v5 from the cover letter

- Include Sean's preparatory patch burying VMX preemption timer code under CONFIG_X86_64=y [Sean]
- Replace div_u64() with direct division (/)

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: VMX: Bury all of the VMX preemption timer code under CONFIG_X86_64=yarch/x86/kvm/vmx/vmx.c+69 -532 replies
2/2KVM: VMX: Cap VMX preemption timer to work around Intel erratumarch/x86/kvm/vmx/vmx.c+29 -54 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChao GaoBinbin Wu
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/2] Compute safe bound for VMX preemption timer

Due to a widespread Intel erratum (e.g. EMR158), programming the VMX preemption timer with certain large values may cause the timer to expire earlier than expected. The recommended workaround is to cap the timer value to strictly less than 2^25 * CPUID.15H:EBX[31:0] / CPUID.15H:EAX[31:0].

v4 -> v5:
- Include Sean's preparatory patch burying VMX preemption timer code under CONFIG_X86_64=y [Sean]
- Replace div_u64() with direct division (/)

v4: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

Jim Mattson (1):
KVM: VMX: Cap VMX preemption timer to work around Intel erratum

Sean Christopherson (1):
KVM: VMX: Bury all of the VMX preemption timer code under

    CONFIG_X86_64=y
 arch/x86/kvm/vmx/vmx.c | 152 ++++++++++++++++++++++++++---------------
 1 file changed, 96 insertions(+), 56 deletions(-)
Signature · 1 line
2.55.0.229.g6434b31f56-goog