linux/Documentation/virtual/kvm
Alex Williamson 3d27e23b17 KVM: Device assignment permission checks
Only allow KVM device assignment to attach to devices which:

 - Are not bridges
 - Have BAR resources (assume others are special devices)
 - The user has permissions to use

Assigning a bridge is a configuration error, it's not supported, and
typically doesn't result in the behavior the user is expecting anyway.
Devices without BAR resources are typically chipset components that
also don't have host drivers.  We don't want users to hold such devices
captive or cause system problems by fencing them off into an iommu
domain.  We determine "permission to use" by testing whether the user
has access to the PCI sysfs resource files.  By default a normal user
will not have access to these files, so it provides a good indication
that an administration agent has granted the user access to the device.

[Yang Bai: add missing #include]
[avi: fix comment style]

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Yang Bai <hamo.by@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2011-12-25 19:03:54 +02:00
..
api.txt KVM: Device assignment permission checks 2011-12-25 19:03:54 +02:00
cpuid.txt
locking.txt
mmu.txt KVM: MMU: Adjust shadow paging to work when SMEP=1 and CR0.WP=0 2011-07-12 13:16:26 +03:00
msr.txt KVM: KVM Steal time guest/host interface 2011-07-12 13:17:03 +03:00
nested-vmx.txt KVM: nVMX: Documentation 2011-07-12 13:15:22 +03:00
ppc-pv.txt KVM: PPC: e500: enable magic page 2011-07-12 13:16:37 +03:00
review-checklist.txt Correct occurrences of 2011-05-06 09:27:55 -07:00
timekeeping.txt