All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] accel/kvm: Adjust the note about the minimum required kernel version
@ 2025-07-02  6:03 Thomas Huth
  2025-07-02  6:42 ` Zhao Liu
  2025-07-04  6:19 ` Michael Tokarev
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Huth @ 2025-07-02  6:03 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: kvm, qemu-stable, qemu-trivial

From: Thomas Huth <thuth@redhat.com>

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")
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 accel/kvm/kvm-all.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c
index d095d1b98f8..e3302b087f4 100644
--- a/accel/kvm/kvm-all.c
+++ b/accel/kvm/kvm-all.c
@@ -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;
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] accel/kvm: Adjust the note about the minimum required kernel version
  2025-07-02  6:03 [PATCH] accel/kvm: Adjust the note about the minimum required kernel version Thomas Huth
@ 2025-07-02  6:42 ` Zhao Liu
  2025-07-02  6:55   ` Philippe Mathieu-Daudé
  2025-07-02  7:39   ` Thomas Huth
  2025-07-04  6:19 ` Michael Tokarev
  1 sibling, 2 replies; 5+ messages in thread
From: Zhao Liu @ 2025-07-02  6:42 UTC (permalink / raw)
  To: Thomas Huth; +Cc: Paolo Bonzini, qemu-devel, kvm, qemu-stable, qemu-trivial

On Wed, Jul 02, 2025 at 08:03:19AM +0200, Thomas Huth wrote:
> Date: Wed,  2 Jul 2025 08:03:19 +0200
> From: Thomas Huth <thuth@redhat.com>
> Subject: [PATCH] accel/kvm: Adjust the note about the minimum required
>  kernel version
> 
> From: Thomas Huth <thuth@redhat.com>
> 
> 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")
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  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).

> diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c
> index d095d1b98f8..e3302b087f4 100644
> --- a/accel/kvm/kvm-all.c
> +++ b/accel/kvm/kvm-all.c
> @@ -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;
> -- 
> 2.50.0
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] accel/kvm: Adjust the note about the minimum required kernel version
  2025-07-02  6:42 ` Zhao Liu
@ 2025-07-02  6:55   ` Philippe Mathieu-Daudé
  2025-07-02  7:39   ` Thomas Huth
  1 sibling, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-07-02  6:55 UTC (permalink / raw)
  To: Zhao Liu, Thomas Huth
  Cc: Paolo Bonzini, qemu-devel, kvm, qemu-stable, qemu-trivial

On 2/7/25 08:42, Zhao Liu wrote:
> On Wed, Jul 02, 2025 at 08:03:19AM +0200, Thomas Huth wrote:
>> Date: Wed,  2 Jul 2025 08:03:19 +0200
>> From: Thomas Huth <thuth@redhat.com>
>> Subject: [PATCH] accel/kvm: Adjust the note about the minimum required
>>   kernel version
>>
>> From: Thomas Huth <thuth@redhat.com>
>>
>> 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")
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>>   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).
> 
>> diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c
>> index d095d1b98f8..e3302b087f4 100644
>> --- a/accel/kvm/kvm-all.c
>> +++ b/accel/kvm/kvm-all.c
>> @@ -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:

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

>>       const struct {
>>           const char *name;
>>           int num;
>> -- 
>> 2.50.0
>>
>>
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] accel/kvm: Adjust the note about the minimum required kernel version
  2025-07-02  6:42 ` Zhao Liu
  2025-07-02  6:55   ` Philippe Mathieu-Daudé
@ 2025-07-02  7:39   ` Thomas Huth
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2025-07-02  7:39 UTC (permalink / raw)
  To: Zhao Liu, Paolo Bonzini; +Cc: qemu-devel, kvm, qemu-stable, qemu-trivial

On 02/07/2025 08.42, Zhao Liu wrote:
> On Wed, Jul 02, 2025 at 08:03:19AM +0200, Thomas Huth wrote:
>> Date: Wed,  2 Jul 2025 08:03:19 +0200
>> From: Thomas Huth <thuth@redhat.com>
>> Subject: [PATCH] accel/kvm: Adjust the note about the minimum required
>>   kernel version
>>
>> From: Thomas Huth <thuth@redhat.com>
>>
>> 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")
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>>   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).

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] accel/kvm: Adjust the note about the minimum required kernel version
  2025-07-02  6:03 [PATCH] accel/kvm: Adjust the note about the minimum required kernel version Thomas Huth
  2025-07-02  6:42 ` Zhao Liu
@ 2025-07-04  6:19 ` Michael Tokarev
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2025-07-04  6:19 UTC (permalink / raw)
  To: Thomas Huth, Paolo Bonzini, qemu-devel; +Cc: kvm, qemu-stable, qemu-trivial

On 02.07.2025 09:03, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
> 
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-07-04  6:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02  6:03 [PATCH] accel/kvm: Adjust the note about the minimum required kernel version Thomas Huth
2025-07-02  6:42 ` Zhao Liu
2025-07-02  6:55   ` Philippe Mathieu-Daudé
2025-07-02  7:39   ` Thomas Huth
2025-07-04  6:19 ` Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.