diff options
author | Avi Kivity <avi@qumranet.com> | 2007-06-07 18:13:47 +0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-06-07 18:13:47 +0300 |
commit | 1b19a564c9476c57544c3b19ffe82abd92b7de9b (patch) | |
tree | 95ce5f7243ac937797f223715f0323436638b5a2 | |
parent | 59fe40e4e21a678a116c00a968475451667e28b4 (diff) |
kvm: testsuite: port access test to smpkvm-28
this allows excerising remote tlb shootdown.
-rw-r--r-- | kvm/user/test/access.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kvm/user/test/access.c b/kvm/user/test/access.c index 06dc8c522..8f136d33b 100644 --- a/kvm/user/test/access.c +++ b/kvm/user/test/access.c @@ -1,4 +1,5 @@ +#include "smp.h" #include "printf.h" typedef unsigned long pt_element_t; @@ -156,7 +157,7 @@ void ac_test_init(ac_test_t *at) set_cr0_wp(1); for (int i = 0; i < NR_AC_FLAGS; ++i) at->flags[i] = 0; - at->virt = (void *)0x123400000000; + at->virt = (void *)(0x123400000000 + 16 * smp_id()); at->phys = 32 * 1024 * 1024; at->pt_pool = 33 * 1024 * 1024; memset(at->idt, 0, sizeof at->idt); @@ -360,6 +361,7 @@ void ac_test_run() int main() { printf("starting test\n\n"); + smp_init(ac_test_run); ac_test_run(); return 0; } |