qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: QEMU plugin past, present and future examples
       [not found] <DS0PR21MB3907C54A543A8540AAD1DA8CD6C72@DS0PR21MB3907.namprd21.prod.outlook.com>
@ 2024-06-12 12:27 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; only message in thread
From: Philippe Mathieu-Daudé @ 2024-06-12 12:27 UTC (permalink / raw)
  To: Robert Henry
  Cc: Alex Bennée, erdnaxe@crans.org, qemu-discuss@nongnu.org,
	ma.mandourr@gmail.com, Julio Gago Alonso, Vinson Young, Toni Juan,
	QEMU Developers, Pierrick Bouvier, Richard Henderson

Hi Robert,

On 11/6/24 18:53, Robert Henry wrote:
> QEMU plugin experts:
> 
> A few years I wrote a plugin for QEMU that saves the instruction stream 
> to a file for offline analysis.  QEMU could fly along at about 10MIPS 
> and the disk would soon fill up with large protobuf files.  The offline 
> analysis runs at about 50kIPS, and does a variety of analyses, such as 
> simple disassembly that includes kernel source file name and line 
> number, popcount analyses of displacements, Markov chain probabilities, 
> etc.
> 
> To get the speed up, I narrowed the scope of the plugin to only work 
> with ARM64, although there's still a lot of support for x86_64.
> 
>   I have not kept pace with the QEMU plugin API changes, if any, to 
> support vectors, masks, and so forth.
> 
>   *
>     I did this work for my current employer, Microsoft.
>   *
>     I will retire in 3 weeks.`
>   *
>     Nobody in Microsoft seems interested in picking up this work.
>   *
>     I'm working with our open source office to get this more widely
>     released.
> 
> The plugin code that runs in QEMU is complex, but relatively 
> straightforward. The offline analysis code is idiosyncratic and somewhat 
> fragile.

Thanks for trying to share your work with the community!

> Do the QEMU plugin experts (cc'ed here mostly) have a suggestion for 
> which public git repository service has worked "best" for other plugins 
> that are not currently part of the QEMU source tree?

Cc'ing few more developer familiar with plugins and the source code
organisation.

> I will try to get a repo in github.com/microsoft/ but I do not know what 
> is involved.
> 
> Robert Henry
> robhenry@microsoft.com
> rrh.henry@gmail.com
> https://github.com/robertHenry6bev <https://github.com/robertHenry6bev>

Regards,

Phil.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-12 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <DS0PR21MB3907C54A543A8540AAD1DA8CD6C72@DS0PR21MB3907.namprd21.prod.outlook.com>
2024-06-12 12:27 ` QEMU plugin past, present and future examples Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).