Build VFIO mtty example mediated device sample code -- loadable modules only

modulename: mtty.ko

configname: CONFIG_SAMPLE_VFIO_MDEV_MTTY

Linux Kernel Configuration
└─>Sample kernel code
└─>Build VFIO mtty example mediated device sample code -- loadable modules only
In linux kernel since version 3.10 (release Date: 2013-06-30)  
Build a virtual tty sample driver for use as a VFIO
mediated device

source code: