Hacker News new | ask | show | jobs
by Retr0id 5 days ago
This looks useful for a lot of instrumentation use cases, but less so for building custom emulators, if I'm understanding it correctly.
2 comments

Plugins would definitely be the wrong tool for the job for actual new emulator development, but if you needed to do something easy like add an NVRAM for a router rehost you could do that with plugins e.g. by skipping an instruction and using a callback to implement the desired behavior (as long as it is something a plugin is allowed to do -- you can't access device memory yet).
For this, I believe, working with the mainline is more promising path, at least to reduce the amount of changes needed[1].

[1] https://gitlab.com/qemu-project/qemu/-/work_items/1896