mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-02 11:54:36 +08:00
114eef6e46
Move the asserts for the many REDIST_REGS accesses into common helpers instead of copy+pasting the same, unhelpful asserts over and over. Not providing the actual (or expected) value makes it unnecessarily painful to debug failures, especially since test_assert() prints the errno unconditionally, e.g. on success, it may print a stale, misleading errno. Use kvm_device_attr_get() to handle the "success" check so that the "success" and "expected == actual" asserts are separated, which will make it far less likely that a user incorrectly assumes the ioctl() failed. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> |
||
---|---|---|
.. | ||
aarch64 | ||
include | ||
lib | ||
s390x | ||
x86_64 | ||
.gitignore | ||
access_tracking_perf_test.c | ||
config | ||
demand_paging_test.c | ||
dirty_log_perf_test.c | ||
dirty_log_test.c | ||
hardware_disable_test.c | ||
kvm_binary_stats_test.c | ||
kvm_create_max_vcpus.c | ||
kvm_page_table_test.c | ||
Makefile | ||
max_guest_memory_test.c | ||
memslot_modification_stress_test.c | ||
memslot_perf_test.c | ||
rseq_test.c | ||
set_memory_region_test.c | ||
settings | ||
steal_time.c | ||
system_counter_offset_test.c |