From: matteo <signorinimatteo@gmail.com>
To: kvm@vger.kernel.org
Subject: monitoring guest sidt execution
Date: Sun, 15 Nov 2009 16:37:50 +0100 [thread overview]
Message-ID: <4B00204E.20706@gmail.com> (raw)
Hi to all,
I'm trying to intercept the guest "sidt" instruction execution from the
host
i've added the bit to the control structure:
control->intercept = | (1ULL << INTERCEPT_STORE_IDTR);
then I have defined the sidt handler to manage the STORE_IDTR action:
[SVM_EXIT_IDTR_READ] = idtr_write_interception,
So, in the idtr_write_interception handler there is the invocation of
the "emulate_instruction(&svm->
vcpu, kvm_run, 0, 0, 0);" function.
Following the execution flow i found that the emulation failed in the
x86_emulate.c source file and precisely in the "if (c->d == 0) "
conditional statement but i really don't know why it happens and how to
fix it.
could you please give me some hints with respect to this issue?
thanks in advance,
Matteo
next reply other threads:[~2009-11-15 15:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-15 15:37 matteo [this message]
2009-11-16 10:16 ` monitoring guest sidt execution Avi Kivity
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=4B00204E.20706@gmail.com \
--to=signorinimatteo@gmail.com \
--cc=kvm@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox