Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH] vfio: whitelist pcieport
@ 2013-02-15 19:12 Alex Williamson
  0 siblings, 0 replies; only message in thread
From: Alex Williamson @ 2013-02-15 19:12 UTC (permalink / raw)
  To: alex.williamson; +Cc: linux-kernel, kvm

pcieport does nice things like manage AER and we know it doesn't do
DMA or expose any user accessible devices on the host.  It also keeps
the Memory, I/O, and Busmaster bits enabled, which is pretty handy
when trying to use anyting below it.  Devices owned by pcieport cannot
be given to users via vfio, but we can tolerate them not being owned
by vfio-pci.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---
 drivers/vfio/vfio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/vfio/vfio.c b/drivers/vfio/vfio.c
index 8e6dcec..28e2d5b 100644
--- a/drivers/vfio/vfio.c
+++ b/drivers/vfio/vfio.c
@@ -442,7 +442,7 @@ static struct vfio_device *vfio_group_get_device(struct vfio_group *group,
  * a device.  It's not always practical to leave a device within a group
  * driverless as it could get re-bound to something unsafe.
  */
-static const char * const vfio_driver_whitelist[] = { "pci-stub" };
+static const char * const vfio_driver_whitelist[] = { "pci-stub", "pcieport" };
 
 static bool vfio_whitelisted_driver(struct device_driver *drv)
 {

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-15 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-15 19:12 [PATCH] vfio: whitelist pcieport Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox