summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib
AgeCommit message (Expand)AuthorLines
2022-06-11KVM: selftests: Add "arch" to common utils that have arch implementationsSean Christopherson-24/+24
2022-06-11KVM: selftests: Move vm_is_unrestricted_guest() to x86-64Sean Christopherson-33/+21
2022-06-11KVM: selftests: Convert vgic_irq away from VCPU_IDSean Christopherson-5/+5
2022-06-11KVM: selftests: Return the created vCPU from vm_vcpu_add()Sean Christopherson-18/+9
2022-06-11KVM: selftests: Rename 'struct vcpu' to 'struct kvm_vcpu'Sean Christopherson-20/+18
2022-06-11KVM: selftests: Rename vcpu.state => vcpu.runSean Christopherson-16/+10
2022-06-11KVM: selftests: Make vm_create() a wrapper that specifies VM_MODE_DEFAULTSean Christopherson-8/+8
2022-06-11KVM: selftests: Rename vm_create_without_vcpus() => vm_create()Sean Christopherson-2/+2
2022-06-11KVM: selftests: Rename vm_create() => vm_create_barebones(), drop paramSean Christopherson-25/+4
2022-06-11KVM: selftests: Push vm_adjust_num_guest_pages() into "w/o vCPUs" helperSean Christopherson-2/+2
2022-06-11KVM: selftests: Add vm_create_*() variants to expose/return 'struct vcpu'Sean Christopherson-0/+18
2022-06-11KVM: selftest: Add proper helpers for x86-specific save/restore ioctlsSean Christopherson-91/+39
2022-06-11KVM: selftests: Rename MP_STATE and GUEST_DEBUG helpers for consistencySean Christopherson-1/+1
2022-06-11KVM: selftests: Dedup MSR index list helpers, simplify dedicated testSean Christopherson-8/+31
2022-06-11KVM: selftests: Cache list of MSRs to save/restoreSean Christopherson-45/+36
2022-06-11KVM: selftests: Simplify KVM_ENABLE_CAP helper APIsSean Christopherson-11/+3
2022-06-11KVM: selftests: Consolidate KVM_ENABLE_CAP usageSean Christopherson-1/+1
2022-06-11KVM: selftests: Add a VM backpointer to 'struct vcpu'Sean Christopherson-0/+1
2022-06-11KVM: selftests: Split get/set device_attr helpersSean Christopherson-48/+45
2022-06-11KVM: selftests: Drop 'int' return from asserting *_has_device_attr()Sean Christopherson-17/+0
2022-06-11KVM: selftests: Rename KVM_HAS_DEVICE_ATTR helpers for consistencySean Christopherson-6/+6
2022-06-11KVM: selftests: Multiplex return code and fd in __kvm_create_device()Sean Christopherson-11/+10
2022-06-11KVM: selftests: Move KVM_CREATE_DEVICE_TEST code to separate helperSean Christopherson-8/+18
2022-06-11KVM: selftests: Drop @test param from kvm_create_device()Sean Christopherson-8/+4
2022-06-11KVM: selftests: Use KVM_IOCTL_ERROR() for one-off arm64 ioctlsSean Christopherson-4/+4
2022-06-11KVM: selftests: Get rid of kvm_util_internal.hSean Christopherson-106/+0
2022-06-11KVM: selftests: Make x86-64's register dump helpers staticSean Christopherson-68/+2
2022-06-11KVM: selftests: Use __KVM_SYSCALL_ERROR() to handle non-KVM syscall errorsSean Christopherson-20/+14
2022-06-11KVM: selftests: Use kvm_ioctl() helpersSean Christopherson-34/+19
2022-06-11KVM: selftests: Make kvm_ioctl() a wrapper to pretty print ioctl nameSean Christopherson-26/+5
2022-06-11KVM: sefltests: Use vm_ioctl() and __vm_ioctl() helpersSean Christopherson-108/+14
2022-06-11KVM: selftests: Make vm_ioctl() a wrapper to pretty print ioctl nameSean Christopherson-20/+6
2022-06-11KVM: selftests: Add vcpu_get() to retrieve and assert on vCPU existenceSean Christopherson-47/+20
2022-06-11KVM: selftests: Remove vcpu_get_fd()Sean Christopherson-9/+0
2022-06-11KVM: selftests: Add __vcpu_run() helperSean Christopherson-4/+2
2022-06-11KVM: sefltests: Use vcpu_ioctl() and __vcpu_ioctl() helpersSean Christopherson-390/+8
2022-06-11KVM: selftests: Split vcpu_set_nested_state() into two helpersSean Christopherson-10/+10
2022-06-11KVM: selftests: Drop @mode from common vm_create() helperSean Christopherson-20/+22
2022-06-11KVM: selftests: Make vcpu_ioctl() a wrapper to pretty print ioctl nameSean Christopherson-23/+8
2022-06-11KVM: selftests: Add another underscore to inner ioctl() helpersSean Christopherson-13/+13
2022-06-11KVM: selftests: Always open VM file descriptors with O_RDWRSean Christopherson-11/+9
2022-06-09Merge branch 'kvm-5.20-early'Paolo Bonzini-5/+5
2022-06-09KVM: selftests: Restrict test region to 48-bit physical addresses when using ...David Matlack-3/+15
2022-06-09KVM: selftests: Add option to run dirty_log_perf_test vCPUs in L2David Matlack-5/+157
2022-06-09KVM: selftests: Add a helper to check EPT/VPID capabilitiesDavid Matlack-1/+6
2022-06-09KVM: selftests: Refactor nested_map() to specify target levelDavid Matlack-4/+12
2022-06-09KVM: selftests: Drop stale function parameter comment for nested_map()David Matlack-1/+0
2022-06-09KVM: selftests: Add option to create 2M and 1G EPT mappingsDavid Matlack-50/+60
2022-06-09KVM: selftests: Replace x86_page_size with PG_LEVEL_XXDavid Matlack-16/+15
2022-06-08selftests: kvm: replace ternary operator with min()Guo Zhengkui-5/+5