[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210608233816.423958-3-zhenzhong.duan@intel.com>
Date: Wed, 9 Jun 2021 07:38:15 +0800
From: Zhenzhong Duan <zhenzhong.duan@...el.com>
To: linux-kernel@...r.kernel.org
Cc: linux-kselftest@...r.kernel.org, kvm@...r.kernel.org,
maciej.szmigiero@...cle.com, drjones@...hat.com,
pbonzini@...hat.com, shuah@...nel.org,
Zhenzhong Duan <zhenzhong.duan@...el.com>
Subject: [PATCH 2/3] Revert "selftests: kvm: fix overlapping addresses in memslot_perf_test"
This reverts commit 000ac42953395a4f0a63d5db640c5e4c88a548c5.
As (39fe2fc96694 "selftests: kvm: make allocation of extra memory take
effect") is reverted, this relevant commit should be reverted too.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@...el.com>
---
tools/testing/selftests/kvm/memslot_perf_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kvm/memslot_perf_test.c b/tools/testing/selftests/kvm/memslot_perf_test.c
index 9307f25d8130..11239652d805 100644
--- a/tools/testing/selftests/kvm/memslot_perf_test.c
+++ b/tools/testing/selftests/kvm/memslot_perf_test.c
@@ -267,7 +267,7 @@ static bool prepare_vm(struct vm_data *data, int nslots, uint64_t *maxslots,
data->hva_slots = malloc(sizeof(*data->hva_slots) * data->nslots);
TEST_ASSERT(data->hva_slots, "malloc() fail");
- data->vm = vm_create_default(VCPU_ID, 1024, guest_code);
+ data->vm = vm_create_default(VCPU_ID, mempages, guest_code);
pr_info_v("Adding slots 1..%i, each slot with %"PRIu64" pages + %"PRIu64" extra pages last\n",
max_mem_slots - 1, data->pages_per_slot, rempages);
--
2.25.1
Powered by blists - more mailing lists