Open LittleSec opened 5 years ago
There is no QEMU command line interface for passing parameters to plugins, generally we pass plugin parameters though the environment such as for instance in the dineroIV plugin where the cache topology is passed through several environment variables.
For instance:
$ env HELLO_PLUGIN_PARAMS=param1,param2 qemu ... --tcg-plugin hello-plugin.so
There is an interface through the gdb plugin interface to mofify some declared plugin properties and the parameters.c is just an exemple plugin to show this, unfortunately this interface is not available from the command line as of now.
thanks, I try it.
For example, I want to write a plugin named
hello-plugin
, which can read a file to do something. Usually we can use the command likehello-plugin <filename>
. I want to know if qemu-plugin can do this for example--tcg-plugin ./hello-plugin.so filename
? I notice theparameters.c
, but I don't know how to use, it seems doing nothings as it's description.