[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 48/48] plugin: add a couple of very simple example
From: |
Emilio G. Cota |
Subject: |
Re: [Qemu-devel] [RFC 48/48] plugin: add a couple of very simple examples |
Date: |
Wed, 28 Nov 2018 09:48:25 -0500 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
On Wed, Nov 28, 2018 at 11:28:11 +0000, Alex Bennée wrote:
>
> Emilio G. Cota <address@hidden> writes:
>
> > Signed-off-by: Emilio G. Cota <address@hidden>
> > ---
> > plugin-examples/bbcount_avgsize_racy.c | 50 ++++++++++++++++++++++
> > plugin-examples/mem_count_racy_both.c | 58 ++++++++++++++++++++++++++
> > plugin-examples/Makefile | 31 ++++++++++++++
>
> So I think we need to be putting these somewhere else and also building
> the examples by default. As plugins only make sense with tcg guests
Most of plugin functionality is related to TCG, but some of
it is not. For instance, one could use a plugin to just control
the guest clock, and nothing else. This would work with KVM.
This is why I think $SRC_PATH/plugin.c makes sense.
Wrt the examples, I just included them here for reviewing purposes.
If we end up adding them, I think tests/plugin[s] would be an appropriate
place for them.
> > +# QEMU installed path, set by --prefix during configure
> > +QEMU_PATH ?= /data/src/qemu-inst/plugin-test
>
> I guess we should use SRC_PATH (or maybe QEMU_SRC_PATH) if we want the
> Makefile to be both invoked as a sub-make from a normal QEMU build and
> to be used as an example for out-of-tree builds.
(As I said, this was a quick hack just to get the RFC out :P)
Thanks,
Emilio