Skip to content

KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUN

Vitaly Kuznetsov kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: selftests: Avoid KVM_SET_CPUID2 after KVM_RUN in hyperv_features testtools/testing/selftests/kvm/x86_64/hyperv_features.c+71 -690 replies
2/2KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUNarch/x86/kvm/mmu/mmu.c arch/x86/kvm/x86.c+30 -1733 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUN

Commit 63f5a1909f9e ("KVM: x86: Alert userspace that KVM_SET_CPUID{,2} after KVM_RUN is broken") officially deprecated KVM_SET_CPUID{,2} ioctls after first successful KVM_RUN and promissed to make this sequence forbiden in 5.16. TO fulfil the promise 'hyperv_features' selftest needs to be fixed first.

Vitaly Kuznetsov (2):
KVM: selftests: Avoid KVM_SET_CPUID2 after KVM_RUN in hyperv_features
test
KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUN

 arch/x86/kvm/mmu/mmu.c                        |  20 +--
 arch/x86/kvm/x86.c                            |  27 ++++
 .../selftests/kvm/x86_64/hyperv_features.c    | 140 +++++++++---------
 3 files changed, 101 insertions(+), 86 deletions(-)
Signature · 1 line
2.33.1