linux/arch
Vitaly Kuznetsov c6617c61e8 KVM: x86: Partially allow KVM_SET_CPUID{,2} after KVM_RUN
Commit feb627e8d6 ("KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUN")
forbade changing CPUID altogether but unfortunately this is not fully
compatible with existing VMMs. In particular, QEMU reuses vCPU fds for
CPU hotplug after unplug and it calls KVM_SET_CPUID2. Instead of full ban,
check whether the supplied CPUID data is equal to what was previously set.

Reported-by: Igor Mammedov <imammedo@redhat.com>
Fixes: feb627e8d6 ("KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUN")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220117150542.2176196-3-vkuznets@redhat.com>
Cc: stable@vger.kernel.org
[Do not call kvm_find_cpuid_entry repeatedly. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-01-17 12:29:41 -05:00
..
alpha
arc
arm
arm64 KVM/arm64 updates for Linux 5.16 2022-01-07 10:42:19 -05:00
csky
h8300
hexagon
ia64
m68k
microblaze
mips KVM: mips: Use Makefile.kvm for common files 2021-12-09 12:58:37 -05:00
nds32
nios2
openrisc
parisc
powerpc Merge branch 'topic/ppc-kvm' of https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux into HEAD 2021-12-19 15:27:21 +01:00
riscv KVM: RISC-V: Avoid spurious virtual interrupts after clearing hideleg CSR 2022-01-06 15:18:18 +05:30
s390 KVM: s390: Fix and cleanup 2021-12-21 12:59:53 -05:00
sh
sparc
um
x86 KVM: x86: Partially allow KVM_SET_CPUID{,2} after KVM_RUN 2022-01-17 12:29:41 -05:00
xtensa
.gitignore
Kconfig