public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Dean Pucsek <dean@lightbulbone.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: Guest Debugging Facilities in KVM
Date: Wed, 19 Sep 2012 17:38:53 +0300	[thread overview]
Message-ID: <5059D8FD.3060207@redhat.com> (raw)
In-Reply-To: <28768DBB-7AB1-454A-B86E-F6750C556495@lightbulbone.com>

On 09/17/2012 10:36 PM, Dean Pucsek wrote:
> Hello,
> 
> For my Masters thesis I am investigating the usage of Intel VT-x and branch tracing in the domain of malware analysis.  Essentially what I'm aiming to do is trace the execution of a guest VM and then pass that trace on to some other tools.  I've been playing KVM for a couple weeks now but from comments such as (in arch/x86/kvm/vmx.c): 
> 
>        /*
>         * Forward all other exceptions that are valid in real mode.
>         * FIXME: Breaks guest debugging in real mode, needs to be fixed with
>         *        the required debugging infrastructure rework.
>         */
> 
> And (from an email sent to the list in July 2008): 
> 
>         Note that guest debugging in real mode is broken now. This has to be
>         fixed by the scheduled debugging infrastructure rework (will be done
>         once base patches for QEMU have been accepted).
> 
> it is unclear to me how much support there is for guest debugging in KVM currently (I wasn't able to find any recent documentation on it) and what the debugging infrastructure referred to by these comments is.  I am interested in becoming involved with the KVM project in this respect however some guidance and direction on the guest debugging facilities would be greatly appreciated.

Guest debugging works (but not in real mode due to the issue above).
You can set hardware and software breakpoints and kvm will forward them
to userspace, and from there to the debugger.  I'll be happy to help, as
I'm sure Jan (as the author of most of the guest debugging code) will as
well.

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

  reply	other threads:[~2012-09-19 14:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 19:36 Guest Debugging Facilities in KVM Dean Pucsek
2012-09-19 14:38 ` Avi Kivity [this message]
2012-09-19 14:45   ` Jan Kiszka
2012-09-19 15:12     ` Avi Kivity
2012-09-20 17:17     ` Dean Pucsek
2012-09-21 12:25       ` Jan Kiszka

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=5059D8FD.3060207@redhat.com \
    --to=avi@redhat.com \
    --cc=dean@lightbulbone.com \
    --cc=jan.kiszka@siemens.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