aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/kvm_util.c (follow)
AgeCommit message (Expand)AuthorFilesLines
2022-06-11KVM: selftests: Move vm_is_unrestricted_guest() to x86-64Sean Christopherson1-33/+0
2022-06-11KVM: selftests: Return the created vCPU from vm_vcpu_add()Sean Christopherson1-18/+9
2022-06-11KVM: selftests: Rename 'struct vcpu' to 'struct kvm_vcpu'Sean Christopherson1-19/+17
2022-06-11KVM: selftests: Rename vcpu.state => vcpu.runSean Christopherson1-15/+9
2022-06-11KVM: selftests: Make vm_create() a wrapper that specifies VM_MODE_DEFAULTSean Christopherson1-8/+8
2022-06-11KVM: selftests: Rename vm_create_without_vcpus() => vm_create()Sean Christopherson1-2/+2
2022-06-11KVM: selftests: Rename vm_create() => vm_create_barebones(), drop paramSean Christopherson1-25/+4
2022-06-11KVM: selftests: Push vm_adjust_num_guest_pages() into "w/o vCPUs" helperSean Christopherson1-2/+2
2022-06-11KVM: selftests: Add vm_create_*() variants to expose/return 'struct vcpu'Sean Christopherson1-0/+18
2022-06-11KVM: selftests: Simplify KVM_ENABLE_CAP helper APIsSean Christopherson1-5/+1
2022-06-11KVM: selftests: Add a VM backpointer to 'struct vcpu'Sean Christopherson1-0/+1
2022-06-11KVM: selftests: Split get/set device_attr helpersSean Christopherson1-30/+28
2022-06-11KVM: selftests: Drop 'int' return from asserting *_has_device_attr()Sean Christopherson1-17/+0
2022-06-11KVM: selftests: Rename KVM_HAS_DEVICE_ATTR helpers for consistencySean Christopherson1-6/+6
2022-06-11KVM: selftests: Multiplex return code and fd in __kvm_create_device()Sean Christopherson1-9/+7
2022-06-11KVM: selftests: Move KVM_CREATE_DEVICE_TEST code to separate helperSean Christopherson1-6/+17
2022-06-11KVM: selftests: Drop @test param from kvm_create_device()Sean Christopherson1-8/+4
2022-06-11KVM: selftests: Get rid of kvm_util_internal.hSean Christopherson1-1/+0
2022-06-11KVM: selftests: Use __KVM_SYSCALL_ERROR() to handle non-KVM syscall errorsSean Christopherson1-20/+14
2022-06-11KVM: selftests: Use kvm_ioctl() helpersSean Christopherson1-8/+5
2022-06-11KVM: selftests: Make kvm_ioctl() a wrapper to pretty print ioctl nameSean Christopherson1-26/+5
2022-06-11KVM: sefltests: Use vm_ioctl() and __vm_ioctl() helpersSean Christopherson1-104/+12
2022-06-11KVM: selftests: Make vm_ioctl() a wrapper to pretty print ioctl nameSean Christopherson1-20/+6
2022-06-11KVM: selftests: Add vcpu_get() to retrieve and assert on vCPU existenceSean Christopherson1-40/+16
2022-06-11KVM: selftests: Remove vcpu_get_fd()Sean Christopherson1-9/+0
2022-06-11KVM: selftests: Add __vcpu_run() helperSean Christopherson1-4/+2
2022-06-11KVM: sefltests: Use vcpu_ioctl() and __vcpu_ioctl() helpersSean Christopherson1-284/+2
2022-06-11KVM: selftests: Split vcpu_set_nested_state() into two helpersSean Christopherson1-10/+10
2022-06-11KVM: selftests: Drop @mode from common vm_create() helperSean Christopherson1-20/+22
2022-06-11KVM: selftests: Make vcpu_ioctl() a wrapper to pretty print ioctl nameSean Christopherson1-23/+8
2022-06-11KVM: selftests: Add another underscore to inner ioctl() helpersSean Christopherson1-12/+12
2022-06-11KVM: selftests: Always open VM file descriptors with O_RDWRSean Christopherson1-11/+9
2022-03-08KVM: selftests: Split out helper to allocate guest mem via memfdSean Christopherson1-18/+24
2022-03-08KVM: selftests: Move raw KVM_SET_USER_MEMORY_REGION helper to utilsSean Christopherson1-0/+24
2022-02-25KVM: selftests: Carve out helper to create "default" VM without vCPUsDavid Dunn1-6/+15
2022-01-26selftests: kvm: move vm_xsave_req_perm call to amx_testPaolo Bonzini1-7/+0
2022-01-19kvm: selftests: Do not indent with spacesPaolo Bonzini1-3/+5
2022-01-19kvm: selftests: conditionally build vm_xsave_req_perm()Wei Wang1-0/+2
2022-01-14kvm: selftests: Add support for KVM_CAP_XSAVE2Wei Wang1-0/+32
2022-01-07Merge tag 'kvmarm-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEADPaolo Bonzini1-0/+94
2022-01-04Merge branch kvm-arm64/selftest/irq-injection into kvmarm-master/nextMarc Zyngier1-0/+72
2021-12-28KVM: selftests: Add IRQ GSI routing library functionsRicardo Koller1-0/+51
2021-12-28KVM: selftests: Add kvm_irq_line library functionRicardo Koller1-0/+21
2021-12-28KVM: selftests: arm64: Add support for various modes with 16kB page sizeMarc Zyngier1-0/+16
2021-12-28KVM: selftests: arm64: Add support for VM_MODE_P36V48_{4K,64K}Marc Zyngier1-0/+6
2021-12-20selftests: KVM: Fix non-x86 compilingAndrew Jones1-0/+5
2021-12-10selftests: KVM: avoid failures due to reserved HyperTransport regionPaolo Bonzini1-1/+1
2021-11-16Merge branch 'kvm-selftest' into kvm-masterPaolo Bonzini1-20/+24
2021-11-16KVM: selftests: Require GPA to be aligned when backed by hugepagesSean Christopherson1-0/+2
2021-11-16KVM: selftests: Assert mmap HVA is aligned when using HugeTLBSean Christopherson1-0/+11