All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Guest application exit point.
@ 2018-10-26  4:20 Rafael K. V. Maeda
  2018-10-26 13:30 ` Alex Bennée
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael K. V. Maeda @ 2018-10-26  4:20 UTC (permalink / raw)
  To: qemu-devel

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).

Kind regards,
Rafael

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Guest application exit point.
  2018-10-26  4:20 [Qemu-devel] Guest application exit point Rafael K. V. Maeda
@ 2018-10-26 13:30 ` Alex Bennée
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Bennée @ 2018-10-26 13:30 UTC (permalink / raw)
  To: Rafael K. V. Maeda; +Cc: qemu-devel


Rafael K. V. Maeda <rafaelkioji@gmail.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-26 13:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-26  4:20 [Qemu-devel] Guest application exit point Rafael K. V. Maeda
2018-10-26 13:30 ` Alex Bennée

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.