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

modulename: mbochs.ko

configname: CONFIG_SAMPLE_VFIO_MDEV_MBOCHS

Linux Kernel Configuration
└─>Kernel hacking
└─>Sample kernel code
└─>Build VFIO mdpy example mediated device sample code -- loadable modules only
In linux kernel since version 3.10 (release Date: 2013-06-30)  
Build a virtual display sample driver for use as a VFIO
mediated device. It supports the region display interface
(VFIO_GFX_PLANE_TYPE_DMABUF).
Emulate enough of qemu stdvga to make bochs-drm.ko happy.
That is basically the vram memory bar and the bochs dispi
interface vbe registers in the mmio register bar.
Specifically it does *not* include any legacy vga stuff.
Device looks a lot like "qemu -device secondary-vga".

source code: