public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip
@ 2026-04-02 10:18 Mayuresh Chitale
  2026-04-02 16:00 ` Anup Patel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mayuresh Chitale @ 2026-04-02 10:18 UTC (permalink / raw)
  To: Anup Patel, Atish Patra, Paolo Bonzini, Shuah Khan, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Sean Christopherson,
	Marc Zyngier, Oliver Upton
  Cc: Mayuresh Chitale, kvm, kvm-riscv, linux-riscv, linux-kselftest,
	linux-kernel

kvm_arch_has_default_irqchip is required for irqfd_test and returns
true if an in-kernel interrupt controller is supported.

Fixes: a133052666bed ("KVM: selftests: Fix irqfd_test for non-x86 architectures")
Signed-off-by: Mayuresh Chitale <mayuresh.chitale@oss.qualcomm.com>
---
 tools/testing/selftests/kvm/lib/riscv/processor.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/testing/selftests/kvm/lib/riscv/processor.c b/tools/testing/selftests/kvm/lib/riscv/processor.c
index 51dd455ff52c..067c6b2c15b0 100644
--- a/tools/testing/selftests/kvm/lib/riscv/processor.c
+++ b/tools/testing/selftests/kvm/lib/riscv/processor.c
@@ -566,3 +566,8 @@ unsigned long riscv64_get_satp_mode(void)
 
 	return val;
 }
+
+bool kvm_arch_has_default_irqchip(void)
+{
+	return kvm_check_cap(KVM_CAP_IRQCHIP);
+}
-- 
2.43.0


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

* Re: [PATCH] KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip
  2026-04-02 10:18 [PATCH] KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip Mayuresh Chitale
@ 2026-04-02 16:00 ` Anup Patel
  2026-04-03  9:05 ` Anup Patel
  2026-04-30  3:25 ` patchwork-bot+linux-riscv
  2 siblings, 0 replies; 4+ messages in thread
From: Anup Patel @ 2026-04-02 16:00 UTC (permalink / raw)
  To: Mayuresh Chitale
  Cc: Atish Patra, Paolo Bonzini, Shuah Khan, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Sean Christopherson,
	Marc Zyngier, Oliver Upton, kvm, kvm-riscv, linux-riscv,
	linux-kselftest, linux-kernel

On Thu, Apr 2, 2026 at 3:53 PM Mayuresh Chitale
<mayuresh.chitale@oss.qualcomm.com> wrote:
>
> kvm_arch_has_default_irqchip is required for irqfd_test and returns
> true if an in-kernel interrupt controller is supported.
>
> Fixes: a133052666bed ("KVM: selftests: Fix irqfd_test for non-x86 architectures")
> Signed-off-by: Mayuresh Chitale <mayuresh.chitale@oss.qualcomm.com>

LGTM.

Reviewed-by: Anup Patel <anup@brainfault.org>

Thanks,
Anup

> ---
>  tools/testing/selftests/kvm/lib/riscv/processor.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/tools/testing/selftests/kvm/lib/riscv/processor.c b/tools/testing/selftests/kvm/lib/riscv/processor.c
> index 51dd455ff52c..067c6b2c15b0 100644
> --- a/tools/testing/selftests/kvm/lib/riscv/processor.c
> +++ b/tools/testing/selftests/kvm/lib/riscv/processor.c
> @@ -566,3 +566,8 @@ unsigned long riscv64_get_satp_mode(void)
>
>         return val;
>  }
> +
> +bool kvm_arch_has_default_irqchip(void)
> +{
> +       return kvm_check_cap(KVM_CAP_IRQCHIP);
> +}
> --
> 2.43.0
>

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

* Re: [PATCH] KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip
  2026-04-02 10:18 [PATCH] KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip Mayuresh Chitale
  2026-04-02 16:00 ` Anup Patel
@ 2026-04-03  9:05 ` Anup Patel
  2026-04-30  3:25 ` patchwork-bot+linux-riscv
  2 siblings, 0 replies; 4+ messages in thread
From: Anup Patel @ 2026-04-03  9:05 UTC (permalink / raw)
  To: Mayuresh Chitale
  Cc: Atish Patra, Paolo Bonzini, Shuah Khan, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Sean Christopherson,
	Marc Zyngier, Oliver Upton, kvm, kvm-riscv, linux-riscv,
	linux-kselftest, linux-kernel

On Thu, Apr 2, 2026 at 3:53 PM Mayuresh Chitale
<mayuresh.chitale@oss.qualcomm.com> wrote:
>
> kvm_arch_has_default_irqchip is required for irqfd_test and returns
> true if an in-kernel interrupt controller is supported.
>
> Fixes: a133052666bed ("KVM: selftests: Fix irqfd_test for non-x86 architectures")
> Signed-off-by: Mayuresh Chitale <mayuresh.chitale@oss.qualcomm.com>

Queued this patch for Linux-7.1

Thanks,
Anup

> ---
>  tools/testing/selftests/kvm/lib/riscv/processor.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/tools/testing/selftests/kvm/lib/riscv/processor.c b/tools/testing/selftests/kvm/lib/riscv/processor.c
> index 51dd455ff52c..067c6b2c15b0 100644
> --- a/tools/testing/selftests/kvm/lib/riscv/processor.c
> +++ b/tools/testing/selftests/kvm/lib/riscv/processor.c
> @@ -566,3 +566,8 @@ unsigned long riscv64_get_satp_mode(void)
>
>         return val;
>  }
> +
> +bool kvm_arch_has_default_irqchip(void)
> +{
> +       return kvm_check_cap(KVM_CAP_IRQCHIP);
> +}
> --
> 2.43.0
>

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

* Re: [PATCH] KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip
  2026-04-02 10:18 [PATCH] KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip Mayuresh Chitale
  2026-04-02 16:00 ` Anup Patel
  2026-04-03  9:05 ` Anup Patel
@ 2026-04-30  3:25 ` patchwork-bot+linux-riscv
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-riscv @ 2026-04-30  3:25 UTC (permalink / raw)
  To: Mayuresh Chitale
  Cc: linux-riscv, anup, atish.patra, pbonzini, shuah, pjw, palmer, aou,
	alex, seanjc, maz, oupton, kvm, kvm-riscv, linux-kselftest,
	linux-kernel

Hello:

This patch was applied to riscv/linux.git (fixes)
by Anup Patel <anup@brainfault.org>:

On Thu,  2 Apr 2026 15:48:14 +0530 you wrote:
> kvm_arch_has_default_irqchip is required for irqfd_test and returns
> true if an in-kernel interrupt controller is supported.
> 
> Fixes: a133052666bed ("KVM: selftests: Fix irqfd_test for non-x86 architectures")
> Signed-off-by: Mayuresh Chitale <mayuresh.chitale@oss.qualcomm.com>
> ---
>  tools/testing/selftests/kvm/lib/riscv/processor.c | 5 +++++
>  1 file changed, 5 insertions(+)

Here is the summary with links:
  - KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip
    https://git.kernel.org/riscv/c/1ec8bea903f4

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2026-04-30  3:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02 10:18 [PATCH] KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip Mayuresh Chitale
2026-04-02 16:00 ` Anup Patel
2026-04-03  9:05 ` Anup Patel
2026-04-30  3:25 ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox