qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I wanna fixes plugin on windows, any suggestion


From: Paolo Bonzini
Subject: Re: I wanna fixes plugin on windows, any suggestion
Date: Fri, 25 Sep 2020 22:59:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

On 25/09/20 22:50, Richard Henderson wrote:
> On 9/25/20 12:25 PM, Paolo Bonzini wrote:
>> On 25/09/20 21:23, 罗勇刚(Yonggang Luo) wrote:
>>> That's what I am tring to fixes? what does  one import library per
>>> emulator, can we do this like NodeJS does?
>>>  NodeJS have NAPI support across platform. They create a windows .lib from
>>> node.exe
>>
>> You'd have to create a .lib for qemu-system-aarch64.exe, one for
>> qemu-system-arm.exe, etc.  On Linux the same plugin will work for all
>> emulators.
> 
> Which is clearly silly.
> 
> So what you'd do is create a common .lib that all of the plugins link to, and
> so do all of the qemu-foo.exe.
> 
> This would probably involve creating a set of call-backs that qemu-foo.exe
> would need to pass to the common .lib at startup.  It's harder to do with
> windows than linux, but it's not impossible.

Yes, or you can skip the .lib/.dll completely; you just place pointers
to the callbacks in a struct and pass it to the plugin when it's loaded,
through qemu_info_t.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]