aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/include/kvm_util_base.h
AgeCommit message (Expand)AuthorFilesLines
2022-09-30KVM: selftests: Add helpers to read kvm_{intel,amd} boolean module parametersGravatar David Matlack 1-0/+4
2022-07-13KVM: selftests: Cache CPUID in struct kvm_vcpuGravatar Sean Christopherson 1-0/+5
2022-07-13KVM: selftests: Set KVM's supported CPUID as vCPU's CPUID during recreateGravatar Sean Christopherson 1-0/+9
2022-06-24KVM: selftests: Cache binary stats metadata for duration of testGravatar Ben Gardon 1-0/+5
2022-06-24KVM: selftests: Test disabling NX hugepages on a VMGravatar Ben Gardon 1-0/+6
2022-06-24KVM: selftests: Add NX huge pages testGravatar Ben Gardon 1-0/+11
2022-06-24KVM: selftests: Read binary stat data in libGravatar Ben Gardon 1-0/+4
2022-06-24KVM: selftests: Read binary stats desc in libGravatar Ben Gardon 1-0/+25
2022-06-24KVM: selftests: Read binary stats header in libGravatar Ben Gardon 1-0/+8
2022-06-14KVM: selftests: Call a dummy helper in VM/vCPU ioctls() to enforce typeGravatar Sean Christopherson 1-26/+31
2022-06-11KVM: selftests: Sanity check input to ioctls() at build timeGravatar Sean Christopherson 1-16/+43
2022-06-11KVM: selftests: Add kvm_has_cap() to provide syntactic sugarGravatar Sean Christopherson 1-0/+5
2022-06-11KVM: selftests: Return an 'unsigned int' from kvm_check_cap()Gravatar Sean Christopherson 1-1/+1
2022-06-11KVM: selftests: Drop DEFAULT_GUEST_PHY_PAGES, open code the magic numberGravatar Sean Christopherson 1-1/+0
2022-06-11KVM: selftests: Move per-VM/per-vCPU nr pages calculation to __vm_create()Gravatar Sean Christopherson 1-3/+6
2022-06-11KVM: selftests: Drop @num_percpu_pages from __vm_create_with_vcpus()Gravatar Sean Christopherson 1-2/+2
2022-06-11KVM: selftests: Drop @slot0_mem_pages from __vm_create_with_vcpus()Gravatar Sean Christopherson 1-6/+3
2022-06-11KVM: selftests: Open code and drop 'struct kvm_vm' accessorsGravatar Sean Christopherson 1-6/+0
2022-06-11KVM: selftests: Remove vcpu_state() helperGravatar Sean Christopherson 1-1/+0
2022-06-11KVM: selftests: Drop vcpu_get(), rename vcpu_find() => vcpu_exists()Gravatar Sean Christopherson 1-2/+0
2022-06-11KVM: selftests: Purge vm+vcpu_id == vcpu sillinessGravatar Sean Christopherson 1-114/+102
2022-06-11KVM: selftests: Drop @vcpuids param from VM creatorsGravatar Sean Christopherson 1-2/+2
2022-06-11KVM: selftests: Drop vm_create_default* helpersGravatar Sean Christopherson 1-23/+0
2022-06-11KVM: selftests: Consolidate KVM_{G,S}ET_ONE_REG helpersGravatar Sean Christopherson 1-4/+24
2022-06-11KVM: selftests: Add VM creation helper that "returns" vCPUsGravatar Sean Christopherson 1-4/+13
2022-06-11KVM: selftests: Rename vm_vcpu_add* helpers to better show relationshipsGravatar Sean Christopherson 1-4/+3
2022-06-11KVM: selftests: Return created vcpu from vm_vcpu_add_default()Gravatar Sean Christopherson 1-4/+6
2022-06-11KVM: selftests: Add "arch" to common utils that have arch implementationsGravatar Sean Christopherson 1-83/+117
2022-06-11KVM: selftests: Move vm_is_unrestricted_guest() to x86-64Gravatar Sean Christopherson 1-2/+0
2022-06-11KVM: selftests: Make arm64's guest_get_vcpuid() declaration arm64-onlyGravatar Sean Christopherson 1-2/+0
2022-06-11KVM: selftests: Return the created vCPU from vm_vcpu_add()Gravatar Sean Christopherson 1-1/+1
2022-06-11KVM: selftests: Rename 'struct vcpu' to 'struct kvm_vcpu'Gravatar Sean Christopherson 1-5/+6
2022-06-11KVM: selftests: Rename vcpu.state => vcpu.runGravatar Sean Christopherson 1-1/+1
2022-06-11KVM: selftests: Make vm_create() a wrapper that specifies VM_MODE_DEFAULTGravatar Sean Christopherson 1-5/+13
2022-06-11KVM: selftests: Rename vm_create_without_vcpus() => vm_create()Gravatar Sean Christopherson 1-1/+1
2022-06-11KVM: selftests: Rename vm_create() => vm_create_barebones(), drop paramGravatar Sean Christopherson 1-1/+5
2022-06-11KVM: selftests: Add vm_create_*() variants to expose/return 'struct vcpu'Gravatar Sean Christopherson 1-0/+16
2022-06-11KVM: selftests: Rename MP_STATE and GUEST_DEBUG helpers for consistencyGravatar Sean Christopherson 1-2/+7
2022-06-11KVM: selftests: Simplify KVM_ENABLE_CAP helper APIsGravatar Sean Christopherson 1-6/+12
2022-06-11KVM: selftests: Consolidate KVM_ENABLE_CAP usageGravatar Sean Christopherson 1-0/+4
2022-06-11KVM: selftests: Add a VM backpointer to 'struct vcpu'Gravatar Sean Christopherson 1-0/+1
2022-06-11KVM: selftests: Split get/set device_attr helpersGravatar Sean Christopherson 1-32/+59
2022-06-11KVM: selftests: Drop 'int' return from asserting *_has_device_attr()Gravatar Sean Christopherson 1-3/+17
2022-06-11KVM: selftests: Rename KVM_HAS_DEVICE_ATTR helpers for consistencyGravatar Sean Christopherson 1-3/+3
2022-06-11KVM: selftests: Multiplex return code and fd in __kvm_create_device()Gravatar Sean Christopherson 1-1/+1
2022-06-11KVM: selftests: Move KVM_CREATE_DEVICE_TEST code to separate helperGravatar Sean Christopherson 1-1/+2
2022-06-11KVM: selftests: Drop @test param from kvm_create_device()Gravatar Sean Christopherson 1-1/+1
2022-06-11KVM: selftests: Get rid of kvm_util_internal.hGravatar Sean Christopherson 1-7/+90
2022-06-11KVM: selftests: Make kvm_ioctl() a wrapper to pretty print ioctl nameGravatar Sean Christopherson 1-2/+14
2022-06-11KVM: sefltests: Use vm_ioctl() and __vm_ioctl() helpersGravatar Sean Christopherson 1-10/+50