qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Question on pointers in the qemu user space emulation


From: Peter Maydell
Subject: Re: [Qemu-devel] Question on pointers in the qemu user space emulation
Date: Fri, 17 Jan 2014 15:16:45 +0000

On 17 January 2014 06:33, Erik de Castro Lopo <address@hidden> wrote:
> I'm currently working on implementing a missing part of a linux-user
> syscall. This syscall includes a function pointer for a callback.

Which syscall? Callbacks from the kernel are pretty tricky.
Basically you need to register a host function as the callback
with the host kernel, and stash the guest function pointer somewhere
so that when the callback comes in from the host kernel you can
arrange to interrupt the guest and restart it at the desired
location.

Pretty much the only situation we support this for is the special
case of signal handlers. In fact I wasn't even aware there was
any other kind of kernel-to-userspace callback...

thanks
-- PMM



reply via email to

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