]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Add memory size parameter to the demand paging test
authorBen Gardon <bgardon@google.com>
Thu, 23 Jan 2020 18:04:30 +0000 (10:04 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:02 +0000 (17:57 +0100)
commitaf99e1ad7e708d1a1a4e4c1bb10a2b851974fc04
tree96d00db6c5cd5feaa522878339c8bd4085e31bb7
parent0119cb365c93621535187c7527486c3b378a622d
KVM: selftests: Add memory size parameter to the demand paging test

Add an argument to allow the demand paging test to work on larger and
smaller guest sizes.

Signed-off-by: Ben Gardon <bgardon@google.com>
[Rewrote parse_size() to simplify and provide user more flexibility as
 to how sizes are input. Also fixed size overflow assert.]
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/demand_paging_test.c
tools/testing/selftests/kvm/include/test_util.h
tools/testing/selftests/kvm/lib/test_util.c [new file with mode: 0644]