linux/tools/testing/selftests/kvm
Ben Gardon b246986a1f kvm: selftests: Fix region overlap check in kvm_util
[ Upstream commit 94a980c39c ]

Fix a call to userspace_mem_region_find to conform to its spec of
taking an inclusive, inclusive range. It was previously being called
with an inclusive, exclusive range. Also remove a redundant region bounds
check in vm_userspace_mem_region_add. Region overlap checking is already
performed by the call to userspace_mem_region_find.

Tested: Compiled tools/testing/selftests/kvm with -static
	Ran all resulting test binaries on an Intel Haswell test machine
	All tests passed

Signed-off-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-05 17:58:52 +01:00
..
include kvm: selftests: Add platform_info_test 2018-09-20 00:51:47 +02:00
lib kvm: selftests: Fix region overlap check in kvm_util 2019-03-05 17:58:52 +01:00
.gitignore kvm: selftests: Add platform_info_test 2018-09-20 00:51:47 +02:00
cr4_cpuid_sync_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00
dirty_log_test.c kvm: selftest: add dirty logging test 2018-08-22 16:48:39 +02:00
Makefile selftests: Fix test errors related to lib.mk khdr target 2019-01-22 21:40:38 +01:00
platform_info_test.c kvm: selftests: Add platform_info_test 2018-09-20 00:51:47 +02:00
set_sregs_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00
state_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00
sync_regs_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00
vmx_tsc_adjust_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00