Home
last modified time | relevance | path

Searched refs:kvm_check_cap (Results 1 – 25 of 27) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Duserspace_msr_exit_test.c538 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 Dsmaller_maxphyaddr_emulation_test.c68 rc = kvm_check_cap(KVM_CAP_EXIT_ON_EMULATION_FAILURE); in main()
H A Dfix_hypercall_test.c131 TEST_REQUIRE(kvm_check_cap(KVM_CAP_DISABLE_QUIRKS2) & KVM_X86_QUIRK_FIX_HYPERCALL_INSN); in main()
H A Dxen_vmcall_test.c87 xen_caps = kvm_check_cap(KVM_CAP_XEN_HVM); in main()
H A Dkvm_clock_test.c179 flags = kvm_check_cap(KVM_CAP_ADJUST_CLOCK); in main()
H A Ddirty_log_page_splitting_test.c248 kvm_check_cap(KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2); in main()
H A Ducna_injection_test.c272 kvm_check_cap(KVM_CAP_MCE); in main()
H A Dvmx_set_nested_state_test.c252 have_evmcs = kvm_check_cap(KVM_CAP_HYPERV_ENLIGHTENED_VMCS); in main()
H A Dsync_regs_test.c221 cap = kvm_check_cap(KVM_CAP_SYNC_REGS); in main()
H A Dpmu_event_filter_test.c383 r = kvm_check_cap(KVM_CAP_PMU_CAPABILITY); in test_pmu_config_disable()
/openbmc/linux/tools/testing/selftests/kvm/
H A Dkvm_create_max_vcpus.c42 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 Ddirty_log_perf_test.c342 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 Dmemslot_modification_stress_test.c139 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main()
H A Ddemand_paging_test.c232 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main()
H A Dmax_guest_memory_test.c185 max_slots = kvm_check_cap(KVM_CAP_NR_MEMSLOTS); in main()
H A Dset_memory_region_test.c349 max_mem_slots = kvm_check_cap(KVM_CAP_NR_MEMSLOTS); in test_add_max_memory_regions()
H A Dkvm_page_table_test.c441 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main()
H A Ddirty_log_test.c224 manual_caps = kvm_check_cap(KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2); in clear_log_create_vm_done()
H A Dmemslot_perf_test.c1006 max_mem_slots = kvm_check_cap(KVM_CAP_NR_MEMSLOTS); in parse_args()
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Dguest_modes.c20 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 Dkvm_util.c114 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 Dresets.c296 bool has_s390_vcpu_resets = kvm_check_cap(KVM_CAP_S390_VCPU_RESETS); in main()
H A Dmemop.c250 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 Dvgic_irq.c751 .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 Dkvm_util_base.h241 unsigned int kvm_check_cap(long cap);
245 return kvm_check_cap(cap); in kvm_has_cap()

12