From: George Dunlap <George.Dunlap@eu.citrix.com>
To: Tim Deegan <tim@xen.org>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH 2 of 2 RFC] xen, pod: Only sweep in an emergency, and only for 4k pages
Date: Thu, 14 Jun 2012 14:32:32 +0100 [thread overview]
Message-ID: <CAFLBxZabsZ1xSUaP1ukXFFKBgLHEG36w=kTxh-t+Et5TEAuj_Q@mail.gmail.com> (raw)
In-Reply-To: <20120614131355.GB90181@ocelot.phlegethon.org>
[re-including xen-devel in the cc]]
On Thu, Jun 14, 2012 at 2:13 PM, Tim Deegan <tim@xen.org> wrote:
> At 13:42 +0100 on 14 Jun (1339681375), George Dunlap wrote:
>> On Thu, Jun 14, 2012 at 10:11 AM, Tim Deegan <tim@xen.org> wrote:
>> > At 11:45 +0000 on 08 Jun (1339155933), George Dunlap wrote:
>> >> + if ( p2m->pod.count == 0 )
>> >> + goto out_of_memory;
>> >>
>> >> /* Keep track of the highest gfn demand-populated by a guest fault */
>> >> if ( gfn > p2m->pod.max_guest )
>> >> p2m->pod.max_guest = gfn;
>> >>
>> >> - if ( p2m->pod.count == 0 )
>> >> - goto out_of_memory;
>> >> -
>> >
>> > Is this code motion just noise? Since out_of_memory crasheds the guest,
>> > I assume so.
>>
>> It will have no practical effect, other than improving the efficiency
>> of crashing a guest by a few cycles, if that's what you're asking.
>> It's more about taste: it just seemed silly to make an assignment and
>> *then* see if you were going to crash. :-)
>
> Well, yes. :) I don't think it quite falls under the description of the
> patch, though. Can you split it out as a cleanup patch?
If that's what you meant, you should have said so. :-) I shall do so
for the next series.
-George
next prev parent reply other threads:[~2012-06-14 13:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-08 11:45 [PATCH 0 of 2 RFC] Rework populate-on-demand sweeping George Dunlap
2012-06-08 11:45 ` [PATCH 1 of 2 RFC] xen, pod: Zero-check recently populated pages (checklast) George Dunlap
2012-06-08 12:02 ` Jan Beulich
2012-06-14 9:07 ` Tim Deegan
2012-06-14 14:24 ` George Dunlap
2012-06-14 15:36 ` Tim Deegan
2012-06-08 11:45 ` [PATCH 2 of 2 RFC] xen, pod: Only sweep in an emergency, and only for 4k pages George Dunlap
2012-06-14 9:11 ` Tim Deegan
2012-06-14 12:42 ` George Dunlap
2012-06-14 13:13 ` Tim Deegan
2012-06-14 13:32 ` George Dunlap [this message]
2012-06-14 9:12 ` [PATCH 0 of 2 RFC] Rework populate-on-demand sweeping Tim Deegan
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='CAFLBxZabsZ1xSUaP1ukXFFKBgLHEG36w=kTxh-t+Et5TEAuj_Q@mail.gmail.com' \
--to=george.dunlap@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xensource.com \
/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).