Skip to content

Commit dc86460

Browse files
zhouzhouyi-hubNeeraj Upadhyay
authored andcommitted
rcutorture: Add CFcommon.arch for arch-specific Kconfig options
Add CFcommon.arch for arch-specific Kconfig options. In accordance with [1], [2] and [3], move the x86-specific kernel option CONFIG_HYPERVISOR_GUEST to CFcommon.i686 and CFcommon.x86_64, and also move the x86/PowerPC CONFIG_KVM_GUEST Kconfig option to CFcommon.i686, CFcommon.x86_64, and CFcommon.ppc64le. The "arch" in CFcommon.arch is taken from the "uname -m" command. [1] https://lore.kernel.org/all/[email protected]/ [2] https://lore.kernel.org/all/059d36ce-6453-42be-a31e-895abd35d590@paulmck-laptop/ [3] https://lore.kernel.org/all/ZnBkHosMDhsh4H8g@J2N7QTR9R3/ Tested in x86_64 and PPC VM of Open Source Lab of Oregon State University. Fixes: a6fda6d ("rcutorture: Tweak kvm options") Suggested-by: Paul E. McKenney <[email protected]> Suggested-by: Mark Rutland <[email protected]> Signed-off-by: Zhouyi Zhou <[email protected]> Acked-by: Mark Rutland <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Neeraj Upadhyay <[email protected]>
1 parent 72ed29f commit dc86460

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ config_override_param "--gdb options" KcList "$TORTURE_KCONFIG_GDB_ARG"
6868
config_override_param "--kasan options" KcList "$TORTURE_KCONFIG_KASAN_ARG"
6969
config_override_param "--kcsan options" KcList "$TORTURE_KCONFIG_KCSAN_ARG"
7070
config_override_param "--kconfig argument" KcList "$TORTURE_KCONFIG_ARG"
71+
config_override_param "$config_dir/CFcommon.$(uname -m)" KcList \
72+
"`cat $config_dir/CFcommon.$(uname -m) 2> /dev/null`"
7173
cp $T/KcList $resdir/ConfigFragment
7274

7375
base_resdir=`echo $resdir | sed -e 's/\.[0-9]\+$//'`
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
CONFIG_RCU_TORTURE_TEST=y
22
CONFIG_PRINTK_TIME=y
3-
CONFIG_HYPERVISOR_GUEST=y
43
CONFIG_PARAVIRT=y
5-
CONFIG_KVM_GUEST=y
64
CONFIG_KCSAN_ASSUME_PLAIN_WRITES_ATOMIC=n
75
CONFIG_KCSAN_REPORT_VALUE_CHANGE_ONLY=n
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_HYPERVISOR_GUEST=y
2+
CONFIG_KVM_GUEST=y
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_KVM_GUEST=y
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_HYPERVISOR_GUEST=y
2+
CONFIG_KVM_GUEST=y

0 commit comments

Comments
 (0)