[kvm-unit-tests PATCH 04/39] x86/access: Stop pretending the test is SMP friendly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove SMP "support", the test is not remotely SMP friendly.  It can
barely survive one CPU modifying page tables, two would be pure carnage.

Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
 x86/access.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/x86/access.c b/x86/access.c
index 60bb379..749b50c 100644
--- a/x86/access.c
+++ b/x86/access.c
@@ -5,8 +5,6 @@
 #include "x86/vm.h"
 #include "access.h"
 
-#define smp_id() 0
-
 #define true 1
 #define false 0
 
@@ -1142,8 +1140,7 @@ int ac_test_run(int page_table_levels)
 	}
 
 	ac_env_int(&pool);
-	ac_test_init(&at, (void *)(0x123400000000 + 16 * smp_id()),
-		page_table_levels);
+	ac_test_init(&at, (void *)(0x123400000000), page_table_levels);
 	do {
 		++tests;
 		successes += ac_test_exec(&at, &pool);
-- 
2.34.0.rc2.393.gf8c9666880-goog




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux