[PATCH 3/5] KVM: selftests: Use the shared memslot base in memstress
From: Tharit Tangkijwanichakul
Date: Sat Oct 17 2026 - 07:03:23 EST
Define MEMSTRESS_MEM_SLOT_INDEX using TEST_MEM_SLOT_BASE so
memstress and its users follow the library's reserved-slot
convention.
The tests affected but require no change are:
dirty_log_perf_test.c
demand_paging_test.c
access_tracking_perf_test.c
memslot_modification_stress_test.c
x86/dirty_log_page_splitting_test.c
Signed-off-by: Tharit Tangkijwanichakul <tharitt97@xxxxxxxxx>
---
tools/testing/selftests/kvm/include/memstress.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kvm/include/memstress.h b/tools/testing/selftests/kvm/include/memstress.h
index 0d1d6230cc05..4da03541e805 100644
--- a/tools/testing/selftests/kvm/include/memstress.h
+++ b/tools/testing/selftests/kvm/include/memstress.h
@@ -17,7 +17,7 @@
#define DEFAULT_PER_VCPU_MEM_SIZE (1 << 30) /* 1G */
-#define MEMSTRESS_MEM_SLOT_INDEX 1
+#define MEMSTRESS_MEM_SLOT_INDEX TEST_MEM_SLOT_BASE
struct memstress_vcpu_args {
gpa_t gpa;
--
2.53.0