[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC v2 07/12] vfio/ccw: vfio based subchannel pa
From: |
Dong Jia Shi |
Subject: |
Re: [Qemu-devel] [PATCH RFC v2 07/12] vfio/ccw: vfio based subchannel passthrough driver |
Date: |
Wed, 18 Jan 2017 11:22:23 +0800 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
* Alex Williamson <address@hidden> [2017-01-17 15:49:28 -0700]:
> On Thu, 12 Jan 2017 08:25:08 +0100
> Dong Jia Shi <address@hidden> wrote:
>
> > From: Xiao Feng Ren <address@hidden>
> >
> > We use the IOMMU_TYPE1 of VFIO to realize the subchannels
> > passthrough, implement a vfio based subchannels passthrough
> > driver called "vfio-ccw".
> >
> > Support qemu parameters in the style of:
> > "-device vfio-ccw,id=xx,hostid=xx(,guestid=xx),mdevid=xx"
>
> Why not adopt the same syntax as vfio-pci with mdev devices,
> sysfsdev=%s where %s is a path to the mdev device in sysfs, which can
> be /sys/bus/mdev/devices/$UUID or as you create from the hostid
> below /sys/bus/css/devices/%x.%x.%04x/$UUID.
Ok. This is a good point.
I will change the cmdline interface to:
-device vfio-ccw,id=xx,sysfsdev=xx(,devno=xx)
Since "hostid" is removed, I will also rename "guestid" to "devno" to
make it looking consistent with the virtio-ccw devices.
> It seems if we know where
> to find the mdev device then we can determine the parent information on
> our own through sysfs.
>
This is true.
> > Signed-off-by: Xiao Feng Ren <address@hidden>
[...]
--
Dong Jia
- [Qemu-devel] [PATCH RFC v2 01/12] update-linux-headers: add asm-s390/vfio_ccw.h, (continued)
- [Qemu-devel] [PATCH RFC v2 01/12] update-linux-headers: add asm-s390/vfio_ccw.h, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 02/12] vfio: linux-headers update for vfio-ccw, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 03/12] s390x/css: add s390-map-css machine option, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 04/12] s390x/css: realize css_sch_build_schib, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 05/12] s390x/css: realize css_create_sch, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 06/12] s390x/css: device support for s390-ccw passthrough, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 07/12] vfio/ccw: vfio based subchannel passthrough driver, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 08/12] vfio/ccw: get io region info, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 09/12] vfio/ccw: get irqs info and set the eventfd fd, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 10/12] s390x/css: introduce and realize ccw-request callback, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 11/12] s390x/css: ccws translation infrastructure, Dong Jia Shi, 2017/01/12
- [Qemu-devel] [PATCH RFC v2 12/12] vfio/ccw: update sense data if a unit check is pending, Dong Jia Shi, 2017/01/12