[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 14/22] plugins: make test/example plugins work on windows
From: |
Greg Manning |
Subject: |
Re: [PATCH 14/22] plugins: make test/example plugins work on windows |
Date: |
Tue, 7 Nov 2023 09:55:24 +0000 |
From: Paolo Bonzini <pbonzini@redhat.com>
One important remark below that Greg can answer; the others are nits.
> ...
> I think this could also use the notification hook and
dliNotePreLoadLibrary. That's a little more tidy but it's okay either way.
I don't really mind. I had in mind that there might someday be a
single executable and when that happens the hook would silently
get out of the way.
On the other hand, doing it this way means if the user /happens/
to have a qemu.exe in an unfortunate place then things will fail
with very unhelpful error messages, because the linker would
sucessfully load the qemu.exe, then (presumably) fail when
looking up symbols.
> A bit more important: would it make sense to include the hook *in the
> QEMU executable itself*, rather than in the DLL? If it works, it would
> be much preferrable. You still would have to add the .lib file to the
> compilation, but win32_linker.c could simply be placed in os-win32.c
> with fewer changes to meson.build and the makefiles.
My initial trials of this didn't work. But having read the docs again, I'm
going to have another go at it now...
Greg.
--
Follow Rapita Systems on
LinkedIn<https://www.linkedin.com/company/rapita-systems?utm_source=rs_email_sig>
- [PATCH 08/22] gdbstub: Add num_regs member to GDBFeature, (continued)
- [PATCH 10/22] gdbstub: Introduce GDBFeatureBuilder, Alex Bennée, 2023/11/06
- [PATCH 07/22] tests/avocado: update the tcg_plugins test, Alex Bennée, 2023/11/06
- [PATCH 06/22] tests/tcg: add an explicit gdbstub register tester, Alex Bennée, 2023/11/06
- [PATCH 09/22] gdbstub: Introduce gdb_find_static_feature(), Alex Bennée, 2023/11/06
- [PATCH 14/22] plugins: make test/example plugins work on windows, Alex Bennée, 2023/11/06
[PATCH 12/22] configure: tell meson and contrib_plugins about DLLTOOL, Alex Bennée, 2023/11/06
[PATCH 11/22] cpu: Call plugin hooks only when ready, Alex Bennée, 2023/11/06
[PATCH 13/22] plugins: add dllexport and dllimport to api funcs, Alex Bennée, 2023/11/06
[PATCH 21/22] mailmap: fixup some more corrupted author fields, Alex Bennée, 2023/11/06