cregit-Linux how code gets into the kernel

Release 4.11 arch/x86/kvm/assigned-dev.h

Directory: arch/x86/kvm
#ifndef ARCH_X86_KVM_ASSIGNED_DEV_H

#define ARCH_X86_KVM_ASSIGNED_DEV_H

#include <linux/kvm_host.h>

#ifdef CONFIG_KVM_DEVICE_ASSIGNMENT
int kvm_assign_device(struct kvm *kvm, struct pci_dev *pdev);
int kvm_deassign_device(struct kvm *kvm, struct pci_dev *pdev);

int kvm_iommu_map_guest(struct kvm *kvm);
int kvm_iommu_unmap_guest(struct kvm *kvm);

long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
				  unsigned long arg);

void kvm_free_all_assigned_devices(struct kvm *kvm);
#else

static inline int kvm_iommu_unmap_guest(struct kvm *kvm) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Paolo Bonzini15100.00%1100.00%
Total15100.00%1100.00%


static inline long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl, unsigned long arg) { return -ENOTTY; }

Contributors

PersonTokensPropCommitsCommitProp
Paolo Bonzini23100.00%1100.00%
Total23100.00%1100.00%


static inline void kvm_free_all_assigned_devices(struct kvm *kvm) {}

Contributors

PersonTokensPropCommitsCommitProp
Paolo Bonzini11100.00%1100.00%
Total11100.00%1100.00%

#endif /* CONFIG_KVM_DEVICE_ASSIGNMENT */ #endif /* ARCH_X86_KVM_ASSIGNED_DEV_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Paolo Bonzini140100.00%1100.00%
Total140100.00%1100.00%
Directory: arch/x86/kvm
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.