[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Guest application exit point.
From: |
Alex Bennée |
Subject: |
Re: [Qemu-devel] Guest application exit point. |
Date: |
Fri, 26 Oct 2018 14:30:27 +0100 |
User-agent: |
mu4e 1.1.0; emacs 26.1.50 |
Rafael K. V. Maeda <address@hidden> writes:
> Hi,
>
> I am implementing a plugin that allocates several resources. I need to
> cleanup some of these resources when QEMU finishes executing the guest
> application. Where is the best exit point to place my cleanup
> functions?
>
> I have tried registering a function call "atexit" but it does not seem
> to work. Any suggestions? At the moment, I am looking for a solution
> for x86_64 (user emulation mode).
For linux-user have a look at preexit_cleanup() in linux-user/exit.c
>
> Kind regards,
> Rafael
--
Alex Bennée