]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm/kvm: Drop support for kernels without KVM_ARM_PREFERRED_TARGET
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 18 Mar 2025 11:42:22 +0000 (11:42 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 6 May 2025 14:02:35 +0000 (15:02 +0100)
commitd3a161cdd56a768b89f164935033249dc16d5250
tree5f182eb0a19d2a073eebd496207019cd278fcefe
parent82707dd4f07613eed8d639956a43bddffca5cd5c
target/arm/kvm: Drop support for kernels without KVM_ARM_PREFERRED_TARGET

Our KVM code includes backwards compatibility support for ancient
kernels which don't support the KVM_ARM_PREFERRED_TARGET ioctl.  This
ioctl was introduced in kernel commit 42c4e0c77ac91 in September
2013 and is in v3.12, so it's reasonable to assume it's present.

(We already dropped support for kernels without KVM_CAP_DEVICE_CTRL,
a feature added to the kernel in April 2013, in our commit
84f298ea3e; so there are only about six months' worth of kernels,
from v3.9 to v3.11, that we don't already fail to run on and that
this commit is dropping handling for.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250318114222.1018200-1-peter.maydell@linaro.org
target/arm/arm-qmp-cmds.c
target/arm/kvm.c
target/arm/kvm_arm.h