Skip to content

KVM: x86: Do runtime updates during KVM_SET_CPUID2

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Apply runtime updates to current CPUID during KVM_SET_CPUID{,2}arch/x86/kvm/cpuid.c+9 -21 reply
2/2KVM: selftests: Add a CPUID testcase for KVM_SET_CPUID2 with runtime updatestools/testing/selftests/kvm/x86/cpuid_test.c+15 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchIgor Mammedov
1/2A-b T-b
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] KVM: x86: Do runtime updates during KVM_SET_CPUID2

Do runtime updates (if necessary) when userspace sets CPUID to fix a bug where KVM drops a pending update (KVM will clear the dirty flag when doing updates on the new/incoming CPUID). The bug most visibly manifests as an -EINVAL failure on KVM_SET_CPUID{,2} due to the old/current CPUID not matching the new/incoming CPUID, but if userspace were to continue running past the failure, the vCPU would run with stale CPUID/caps.

Sean Christopherson (2):
KVM: x86: Apply runtime updates to current CPUID during

    KVM_SET_CPUID{,2}

KVM: selftests: Add a CPUID testcase for KVM_SET_CPUID2 with runtime
updates

 arch/x86/kvm/cpuid.c                         | 11 +++++++++--
 tools/testing/selftests/kvm/x86/cpuid_test.c | 15 +++++++++++++++
 2 files changed, 24 insertions(+), 2 deletions(-)

base-commit: 115d5de2eef32ac5cd488404b44b38789362dbe6

Signature · 1 line
2.52.0.107.ga0afd4fd5b-goog