From: Clemens Kolbitsch <ck@iseclab.org>
To: qemu-devel@nongnu.org
Cc: ricciantonio@gmail.com
Subject: Re: [Qemu-devel] How to hook syscall in guest OS?
Date: Wed, 28 Jan 2009 09:10:56 +0100 [thread overview]
Message-ID: <200901280910.56264.ck@iseclab.org> (raw)
In-Reply-To: <20090127233504.6299gmx1@mx040.gmx.net>
> Hi all,
>
> i want to know if is it possible to intercept syscall's entry point and
> exit point for both Linux and Windows guest operating system in Qemu from
> the host Operating System. If is it possible how can I do it?
>
> Thanks in advance for help
>
> Best Regards
Hi Antonio,
I'm not sure if there is an easier way, but back when Qemu still had TB code
together with dyn_gen, it was very easy to insert a function call (i.e. a
hook) into the code of the "int" and "sysenter" code blocks.
Using this hook, you can use the registers, etc. to see if it was a system
call. I'm not sure how it works with the current intermediay code generation,
but maybe this hint can guide you into a direction that might work ;-)
Cheers,
Clemens
next parent reply other threads:[~2009-01-28 8:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090127233504.6299gmx1@mx040.gmx.net>
2009-01-28 8:10 ` Clemens Kolbitsch [this message]
2009-01-27 23:33 [Qemu-devel] How to hook syscall in guest OS? Antonio Ricci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200901280910.56264.ck@iseclab.org \
--to=ck@iseclab.org \
--cc=qemu-devel@nongnu.org \
--cc=ricciantonio@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.