RISC-V: KVM: Require HAVE_KVM
Subsystems (4)
PATCH 1/1 RISC-V: KVM: Require HAVE_KVM
KVM requires EVENTFD, which is selected by HAVE_KVM. Other KVM supporting architectures select HAVE_KVM and then their KVM Kconfigs ensure its there with a depends on HAVE_KVM. Make RISCV consistent with that approach which fixes configs which have KVM but not EVENTFD, as was discovered with a randconfig test.
--- arch/riscv/Kconfig | 1 + arch/riscv/kvm/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
arch/riscv/Kconfig +1 -0
@@ -128,6 +128,7 @@ config RISCV select HAVE_KPROBES if !XIP_KERNEL select HAVE_KPROBES_ON_FTRACE if !XIP_KERNEL select HAVE_KRETPROBES if !XIP_KERNEL + select HAVE_KVM # https://github.com/ClangBuiltLinux/linux/issues/1881 select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !LD_IS_LLD select HAVE_MOVE_PMD
arch/riscv/kvm/Kconfig +1 -1
@@ -19,7 +19,7 @@ if VIRTUALIZATION config KVM tristate "Kernel-based Virtual Machine (KVM) support (EXPERIMENTAL)" - depends on RISCV_SBI && MMU + depends on HAVE_KVM && RISCV_SBI && MMU select HAVE_KVM_IRQCHIP select HAVE_KVM_IRQ_ROUTING select HAVE_KVM_MSI
Signature · 1 line
2.43.0
This applies to linux-next, but I forgot to append -next to the PATCH prefix.
Quoted 8 lines · Andrew Jones
KVM requires EVENTFD, which is selected by
HAVE_KVM. Other KVM supporting architectures selectHAVE_KVMand then their KVM Kconfigs ensure its there with a depends onHAVE_KVM. Make RISCV consistent with that approach which fixes configs which have KVM but not EVENTFD, as was discovered with a randconfig test.Reported-by Randy Dunlap <[email protected]>Closes https://lore.kernel.org/all/44907c6b-c5bd-4e4a-a921-e4d3825539d8 at infradead.org/
I think powerpc may need a patch like this as well, since I don't see anything ensuring EVENTFD is selected for it anymore either.
Thanks,
drew
Quoted 34 lines
Signed-off-by Andrew Jones <[email protected]>--- arch/riscv/Kconfig | 1 + arch/riscv/kvm/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)arch/riscv/Kconfig +1
-0@@ -128,6 +128,7 @@ config RISCV select HAVE_KPROBES if !XIP_KERNEL select HAVE_KPROBES_ON_FTRACE if !XIP_KERNEL select HAVE_KRETPROBES if !XIP_KERNEL + select HAVE_KVM # https://github.com/ClangBuiltLinux/linux/issues/1881 select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !LD_IS_LLD select HAVE_MOVE_PMDarch/riscv/kvm/Kconfig +1
-1@@ -19,7 +19,7 @@ if VIRTUALIZATION config KVM tristate "Kernel-based Virtual Machine (KVM) support (EXPERIMENTAL)" - depends on RISCV_SBI && MMU + depends on HAVE_KVM && RISCV_SBI && MMU select HAVE_KVM_IRQCHIP select HAVE_KVM_IRQ_ROUTING select HAVE_KVM_MSISignature · 1 line
2.43.0
Alexandre Ghiti
reviewerQuoted 2 lines · Andrew Jones
This applies to linux-next, but I forgot to append -next to the PATCH prefix.
Shoudn't this go to -fixes instead? With a Fixes tag?
Quoted 54 lines · Andrew Jones
Quoted 8 lines
KVM requires EVENTFD, which is selected by
HAVE_KVM. Other KVM supporting architectures selectHAVE_KVMand then their KVM Kconfigs ensure its there with a depends onHAVE_KVM. Make RISCV consistent with that approach which fixes configs which have KVM but not EVENTFD, as was discovered with a randconfig test.Reported-by Randy Dunlap <[email protected]>Closes https://lore.kernel.org/all/44907c6b-c5bd-4e4a-a921-e4d3825539d8 at infradead.org/I think powerpc may need a patch like this as well, since I don't see anything ensuring EVENTFD is selected for it anymore either.
Thanks,
drewQuoted 34 lines
Signed-off-by Andrew Jones <[email protected]>--- arch/riscv/Kconfig | 1 + arch/riscv/kvm/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)arch/riscv/Kconfig +1
-0@@ -128,6 +128,7 @@ config RISCV select HAVE_KPROBES if !XIP_KERNEL select HAVE_KPROBES_ON_FTRACE if !XIP_KERNEL select HAVE_KRETPROBES if !XIP_KERNEL + select HAVE_KVM # https://github.com/ClangBuiltLinux/linux/issues/1881 select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !LD_IS_LLD select HAVE_MOVE_PMDarch/riscv/kvm/Kconfig +1
-1@@ -19,7 +19,7 @@ if VIRTUALIZATION config KVM tristate "Kernel-based Virtual Machine (KVM) support (EXPERIMENTAL)" - depends on RISCV_SBI && MMU + depends on HAVE_KVM && RISCV_SBI && MMU select HAVE_KVM_IRQCHIP select HAVE_KVM_IRQ_ROUTING select HAVE_KVM_MSISignature · 1 line
2.43.0_______________________________________________
linux-riscv mailing list
linux-riscv at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 6 lines · Alexandre Ghiti
Quoted 2 lines · Andrew Jones
This applies to linux-next, but I forgot to append -next to the PATCH prefix.
Shoudn't this go to -fixes instead? With a Fixes tag?
I'm not sure how urgent it is since it's a randconfig thing, but if we think it deserves the -fixes track then I can do that. The Fixes tag isn't super easy to select since, while it seems like it should be 8132d887a702 ("KVM: remove CONFIG_HAVE_KVM_EVENTFD"), it could also be 99cdc6c18c2d ("RISC-V: Add initial skeletal KVM support").
I'll leave both the urgency decision and the Fixes tag selection up to the maintainers. Anup? Paolo?
Thanks,
drew
Anup Patel
maintainerQuoted 9 lines · On Thu, Jan 4, 2024 at 4:51?PM Andrew Jones <[email protected]> wrote:
Quoted 6 lines · Alexandre Ghiti
Quoted 2 lines · Andrew Jones
This applies to linux-next, but I forgot to append -next to the PATCH prefix.
Shoudn't this go to -fixes instead? With a Fixes tag?
Quoted 8 lines
I'm not sure how urgent it is since it's a randconfig thing, but if we think it deserves the -fixes track then I can do that. The Fixes tag isn't super easy to select since, while it seems like it should be
8132d887a702("KVM: removeCONFIG_HAVE_KVM_EVENTFD"), it could also be99cdc6c18c2d("RISC-V: Add initial skeletal KVM support").I'll leave both the urgency decision and the Fixes tag selection up to the maintainers. Anup? Paolo?
Lets add
Regards,
Anup