[lkml]   [2019]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH v2 0/2] Simplify mtty driver and mdev core
Currently mtty sample driver uses mdev state and UUID in convoluated way to
generate an interrupt.
It uses several translations from mdev_state to mdev_device to mdev uuid.
After which it does linear search of long uuid comparision to
find out mdev_state in mtty_trigger_interrupt().
mdev_state is already available while generating interrupt from which all
such translations are done to reach back to mdev_state.

This translations are done during interrupt generation path.
This is unnecessary and reduandant.

Patch-1 simplifies mtty sample driver to directly use mdev_state.

Patch-2, Since no production driver uses mdev_uuid(), simplifies and
removes redandant mdev_uuid() exported symbol.

- Corrected email of Kirti
- Updated cover letter commit log to address comment from Cornelia
- Added Reviewed-by tag
- Updated commit log

Parav Pandit (2):
vfio-mdev/mtty: Simplify interrupt generation
vfio/mdev: Removed unused and redundant API for mdev UUID

drivers/vfio/mdev/mdev_core.c | 6 ------
include/linux/mdev.h | 1 -
samples/vfio-mdev/mtty.c | 39 +++++++----------------------------
3 files changed, 8 insertions(+), 38 deletions(-)


 \ /
  Last update: 2019-08-08 16:13    [W:0.188 / U:11.504 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site