[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210608233816.423958-1-zhenzhong.duan@intel.com>
Date: Wed, 9 Jun 2021 07:38:13 +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 0/3] Restore extra_mem_pages and add slot0_mem_pages
(39fe2fc96694 "selftests: kvm: make allocation of extra memory take effect")
changed the meaning of extra_mem_pages and treated it as slot0 memory size.
In fact extra_mem_pages is used for non-slot0 memory size, there is no custom
slot0 memory size support. See discuss in https://lkml.org/lkml/2021/6/3/551
for more details.
This patchset restores extra_mem_pages's original meaning and adds support for
custom slot0 memory with a new parameter slot0_mem_pages.
Run below command, all 39 tests passed.
# make -C tools/testing/selftests/ TARGETS=kvm run_tests
Zhenzhong Duan (3):
Revert "selftests: kvm: make allocation of extra memory take effect"
Revert "selftests: kvm: fix overlapping addresses in
memslot_perf_test"
selftests: kvm: Add support for customized slot0 memory size
.../testing/selftests/kvm/include/kvm_util.h | 7 +--
.../selftests/kvm/kvm_page_table_test.c | 2 +-
tools/testing/selftests/kvm/lib/kvm_util.c | 47 +++++++++++++++----
.../selftests/kvm/lib/perf_test_util.c | 2 +-
.../testing/selftests/kvm/memslot_perf_test.c | 2 +-
5 files changed, 45 insertions(+), 15 deletions(-)
--
2.25.1
Powered by blists - more mailing lists