TEST_ASSERT 164 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(ret == 0, "vcpu_run failed: %d\n", ret); TEST_ASSERT 169 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(false, TEST_ASSERT 194 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(test_bit_le(page, bmap), TEST_ASSERT 207 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(*value_ptr == iteration || TEST_ASSERT 233 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(*value_ptr <= iteration, TEST_ASSERT 484 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(mode < NUM_VM_MODES, TEST_ASSERT 495 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(iterations > 2, "Iterations must be greater than two"); TEST_ASSERT 496 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(interval > 0, "Interval must be greater than zero"); TEST_ASSERT 506 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(vm_guest_mode_params[i].supported, TEST_ASSERT 35 tools/testing/selftests/kvm/include/test_util.h TEST_ASSERT(__a == __b, \ TEST_ASSERT 58 tools/testing/selftests/kvm/kvm_create_max_vcpus.c TEST_ASSERT(kvm_max_vcpu_id >= kvm_max_vcpus, TEST_ASSERT 37 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(vm->pgtable_levels == 4, TEST_ASSERT 48 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(vm->pgtable_levels >= 3, TEST_ASSERT 94 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT((vaddr % vm->page_size) == 0, TEST_ASSERT 97 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(sparsebit_is_set(vm->vpages_valid, TEST_ASSERT 100 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT((paddr % vm->page_size) == 0, TEST_ASSERT 103 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, TEST_ASSERT 133 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(false, "Page table levels must be 2, 3, or 4"); TEST_ASSERT 176 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(false, "Page table levels must be 2, 3, or 4"); TEST_ASSERT 182 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(false, "No mapping for vm virtual address, " TEST_ASSERT 265 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(false, "AArch64 does not support 4K sized pages " TEST_ASSERT 268 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(false, "AArch64 does not support 4K sized pages " TEST_ASSERT 291 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", vm->mode); TEST_ASSERT 34 tools/testing/selftests/kvm/lib/aarch64/ucall.c TEST_ASSERT(ret, "Can't set ucall mmio address to %lx", gpa); TEST_ASSERT 65 tools/testing/selftests/kvm/lib/aarch64/ucall.c TEST_ASSERT(false, "Can't find a ucall mmio address"); TEST_ASSERT 101 tools/testing/selftests/kvm/lib/aarch64/ucall.c TEST_ASSERT(run->mmio.is_write && run->mmio.len == 8, TEST_ASSERT 23 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" TEST_ASSERT 36 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT((ident[EI_MAG0] == ELFMAG0) && (ident[EI_MAG1] == ELFMAG1) TEST_ASSERT 45 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(ident[EI_CLASS] == ELFCLASS64, TEST_ASSERT 52 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(((BYTE_ORDER == LITTLE_ENDIAN) TEST_ASSERT 67 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(ident[EI_VERSION] == EV_CURRENT, TEST_ASSERT 81 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(offset_rv == 0, "Seek to ELF header failed,\n" TEST_ASSERT 84 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(hdrp->e_phentsize == sizeof(Elf64_Phdr), TEST_ASSERT 89 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(hdrp->e_shentsize == sizeof(Elf64_Shdr), TEST_ASSERT 123 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" TEST_ASSERT 142 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(offset_rv == offset, TEST_ASSERT 157 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(phdr.p_memsz > 0, "Unexpected loadable segment " TEST_ASSERT 169 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(vaddr == seg_vstart, "Unable to allocate " TEST_ASSERT 185 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(offset_rv == phdr.p_offset, TEST_ASSERT 51 tools/testing/selftests/kvm/lib/io.c TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); TEST_ASSERT 58 tools/testing/selftests/kvm/lib/io.c TEST_ASSERT(errno == EAGAIN || errno == EINTR, TEST_ASSERT 64 tools/testing/selftests/kvm/lib/io.c TEST_ASSERT(false, "Unexpected EOF,\n" TEST_ASSERT 70 tools/testing/selftests/kvm/lib/io.c TEST_ASSERT(rc >= 0, "Unexpected ret from write,\n" TEST_ASSERT 128 tools/testing/selftests/kvm/lib/io.c TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); TEST_ASSERT 135 tools/testing/selftests/kvm/lib/io.c TEST_ASSERT(errno == EAGAIN || errno == EINTR, TEST_ASSERT 141 tools/testing/selftests/kvm/lib/io.c TEST_ASSERT(false, "Unexpected EOF,\n" TEST_ASSERT 147 tools/testing/selftests/kvm/lib/io.c TEST_ASSERT(rc > 0, "Unexpected ret from read,\n" TEST_ASSERT 26 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(size != 0 && !(size & (size - 1)), TEST_ASSERT 57 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret != -1, "KVM_CHECK_EXTENSION IOCTL failed,\n" TEST_ASSERT 82 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_ENABLE_CAP IOCTL failed,\n" TEST_ASSERT 100 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vm->fd >= 0, "KVM_CREATE_VM ioctl failed, " TEST_ASSERT 142 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vm != NULL, "Insufficient Memory"); TEST_ASSERT 194 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vm->va_bits == 48, "Linear address width " TEST_ASSERT 202 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "VM_MODE_PXXV48_4K not supported on " TEST_ASSERT 207 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", mode); TEST_ASSERT 266 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_SET_USER_MEMORY_REGION IOCTL failed,\n" TEST_ASSERT 283 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "%s: KVM_GET_DIRTY_LOG failed: %s", TEST_ASSERT 296 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "%s: KVM_CLEAR_DIRTY_LOG failed: %s", TEST_ASSERT 412 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "munmap of VCPU fd failed, rc: %i " TEST_ASSERT 415 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "Close of VCPU fd failed, rc: %i " TEST_ASSERT 435 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "Close of vm fd failed,\n" TEST_ASSERT 439 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "Close of /dev/kvm fd failed,\n" TEST_ASSERT 461 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_SET_USER_MEMORY_REGION IOCTL failed, " TEST_ASSERT 467 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "munmap failed, rc: %i errno: %i", TEST_ASSERT 585 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT((guest_paddr % vm->page_size) == 0, "Guest physical " TEST_ASSERT 589 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT((((guest_paddr >> vm->page_shift) + npages) - 1) TEST_ASSERT 603 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "overlapping userspace_mem_region already " TEST_ASSERT 619 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "A mem region with the requested slot " TEST_ASSERT 630 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(region != NULL, "Insufficient Memory"); TEST_ASSERT 652 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(region->mmap_start != MAP_FAILED, TEST_ASSERT 663 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "madvise failed,\n" TEST_ASSERT 679 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_SET_USER_MEMORY_REGION IOCTL failed,\n" TEST_ASSERT 723 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "Mem region not found"); TEST_ASSERT 754 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_SET_USER_MEMORY_REGION IOCTL failed,\n" TEST_ASSERT 781 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret >= sizeof(struct kvm_run), TEST_ASSERT 811 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "vcpu with the specified id " TEST_ASSERT 819 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "Insufficient Memory"); TEST_ASSERT 822 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu->fd >= 0, "KVM_CREATE_VCPU failed, rc: %i errno: %i", TEST_ASSERT 825 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu_mmap_sz() >= sizeof(*vcpu->state), "vcpu mmap size " TEST_ASSERT 830 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu->state != MAP_FAILED, "mmap vcpu_state failed, " TEST_ASSERT 904 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "No vaddr of specified pages available, " TEST_ASSERT 911 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(sparsebit_is_set_num(vm->vpages_valid, TEST_ASSERT 917 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(sparsebit_is_clear_num(vm->vpages_mapped, TEST_ASSERT 1001 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vaddr + size > vaddr, "Vaddr overflow"); TEST_ASSERT 1002 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(paddr + size > paddr, "Paddr overflow"); TEST_ASSERT 1040 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "No vm physical memory at 0x%lx", gpa); TEST_ASSERT 1074 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "No mapping to a guest physical address, " TEST_ASSERT 1096 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_CREATE_IRQCHIP IOCTL failed, " TEST_ASSERT 1120 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1142 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_RUN IOCTL failed, " TEST_ASSERT 1151 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1163 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1169 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == -1 && errno == EINTR, TEST_ASSERT 1195 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1198 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_SET_MP_STATE IOCTL failed, " TEST_ASSERT 1222 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1225 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_GET_REGS failed, rc: %i errno: %i", TEST_ASSERT 1249 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1252 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_SET_REGS failed, rc: %i errno: %i", TEST_ASSERT 1263 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1266 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_GET_VCPU_EVENTS, failed, rc: %i errno: %i", TEST_ASSERT 1276 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1279 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_SET_VCPU_EVENTS, failed, rc: %i errno: %i", TEST_ASSERT 1291 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1294 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, TEST_ASSERT 1305 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1309 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, TEST_ASSERT 1338 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1341 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_GET_SREGS failed, rc: %i errno: %i", TEST_ASSERT 1363 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "KVM_RUN IOCTL failed, " TEST_ASSERT 1371 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1395 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "vcpu ioctl %lu failed, rc: %i errno: %i (%s)", TEST_ASSERT 1405 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 1429 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(ret == 0, "vm ioctl %lu failed, rc: %i errno: %i (%s)", TEST_ASSERT 1563 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(num > 0, "Must allocate at least one page"); TEST_ASSERT 1565 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT((paddr_min % vm->page_size) == 0, "Min physical address " TEST_ASSERT 1641 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(f != NULL, "Error in opening KVM dev file: %d", TEST_ASSERT 1649 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(count == 1, "Unable to read from param file."); TEST_ASSERT 22 tools/testing/selftests/kvm/lib/s390x/processor.c TEST_ASSERT(vm->page_size == 4096, "Unsupported page size: 0x%x", TEST_ASSERT 76 tools/testing/selftests/kvm/lib/s390x/processor.c TEST_ASSERT((gva % vm->page_size) == 0, TEST_ASSERT 80 tools/testing/selftests/kvm/lib/s390x/processor.c TEST_ASSERT(sparsebit_is_set(vm->vpages_valid, TEST_ASSERT 84 tools/testing/selftests/kvm/lib/s390x/processor.c TEST_ASSERT((gpa % vm->page_size) == 0, TEST_ASSERT 88 tools/testing/selftests/kvm/lib/s390x/processor.c TEST_ASSERT((gpa >> vm->page_shift) <= vm->max_gfn, TEST_ASSERT 135 tools/testing/selftests/kvm/lib/s390x/processor.c TEST_ASSERT(vm->page_size == 4096, "Unsupported page size: 0x%x", TEST_ASSERT 141 tools/testing/selftests/kvm/lib/s390x/processor.c TEST_ASSERT(!(entry[idx] & REGION_ENTRY_INVALID), TEST_ASSERT 149 tools/testing/selftests/kvm/lib/s390x/processor.c TEST_ASSERT(!(entry[idx] & PAGE_INVALID), TEST_ASSERT 249 tools/testing/selftests/kvm/lib/s390x/processor.c TEST_ASSERT(vm->page_size == 4096, "Unsupported page size: 0x%x", TEST_ASSERT 231 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " TEST_ASSERT 264 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " TEST_ASSERT 267 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT((vaddr % vm->page_size) == 0, TEST_ASSERT 271 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(sparsebit_is_set(vm->vpages_valid, TEST_ASSERT 275 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT((paddr % vm->page_size) == 0, TEST_ASSERT 279 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, TEST_ASSERT 550 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " TEST_ASSERT 579 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(false, "No mapping for vm virtual address, " TEST_ASSERT 637 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", vm->mode); TEST_ASSERT 731 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(ret == 0, "KVM_GET_SUPPORTED_CPUID failed %d %d\n", TEST_ASSERT 764 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(entry, "Guest CPUID entry not found: (EAX=%x, ECX=%x).", TEST_ASSERT 788 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 791 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(rc == 0, "KVM_SET_CPUID2 failed, rc: %i errno: %i", TEST_ASSERT 862 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 866 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 1, "KVM_GET_MSRS IOCTL failed,\n" TEST_ASSERT 896 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(vcpu != NULL, "vcpu not found, vcpuid: %u", vcpuid); TEST_ASSERT 902 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 1, "KVM_SET_MSRS IOCTL failed,\n" TEST_ASSERT 927 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(num >= 1 && num <= 6, "Unsupported number of args,\n" TEST_ASSERT 1010 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == -1 && errno == E2BIG, "Unexpected result from KVM_GET_MSR_INDEX_LIST probe, r: %i", TEST_ASSERT 1026 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(nested_size <= sizeof(state->nested_), TEST_ASSERT 1043 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_MSR_INDEX_LIST, r: %i", TEST_ASSERT 1048 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_VCPU_EVENTS, r: %i", TEST_ASSERT 1052 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_MP_STATE, r: %i", TEST_ASSERT 1056 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_REGS, r: %i", TEST_ASSERT 1060 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_XSAVE, r: %i", TEST_ASSERT 1065 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_XCRS, r: %i", TEST_ASSERT 1070 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_SREGS, r: %i", TEST_ASSERT 1076 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_NESTED_STATE, r: %i", TEST_ASSERT 1078 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(state->nested.size <= nested_size, TEST_ASSERT 1088 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == nmsrs, "Unexpected result from KVM_GET_MSRS, r: %i (failed MSR was 0x%x)", TEST_ASSERT 1092 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_DEBUGREGS, r: %i", TEST_ASSERT 1105 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_XSAVE, r: %i", TEST_ASSERT 1110 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_XCRS, r: %i", TEST_ASSERT 1115 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_SREGS, r: %i", TEST_ASSERT 1119 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == state->msrs.nmsrs, "Unexpected result from KVM_SET_MSRS, r: %i (failed at %x)", TEST_ASSERT 1123 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_VCPU_EVENTS, r: %i", TEST_ASSERT 1127 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_MP_STATE, r: %i", TEST_ASSERT 1131 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_DEBUGREGS, r: %i", TEST_ASSERT 1135 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_REGS, r: %i", TEST_ASSERT 1140 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_NESTED_STATE, r: %i", TEST_ASSERT 58 tools/testing/selftests/kvm/lib/x86_64/vmx.c TEST_ASSERT(((evmcs_ver >> 8) >= (evmcs_ver & 0xff)) && TEST_ASSERT 398 tools/testing/selftests/kvm/lib/x86_64/vmx.c TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " TEST_ASSERT 401 tools/testing/selftests/kvm/lib/x86_64/vmx.c TEST_ASSERT((nested_paddr % vm->page_size) == 0, TEST_ASSERT 405 tools/testing/selftests/kvm/lib/x86_64/vmx.c TEST_ASSERT((nested_paddr >> vm->page_shift) <= vm->max_gfn, TEST_ASSERT 409 tools/testing/selftests/kvm/lib/x86_64/vmx.c TEST_ASSERT((paddr % vm->page_size) == 0, TEST_ASSERT 413 tools/testing/selftests/kvm/lib/x86_64/vmx.c TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, TEST_ASSERT 498 tools/testing/selftests/kvm/lib/x86_64/vmx.c TEST_ASSERT(nested_paddr + size > nested_paddr, "Vaddr overflow"); TEST_ASSERT 499 tools/testing/selftests/kvm/lib/x86_64/vmx.c TEST_ASSERT(paddr + size > paddr, "Paddr overflow"); TEST_ASSERT 67 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, TEST_ASSERT 83 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(!memcmp(mem1, mem2, maxsize), TEST_ASSERT 94 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == E2BIG, "ioctl allows insane sizes"); TEST_ASSERT 104 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && (errno == EINVAL || errno == ENOMEM), TEST_ASSERT 115 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == EINVAL, "ioctl allows all flags"); TEST_ASSERT 125 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == EINVAL, "ioctl allows bad operations"); TEST_ASSERT 135 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv > 0, "ioctl does not report bad guest memory access"); TEST_ASSERT 145 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == EFAULT, TEST_ASSERT 159 tools/testing/selftests/kvm/s390x/memop.c TEST_ASSERT(rv == -1 && errno == EINVAL, "ioctl allows ARs > 15"); TEST_ASSERT 37 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(left->reg == right->reg, \ TEST_ASSERT 91 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, TEST_ASSERT 98 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, TEST_ASSERT 106 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, TEST_ASSERT 113 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, TEST_ASSERT 121 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); TEST_ASSERT 122 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, TEST_ASSERT 126 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(run->s390_sieic.icptcode == 4 && TEST_ASSERT 146 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); TEST_ASSERT 147 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, TEST_ASSERT 151 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(run->s.regs.gprs[11] == 0xBAD1DEA + 1, TEST_ASSERT 154 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(run->s.regs.acrs[0] == 1 << 11, TEST_ASSERT 171 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); TEST_ASSERT 172 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, TEST_ASSERT 176 tools/testing/selftests/kvm/s390x/sync_regs_test.c TEST_ASSERT(run->s.regs.gprs[11] != 0xDEADBEEF, TEST_ASSERT 90 tools/testing/selftests/kvm/x86_64/cr4_cpuid_sync_test.c TEST_ASSERT(rc == 0, "vcpu_run failed: %d\n", rc); TEST_ASSERT 91 tools/testing/selftests/kvm/x86_64/cr4_cpuid_sync_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 104 tools/testing/selftests/kvm/x86_64/cr4_cpuid_sync_test.c TEST_ASSERT(false, "Guest CR4 bit (OSXSAVE) unsynchronized with CPUID bit."); TEST_ASSERT 109 tools/testing/selftests/kvm/x86_64/cr4_cpuid_sync_test.c TEST_ASSERT(false, "Unknown ucall 0x%x.", uc.cmd); TEST_ASSERT 105 tools/testing/selftests/kvm/x86_64/evmcs_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 112 tools/testing/selftests/kvm/x86_64/evmcs_test.c TEST_ASSERT(false, "%s at %s:%d", (const char *)uc.args[0], TEST_ASSERT 120 tools/testing/selftests/kvm/x86_64/evmcs_test.c TEST_ASSERT(false, "Unknown ucall 0x%x.", uc.cmd); TEST_ASSERT 124 tools/testing/selftests/kvm/x86_64/evmcs_test.c TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") && TEST_ASSERT 145 tools/testing/selftests/kvm/x86_64/evmcs_test.c TEST_ASSERT(!memcmp(®s1, ®s2, sizeof(regs2)), TEST_ASSERT 54 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c TEST_ASSERT(hv_cpuid_entries->nent == 6, TEST_ASSERT 59 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c TEST_ASSERT(hv_cpuid_entries->nent == 7, TEST_ASSERT 67 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c TEST_ASSERT((entry->function >= 0x40000000) && TEST_ASSERT 72 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c TEST_ASSERT(entry->index == 0, TEST_ASSERT 75 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c TEST_ASSERT(entry->flags == 0, TEST_ASSERT 78 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c TEST_ASSERT(!entry->padding[0] && !entry->padding[1] && TEST_ASSERT 84 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c TEST_ASSERT(nononarchcs == !smt_possible(), TEST_ASSERT 107 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c TEST_ASSERT(ret == -1 && errno == E2BIG, TEST_ASSERT 61 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c TEST_ASSERT(kvm != -1, "failed to open /dev/kvm"); TEST_ASSERT 63 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c TEST_ASSERT(kvmvm != -1, "KVM_CREATE_VM failed"); TEST_ASSERT 65 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c TEST_ASSERT(kvmcpu != -1, "KVM_CREATE_VCPU failed"); TEST_ASSERT 122 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c TEST_ASSERT(warnings_before == warnings_after, TEST_ASSERT 55 tools/testing/selftests/kvm/x86_64/platform_info_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 60 tools/testing/selftests/kvm/x86_64/platform_info_test.c TEST_ASSERT(uc.cmd == UCALL_SYNC, TEST_ASSERT 63 tools/testing/selftests/kvm/x86_64/platform_info_test.c TEST_ASSERT((uc.args[1] & MSR_PLATFORM_INFO_MAX_TURBO_RATIO) == TEST_ASSERT 75 tools/testing/selftests/kvm/x86_64/platform_info_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN, TEST_ASSERT 42 tools/testing/selftests/kvm/x86_64/set_sregs_test.c TEST_ASSERT(rc, "Set IA32_APIC_BASE to %llx (invalid)", TEST_ASSERT 46 tools/testing/selftests/kvm/x86_64/set_sregs_test.c TEST_ASSERT(!rc, "Couldn't set IA32_APIC_BASE to %llx (valid)", TEST_ASSERT 107 tools/testing/selftests/kvm/x86_64/smm_test.c TEST_ASSERT(vm_phy_pages_alloc(vm, SMRAM_PAGES, SMRAM_GPA, SMRAM_MEMSLOT) TEST_ASSERT 126 tools/testing/selftests/kvm/x86_64/smm_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 139 tools/testing/selftests/kvm/x86_64/smm_test.c TEST_ASSERT(stage_reported == stage || TEST_ASSERT 148 tools/testing/selftests/kvm/x86_64/state_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 155 tools/testing/selftests/kvm/x86_64/state_test.c TEST_ASSERT(false, "%s at %s:%d", (const char *)uc.args[0], TEST_ASSERT 163 tools/testing/selftests/kvm/x86_64/state_test.c TEST_ASSERT(false, "Unknown ucall 0x%x.", uc.cmd); TEST_ASSERT 167 tools/testing/selftests/kvm/x86_64/state_test.c TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") && TEST_ASSERT 187 tools/testing/selftests/kvm/x86_64/state_test.c TEST_ASSERT(!memcmp(®s1, ®s2, sizeof(regs2)), TEST_ASSERT 43 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(left->reg == right->reg, \ TEST_ASSERT 110 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, TEST_ASSERT 117 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, TEST_ASSERT 125 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, TEST_ASSERT 132 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(rv < 0 && errno == EINVAL, TEST_ASSERT 141 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 163 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 167 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->s.regs.regs.rbx == 0xBAD1DEA + 1, TEST_ASSERT 170 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, TEST_ASSERT 190 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 194 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->s.regs.regs.rbx != 0xDEADBEEF, TEST_ASSERT 208 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 212 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->s.regs.regs.rbx == 0xAAAA, TEST_ASSERT 216 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(regs.rbx == 0xBAC0 + 1, TEST_ASSERT 228 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 232 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(run->s.regs.regs.rbx == 0xBBBB, TEST_ASSERT 236 tools/testing/selftests/kvm/x86_64/sync_regs_test.c TEST_ASSERT(regs.rbx == 0xBBBB + 1, TEST_ASSERT 71 tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 81 tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c TEST_ASSERT(false, "%s", (const char *)uc.args[0]); TEST_ASSERT 84 tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c TEST_ASSERT(false, "Unknown ucall 0x%x.", uc.cmd); TEST_ASSERT 122 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 129 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(false, "%s at %s:%d", (const char *)uc.args[0], TEST_ASSERT 139 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean\n"); TEST_ASSERT 140 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(host_test_mem[0] == 1, "Page 0 not written by guest\n"); TEST_ASSERT 142 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty\n"); TEST_ASSERT 143 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(host_test_mem[0] == 0xaaaaaaaaaaaaaaaaULL, "Page 0 written by guest\n"); TEST_ASSERT 146 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty\n"); TEST_ASSERT 147 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(host_test_mem[4096 / 8] == 0xaaaaaaaaaaaaaaaaULL, "Page 1 written by guest\n"); TEST_ASSERT 148 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty\n"); TEST_ASSERT 149 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(host_test_mem[8192 / 8] == 0xaaaaaaaaaaaaaaaaULL, "Page 2 written by guest\n"); TEST_ASSERT 155 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c TEST_ASSERT(false, "Unknown ucall 0x%x.", uc.cmd); TEST_ASSERT 42 tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c TEST_ASSERT(rv == -1 && errno == expected_errno, TEST_ASSERT 214 tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c TEST_ASSERT(state->size >= sizeof(*state) && state->size <= state_sz, TEST_ASSERT 217 tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c TEST_ASSERT(state->hdr.vmx.vmxon_pa == -1ull, "vmxon_pa must be -1ull."); TEST_ASSERT 218 tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c TEST_ASSERT(state->hdr.vmx.vmcs12_pa == -1ull, "vmcs_pa must be -1ull."); TEST_ASSERT 146 tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, TEST_ASSERT 153 tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c TEST_ASSERT(false, "%s", (const char *)uc.args[0]); TEST_ASSERT 161 tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c TEST_ASSERT(false, "Unknown ucall 0x%x.", uc.cmd);