From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] tools/mfn-dump: Fixes to 'dump-p2m'
Date: Tue, 29 Apr 2014 17:39:17 +0100 [thread overview]
Message-ID: <535FD5B5.30208@citrix.com> (raw)
In-Reply-To: <1398785123.16933.16.camel@Solace>
[-- Attachment #1.1: Type: text/plain, Size: 1680 bytes --]
On 29/04/14 16:25, Dario Faggioli wrote:
> On gio, 2014-04-24 at 22:06 +0100, Andrew Cooper wrote:
>> * Don't walk off the end of p2m_table under the mistaken impression
that it
>> contains toolstack unsigned longs. Despite its array type it
contains guest
>> unsigned longs so unconditionally needs casting to the guest width
to use
>> correctly. Furthermore, a 64bit toolstack must be extra careful
when it
>> finds a 32bit guest's INVALID_MFN.
>>
>> * Drop 'mapped' and 'pinned' descriptions. This are both bogus,
including all
>> uses of the is_mapped() macro.
>>
> Just a question, what do you mean by 'bogus' here? About pinned, I think
> I see it, and I like the way you put it in the patch. About 'mapped' and
> is_mapped()? Do you mean to say it's not useful information here?
>
> Again, just curious.
The top bit of the type has nothing to do with mappings, or certainly
nothing that I am aware of, having successfully rewritten PV migration
from scratch.
The guest can still have mappings to its pinned pagetables, which would
have the top bit of the type set.
In xc_domain_save.c, this macro is used 4 times. 3 are used on mfns and
1 is used on a type (for a bit of debugging code which appears dead
anyway). I expect noone has every tried migrating a PV domain whose
pages are located in mfns with the 44th bit set.
So by bogus, I mean the macro itself, and all uses of it.
My best guess is that is some vestigial code left over from a previous
way of doing things, although I didn't encounter anything related to
this in code archaeology I performed when trying to work out why the
legacy migration did certain things the way they did.
~Andrew
[-- Attachment #1.2: Type: text/html, Size: 2314 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-04-29 16:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 21:06 [PATCH] tools/mfn-dump: Fixes to 'dump-p2m' Andrew Cooper
2014-04-29 15:25 ` Dario Faggioli
2014-04-29 16:39 ` Andrew Cooper [this message]
2014-04-29 22:35 ` Dario Faggioli
2014-05-02 13:04 ` Ian Campbell
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=535FD5B5.30208@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=dario.faggioli@citrix.com \
--cc=xen-devel@lists.xen.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.