mbox series

[0/7] kvm: selftests: dirty_log_test: test with high GPAs

Message ID 20181106135712.9059-1-drjones@redhat.com (mailing list archive)
Headers show
Series kvm: selftests: dirty_log_test: test with high GPAs | expand

Message

Andrew Jones Nov. 6, 2018, 1:57 p.m. UTC
High GPAs may not get used much with "normal" guest configs. Let's make
sure we use them with the selftests. I've tested this on an AArch64
machine that supports up to 48-bit IPAs using a host kernel with the
recent > 40-bit IPA patches. We may want to modify the framework for
x86_64 someday to enable tests for 5-level page tables (or even just
to fully support the use of 4-level page tables.) For now, I just
made sure the x86_64 dirty log test still runs.

Andrew Jones (7):
  kvm: selftests: x86_64: dirty_log_test: fix -t
  kvm: selftests: dirty_log_test: don't identity map the test mem
  kvm: selftests: dirty_log_test: always use -t
  kvm: selftests: dirty_log_test: reset guest test phys offset
  kvm: selftests: dirty_log_test: improve mode param management
  kvm: selftests: add pa-48/va-48 VM modes
  kvm: selftests: aarch64: dirty_log_test: support greater than 40-bit
    IPAs

 tools/testing/selftests/kvm/dirty_log_test.c  | 146 +++++++++++-------
 .../testing/selftests/kvm/include/kvm_util.h  |   4 +
 .../selftests/kvm/lib/aarch64/processor.c     |  18 ++-
 tools/testing/selftests/kvm/lib/kvm_util.c    |  40 ++++-
 .../selftests/kvm/lib/kvm_util_internal.h     |   1 +
 5 files changed, 139 insertions(+), 70 deletions(-)

Comments

Andrew Jones Nov. 28, 2018, 4:40 p.m. UTC | #1
On Tue, Nov 06, 2018 at 02:57:05PM +0100, Andrew Jones wrote:
> High GPAs may not get used much with "normal" guest configs. Let's make
> sure we use them with the selftests. I've tested this on an AArch64
> machine that supports up to 48-bit IPAs using a host kernel with the
> recent > 40-bit IPA patches. We may want to modify the framework for
> x86_64 someday to enable tests for 5-level page tables (or even just
> to fully support the use of 4-level page tables.) For now, I just
> made sure the x86_64 dirty log test still runs.
> 
> Andrew Jones (7):
>   kvm: selftests: x86_64: dirty_log_test: fix -t
>   kvm: selftests: dirty_log_test: don't identity map the test mem
>   kvm: selftests: dirty_log_test: always use -t
>   kvm: selftests: dirty_log_test: reset guest test phys offset
>   kvm: selftests: dirty_log_test: improve mode param management
>   kvm: selftests: add pa-48/va-48 VM modes
>   kvm: selftests: aarch64: dirty_log_test: support greater than 40-bit
>     IPAs
> 
>  tools/testing/selftests/kvm/dirty_log_test.c  | 146 +++++++++++-------
>  .../testing/selftests/kvm/include/kvm_util.h  |   4 +
>  .../selftests/kvm/lib/aarch64/processor.c     |  18 ++-
>  tools/testing/selftests/kvm/lib/kvm_util.c    |  40 ++++-
>  .../selftests/kvm/lib/kvm_util_internal.h     |   1 +
>  5 files changed, 139 insertions(+), 70 deletions(-)
> 
> -- 
> 2.17.2
>

Ping?

It'd be good to further extend this test with the new API Paolo's
proposing[*] as well.

[*] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1814622.html

Thanks,
drew