]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite49d1db7e0d01a8771b3905155d7fcab9d2d13b8
tree78ba4e18042287556fc03d348ce61469952b1623
parent276ff22ed440d043eda0d35f4085b19002240527
KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUN

Commit 5ee46e657560 ("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