mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
KVM: riscv: selftests: Implement kvm_arch_has_default_irqchip
kvm_arch_has_default_irqchip is required for irqfd_test and returns
true if an in-kernel interrupt controller is supported.
Fixes: a133052666 ("KVM: selftests: Fix irqfd_test for non-x86 architectures")
Signed-off-by: Mayuresh Chitale <mayuresh.chitale@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260402101818.2982071-1-mayuresh.chitale@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
1323a5cfe5
commit
1ec8bea903
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user