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

From: Vitaly Kuznetsov
Date: Mon Nov 22 2021 - 12:58:31 EST


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(-)

--
2.33.1