Searched refs:bmap (Results 1 – 3 of 3) sorted by relevance
| /tools/testing/selftests/kvm/x86/ |
| A D | vmx_dirty_log_test.c | 84 unsigned long *bmap; in test_vmx_dirty_log() local 129 bmap = bitmap_zalloc(TEST_MEM_PAGES); in test_vmx_dirty_log() 146 kvm_vm_get_dirty_log(vm, TEST_MEM_SLOT_INDEX, bmap); in test_vmx_dirty_log() 148 TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean"); in test_vmx_dirty_log() 151 TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty"); in test_vmx_dirty_log() 155 TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty"); in test_vmx_dirty_log() 157 TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty"); in test_vmx_dirty_log()
|
| /tools/testing/selftests/kvm/ |
| A D | dirty_log_test.c | 495 static void vm_dirty_log_verify(enum vm_guest_mode mode, unsigned long **bmap) in vm_dirty_log_verify() argument 502 bool bmap0_dirty = __test_and_clear_bit_le(page, bmap[0]); in vm_dirty_log_verify() 510 if (__test_and_clear_bit_le(page, bmap[1]) || bmap0_dirty) { in vm_dirty_log_verify() 602 unsigned long *bmap[2]; in run_test() local 658 bmap[0] = bitmap_zalloc(host_num_pages); in run_test() 659 bmap[1] = bitmap_zalloc(host_num_pages); in run_test() 754 bmap[0], host_num_pages, in run_test() 791 bmap[1], host_num_pages, in run_test() 793 vm_dirty_log_verify(mode, bmap); in run_test() 804 free(bmap[0]); in run_test() [all …]
|
| /tools/testing/selftests/kvm/arm64/ |
| A D | page_fault_test.c | 454 unsigned long *bmap; in check_write_in_dirty_log() local 459 bmap = bitmap_zalloc(size / getpagesize()); in check_write_in_dirty_log() 460 kvm_vm_get_dirty_log(vm, region->region.slot, bmap); in check_write_in_dirty_log() 461 first_page_dirty = test_bit(host_pg_nr, bmap); in check_write_in_dirty_log() 462 free(bmap); in check_write_in_dirty_log()
|
Completed in 9 milliseconds