[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] User mode restart execution
From: |
Mulyadi Santosa |
Subject: |
Re: [Qemu-devel] User mode restart execution |
Date: |
Wed, 8 Dec 2010 22:14:36 +0700 |
Hi...
On Tue, Dec 7, 2010 at 18:43, John Vele <address@hidden> wrote:
> Grettings,
>
> I am using user mode qemu for running stand-alone i386 binaries in linux.
> What I want to do is this:
> I want to run a binary until it ends, but I don't want qemu-i386 to exit
> (that is what
> it does normally) but restart the execution of the same binary from the
> beginning
> without exiting.
Not sure why you wanna do such thing, but an idea crossed my mind:
quite likely, a program exit with exit() C function. This is related
to close() syscall AFAIK.
Thus, how about modifying close() syscall handler in qemu user mode
and make it jump again to load ELF from scratch?
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com