Re: [PATCH RFC 1/2] vfio-ccw: forward halt/clear to device if supported
From: Cornelia Huck
Date: Wed May 16 2018 - 11:20:14 EST
On Wed, 16 May 2018 15:53:48 +0200
Pierre Morel <pmorel@xxxxxxxxxxxxx> wrote:
> On 15/05/2018 18:01, Cornelia Huck wrote:
> > On Fri, 11 May 2018 11:53:52 +0200
> > Pierre Morel <pmorel@xxxxxxxxxxxxx> wrote:
> >> Couldn't we introduce ABI versioning ?
> > Can you elaborate what you're referring to?
> >
> > If you mean checking capabilities of the kernel or so: If we can avoid
> > that and just try (and stop if it does not work), I'd prefer that (no
> > dependencies).
>
> VFIO_CHECK_EXTENSION is already used in different drivers
> for this kind of interface extension.
> We could use it to setup appropriate callbacks for scsh/csch/xsch/hsch
> depending on the extension argument.
Hm, this might be useful for things like xsch that aren't really well
served by the current interface. Or we could try using the
device-specific capability interface.
Let me think and play with this a bit.