DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] VFIO in setup.sh
@ 2015-03-30 20:35 Stephen Hemminger
  2015-03-30 20:37 ` Stephen Hemminger
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Hemminger @ 2015-03-30 20:35 UTC (permalink / raw)
  To: Anatoly Burakov; +Cc: dev

This code around vfio in setup script looks incorrect, is anyone using it:

1. Why set the execute bit, when you want read-write?
   Looks like a bug (or worse a security hole).
	# make sure regular users can read /dev/vfio
	echo "chmod /dev/vfio"
	sudo chmod a+x /dev/vfio

3. Why depend on location of vfio module in kernel tree?
   modprobe does the right thing and finds it.

	VFIO_PATH="kernel/drivers/vfio/pci/vfio-pci.ko"

	echo "Loading VFIO module"
	/sbin/lsmod | grep -s vfio_pci > /dev/null
	if [ $? -ne 0 ] ; then
		if [ -f /lib/modules/$(uname -r)/$VFIO_PATH ] ; then
			sudo /sbin/modprobe vfio-pci
		fi
	fi

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-31 13:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30 20:35 [dpdk-dev] VFIO in setup.sh Stephen Hemminger
2015-03-30 20:37 ` Stephen Hemminger
2015-03-31  9:05   ` Burakov, Anatoly
2015-03-31  9:26     ` Andre Richter
2015-03-31  9:35       ` Burakov, Anatoly
2015-03-31 12:41         ` Andre Richter
2015-03-31 12:59           ` Burakov, Anatoly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).