vfio: Add basic support for vfio-platform

A VFIO device can be assigned to guest with new cmdline
--vfio-platform ${dev} , where ${dev} is the name of the device under
/sys/bus/platform.
The device is expected to be bound to vfio-platform driver before
running the tool.

Currently fdt properties are hardcoded for designware-i2c.

THIS IS USED ONLY FOR TESTING AND NOT INTENDED FOR PRODUCTION.

Signed-off-by: Mostafa Saleh <smostafa@google.com>
11 files changed