diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2021-04-22 02:39:48 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-04-22 13:19:01 -0400 |
| commit | fd49e8ee70b306a003323a17bbcc0633f322c135 (patch) | |
| tree | be0e5f131ee5afdbaa7a6b5fc76bb36baad8c067 /tools/testing/selftests/kvm/lib/kvm_util.c | |
| parent | KVM: SVM: Allocate SEV command structures on local stack (diff) | |
| parent | svm/sev: Register SEV and SEV-ES ASIDs to the misc controller (diff) | |
| download | linux-fd49e8ee70b306a003323a17bbcc0633f322c135.tar.gz linux-fd49e8ee70b306a003323a17bbcc0633f322c135.zip | |
Merge branch 'kvm-sev-cgroup' into HEAD
Diffstat (limited to 'tools/testing/selftests/kvm/lib/kvm_util.c')
| -rw-r--r-- | tools/testing/selftests/kvm/lib/kvm_util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/lib/kvm_util.c b/tools/testing/selftests/kvm/lib/kvm_util.c index c7a2228deaf3..35247dba362e 100644 --- a/tools/testing/selftests/kvm/lib/kvm_util.c +++ b/tools/testing/selftests/kvm/lib/kvm_util.c @@ -1694,11 +1694,16 @@ void vm_ioctl(struct kvm_vm *vm, unsigned long cmd, void *arg) { int ret; - ret = ioctl(vm->fd, cmd, arg); + ret = _vm_ioctl(vm, cmd, arg); TEST_ASSERT(ret == 0, "vm ioctl %lu failed, rc: %i errno: %i (%s)", cmd, ret, errno, strerror(errno)); } +int _vm_ioctl(struct kvm_vm *vm, unsigned long cmd, void *arg) +{ + return ioctl(vm->fd, cmd, arg); +} + /* * KVM system ioctl * |
