qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	Markus Armbruster <armbru@redhat.com>,
	qemu-devel@nongnu.org, Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] Monitor brain dump
Date: Fri, 7 Oct 2016 12:14:37 +0200	[thread overview]
Message-ID: <20161007101437.GD4589@noname.redhat.com> (raw)
In-Reply-To: <0d193d70-9e6e-c91a-01ad-926851a544e2@redhat.com>

Am 06.10.2016 um 13:07 hat Paolo Bonzini geschrieben:
> On 05/10/2016 19:43, Dr. David Alan Gilbert wrote:
> > > Speaking of the pocket calculator: my recommendation would be "nuke from
> > > orbit".  It adds surprising corner cases to the HMP language, and
> > > provides next to no value.
> > 
> > Huh, didn't realise that existed - I assume you mean get_expr and friends?
> > yep sounds nukable
> 
> We've been suggesting commands like "x/10i $pc-20" to people who
> reported emulation failures in KVM, so there is some benefit in that.

Yes, there are some operations that it supports that I think are really
rarely used (I don't think I've ever used modulo in the monitor), but
using the register variables like $pc or calculating offsets (i.e. sums
and possibly multiplications) is fairly common and useful for debugging
guests.

Looking at git blame, this seems to be something that just works and is
hardly ever touched, so why does leaving it there hurt us?

Any examples of the surprising corner cases? Can they be addressed
without removing the useful parts of it?

> My hunch is that it would be a drop in the sea if monitor.c were
> refactored properly.  Now that QMP middle mode is gone it should be much
> easier.

That, too.

Kevin

  parent reply	other threads:[~2016-10-07 10:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-05 16:22 [Qemu-devel] Monitor brain dump Markus Armbruster
2016-10-05 17:03 ` Luiz Capitulino
2016-10-05 17:43 ` Dr. David Alan Gilbert
2016-10-05 18:48   ` Laszlo Ersek
2016-10-05 19:19     ` Dr. David Alan Gilbert
2016-10-06 11:07   ` Paolo Bonzini
2016-10-06 11:10     ` Peter Maydell
2016-10-06 11:14       ` Paolo Bonzini
2016-10-06 11:20         ` Marc-André Lureau
2016-10-07 10:14     ` Kevin Wolf [this message]
2016-10-06 11:26   ` Markus Armbruster

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=20161007101437.GD4589@noname.redhat.com \
    --to=kwolf@redhat.com \
    --cc=armbru@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=pbonzini@redhat.com \
    --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 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).