On Thu, Feb 17, 2022 at 02:48:57AM -0500, Jagannathan Raman wrote: > Setup a handler to run vfio-user context. The context is driven by > messages to the file descriptor associated with it - get the fd for > the context and hook up the handler with it > > Signed-off-by: Elena Ufimtseva <elena.ufimts...@oracle.com> > Signed-off-by: John G Johnson <john.g.john...@oracle.com> > Signed-off-by: Jagannathan Raman <jag.ra...@oracle.com> > --- > qapi/misc.json | 23 ++++++++++ > hw/remote/vfio-user-obj.c | 96 ++++++++++++++++++++++++++++++++++++++- > 2 files changed, 118 insertions(+), 1 deletion(-) > > diff --git a/qapi/misc.json b/qapi/misc.json > index e8054f415b..9d7f12ab04 100644 > --- a/qapi/misc.json > +++ b/qapi/misc.json > @@ -527,3 +527,26 @@ > 'data': { '*option': 'str' }, > 'returns': ['CommandLineOptionInfo'], > 'allow-preconfig': true } > + > +## > +# @VFU_CLIENT_HANGUP: > +# > +# Emitted when the client of a TYPE_VFIO_USER_SERVER closes the > +# communication channel > +# > +# @id: ID of the TYPE_VFIO_USER_SERVER object > +# > +# @device: ID of attached PCI device > +# > +# Since: 6.3
7.0 -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org