All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: wei.liu2@citrix.com, Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: tim@xen.org, sstabellini@kernel.org, George.Dunlap@eu.citrix.com,
	andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 3/4] mm: Don't request scrubbing until dom0 is running
Date: Tue, 29 Aug 2017 07:34:32 -0600	[thread overview]
Message-ID: <59A5898802000078001750A2@prv-mh.provo.novell.com> (raw)
In-Reply-To: <0b8d30b1-4d3f-e462-d14a-94675c6b5593@oracle.com>

>>> On 29.08.17 at 15:27, <boris.ostrovsky@oracle.com> wrote:
> On 08/29/2017 09:22 AM, Jan Beulich wrote:
>>>>> On 29.08.17 at 13:56, <wei.liu2@citrix.com> wrote:
>>> On Mon, Aug 28, 2017 at 04:40:28PM -0400, Boris Ostrovsky wrote:
>>>> There is no need to scrub pages freed during dom0 construction
>>>> since heap will be scrubbed once dom0 is ready (by scrub_heap_pages()).
>>>>
>>>> Since boot_scrub_done will not be set if boot-time scrubbing is off we
>>>> also check for domain state.
>>>>
>>>> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
>>>> ---
>>>>  xen/common/page_alloc.c | 2 +-
>>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c
>>>> index 34a7992..b93dae9 100644
>>>> --- a/xen/common/page_alloc.c
>>>> +++ b/xen/common/page_alloc.c
>>>> @@ -2259,7 +2259,7 @@ void free_domheap_pages(struct page_info *pg, unsigned 
> int order)
>>>>               */
>>>>              scrub = !!d->is_dying;
>>>>  #else
>>>> -            scrub = true;
>>>> +            scrub = boot_scrub_done || !!d->is_dying;
>>> It seems that the debug and non-debug case should use the same
>>> predicate.
>> No - boot_scrub_done doesn't even exist in the other case.
> 
> 
> I read Wei's message as suggesting
> 
>         scrub = !!d->is_dying;
>     #ifdef CONFIG_SCRUB_DEBUG
>         scrub |= boot_scrub_done;
>     #endif
> 
> 
> which I could do.

Yes, but please consider the "#define boot_scrub_done 0" approach
too.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-08-29 13:34 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-28 20:40 [PATCH 0/4] Scrubbing updates Boris Ostrovsky
2017-08-28 20:40 ` [PATCH 1/4] mm: Initialize lowmem virq when boot-time scrubbing is disabled Boris Ostrovsky
2017-08-29 11:51   ` Wei Liu
2017-08-29 13:12     ` Boris Ostrovsky
2017-08-29 13:20       ` Jan Beulich
2017-08-29 13:19     ` Jan Beulich
2017-08-28 20:40 ` [PATCH 2/4] mm: Don't poison a page if boot-time scrubbing is off Boris Ostrovsky
2017-08-29 11:52   ` Wei Liu
2017-08-28 20:40 ` [PATCH 3/4] mm: Don't request scrubbing until dom0 is running Boris Ostrovsky
2017-08-29 11:56   ` Wei Liu
2017-08-29 13:22     ` Jan Beulich
2017-08-29 13:27       ` Boris Ostrovsky
2017-08-29 13:34         ` Jan Beulich [this message]
2017-08-29 14:20           ` Boris Ostrovsky
2017-08-29 14:25             ` Jan Beulich
2017-08-29 13:26   ` Jan Beulich
2017-08-29 13:31     ` Wei Liu
2017-08-28 20:40 ` [PATCH 4/4] mm: Don't hold heap lock in alloc_heap_pages() longer than necessary Boris Ostrovsky
2017-08-29 12:16   ` Wei Liu
2017-08-29 13:33   ` Jan Beulich

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=59A5898802000078001750A2@prv-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=wei.liu2@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.