Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new callback for QMP events #1393

Merged
merged 3 commits into from
Dec 6, 2023
Merged

Add new callback for QMP events #1393

merged 3 commits into from
Dec 6, 2023

Conversation

AndrewFasano
Copy link
Contributor

@AndrewFasano AndrewFasano commented Dec 6, 2023

If no QEMU code is consuming a QMP event of type "execute" give panda a chance to jump in with the new qmp callback.

I initially explored passing the QObject structures directly to PANDA but this forced our callback consumers to be able to parse a whole bunch of QObjects and related types that were quite painful to deal with (see the abandoned attempt at https://github.com/panda-re/panda/compare/qmp_cb2). Instead I just went with JSON.

It's not pretty but it works and there's an example.

@AndrewFasano AndrewFasano force-pushed the qmp_cb branch 3 times, most recently from 54d08db to 9f8995f Compare December 6, 2023 02:54
@AndrewFasano AndrewFasano merged commit b07c387 into dev Dec 6, 2023
25 of 26 checks passed
@AndrewFasano AndrewFasano deleted the qmp_cb branch December 6, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant