Lines Matching defs:kvm
387 void vfio_device_get_kvm_safe(struct vfio_device *device, struct kvm *kvm)
389 void (*pfn)(struct kvm *kvm);
390 bool (*fn)(struct kvm *kvm);
395 if (!kvm)
408 ret = fn(kvm);
416 device->kvm = kvm;
423 if (!device->kvm)
429 device->put_kvm(device->kvm);
434 device->kvm = NULL;
1359 static void vfio_device_file_set_kvm(struct file *file, struct kvm *kvm)
1364 * The kvm is first recorded in the vfio_device_file, and will
1365 * be propagated to vfio_device::kvm when the file is bound to
1369 df->kvm = kvm;
1374 * vfio_file_set_kvm - Link a kvm with VFIO drivers
1376 * @kvm: KVM to link
1379 * device->kvm if one was associated with the file.
1381 void vfio_file_set_kvm(struct file *file, struct kvm *kvm)
1387 vfio_group_set_kvm(group, kvm);
1390 vfio_device_file_set_kvm(file, kvm);