xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: yandong han <toyandong@gmail.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: set the eflags.tf of VM
Date: Tue, 9 Jul 2013 12:38:01 -0700	[thread overview]
Message-ID: <20130709123801.3d4a336b@mantra.us.oracle.com> (raw)
In-Reply-To: <CACht+-Qa8E8DDp8ZEOWW7Pbq95=wAGnDVUSaRShC6YQ-H6gY7g@mail.gmail.com>

On Tue, 9 Jul 2013 16:59:27 +0800
yandong han <toyandong@gmail.com> wrote:

> hi,all
>     has anyone  set the eflags.TF of vm?
>     I want to introdeuce a VM into  single-step by setting  the
> eflags.TF of vm, then I disassemble the bytes at RIP to figure out
> what's going on . I have set the trap flag ,but I didn't achieve what
> I want. First, I only get hlt,mov, rdtsc, clts, in, out . Second, the
> VM always  crash. does anyone have experience and  give me some help?
> ----------------------------------------------------------
> best regards,
> yandong

If it's HVM, look at MTF, otherwise look at debugger_trap_entry and it's
callers. Can't you just use gdbsx in tools/debugger/gdbsx? You can look
at gdbsx source too...

Mukesh

      reply	other threads:[~2013-07-09 19:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-09  8:59 set the eflags.tf of VM yandong han
2013-07-09 19:38 ` Mukesh Rathor [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=20130709123801.3d4a336b@mantra.us.oracle.com \
    --to=mukesh.rathor@oracle.com \
    --cc=toyandong@gmail.com \
    --cc=xen-devel@lists.xensource.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).