KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUN
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 22 Nov 2021 17:58:18 +0000 (18:58 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Nov 2021 13:14:20 +0000 (08:14 -0500)
commitfeb627e8d6f69c9a319fe279710959efb3eba873
tree78ba4e18042287556fc03d348ce61469952b1623
parent6c1186430a808f97e2052bd5d9eff12c5d5defb0
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. It's time to fulfil the promise.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20211122175818.608220-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/x86.c