Skip to contentSkip to conversation

accel/kvm: Adjust the note about the minimum required kernel version

PATCH In review Thomas Huth 4 participants 5 messages Jul 2, 2025 – Jul 4, 2025 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accel/kvm: Adjust the note about the minimum required kernel version

From: Thomas Huth <[email protected]>

Since commit 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH") we require at least kernel 4.4 to be able to use KVM. Adjust the upgrade_note accordingly. While we're at it, remove the text about kvm-kmod and the SourceForge URL since this is not actively maintained anymore.

Fixes 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH")
---
 accel/kvm/kvm-all.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
accel/kvm/kvm-all.c +1 -2
index d095d1b98f8..e3302b087f4 100644
@@ -2571,8 +2571,7 @@ static int kvm_init(MachineState *ms)
 {
     MachineClass *mc = MACHINE_GET_CLASS(ms);
     static const char upgrade_note[] =
-        "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n"
-        "(see http://sourceforge.net/projects/kvm).\n";
+        "Please upgrade to at least kernel 4.4.\n";
     const struct {
         const char *name;
         int num;
Signature · 1 line
2.50.0
#1 lore raw
Quoted 13 lines · Thomas Huth

Date: Wed, 2 Jul 2025 08:03:19 +0200
From: Thomas Huth <[email protected]>
Subject: [PATCH] accel/kvm: Adjust the note about the minimum required
kernel version

From: Thomas Huth <[email protected]>

Since commit 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH") we require at least kernel 4.4 to be able to use KVM. Adjust the upgrade_note accordingly. While we're at it, remove the text about kvm-kmod and the SourceForge URL since this is not actively maintained anymore.

Quoted 5 lines
Fixes 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH")
---
 accel/kvm/kvm-all.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

I just mentioned the kernel version in another patch thread. I found x86 doc said it requires v4.5 or newer ("OS requirements" section in docs/system/target-i386.rst).

Quoted 18 lines
accel/kvm/kvm-all.c +1 -2
index d095d1b98f8..e3302b087f4 100644
@@ -2571,8 +2571,7 @@ static int kvm_init(MachineState *ms)
 {
     MachineClass *mc = MACHINE_GET_CLASS(ms);
     static const char upgrade_note[] =
-        "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n"
-        "(see http://sourceforge.net/projects/kvm).\n";
+        "Please upgrade to at least kernel 4.4.\n";
     const struct {
         const char *name;
         int num;
Signature · 1 line
2.50.0
#2 lore raw
Quoted 24 lines · Zhao Liu
Quoted 13 lines · Thomas Huth

Date: Wed, 2 Jul 2025 08:03:19 +0200
From: Thomas Huth <[email protected]>
Subject: [PATCH] accel/kvm: Adjust the note about the minimum required
kernel version

From: Thomas Huth <[email protected]>

Since commit 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH") we require at least kernel 4.4 to be able to use KVM. Adjust the upgrade_note accordingly. While we're at it, remove the text about kvm-kmod and the SourceForge URL since this is not actively maintained anymore.

Quoted 5 lines
Fixes 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH")
---
  accel/kvm/kvm-all.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

I just mentioned the kernel version in another patch thread. I found x86 doc said it requires v4.5 or newer ("OS requirements" section in docs/system/target-i386.rst).

Quoted 11 lines

accel/kvm/kvm-all.c static int kvm_init(MachineState *ms) · line 2574

Quoted 11 lines
accel/kvm/kvm-all.c +1 -2
index d095d1b98f8..e3302b087f4 100644
@@ -2571,8 +2571,7 @@ static int kvm_init(MachineState *ms)
  {
      MachineClass *mc = MACHINE_GET_CLASS(ms);
      static const char upgrade_note[] =
-        "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n"
-        "(see http://sourceforge.net/projects/kvm).\n";
+        "Please upgrade to at least kernel 4.4.\n";

Using 4.4 or 4.5:

Quoted 8 lines
Quoted 7 lines
accel/kvm/kvm-all.c +0 -0
      const struct {
          const char *name;
          int num;
Signature · 1 line
2.50.0
#3 lore raw
In reply to Zhao Liu
Quoted 20 lines · Zhao Liu
Quoted 13 lines · Thomas Huth

Date: Wed, 2 Jul 2025 08:03:19 +0200
From: Thomas Huth <[email protected]>
Subject: [PATCH] accel/kvm: Adjust the note about the minimum required
kernel version

From: Thomas Huth <[email protected]>

Since commit 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH") we require at least kernel 4.4 to be able to use KVM. Adjust the upgrade_note accordingly. While we're at it, remove the text about kvm-kmod and the SourceForge URL since this is not actively maintained anymore.

Quoted 5 lines
Fixes 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH")
---
  accel/kvm/kvm-all.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
Quoted 3 lines

I just mentioned the kernel version in another patch thread. I found x86 doc said it requires v4.5 or newer ("OS requirements" section in docs/system/target-i386.rst).

Looking at the original commit that introduced this message (commit 483c6ad426db), this seems to apply to x86 only ... I guess there's a chance that KVM still works with kernel 4.4 on other architectures. But I don't mind too much - we can also say 4.5 here to have a unified value. Paolo, any preferences?

Thomas

#4 lore raw
In reply to Thomas Huth
Quoted 7 lines · Thomas Huth

From: Thomas Huth <[email protected]>

Since commit 126e7f78036 ("kvm: require KVM_CAP_IOEVENTFD and KVM_CAP_IOEVENTFD_ANY_LENGTH") we require at least kernel 4.4 to be able to use KVM. Adjust the upgrade_note accordingly. While we're at it, remove the text about kvm-kmod and the SourceForge URL since this is not actively maintained anymore.

Let's be consistent and require kernel 4.5.

With this, applied to qemu-trivial (keeping Philippe's R-b).

Thanks,

/mjt