KVM: x86: do not allow re-enabling quirks
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Mar 2025 14:09:37 +0000 (09:09 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Mar 2025 18:20:58 +0000 (14:20 -0400)
commit9966b7822b3f49b3aea5d926ece4bc92f1f0a700
treeac332d8161be6fa4d83560a3d03e58969741510f
parent26eab9ae4be0255ecb603684b46841857f71df90
KVM: x86: do not allow re-enabling quirks

Allowing arbitrary re-enabling of quirks puts a limit on what the
quirks themselves can do, since you cannot assume that the quirk
prevents a particular state.  More important, it also prevents
KVM from disabling a quirk at VM creation time, because userspace
can always go back and re-enable that.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c