All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: matteo <signorinimatteo@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: monitoring guest sidt execution
Date: Mon, 16 Nov 2009 12:16:02 +0200	[thread overview]
Message-ID: <4B012662.3000308@redhat.com> (raw)
In-Reply-To: <4B00204E.20706@gmail.com>

On 11/15/2009 05:37 PM, matteo wrote:
> 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?
>

You need to fill the appropriate table entry for sidt (most likely 
group_table) and implement the opcode in the emulator.

-- 
error compiling committee.c: too many arguments to function


      reply	other threads:[~2009-11-16 10:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-15 15:37 monitoring guest sidt execution matteo
2009-11-16 10:16 ` Avi Kivity [this message]

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=4B012662.3000308@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=signorinimatteo@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.