Skip to content

Commit c7892db

Browse files
Steven PriceMarc Zyngier
authored andcommitted
KVM: arm64: Select TASK_DELAY_ACCT+TASKSTATS rather than SCHEDSTATS
SCHEDSTATS requires DEBUG_KERNEL (and PROC_FS) and therefore isn't a good choice for enabling the scheduling statistics required for stolen time. Instead match the x86 configuration and select TASK_DELAY_ACCT and TASKSTATS. This adds the dependencies of NET && MULTIUSER for arm64 KVM. Suggested-by: Marc Zyngier <[email protected]> Fixes: 8564d63 ("KVM: arm64: Support stolen time reporting via shared structure") Signed-off-by: Steven Price <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent e0685fa commit c7892db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arch/arm64/kvm/Kconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ if VIRTUALIZATION
2121
config KVM
2222
bool "Kernel-based Virtual Machine (KVM) support"
2323
depends on OF
24+
# for TASKSTATS/TASK_DELAY_ACCT:
25+
depends on NET && MULTIUSER
2426
select MMU_NOTIFIER
2527
select PREEMPT_NOTIFIERS
2628
select HAVE_KVM_CPU_RELAX_INTERCEPT
@@ -39,7 +41,8 @@ config KVM
3941
select IRQ_BYPASS_MANAGER
4042
select HAVE_KVM_IRQ_BYPASS
4143
select HAVE_KVM_VCPU_RUN_PID_CHANGE
42-
select SCHEDSTATS
44+
select TASKSTATS
45+
select TASK_DELAY_ACCT
4346
---help---
4447
Support hosting virtualized guest machines.
4548
We don't support KVM with 16K page tables yet, due to the multiple

0 commit comments

Comments
 (0)