From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: dave.scott@eu.citrix.com, xen-devel@lists.xen.org,
Dushyant Behl <myselfdushyantbehl@gmail.com>,
Andres Lagar Cavilla <andres@lagarcavilla.org>,
stefano.stabellini@eu.citrix.com
Subject: Re: [Xen-Devel] [PATCH] [GSOC14] refactored mempaging code from xenpaging to libxc.
Date: Thu, 12 Jun 2014 15:46:09 +0100 [thread overview]
Message-ID: <5399BD31.506@citrix.com> (raw)
In-Reply-To: <1402582909.26678.12.camel@kazak.uk.xensource.com>
On 12/06/14 15:21, Ian Campbell wrote:
> On Thu, 2014-06-12 at 15:11 +0100, Andrew Cooper wrote:
>
>
>>>
>>> > + if ( mmap_pfn & XEN_DOMCTL_PFINFO_XTAB )
>>>
>>>
>>> What is this check for?
>>> foreign_batch has the old semantics of setting the MSB of the pfn in
>>> error. Maybe use map_foreign_bulk with cleaner error reporting?
>>>
>> Eww. That is a nasty interface, and will completely break 32bit
>> toolstacks on machines with hotplug regions above the 8TB boundary.
>>
>> Please do use map_foreign_bulk().
> The stated purpose of this patch is code motion. Please don't encourage
> people to also make functional changes in such patches.
>
> If there is to be any cleanups/improvements then they should be done
> later, but that won't affect the acceptance of this patch (assuming it
> really is just motion, I've not checked in detail).
>
> Ian.
>
Refactoring is not necessarily code motion, although in this case it
does appear to be almost exclusively motion.
However, it is motion of code from an example utility into a main
library, and I do not feel it is appropriate to be moving code with bugs
like this into libxc. (Perhaps I am overly jaded by the amount of
fixing up the migration code needed in areas like this)
Two solutions come to mind: either change this patch to be "implement
xenpaging initialisation in libxenguest" and fix the code up as it goes
in, or fix it up in xenpaging and move it as a second patch.
~Andrew
next prev parent reply other threads:[~2014-06-12 14:46 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-12 9:23 [Xen-Devel] [PATCH] [GSOC14] refactored mempaging code from xenpaging to libxc Dushyant Behl
2014-06-12 9:42 ` Dave Scott
2014-06-12 13:22 ` Andrew Cooper
2014-06-12 13:27 ` Ian Campbell
2014-06-12 13:29 ` Andrew Cooper
2014-06-12 13:49 ` Andres Lagar Cavilla
2014-06-12 13:55 ` Ian Campbell
2014-06-12 14:01 ` Andres Lagar Cavilla
2014-06-12 13:59 ` Andres Lagar Cavilla
2014-06-12 14:03 ` Dushyant Behl
2014-06-12 14:11 ` Andrew Cooper
2014-06-12 14:21 ` Ian Campbell
2014-06-12 14:46 ` Andrew Cooper [this message]
2014-06-13 14:16 ` Dushyant Behl
2014-06-13 14:23 ` Dushyant Behl
2014-06-13 14:37 ` Andrew Cooper
2014-06-13 15:03 ` Andres Lagar Cavilla
2014-06-13 14:51 ` Andrew Cooper
2014-06-13 15:00 ` Dushyant Behl
2014-06-13 15:06 ` Andrew Cooper
2014-06-13 15:07 ` Andres Lagar Cavilla
2014-06-13 15:55 ` Andrew Cooper
2014-06-13 16:09 ` Andres Lagar Cavilla
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=5399BD31.506@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=andres@lagarcavilla.org \
--cc=dave.scott@eu.citrix.com \
--cc=myselfdushyantbehl@gmail.com \
--cc=stefano.stabellini@eu.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.