All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Guest debugging support for KVM
Date: Thu, 15 Jan 2009 14:19:37 -0600	[thread overview]
Message-ID: <496F9A59.4040503@codemonkey.ws> (raw)
In-Reply-To: <496DF9F5.1040404@siemens.com>

Jan Kiszka wrote:
> [ Also available via git://git.kiszka.org/qemu.git queue/gdb ]
>
> This is a backport of the guest debugging support for the KVM
> accelerator that is now part of the KVM tree. It implements the reworked
> KVM kernel API for guest debugging (KVM_CAP_SET_GUEST_DEBUG) which is
> not yet part of any mainline kernel but will probably be 2.6.30 stuff.
> So far supported is x86, but PPC is expected to catch up soon.
>
> Core features are:
>  - unlimited soft-breakpoints via code patching
>  - hardware-assisted x86 breakpoints and watchpoints
>
> Open issues: Writing soft breakpoints to BIOS code. cpu_memory_rw_debug
> does not work here. Suggestion to fix this cleanly are welcome.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
>  configure         |    4 +
>  exec.c            |   10 ++-
>  gdbstub.c         |   29 +++++++--
>  gdbstub.h         |    7 ++
>  kvm-all.c         |  172 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  kvm.h             |   41 +++++++++++++
>  target-i386/kvm.c |  172 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  7 files changed, 423 insertions(+), 12 deletions(-)
>
> diff --git a/configure b/configure
> index a8ea55a..afbe1e0 100755
> --- a/configure
> +++ b/configure
> @@ -479,11 +479,11 @@ case "$cpu" in
>             ARCH_CFLAGS="-march=z900"
>             ;;
>      i386)
> -           ARCH_CFLAGS="-m32"
> +           ARCH_CFLAGS="-m32 -DCONFIG_X86"
>             ARCH_LDFLAGS="-m32"
>             ;;
>      x86_64)
> -           ARCH_CFLAGS="-m64"
> +           ARCH_CFLAGS="-m64 -DCONFIG_X86"
>             ARCH_LDFLAGS="-m64"
>             ;;
>  esac
>   

This seems unnecessary, no?

The rest looks good.

Regards,

Anthony Liguori

  reply	other threads:[~2009-01-15 20:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14 14:43 [Qemu-devel] [PATCH] Guest debugging support for KVM Jan Kiszka
2009-01-15 20:19 ` Anthony Liguori [this message]
2009-01-15 21:26   ` [Qemu-devel] " 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=496F9A59.4040503@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.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 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.