Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2016 15:57:14 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        src-committers@freebsd.org
Cc:        svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r305034 - in head: lib/libdevctl sys/kern sys/sys usr.sbin/devctl
Message-ID:  <8074036.gWSGr9DhZh@ralph.baldwin.cx>
In-Reply-To: <201608292248.u7TMmaEe050646@repo.freebsd.org>
References:  <201608292248.u7TMmaEe050646@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, August 29, 2016 10:48:36 PM John Baldwin wrote:
> Author: jhb
> Date: Mon Aug 29 22:48:36 2016
> New Revision: 305034
> URL: https://svnweb.freebsd.org/changeset/base/305034
> 
> Log:
>   Implement 'devctl clear driver' to undo a previous 'devctl set driver'.
>   
>   Add a new 'clear driver' command for devctl along with the accompanying
>   ioctl and devctl_clear_driver() library routine to reset a device to
>   use a wildcard devclass instead of a fixed devclass.  This can be used
>   to undo a previous 'set driver' command.  After the device's name has
>   been reset to permit wildcard names, it is reprobed so that it can
>   attach to newly-available (to it) device drivers.
>   
>   MFC after:	1 month
>   Sponsored by:	Chelsio Communications

In particular, you can now do 'devctl set driver pciX:Y:Z ppt' to flip
a device into pass through mode for bhyve and then use
'devctl clear driver pciX:Y:Z' to revert back to the host driver.

Though for bhyve/ppt(4) in particular you need some additional changes
currently under review so that the device ends up back in the proper
I/O MMU domain so it can do DMA in the host.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8074036.gWSGr9DhZh>