/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | userspace_msr_exit_test.c | 538 rc = kvm_check_cap(KVM_CAP_X86_USER_SPACE_MSR); in test_msr_filter_allow() 542 rc = kvm_check_cap(KVM_CAP_X86_MSR_FILTER); in test_msr_filter_allow() 659 rc = kvm_check_cap(KVM_CAP_X86_USER_SPACE_MSR); in test_msr_filter_deny() 665 rc = kvm_check_cap(KVM_CAP_X86_MSR_FILTER); in test_msr_filter_deny() 704 rc = kvm_check_cap(KVM_CAP_X86_USER_SPACE_MSR); in test_msr_permission_bitmap() 708 rc = kvm_check_cap(KVM_CAP_X86_MSR_FILTER); in test_msr_permission_bitmap() 741 rc = kvm_check_cap(KVM_CAP_X86_USER_SPACE_MSR); in run_user_space_msr_flag_test() 769 rc = kvm_check_cap(KVM_CAP_X86_MSR_FILTER); in run_msr_filter_flag_test()
|
H A D | smaller_maxphyaddr_emulation_test.c | 68 rc = kvm_check_cap(KVM_CAP_EXIT_ON_EMULATION_FAILURE); in main()
|
H A D | fix_hypercall_test.c | 131 TEST_REQUIRE(kvm_check_cap(KVM_CAP_DISABLE_QUIRKS2) & KVM_X86_QUIRK_FIX_HYPERCALL_INSN); in main()
|
H A D | xen_vmcall_test.c | 87 xen_caps = kvm_check_cap(KVM_CAP_XEN_HVM); in main()
|
H A D | kvm_clock_test.c | 179 flags = kvm_check_cap(KVM_CAP_ADJUST_CLOCK); in main()
|
H A D | dirty_log_page_splitting_test.c | 248 kvm_check_cap(KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2); in main()
|
H A D | ucna_injection_test.c | 272 kvm_check_cap(KVM_CAP_MCE); in main()
|
H A D | vmx_set_nested_state_test.c | 252 have_evmcs = kvm_check_cap(KVM_CAP_HYPERV_ENLIGHTENED_VMCS); in main()
|
H A D | sync_regs_test.c | 221 cap = kvm_check_cap(KVM_CAP_SYNC_REGS); in main()
|
H A D | pmu_event_filter_test.c | 383 r = kvm_check_cap(KVM_CAP_PMU_CAPABILITY); in test_pmu_config_disable()
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | kvm_create_max_vcpus.c | 42 int kvm_max_vcpu_id = kvm_check_cap(KVM_CAP_MAX_VCPU_ID); in main() 43 int kvm_max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main()
|
H A D | dirty_log_perf_test.c | 342 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() 355 kvm_check_cap(KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2); in main()
|
H A D | memslot_modification_stress_test.c | 139 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main()
|
H A D | demand_paging_test.c | 232 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main()
|
H A D | max_guest_memory_test.c | 185 max_slots = kvm_check_cap(KVM_CAP_NR_MEMSLOTS); in main()
|
H A D | set_memory_region_test.c | 349 max_mem_slots = kvm_check_cap(KVM_CAP_NR_MEMSLOTS); in test_add_max_memory_regions()
|
H A D | kvm_page_table_test.c | 441 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main()
|
H A D | dirty_log_test.c | 224 manual_caps = kvm_check_cap(KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2); in clear_log_create_vm_done()
|
H A D | memslot_perf_test.c | 1006 max_mem_slots = kvm_check_cap(KVM_CAP_NR_MEMSLOTS); in parse_args()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | guest_modes.c | 20 unsigned int limit = kvm_check_cap(KVM_CAP_ARM_VM_IPA_SIZE); in guest_modes_append_default() 80 unsigned int sz = kvm_check_cap(KVM_CAP_VM_GPA_BITS); in guest_modes_append_default()
|
H A D | kvm_util.c | 114 unsigned int kvm_check_cap(long cap) in kvm_check_cap() function 321 TEST_ASSERT(nr_runnable_vcpus <= kvm_check_cap(KVM_CAP_MAX_VCPUS), in vm_nr_pages_required() 323 nr_runnable_vcpus, kvm_check_cap(KVM_CAP_MAX_VCPUS)); in vm_nr_pages_required()
|
/openbmc/linux/tools/testing/selftests/kvm/s390x/ |
H A D | resets.c | 296 bool has_s390_vcpu_resets = kvm_check_cap(KVM_CAP_S390_VCPU_RESETS); in main()
|
H A D | memop.c | 250 t.size = min((size_t)kvm_check_cap(KVM_CAP_S390_MEM_OP), sizeof(mem1)); in test_default_init() 1057 extension_cap = kvm_check_cap(KVM_CAP_S390_MEM_OP_EXTENSION); in main()
|
/openbmc/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | vgic_irq.c | 751 .kvm_max_routes = kvm_check_cap(KVM_CAP_IRQ_ROUTING), in test_vgic() 752 .kvm_supports_irqfd = kvm_check_cap(KVM_CAP_IRQFD), in test_vgic()
|
/openbmc/linux/tools/testing/selftests/kvm/include/ |
H A D | kvm_util_base.h | 241 unsigned int kvm_check_cap(long cap); 245 return kvm_check_cap(cap); in kvm_has_cap()
|