[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 4/4] tcg/plugins: Add example pair of QPP plugins
From: |
Andrew S. Fasano |
Subject: |
Re: [RFC 4/4] tcg/plugins: Add example pair of QPP plugins |
Date: |
Mon, 26 Sep 2022 21:38:28 +0000 |
From: Alex Bennée <alex.bennee@linaro.org>
> Andrew Fasano <fasano@mit.edu> writes:
>
> > The first plugin, qpp_srv exposes two functions and one callback that other
> > plugins can leverage. These functions are described in the corresponding
> > header file.
> >
> > The second plugin, qpp_client, imports this header file, registers its
> > own function to run on a qpp_srv-provided callback, and directly calls
> > into the two exposed functions in qpp_srv.
> >
> > Signed-off-by: Andrew Fasano <fasano@mit.edu>
> > ---
> > contrib/plugins/Makefile | 2 ++
> > contrib/plugins/qpp_client.c | 42 ++++++++++++++++++++++++++++++++++++
> > contrib/plugins/qpp_client.h | 1 +
> > contrib/plugins/qpp_srv.c | 33 ++++++++++++++++++++++++++++
> > contrib/plugins/qpp_srv.h | 17 +++++++++++++++
>
> Oh and I forgot this toy case should probably be in test/plugins/qpp with an
> explicit test in tests/tcg/multiarch/Makefile to exercise it during
> "make check-tcg". This should hopefully avoid having to mess with
> PLUGINS in tests/tcg/Makefile.target.
Okay, that makes sense. Thanks so much for all the feedback!
>
> <snip>
>
> --
> Alex Bennée
Thanks,
Andrew
- [RFC 0/4] Support interactions between TCG plugins, Andrew Fasano, 2022/09/01
- [RFC 4/4] tcg/plugins: Add example pair of QPP plugins, Andrew Fasano, 2022/09/01
- [RFC 3/4] tcg/plugins: Support for inter-plugin interactions, Andrew Fasano, 2022/09/01
- [RFC 2/4] tcg/plugins: Automatically define CURRENT_PLUGIN, Andrew Fasano, 2022/09/01
- [RFC 1/4] docs/tcg-plugins: describe QPP API, Andrew Fasano, 2022/09/01
- Re: [RFC 0/4] Support interactions between TCG plugins, Alex Bennée, 2022/09/21