qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Xu <peterx@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
	mark.cave-ayland@ilande.co.uk,
	Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] memory: info mtree check mr range overflow
Date: Wed, 15 Mar 2017 11:15:50 +0800	[thread overview]
Message-ID: <20170315031550.GG12964@pxdev.xzpeter.org> (raw)
In-Reply-To: <20170315032001-mutt-send-email-mst@kernel.org>

On Wed, Mar 15, 2017 at 03:24:04AM +0200, Michael S. Tsirkin wrote:
> On Tue, Mar 14, 2017 at 08:56:27PM +0800, Peter Xu wrote:
> > The address of memory regions might overflow when something wrong
> > happened, like reported in:
> > 
> > https://lists.gnu.org/archive/html/qemu-devel/2017-03/msg02043.html
> > 
> > For easier debugging, let's try to detect it.
> > 
> > Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> > Signed-off-by: Peter Xu <peterx@redhat.com>
> 
> 
> After a chat with Paolo, I think the following is a more general fix
> 
> - fix info mtree to do 128 bit math and display more than
>   16 digits if necessary

Could you help elaborate in what case will we really need that 128 bit
address?

Btw, thanks for pointing out in the other thread that your patch
wasn't printing 128 bits but 64 bits, actually I didn't notice that
before... but even with that, I would still slightly prefer this one
though considering readability and simplicity.

> - add info about region visibility
>   how much info is appropriate is arguable - after all we already have info mtree -f
>   we probably should report if region is not visible at all,
>   how about partially occluded ones? listing all windows is probably not
>   needed - we have the -f flag for that.

For me, "info mtree" and its "-f" form work good enough. So I'll leave
the discussion on this one to people who know better than me...

Thanks,

-- peterx

  reply	other threads:[~2017-03-15  3:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-14 12:56 [Qemu-devel] [PATCH] memory: info mtree check mr range overflow Peter Xu
2017-03-14 14:59 ` Michael S. Tsirkin
2017-03-15  1:24 ` Michael S. Tsirkin
2017-03-15  3:15   ` Peter Xu [this message]
2017-03-15  3:30     ` Michael S. Tsirkin
2017-03-15  4:04       ` Peter Xu
2017-03-15  4:23         ` Michael S. Tsirkin
2017-03-15 13:30           ` Mark Cave-Ayland

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=20170315031550.GG12964@pxdev.xzpeter.org \
    --to=peterx@redhat.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --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).