lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 24 Sep 2019 19:23:16 +0800 From: Jason Wang <jasowang@...hat.com> To: Parav Pandit <parav@...lanox.com>, "kvm@...r.kernel.org" <kvm@...r.kernel.org>, "linux-s390@...r.kernel.org" <linux-s390@...r.kernel.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>, "intel-gfx@...ts.freedesktop.org" <intel-gfx@...ts.freedesktop.org>, "intel-gvt-dev@...ts.freedesktop.org" <intel-gvt-dev@...ts.freedesktop.org>, "kwankhede@...dia.com" <kwankhede@...dia.com>, "alex.williamson@...hat.com" <alex.williamson@...hat.com>, "mst@...hat.com" <mst@...hat.com>, "tiwei.bie@...el.com" <tiwei.bie@...el.com> Cc: "virtualization@...ts.linux-foundation.org" <virtualization@...ts.linux-foundation.org>, "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "cohuck@...hat.com" <cohuck@...hat.com>, "maxime.coquelin@...hat.com" <maxime.coquelin@...hat.com>, "cunming.liang@...el.com" <cunming.liang@...el.com>, "zhihong.wang@...el.com" <zhihong.wang@...el.com>, "rob.miller@...adcom.com" <rob.miller@...adcom.com>, "xiao.w.wang@...el.com" <xiao.w.wang@...el.com>, "haotian.wang@...ive.com" <haotian.wang@...ive.com>, "zhenyuw@...ux.intel.com" <zhenyuw@...ux.intel.com>, "zhi.a.wang@...el.com" <zhi.a.wang@...el.com>, "jani.nikula@...ux.intel.com" <jani.nikula@...ux.intel.com>, "joonas.lahtinen@...ux.intel.com" <joonas.lahtinen@...ux.intel.com>, "rodrigo.vivi@...el.com" <rodrigo.vivi@...el.com>, "airlied@...ux.ie" <airlied@...ux.ie>, "daniel@...ll.ch" <daniel@...ll.ch>, "farman@...ux.ibm.com" <farman@...ux.ibm.com>, "pasic@...ux.ibm.com" <pasic@...ux.ibm.com>, "sebott@...ux.ibm.com" <sebott@...ux.ibm.com>, "oberpar@...ux.ibm.com" <oberpar@...ux.ibm.com>, "heiko.carstens@...ibm.com" <heiko.carstens@...ibm.com>, "gor@...ux.ibm.com" <gor@...ux.ibm.com>, "borntraeger@...ibm.com" <borntraeger@...ibm.com>, "akrowiak@...ux.ibm.com" <akrowiak@...ux.ibm.com>, "freude@...ux.ibm.com" <freude@...ux.ibm.com>, "lingshan.zhu@...el.com" <lingshan.zhu@...el.com>, Ido Shamay <idos@...lanox.com>, "eperezma@...hat.com" <eperezma@...hat.com>, "lulu@...hat.com" <lulu@...hat.com> Subject: Re: [PATCH 1/6] mdev: class id support On 2019/9/24 上午5:02, Parav Pandit wrote: > Hi Jason, > > >> -----Original Message----- >> From: Jason Wang <jasowang@...hat.com> >> Sent: Monday, September 23, 2019 8:03 AM >> To: kvm@...r.kernel.org; linux-s390@...r.kernel.org; linux- >> kernel@...r.kernel.org; dri-devel@...ts.freedesktop.org; intel- >> gfx@...ts.freedesktop.org; intel-gvt-dev@...ts.freedesktop.org; >> kwankhede@...dia.com; alex.williamson@...hat.com; mst@...hat.com; >> tiwei.bie@...el.com >> Cc: virtualization@...ts.linux-foundation.org; netdev@...r.kernel.org; >> cohuck@...hat.com; maxime.coquelin@...hat.com; >> cunming.liang@...el.com; zhihong.wang@...el.com; >> rob.miller@...adcom.com; xiao.w.wang@...el.com; >> haotian.wang@...ive.com; zhenyuw@...ux.intel.com; zhi.a.wang@...el.com; >> jani.nikula@...ux.intel.com; joonas.lahtinen@...ux.intel.com; >> rodrigo.vivi@...el.com; airlied@...ux.ie; daniel@...ll.ch; >> farman@...ux.ibm.com; pasic@...ux.ibm.com; sebott@...ux.ibm.com; >> oberpar@...ux.ibm.com; heiko.carstens@...ibm.com; gor@...ux.ibm.com; >> borntraeger@...ibm.com; akrowiak@...ux.ibm.com; freude@...ux.ibm.com; >> lingshan.zhu@...el.com; Ido Shamay <idos@...lanox.com>; >> eperezma@...hat.com; lulu@...hat.com; Parav Pandit >> <parav@...lanox.com>; Jason Wang <jasowang@...hat.com> >> Subject: [PATCH 1/6] mdev: class id support >> >> Mdev bus only supports vfio driver right now, so it doesn't implement match >> method. But in the future, we may add drivers other than vfio, one example is >> virtio-mdev[1] driver. This means we need to add device class id support in bus >> match method to pair the mdev device and mdev driver correctly. >> >> So this patch adds id_table to mdev_driver and class_id for mdev parent with >> the match method for mdev bus. >> >> Signed-off-by: Jason Wang <jasowang@...hat.com> >> --- >> Documentation/driver-api/vfio-mediated-device.rst | 7 +++++-- >> drivers/gpu/drm/i915/gvt/kvmgt.c | 2 +- >> drivers/s390/cio/vfio_ccw_ops.c | 2 +- >> drivers/s390/crypto/vfio_ap_ops.c | 3 ++- >> drivers/vfio/mdev/mdev_core.c | 14 ++++++++++++-- >> drivers/vfio/mdev/mdev_driver.c | 14 ++++++++++++++ >> drivers/vfio/mdev/mdev_private.h | 1 + >> drivers/vfio/mdev/vfio_mdev.c | 6 ++++++ >> include/linux/mdev.h | 7 ++++++- >> include/linux/mod_devicetable.h | 8 ++++++++ >> samples/vfio-mdev/mbochs.c | 2 +- >> samples/vfio-mdev/mdpy.c | 2 +- >> samples/vfio-mdev/mtty.c | 2 +- >> 13 files changed, 59 insertions(+), 11 deletions(-) >> > You additionally need modpost support for id table integration to modifo, modprobe and other tools. > A small patch similar to this one [1] is needed. > Please include in the series. > > [1] https://lore.kernel.org/patchwork/patch/1046991/ My understanding is this could be done on top and may require uevent support for the bus. I can try to implement this in V2. Thanks > >
Powered by blists - more mailing lists